Lines Matching full:cap

255 		     struct tb_port *port, unsigned int cap, u8 cap_id,  in cap_show()  argument
265 ret = tb_port_read(port, data, TB_CFG_PORT, cap + offset, in cap_show()
268 ret = tb_sw_read(sw, data, TB_CFG_SWITCH, cap + offset, dwords); in cap_show()
271 cap + offset); in cap_show()
273 seq_printf(s, "0x%04x ...\n", cap + offset + 1); in cap_show()
279 cap + offset + i, offset + i, in cap_show()
289 unsigned int cap) in port_cap_show() argument
296 ret = tb_port_read(port, &header, TB_CFG_PORT, cap, 1); in port_cap_show()
298 seq_printf(s, "0x%04x <capability read failed>\n", cap); in port_cap_show()
302 switch (header.basic.cap) { in port_cap_show()
325 cap, header.basic.cap); in port_cap_show()
333 cap + 1, 1); in port_cap_show()
336 cap + 1); in port_cap_show()
362 cap, header.basic.cap); in port_cap_show()
366 cap_show(s, NULL, port, cap, header.basic.cap, vsec_id, length); in port_cap_show()
371 int cap; in port_caps_show() local
373 cap = tb_port_next_cap(port, 0); in port_caps_show()
374 while (cap > 0) { in port_caps_show()
375 port_cap_show(port, s, cap); in port_caps_show()
376 cap = tb_port_next_cap(port, cap); in port_caps_show()
428 unsigned int cap) in switch_cap_show() argument
434 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, cap, 1); in switch_cap_show()
436 seq_printf(s, "0x%04x <capability read failed>\n", cap); in switch_cap_show()
440 if (header.basic.cap == TB_SWITCH_CAP_VSE) { in switch_cap_show()
443 cap + 1, 1); in switch_cap_show()
446 cap + 1); in switch_cap_show()
455 if (header.basic.cap == TB_SWITCH_CAP_TMU) { in switch_cap_show()
459 cap, header.basic.cap); in switch_cap_show()
464 cap_show(s, sw, NULL, cap, header.basic.cap, vsec_id, length); in switch_cap_show()
469 int cap; in switch_caps_show() local
471 cap = tb_switch_next_cap(sw, 0); in switch_caps_show()
472 while (cap > 0) { in switch_caps_show()
473 switch_cap_show(sw, s, cap); in switch_caps_show()
474 cap = tb_switch_next_cap(sw, cap); in switch_caps_show()