Lines Matching refs:offset
21 u32 value, offset; in tb_port_enable_tmu() local
29 offset = 0x26; in tb_port_enable_tmu()
31 offset = 0x2a; in tb_port_enable_tmu()
35 ret = tb_sw_read(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu()
44 return tb_sw_write(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu()
72 int tb_port_next_cap(struct tb_port *port, unsigned int offset) in tb_port_next_cap() argument
77 if (!offset) in tb_port_next_cap()
80 ret = tb_port_read(port, &header, TB_CFG_PORT, offset, 1); in tb_port_next_cap()
89 int offset = 0; in __tb_port_find_cap() local
95 offset = tb_port_next_cap(port, offset); in __tb_port_find_cap()
96 if (offset < 0) in __tb_port_find_cap()
97 return offset; in __tb_port_find_cap()
99 ret = tb_port_read(port, &header, TB_CFG_PORT, offset, 1); in __tb_port_find_cap()
104 return offset; in __tb_port_find_cap()
105 } while (offset > 0); in __tb_port_find_cap()
145 int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset) in tb_switch_next_cap() argument
150 if (!offset) in tb_switch_next_cap()
153 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 2); in tb_switch_next_cap()
171 header.basic.cap, offset); in tb_switch_next_cap()
190 int offset = 0; in tb_switch_find_cap() local
196 offset = tb_switch_next_cap(sw, offset); in tb_switch_find_cap()
197 if (offset < 0) in tb_switch_find_cap()
198 return offset; in tb_switch_find_cap()
200 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1); in tb_switch_find_cap()
205 return offset; in tb_switch_find_cap()
206 } while (offset); in tb_switch_find_cap()
223 int offset = 0; in tb_switch_find_vse_cap() local
229 offset = tb_switch_next_cap(sw, offset); in tb_switch_find_vse_cap()
230 if (offset < 0) in tb_switch_find_vse_cap()
231 return offset; in tb_switch_find_vse_cap()
233 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1); in tb_switch_find_vse_cap()
239 return offset; in tb_switch_find_vse_cap()
240 } while (offset); in tb_switch_find_vse_cap()