• Home
  • Raw
  • Download

Lines Matching refs:cap

255 			   struct tb_port *port, unsigned int cap,  in cap_show_by_dw()  argument
264 ret = tb_port_read(port, &data, TB_CFG_PORT, cap + offset + i, 1); in cap_show_by_dw()
266 ret = tb_sw_read(sw, &data, TB_CFG_SWITCH, cap + offset + i, 1); in cap_show_by_dw()
268 seq_printf(s, "0x%04x <not accessible>\n", cap + offset + i); in cap_show_by_dw()
272 seq_printf(s, "0x%04x %4d 0x%02x 0x%02x 0x%08x\n", cap + offset + i, in cap_show_by_dw()
278 struct tb_port *port, unsigned int cap, u8 cap_id, in cap_show() argument
288 ret = tb_port_read(port, data, TB_CFG_PORT, cap + offset, in cap_show()
291 ret = tb_sw_read(sw, data, TB_CFG_SWITCH, cap + offset, dwords); in cap_show()
293 cap_show_by_dw(s, sw, port, cap, offset, cap_id, vsec_id, length); in cap_show()
299 cap + offset + i, offset + i, in cap_show()
309 unsigned int cap) in port_cap_show() argument
316 ret = tb_port_read(port, &header, TB_CFG_PORT, cap, 1); in port_cap_show()
318 seq_printf(s, "0x%04x <capability read failed>\n", cap); in port_cap_show()
322 switch (header.basic.cap) { in port_cap_show()
345 cap, header.basic.cap); in port_cap_show()
353 cap + 1, 1); in port_cap_show()
356 cap + 1); in port_cap_show()
373 cap, header.basic.cap); in port_cap_show()
377 cap_show(s, NULL, port, cap, header.basic.cap, vsec_id, length); in port_cap_show()
382 int cap; in port_caps_show() local
384 cap = tb_port_next_cap(port, 0); in port_caps_show()
385 while (cap > 0) { in port_caps_show()
386 port_cap_show(port, s, cap); in port_caps_show()
387 cap = tb_port_next_cap(port, cap); in port_caps_show()
439 unsigned int cap) in switch_cap_show() argument
445 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, cap, 1); in switch_cap_show()
447 seq_printf(s, "0x%04x <capability read failed>\n", cap); in switch_cap_show()
451 if (header.basic.cap == TB_SWITCH_CAP_VSE) { in switch_cap_show()
454 cap + 1, 1); in switch_cap_show()
457 cap + 1); in switch_cap_show()
466 if (header.basic.cap == TB_SWITCH_CAP_TMU) { in switch_cap_show()
470 cap, header.basic.cap); in switch_cap_show()
475 cap_show(s, sw, NULL, cap, header.basic.cap, vsec_id, length); in switch_cap_show()
480 int cap; in switch_caps_show() local
482 cap = tb_switch_next_cap(sw, 0); in switch_caps_show()
483 while (cap > 0) { in switch_caps_show()
484 switch_cap_show(sw, s, cap); in switch_caps_show()
485 cap = tb_switch_next_cap(sw, cap); in switch_caps_show()