/linux/drivers/mfd/ |
A D | omap-usb-host.c | 86 int nports; member 291 for (i = 0; i < omap->nports; i++) { in usbhs_runtime_resume() 339 for (i = 0; i < omap->nports; i++) { in usbhs_runtime_suspend() 372 for (i = 0; i < omap->nports; i++) { in omap_usbhs_rev1_hostconfig() 480 pdata->nports = 0; in usbhs_omap_get_dt_pdata() 598 if (pdata->nports) { in usbhs_omap_probe() 599 omap->nports = pdata->nports; in usbhs_omap_probe() 603 omap->nports = 3; in usbhs_omap_probe() 606 omap->nports = 2; in usbhs_omap_probe() 612 omap->usbhs_rev, omap->nports); in usbhs_omap_probe() [all …]
|
/linux/drivers/usb/host/ |
A D | ehci-omap.c | 56 int nports; member 149 omap->nports = pdata->nports; in ehci_hcd_omap_probe() 154 for (i = 0 ; i < omap->nports ; i++) { in ehci_hcd_omap_probe() 209 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_probe() 226 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_probe() 254 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_remove()
|
A D | ehci-sysfs.c | 15 int nports, index, n; in companion_show() local 20 nports = HCS_N_PORTS(ehci->hcs_params); in companion_show() 22 for (index = 0; index < nports; ++index) { in companion_show()
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
A D | espi.c | 218 static void espi_setup_for_ixf1010(adapter_t *adapter, int nports) in espi_setup_for_ixf1010() argument 221 if (nports == 4) { in espi_setup_for_ixf1010() 233 writel(V_RX_NPORTS(nports) | V_TX_NPORTS(nports), adapter->regs + A_PORT_CONFIG); in espi_setup_for_ixf1010() 237 int t1_espi_init(struct peespi *espi, int mac_type, int nports) in t1_espi_init() argument 249 writel(nports == 4 ? 0x200040 : 0x1000080, in t1_espi_init() 260 espi_setup_for_ixf1010(adapter, nports); in t1_espi_init() 276 if (adapter->params.nports == 1) in t1_espi_init() 348 u8 i, nport = (u8)adapter->params.nports; in t1_espi_get_mon_t204()
|
A D | common.h | 197 unsigned int nports; /* # of ethernet ports */ member 318 for (iter = 0; iter < (adapter)->params.nports; ++iter)
|
A D | espi.h | 56 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
|
/linux/tools/usb/usbip/libsrc/ |
A D | vhci_driver.c | 245 int nports; in usbip_vhci_driver_open() local 264 nports = get_nports(hc_device); in usbip_vhci_driver_open() 265 if (nports <= 0) { in usbip_vhci_driver_open() 269 dbg("available ports: %d", nports); in usbip_vhci_driver_open() 272 nports * sizeof(struct usbip_imported_device)); in usbip_vhci_driver_open() 278 vhci_driver->nports = nports; in usbip_vhci_driver_open() 337 for (int i = 0; i < vhci_driver->nports; i++) { in usbip_vhci_get_free_port()
|
A D | vhci_driver.h | 42 int nports; member
|
/linux/drivers/ata/ |
A D | libahci_platform.c | 50 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_phys() 89 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_phys() 166 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_regulators() 200 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_regulators() 302 for (c = 0; c < hpriv->nports; c++) in ahci_platform_put_resources() 454 hpriv->nports = child_nodes = of_get_child_count(dev->of_node); in ahci_platform_get_resources() 462 hpriv->nports = 1; in ahci_platform_get_resources() 464 hpriv->phys = devm_kcalloc(dev, hpriv->nports, sizeof(*hpriv->phys), GFP_KERNEL); in ahci_platform_get_resources() 473 hpriv->target_pwrs = kcalloc(hpriv->nports, sizeof(*hpriv->target_pwrs), GFP_KERNEL); in ahci_platform_get_resources() 493 if (port >= hpriv->nports) { in ahci_platform_get_resources()
|
/linux/drivers/infiniband/sw/rdmavt/ |
A D | mad.c | 67 for (p = 0; p < rdi->dparms.nports; p++) { in rvt_create_mad_agents() 87 for (p = 0; p < rdi->dparms.nports; p++) { in rvt_create_mad_agents() 113 for (p = 0; p < rdi->dparms.nports; p++) { in rvt_free_mad_agents()
|
/linux/drivers/soundwire/ |
A D | qcom.c | 907 int i, maxport, pn, nports = 0, ret = 0; in qcom_swrm_stream_alloc_ports() local 936 pconfig[nports].num = pn; in qcom_swrm_stream_alloc_ports() 938 nports++; in qcom_swrm_stream_alloc_ports() 954 nports, stream); in qcom_swrm_stream_alloc_ports() 957 for (i = 0; i < nports; i++) in qcom_swrm_stream_alloc_ports() 1111 int i, ret, nports, val; in qcom_swrm_get_port_config() local 1142 off1, nports); in qcom_swrm_get_port_config() 1147 off2, nports); in qcom_swrm_get_port_config() 1152 si, nports); in qcom_swrm_get_port_config() 1157 bp_mode, nports); in qcom_swrm_get_port_config() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cxgb4_uld.c | 118 per_chan = rxq_info->nrxq / adap->params.nports; in alloc_uld_rxqs() 128 per_chan = rxq_info->nciq / adap->params.nports; in alloc_uld_rxqs() 250 rxq_info->nrxq = roundup(i, adap->params.nports); in cfg_queues_uld() 254 rxq_info->nrxq = roundup(i, adap->params.nports); in cfg_queues_uld() 266 adap->params.nports); in cfg_queues_uld() 268 adap->params.nports); in cfg_queues_uld() 429 j = nq / adap->params.nports; in alloc_sge_txq_uld() 481 txq_info->ntxq = rounddown(i, adap->params.nports); in setup_sge_txq_uld() 490 txq_info->ntxq = roundup(i, adap->params.nports); in setup_sge_txq_uld() 608 lld->nchan = adap->params.nports; in uld_init() [all …]
|
/linux/drivers/media/platform/xilinx/ |
A D | xilinx-tpg.c | 717 unsigned int nports = 0; in xtpg_parse_of() local 747 if (nports == 0) { in xtpg_parse_of() 755 nports++; in xtpg_parse_of() 758 if (nports != 1 && nports != 2) { in xtpg_parse_of() 759 dev_err(dev, "invalid number of ports %u\n", nports); in xtpg_parse_of() 763 xtpg->npads = nports; in xtpg_parse_of() 764 if (nports == 2 && has_endpoint) in xtpg_parse_of()
|
/linux/tools/usb/usbip/src/ |
A D | usbip_detach.c | 58 for (i = 0; i < vhci_driver->nports; i++) { in detach_port() 72 port, vhci_driver->nports); in detach_port()
|
A D | usbip_port.c | 28 for (i = 0; i < vhci_driver->nports; i++) { in list_imported_devices()
|
/linux/drivers/gpio/ |
A D | gpio-dwapb.c | 78 unsigned int nports; member 560 int nports; in dwapb_gpio_get_pdata() local 563 nports = device_get_child_node_count(dev); in dwapb_gpio_get_pdata() 564 if (nports == 0) in dwapb_gpio_get_pdata() 571 pdata->properties = devm_kcalloc(dev, nports, sizeof(*pp), GFP_KERNEL); in dwapb_gpio_get_pdata() 575 pdata->nports = nports; in dwapb_gpio_get_pdata() 702 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe()
|
/linux/drivers/net/bonding/ |
A D | bond_3ad.c | 704 if (nports) { in __get_agg_bandwidth() 707 bandwidth = nports; in __get_agg_bandwidth() 710 bandwidth = nports * 10; in __get_agg_bandwidth() 713 bandwidth = nports * 100; in __get_agg_bandwidth() 716 bandwidth = nports * 1000; in __get_agg_bandwidth() 719 bandwidth = nports * 2500; in __get_agg_bandwidth() 722 bandwidth = nports * 5000; in __get_agg_bandwidth() 725 bandwidth = nports * 10000; in __get_agg_bandwidth() 728 bandwidth = nports * 14000; in __get_agg_bandwidth() 731 bandwidth = nports * 20000; in __get_agg_bandwidth() [all …]
|
/linux/drivers/net/wan/ |
A D | farsync.c | 451 unsigned int nports; /* Number of serial ports */ member 1597 if (FST_RDL(card, numberOfPorts) != card->nports) { in check_started_ok() 1600 FST_RDL(card, numberOfPorts), card->nports); in check_started_ok() 1703 info->nports = card->nports; in gather_conf_info() 2301 for (i = 0; i < card->nports; i++) { in fst_init_card() 2412 card->nports = 1; in fst_add_one() 2420 for (i = 0; i < card->nports; i++) { in fst_add_one() 2460 card->nports, card->irq); in fst_add_one() 2512 for (i = 0 ; i < card->nports ; i++) in fst_add_one() 2517 for (i = 0 ; i < card->nports ; i++) in fst_add_one() [all …]
|
/linux/drivers/scsi/bfa/ |
A D | bfad_attr.c | 741 int nports = 0; in bfad_im_model_desc_show() local 744 nports = bfa_get_nports(&bfad->bfa); in bfad_im_model_desc_show() 785 if (nports == 1 && bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 788 else if (nports == 1 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 791 else if (nports == 2 && bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 794 else if (nports == 2 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 798 if (nports == 1 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 801 else if (nports == 2 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show()
|
/linux/drivers/pci/controller/ |
A D | pci-mvebu.c | 76 int nports; member 606 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_find_port() 782 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_suspend() 796 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_resume() 1094 pcie->nports = i; in mvebu_pcie_probe() 1096 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_probe() 1120 pcie->nports = i; in mvebu_pcie_probe()
|
/linux/drivers/tty/ |
A D | mxser.c | 272 unsigned short nports; member 1736 unsigned int i, max = brd->nports; in mxser_interrupt() 1828 for (i = 0; i < brd->nports; i++) { in mxser_initbrd() 1865 unsigned short nports = MXSER_NPORTS(ent->driver_data); in mxser_probe() local 1876 brd = devm_kzalloc(&pdev->dev, struct_size(brd, ports, nports), in mxser_probe() 1897 brd->nports = nports; in mxser_probe() 1898 for (i = 0; i < nports; i++) in mxser_probe() 1920 for (i = 0; i < nports; i++) { in mxser_probe() 1936 for (i = 0; i < nports; i++) in mxser_probe() 1949 for (i = 0; i < brd->nports; i++) { in mxser_remove()
|
/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
A D | cxgb4vf_main.c | 2347 return pos <= adapter->params.nports in interfaces_get_idx() 2451 adapter->params.nports = vfres->nvi; in size_nports_qsets() 2452 if (adapter->params.nports > MAX_NPORTS) { in size_nports_qsets() 2455 adapter->params.nports); in size_nports_qsets() 2456 adapter->params.nports = MAX_NPORTS; in size_nports_qsets() 2465 if (pmask_nports < adapter->params.nports) { in size_nports_qsets() 2470 adapter->params.nports = pmask_nports; in size_nports_qsets() 2502 adapter->params.nports = adapter->sge.max_ethqsets; in size_nports_qsets() 2692 int n1g = (adapter->params.nports - n10g); in cfg_queues() 2769 BUG_ON(n < adapter->params.nports); in reduce_ethqs() [all …]
|
A D | t4vf_common.h | 268 u8 nports; /* # of Ethernet "ports" */ member 307 for (iter = 0; iter < (adapter)->params.nports; iter++)
|
/linux/include/linux/platform_data/ |
A D | usb-omap.h | 58 int nports; member
|
/linux/drivers/scsi/cxgbi/ |
A D | libcxgbi.c | 121 "cdev 0x%p, p# %u.\n", cdev, cdev->nports); in cxgbi_device_destroy() 132 unsigned int nports) in cxgbi_device_register() argument 141 pr_warn("nport %d, OOM.\n", nports); in cxgbi_device_register() 149 nports * sizeof(struct cxgbi_hba *); in cxgbi_device_register() 161 "cdev 0x%p, p# %u.\n", cdev, nports); in cxgbi_device_register() 170 cdev, cdev->nports, cdev->nports ? cdev->ports[0]->name : ""); in cxgbi_device_unregister() 236 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_netdev() 268 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_netdev_rcu() 301 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_mac() 327 for (i = 0; i < cdev->nports; i++) { in cxgbi_hbas_remove() [all …]
|