/kernel/linux/linux-5.10/drivers/firewire/ |
D | core-topology.c | 99 static struct fw_node *fw_node_create(u32 sid, int port_count, int color) in fw_node_create() argument 103 node = kzalloc(struct_size(node, ports, port_count), GFP_ATOMIC); in fw_node_create() 112 node->port_count = port_count; in fw_node_create() 140 for (i = 0; i < node->port_count; i++) { in update_hop_count() 176 int i, port_count, child_port_count, phy_id, parent_count, stack_depth; in build_tree() local 191 next_sid = count_ports(sid, &port_count, &child_port_count); in build_tree() 222 node = fw_node_create(q, port_count, card->color); in build_tree() 236 for (i = 0; i < port_count; i++) { in build_tree() 327 for (i = 0; i < node->port_count; i++) { in for_each_fw_node() 393 for (i = 0; i < tree->port_count; i++) { in move_tree() [all …]
|
D | core.h | 177 u8 port_count; member
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | mux.c | 451 int port_count = get_mux_port_count(dev); in mux_probe() local 452 printk(KERN_INFO "Serial mux driver (%d ports) Revision: 0.6\n", port_count); in mux_probe() 454 dev_set_drvdata(&dev->dev, (void *)(long)port_count); in mux_probe() 456 port_count * MUX_LINE_OFFSET, "Mux"); in mux_probe() 468 for(i = 0; i < port_count; ++i, ++port_cnt) { in mux_probe() 502 int port_count = (long)dev_get_drvdata(&dev->dev); in mux_remove() local 509 BUG_ON(i + port_count > port_cnt); in mux_remove() 512 for(j = 0; j < port_count; ++j, ++i) { in mux_remove() 520 release_mem_region(dev->hpa.start + MUX_OFFSET, port_count * MUX_LINE_OFFSET); in mux_remove()
|
/kernel/linux/linux-5.10/drivers/net/netdevsim/ |
D | bus.c | 182 nsim_bus_dev_new(unsigned int id, unsigned int port_count); 188 unsigned int port_count; in new_device_store() local 192 err = sscanf(buf, "%u %u", &id, &port_count); in new_device_store() 195 port_count = 1; in new_device_store() 215 nsim_bus_dev = nsim_bus_dev_new(id, port_count); in new_device_store() 315 nsim_bus_dev_new(unsigned int id, unsigned int port_count) in nsim_bus_dev_new() argument 330 nsim_bus_dev->port_count = port_count; in nsim_bus_dev_new()
|
D | dev.c | 981 unsigned int port_count) in nsim_dev_port_add_all() argument 985 for (i = 0; i < port_count; i++) { in nsim_dev_port_add_all() 1031 err = nsim_dev_port_add_all(nsim_dev, nsim_bus_dev->port_count); in nsim_dev_reload_create() 1117 err = nsim_dev_port_add_all(nsim_dev, nsim_bus_dev->port_count); in nsim_dev_probe()
|
D | netdevsim.h | 281 unsigned int port_count; member
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_netdev.c | 141 u8 i, port_count = 0; in opa_vnic_process_vema_config() local 172 port_num[port_count++] = i; in opa_vnic_process_vema_config() 183 adapter->flow_tbl[i] = port_count ? port_num[i % port_count] : in opa_vnic_process_vema_config()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | isicom.c | 187 unsigned char port_count; member 414 count = isi_card[card].port_count; in isicom_tx() 540 if (channel + 1 > card->port_count) { in isicom_interrupt() 788 for (channel = 0; channel < bp->port_count; channel++, port++) in isicom_setup_board() 844 if (line > ((board * 16) + card->port_count - 1)) in isicom_find_port() 1318 board->port_count = (portcount == 4) ? 4 : 8; in reset_card() 1323 board->port_count = 16; in reset_card() 1576 for (index = 0; index < board->port_count; index++) { in isicom_probe() 1606 for (i = 0; i < board->port_count; i++) { in isicom_remove()
|
D | synclink_gt.c | 223 int port_count; /* count of ports on adapter */ member 2289 for(i=0; i < info->port_count ; i++) { in slgt_interrupt() 2313 for (i=0 ; i < info->port_count ; i++) { in slgt_interrupt() 2321 for(i=0; i < info->port_count ; i++) { in slgt_interrupt() 3547 int port_count = 1; in device_init() local 3550 port_count = 2; in device_init() 3552 port_count = 4; in device_init() 3555 for (i=0; i < port_count; ++i) { in device_init() 3567 for (i=0; i < port_count; ++i) { in device_init() 3570 port_array[i]->port_count = port_count; in device_init() [all …]
|
D | synclinkmp.c | 225 int port_count; member 2526 if (info->port_count == 4) { in synclinkmp_interrupt() 2543 for(i=0; i < info->port_count ; i++) { in synclinkmp_interrupt() 2585 for(i=0; i < info->port_count ; i++) { in synclinkmp_interrupt() 5296 info->port_array[0]->port_count = 0; in adapter_test() 5301 info->port_array[0]->port_count = 2; in adapter_test() 5305 info->port_array[0]->port_count += 2; in adapter_test() 5315 (info->port_count == 4 && !irq_test(info->port_array[2])) || in adapter_test() 5316 (info->port_count == 4 && !irq_test(info->port_array[3]))) { in adapter_test() 5324 (info->port_count == 4 && !loopback_test(info->port_array[2])) || in adapter_test() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/rocker/ |
D | rocker.h | 61 unsigned int port_count; member
|
D | rocker_main.c | 928 if (port_number >= rocker->port_count) in rocker_event_link_change() 965 if (port_number >= rocker->port_count) in rocker_event_mac_vlan_seen() 2557 for (i = 0; i < rocker->port_count; i++) { in rocker_remove_ports() 2661 alloc_size = sizeof(struct rocker_port *) * rocker->port_count; in rocker_probe_ports() 2665 for (i = 0; i < rocker->port_count; i++) { in rocker_probe_ports() 2688 if (msix_entries != ROCKER_MSIX_VEC_COUNT(rocker->port_count)) in rocker_msix_init() 2944 rocker->port_count = rocker_read32(rocker, PORT_PHYS_COUNT); in rocker_probe()
|
D | rocker_ofdpa.c | 1448 unsigned int port_count = ofdpa->rocker->port_count; in ofdpa_port_vlan_flood_group() local 1455 group_ids = kcalloc(port_count, sizeof(u32), GFP_KERNEL); in ofdpa_port_vlan_flood_group() 1464 for (i = 0; i < port_count; i++) { in ofdpa_port_vlan_flood_group() 1494 unsigned int port_count = ofdpa->rocker->port_count; in ofdpa_port_vlan_l2_groups() local 1523 for (i = 0; i < port_count; i++) { in ofdpa_port_vlan_l2_groups()
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
D | sdio.c | 1795 u32 port_count; in mwifiex_sdio_card_to_host_mp_aggr() local 1797 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_sdio_card_to_host_mp_aggr() 1799 port_count++; in mwifiex_sdio_card_to_host_mp_aggr() 1804 port_count--; in mwifiex_sdio_card_to_host_mp_aggr() 1806 (port_count << 8)) + card->mpa_rx.start_port; in mwifiex_sdio_card_to_host_mp_aggr() 2227 u32 port_count; in mwifiex_host_to_card_mp_aggr() local 2230 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_host_to_card_mp_aggr() 2232 port_count++; in mwifiex_host_to_card_mp_aggr() 2237 port_count--; in mwifiex_host_to_card_mp_aggr() 2239 (port_count << 8)) + card->mpa_tx.start_port; in mwifiex_host_to_card_mp_aggr()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera.h | 164 u32 port_count; member
|
D | prestera_switchdev.c | 192 int port_count; in prestera_port_vlan_bridge_leave() local 195 port_count = prestera_bridge_vlan_port_count(br_port->bridge, vid); in prestera_port_vlan_bridge_leave() 199 last_port = port_count == 1; in prestera_port_vlan_bridge_leave()
|
D | prestera_hw.c | 168 u32 port_count; member 530 sw->port_count = resp.port_count; in prestera_hw_switch_init()
|
D | prestera_main.c | 411 for (port_idx = 0; port_idx < sw->port_count; port_idx++) { in prestera_create_ports()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_offload.py | 350 def __init__(self, port_count=1): argument 354 self.ctrl_write("new_device", "%u %u" % (addr, port_count)) 365 self.wait_for_netdevs(port_count) 376 for port_index in range(port_count): 387 def wait_for_netdevs(self, port_count): argument 396 if len(ifnames) == port_count:
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_debugfs.c | 497 for (i = 0; i < priv->port_count; i++) { in mvpp2_dbgfs_flow_entry_init() 731 for (i = 0; i < priv->port_count; i++) { in mvpp2_dbgfs_init()
|
D | mvpp2_main.c | 591 for (i = 0; i < priv->port_count; i++) { in mvpp2_bm_init() 4614 for (i = 0; i < priv->port_count; i++) { in mvpp2_bm_switch_buffers() 4632 for (i = 0; i < priv->port_count; i++) { in mvpp2_bm_switch_buffers() 4670 for (i = 0; i < priv->port_count; i++) in mvpp2_change_mtu() 4719 for (i = 0; i < priv->port_count; i++) { in mvpp2_check_pagepool_dma() 6562 priv->port_list[priv->port_count++] = port; in mvpp2_port_probe() 7027 if (priv->port_count == 0) { in mvpp2_probe() 7041 priv->port_count > 1 ? "+" : ""); in mvpp2_probe()
|
/kernel/linux/linux-5.10/drivers/usb/early/ |
D | xhci-dbc.c | 369 u32 val, port_offset, port_count; in xdbc_reset_debug_port() local 383 port_count = XHCI_EXT_PORT_COUNT(val); in xdbc_reset_debug_port() 385 xdbc_do_reset_debug_port(port_offset, port_count); in xdbc_reset_debug_port()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_dp_helper.c | 492 u8 port_count = dpcd[DP_DOWN_STREAM_PORT_COUNT] & DP_PORT_COUNT_MASK; in drm_dp_downstream_port_count() local 494 if (dpcd[DP_DOWNSTREAMPORT_PRESENT] & DP_DETAILED_CAP_INFO_AVAILABLE && port_count > 4) in drm_dp_downstream_port_count() 495 port_count = 4; in drm_dp_downstream_port_count() 497 return port_count; in drm_dp_downstream_port_count()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | xhci-mem.c | 2147 u32 temp, port_offset, port_count; in xhci_add_in_port() local 2186 port_count = XHCI_EXT_PORT_COUNT(temp); in xhci_add_in_port() 2190 addr, port_offset, port_count, major_revision); in xhci_add_in_port() 2192 if (port_offset == 0 || (port_offset + port_count - 1) > num_ports) in xhci_add_in_port() 2243 for (i = port_offset; i < (port_offset + port_count); i++) { in xhci_add_in_port()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | cros_usbpd-charger.c | 138 return resp.port_count; in cros_usbpd_charger_get_num_ports()
|