Home
last modified time | relevance | path

Searched refs:port_count (Results 1 – 25 of 25) sorted by relevance

/drivers/firewire/
Dcore-topology.c99 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()
396 for (i = 0; i < tree->port_count; i++) { in move_tree()
[all …]
Dcore.h179 u8 port_count; member
/drivers/net/netdevsim/
Dbus.c157 nsim_bus_dev_new(unsigned int id, unsigned int port_count);
163 unsigned int port_count; in new_device_store() local
167 err = sscanf(buf, "%u %u", &id, &port_count); in new_device_store()
170 port_count = 1; in new_device_store()
182 nsim_bus_dev = nsim_bus_dev_new(id, port_count); in new_device_store()
270 nsim_bus_dev_new(unsigned int id, unsigned int port_count) in nsim_bus_dev_new() argument
285 nsim_bus_dev->port_count = port_count; in nsim_bus_dev_new()
Ddev.c661 nsim_dev_create(struct nsim_bus_dev *nsim_bus_dev, unsigned int port_count) in nsim_dev_create() argument
824 nsim_dev = nsim_dev_create(nsim_bus_dev, nsim_bus_dev->port_count); in nsim_dev_probe()
830 for (i = 0; i < nsim_bus_dev->port_count; i++) { in nsim_dev_probe()
Dnetdevsim.h217 unsigned int port_count; member
/drivers/tty/serial/
Dmux.c455 int port_count = get_mux_port_count(dev); in mux_probe() local
456 printk(KERN_INFO "Serial mux driver (%d ports) Revision: 0.6\n", port_count); in mux_probe()
458 dev_set_drvdata(&dev->dev, (void *)(long)port_count); in mux_probe()
460 port_count * MUX_LINE_OFFSET, "Mux"); in mux_probe()
472 for(i = 0; i < port_count; ++i, ++port_cnt) { in mux_probe()
505 int port_count = (long)dev_get_drvdata(&dev->dev); in mux_remove() local
512 BUG_ON(i + port_count > port_cnt); in mux_remove()
515 for(j = 0; j < port_count; ++j, ++i) { in mux_remove()
523 release_mem_region(dev->hpa.start + MUX_OFFSET, port_count * MUX_LINE_OFFSET); in mux_remove()
/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_netdev.c141 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()
/drivers/tty/
Disicom.c187 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()
Dsynclink_gt.c249 int port_count; /* count of ports on adapter */ member
2345 for(i=0; i < info->port_count ; i++) { in slgt_interrupt()
2369 for (i=0 ; i < info->port_count ; i++) { in slgt_interrupt()
2377 for(i=0; i < info->port_count ; i++) { in slgt_interrupt()
3599 int port_count = 1; in device_init() local
3602 port_count = 2; in device_init()
3604 port_count = 4; in device_init()
3607 for (i=0; i < port_count; ++i) { in device_init()
3619 for (i=0; i < port_count; ++i) { in device_init()
3622 port_array[i]->port_count = port_count; in device_init()
[all …]
Dsynclinkmp.c225 int port_count; member
2529 if (info->port_count == 4) { in synclinkmp_interrupt()
2546 for(i=0; i < info->port_count ; i++) { in synclinkmp_interrupt()
2588 for(i=0; i < info->port_count ; i++) { in synclinkmp_interrupt()
5299 info->port_array[0]->port_count = 0; in adapter_test()
5304 info->port_array[0]->port_count = 2; in adapter_test()
5308 info->port_array[0]->port_count += 2; in adapter_test()
5318 (info->port_count == 4 && !irq_test(info->port_array[2])) || in adapter_test()
5319 (info->port_count == 4 && !irq_test(info->port_array[3]))) { in adapter_test()
5327 (info->port_count == 4 && !loopback_test(info->port_array[2])) || in adapter_test()
[all …]
/drivers/net/wireless/marvell/mwifiex/
Dsdio.c1388 u32 port_count; in mwifiex_sdio_card_to_host_mp_aggr() local
1390 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_sdio_card_to_host_mp_aggr()
1392 port_count++; in mwifiex_sdio_card_to_host_mp_aggr()
1397 port_count--; in mwifiex_sdio_card_to_host_mp_aggr()
1399 (port_count << 8)) + card->mpa_rx.start_port; in mwifiex_sdio_card_to_host_mp_aggr()
1820 u32 port_count; in mwifiex_host_to_card_mp_aggr() local
1823 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_host_to_card_mp_aggr()
1825 port_count++; in mwifiex_host_to_card_mp_aggr()
1830 port_count--; in mwifiex_host_to_card_mp_aggr()
1832 (port_count << 8)) + card->mpa_tx.start_port; in mwifiex_host_to_card_mp_aggr()
/drivers/net/ethernet/rocker/
Drocker.h61 unsigned int port_count; member
Drocker_main.c925 if (port_number >= rocker->port_count) in rocker_event_link_change()
962 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()
Drocker_ofdpa.c1448 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()
/drivers/usb/early/
Dxhci-dbc.c368 u32 val, port_offset, port_count; in xdbc_reset_debug_port() local
382 port_count = XHCI_EXT_PORT_COUNT(val); in xdbc_reset_debug_port()
384 xdbc_do_reset_debug_port(port_offset, port_count); in xdbc_reset_debug_port()
/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_debugfs.c497 for (i = 0; i < priv->port_count; i++) { in mvpp2_dbgfs_flow_entry_init()
725 for (i = 0; i < priv->port_count; i++) { in mvpp2_dbgfs_init()
Dmvpp2_main.c3846 for (i = 0; i < priv->port_count; i++) { in mvpp2_bm_switch_buffers()
3864 for (i = 0; i < priv->port_count; i++) { in mvpp2_bm_switch_buffers()
3896 for (i = 0; i < priv->port_count; i++) in mvpp2_change_mtu()
5416 priv->port_list[priv->port_count++] = port; in mvpp2_port_probe()
5873 if (priv->port_count == 0) { in mvpp2_probe()
5887 priv->port_count > 1 ? "+" : ""); in mvpp2_probe()
Dmvpp2.h780 int port_count; member
/drivers/usb/host/
Dxhci-mem.c2118 u32 temp, port_offset, port_count; in xhci_add_in_port() local
2147 port_count = XHCI_EXT_PORT_COUNT(temp); in xhci_add_in_port()
2151 addr, port_offset, port_count, major_revision); in xhci_add_in_port()
2153 if (port_offset == 0 || (port_offset + port_count - 1) > num_ports) in xhci_add_in_port()
2196 for (i = port_offset; i < (port_offset + port_count); i++) { in xhci_add_in_port()
Dxhci.c4487 u32 port_offset, port_count; in xhci_check_usb2_port_capability() local
4494 port_count = XHCI_EXT_PORT_COUNT(xhci->ext_caps[i]); in xhci_check_usb2_port_capability()
4496 port < port_offset + port_count) in xhci_check_usb2_port_capability()
/drivers/power/supply/
Dcros_usbpd-charger.c141 return resp.port_count; in cros_usbpd_charger_get_num_ports()
/drivers/scsi/megaraid/
Dmegaraid_sas.h948 u8 port_count; member
964 u8 port_count; member
/drivers/net/ethernet/micrel/
Dksz884x.c6927 int port_count; in pcidev_init() local
6981 port_count = 1; in pcidev_init()
7002 port_count = SWITCH_PORT_NUM; in pcidev_init()
7071 port->port_cnt = port_count; in pcidev_init()
7079 for (cnt = 0, pi = i; cnt < port_count; cnt++, pi++) { in pcidev_init()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.h1710 u8 port_count; member
Dbnxt.c8435 bp->port_count = resp->port_cnt; in bnxt_hwrm_phy_qcaps()
11559 if (bp->port_count > 1) { in bnxt_set_dflt_rings()
11561 max_t(int, num_online_cpus() / bp->port_count, 1); in bnxt_set_dflt_rings()