Lines Matching defs:offset
135 * tb_eeprom_get_drom_offset - get drom offset within eeprom
137 static int tb_eeprom_get_drom_offset(struct tb_switch *sw, u16 *offset)
157 tb_sw_warn(sw, "drom offset is larger than 0xffff: %#x\n",
161 *offset = cap.drom_offset;
166 * tb_eeprom_read_n - read count bytes from offset into val
168 static int tb_eeprom_read_n(struct tb_switch *sw, u16 offset, u8 *val,
178 offset += drom_offset;
186 res = tb_eeprom_out(sw, offset >> 8);
189 res = tb_eeprom_out(sw, offset);
514 static int tb_drom_read_n(struct tb_switch *sw, u16 offset, u8 *val,
518 return usb4_switch_drom_read(sw, offset, val, count);
519 return tb_eeprom_read_n(sw, offset, val, count);