Home
last modified time | relevance | path

Searched refs:max_port_number (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dswitch.c1262 tb_dbg(tb, " Max Port Number: %d\n", regs->max_port_number); in tb_dump_switch()
1931 sw->ports = kcalloc(sw->config.max_port_number + 1, sizeof(*sw->ports), in tb_switch_alloc()
1938 for (i = 0; i <= sw->config.max_port_number; i++) { in tb_switch_alloc()
2208 for (i = 1; i <= sw->config.max_port_number; i++) { in tb_switch_default_link_ports()
2216 if (i == sw->config.max_port_number || in tb_switch_default_link_ports()
2487 for (i = 0; i <= sw->config.max_port_number; i++) { in tb_switch_add()
H A Dtest.c37 u8 upstream_port, u8 max_port_number) in alloc_switch()
52 sw->config.max_port_number = max_port_number; in alloc_switch()
54 size = (sw->config.max_port_number + 1) * sizeof(*sw->ports); in alloc_switch()
59 for (i = 0; i <= sw->config.max_port_number; i++) { in alloc_switch()
36 alloc_switch(struct kunit *test, u64 route, u8 upstream_port, u8 max_port_number) alloc_switch() argument
H A Dtb_regs.h169 u32 max_port_number:6; member
H A Dtb.h445 if (WARN_ON(port > sw->config.max_port_number)) in tb_port_at()
675 (p) <= &(sw)->ports[(sw)->config.max_port_number]; (p)++)
H A Deeprom.c346 if (header->index > sw->config.max_port_number) { in tb_drom_parse_entry_port()
H A Dtb.c782 if (WARN_ON(index > sw->config.max_port_number)) in tb_find_pcie_down()
1135 if (ev->port > sw->config.max_port_number) { in tb_handle_hotplug()
/kernel/linux/linux-6.6/drivers/thunderbolt/
H A Dswitch.c1477 tb_dbg(tb, " Max Port Number: %d\n", regs->max_port_number); in tb_dump_switch()
2311 sw->ports = kcalloc(sw->config.max_port_number + 1, sizeof(*sw->ports), in tb_switch_alloc()
2318 for (i = 0; i <= sw->config.max_port_number; i++) { in tb_switch_alloc()
2630 for (i = 1; i <= sw->config.max_port_number; i++) { in tb_switch_default_link_ports()
2638 if (i == sw->config.max_port_number || in tb_switch_default_link_ports()
2942 for (i = 0; i <= sw->config.max_port_number; i++) { in tb_switch_add()
H A Dtb_regs.h173 u32 max_port_number:6; member
H A Deeprom.c371 if (header->index > sw->config.max_port_number) { in tb_drom_parse_entry_port()
H A Dtb.h569 if (WARN_ON(port > sw->config.max_port_number)) in tb_port_at()
822 (p) <= &(sw)->ports[(sw)->config.max_port_number]; (p)++)
H A Dtest.c37 u8 upstream_port, u8 max_port_number) in alloc_switch()
52 sw->config.max_port_number = max_port_number; in alloc_switch()
54 size = (sw->config.max_port_number + 1) * sizeof(*sw->ports); in alloc_switch()
59 for (i = 0; i <= sw->config.max_port_number; i++) { in alloc_switch()
36 alloc_switch(struct kunit *test, u64 route, u8 upstream_port, u8 max_port_number) alloc_switch() argument
H A Dtb.c1136 if (WARN_ON(index > sw->config.max_port_number)) in tb_find_pcie_down()
1679 if (ev->port > sw->config.max_port_number) { in tb_handle_hotplug()

Completed in 26 milliseconds