Lines Matching refs:drom_offset
261 if (cap.drom_offset > 0xffff) { in tb_eeprom_get_drom_offset()
263 cap.drom_offset); in tb_eeprom_get_drom_offset()
266 *offset = cap.drom_offset; in tb_eeprom_get_drom_offset()
279 u16 drom_offset; in tb_drom_read_uid_only() local
281 int res = tb_eeprom_get_drom_offset(sw, &drom_offset); in tb_drom_read_uid_only()
285 if (drom_offset == 0) in tb_drom_read_uid_only()
289 res = tb_eeprom_read_n(sw, drom_offset, data, 9); in tb_drom_read_uid_only()
444 u32 drom_offset; in tb_drom_copy_nvm() local
450 ret = tb_sw_read(sw, &drom_offset, TB_CFG_SWITCH, in tb_drom_copy_nvm()
455 if (!drom_offset) in tb_drom_copy_nvm()
458 ret = dma_port_flash_read(sw->dma_port, drom_offset + 14, size, in tb_drom_copy_nvm()
469 ret = dma_port_flash_read(sw->dma_port, drom_offset, sw->drom, *size); in tb_drom_copy_nvm()
491 u16 drom_offset; in tb_drom_read() local
534 res = tb_eeprom_get_drom_offset(sw, &drom_offset); in tb_drom_read()
538 res = tb_eeprom_read_n(sw, drom_offset + 14, (u8 *) &size, 2); in tb_drom_read()
552 res = tb_eeprom_read_n(sw, drom_offset, sw->drom, size); in tb_drom_read()