Lines Matching refs:offset
29 u32 value, offset; in tb_port_enable_tmu() local
37 offset = 0x26; in tb_port_enable_tmu()
39 offset = 0x2a; in tb_port_enable_tmu()
43 ret = tb_sw_read(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu()
52 return tb_sw_write(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu()
72 u32 offset = 1; in __tb_port_find_cap() local
78 ret = tb_port_read(port, &header, TB_CFG_PORT, offset, 1); in __tb_port_find_cap()
83 return offset; in __tb_port_find_cap()
85 offset = header.basic.next; in __tb_port_find_cap()
86 } while (offset); in __tb_port_find_cap()
118 int offset = sw->config.first_cap_offset; in tb_switch_find_cap() local
120 while (offset > 0 && offset < CAP_OFFSET_MAX) { in tb_switch_find_cap()
124 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1); in tb_switch_find_cap()
129 return offset; in tb_switch_find_cap()
131 offset = header.basic.next; in tb_switch_find_cap()
150 int offset; in tb_switch_find_vse_cap() local
152 offset = tb_switch_find_cap(sw, TB_SWITCH_CAP_VSE); in tb_switch_find_vse_cap()
153 if (offset < 0) in tb_switch_find_vse_cap()
154 return offset; in tb_switch_find_vse_cap()
156 while (offset > 0 && offset < VSE_CAP_OFFSET_MAX) { in tb_switch_find_vse_cap()
159 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 2); in tb_switch_find_vse_cap()
168 if (offset >= CAP_OFFSET_MAX) { in tb_switch_find_vse_cap()
170 return offset; in tb_switch_find_vse_cap()
171 offset = header.extended_long.next; in tb_switch_find_vse_cap()
174 return offset; in tb_switch_find_vse_cap()
177 offset = header.extended_short.next; in tb_switch_find_vse_cap()