Lines Matching refs:header
74 struct tb_cap_any header; in tb_port_next_cap() local
80 ret = tb_port_read(port, &header, TB_CFG_PORT, offset, 1); in tb_port_next_cap()
84 return header.basic.next; in tb_port_next_cap()
92 struct tb_cap_any header; in __tb_port_find_cap() local
99 ret = tb_port_read(port, &header, TB_CFG_PORT, offset, 1); in __tb_port_find_cap()
103 if (header.basic.cap == cap) in __tb_port_find_cap()
147 struct tb_cap_any header; in tb_switch_next_cap() local
153 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 2); in tb_switch_next_cap()
157 switch (header.basic.cap) { in tb_switch_next_cap()
159 ret = header.basic.next; in tb_switch_next_cap()
163 if (!header.extended_short.length) in tb_switch_next_cap()
164 ret = header.extended_long.next; in tb_switch_next_cap()
166 ret = header.extended_short.next; in tb_switch_next_cap()
171 header.basic.cap, offset); in tb_switch_next_cap()
193 struct tb_cap_any header; in tb_switch_find_cap() local
200 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1); in tb_switch_find_cap()
204 if (header.basic.cap == cap) in tb_switch_find_cap()
226 struct tb_cap_any header; in tb_switch_find_vse_cap() local
233 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1); in tb_switch_find_vse_cap()
237 if (header.extended_short.cap == TB_SWITCH_CAP_VSE && in tb_switch_find_vse_cap()
238 header.extended_short.vsec_id == vsec) in tb_switch_find_vse_cap()