Lines Matching refs:header
48 struct tb_cap_any header; in tb_port_find_cap() local
51 ret = tb_port_read(port, &header, TB_CFG_PORT, offset, 1); in tb_port_find_cap()
55 if (header.basic.cap == cap) in tb_port_find_cap()
58 offset = header.basic.next; in tb_port_find_cap()
69 struct tb_cap_any header; in tb_switch_find_cap() local
72 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1); in tb_switch_find_cap()
76 if (header.basic.cap == cap) in tb_switch_find_cap()
79 offset = header.basic.next; in tb_switch_find_cap()
97 struct tb_cap_any header; in tb_switch_find_vse_cap() local
107 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 2); in tb_switch_find_vse_cap()
117 if (header.extended_long.vsec_id == vsec) in tb_switch_find_vse_cap()
119 offset = header.extended_long.next; in tb_switch_find_vse_cap()
121 if (header.extended_short.vsec_id == vsec) in tb_switch_find_vse_cap()
123 if (!header.extended_short.length) in tb_switch_find_vse_cap()
125 offset = header.extended_short.next; in tb_switch_find_vse_cap()