| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | espi.c | 209 static void espi_setup_for_ixf1010(adapter_t *adapter, int nports) in espi_setup_for_ixf1010() argument 212 if (nports == 4) { in espi_setup_for_ixf1010() 224 writel(V_RX_NPORTS(nports) | V_TX_NPORTS(nports), adapter->regs + A_PORT_CONFIG); in espi_setup_for_ixf1010() 228 int t1_espi_init(struct peespi *espi, int mac_type, int nports) in t1_espi_init() argument 240 writel(nports == 4 ? 0x200040 : 0x1000080, in t1_espi_init() 251 espi_setup_for_ixf1010(adapter, nports); in t1_espi_init() 267 if (adapter->params.nports == 1) in t1_espi_init() 339 u8 i, nport = (u8)adapter->params.nports; in t1_espi_get_mon_t204()
|
| H A D | espi.h | 47 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
|
| /linux/tools/usb/usbip/libsrc/ |
| H 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()
|
| H A D | vhci_driver.h | 42 int nports; member
|
| /linux/drivers/ata/ |
| H A D | libahci_platform.c | 51 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_phys() 96 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_phys() 221 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_regulators() 255 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_regulators() 355 for (c = 0; c < hpriv->nports; c++) in ahci_platform_put_resources() 485 int nports; in ahci_platform_get_resources() local 500 nports = min(AHCI_MAX_PORTS, max_port + 1); in ahci_platform_get_resources() 501 hpriv = devres_alloc(ahci_platform_put_resources, struct_size(hpriv, phys, nports), in ahci_platform_get_resources() 506 hpriv->nports = nports; in ahci_platform_get_resources() 594 hpriv->target_pwrs = kzalloc_objs(*hpriv->target_pwrs, hpriv->nports); in ahci_platform_get_resources() [all …]
|
| H A D | ahci_ceva.c | 208 for (i = 0; i < hpriv->nports; i++) { in ceva_ahci_platform_enable_resources() 220 for (i = 0; i < hpriv->nports; i++) { in ceva_ahci_platform_enable_resources()
|
| /linux/drivers/infiniband/sw/rdmavt/ |
| H 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/net/ethernet/chelsio/cxgb4/ |
| H 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() 265 rxq_info->nciq = ((rxq_info->nciq / adap->params.nports) * in cfg_queues_uld() 266 adap->params.nports); in cfg_queues_uld() 268 adap->params.nports); in cfg_queues_uld() 428 j = nq / adap->params.nports; in alloc_sge_txq_uld() 480 txq_info->ntxq = rounddown(i, adap->params.nports); in setup_sge_txq_uld() 489 txq_info->ntxq = roundup(i, adap->params.nports); in setup_sge_txq_uld() [all …]
|
| H A D | cxgb4_tc_mqprio.c | 661 tc_port_mqprio = kzalloc_objs(*tc_port_mqprio, adap->params.nports); in cxgb4_init_tc_mqprio() 670 for (i = 0; i < adap->params.nports; i++) { in cxgb4_init_tc_mqprio() 685 for (i = 0; i < adap->params.nports; i++) { in cxgb4_init_tc_mqprio() 704 for (i = 0; i < adap->params.nports; i++) { in cxgb4_cleanup_tc_mqprio()
|
| /linux/drivers/usb/host/ |
| H A D | ehci-sysfs.c | 15 int nports, index; in companion_show() local 19 nports = HCS_N_PORTS(ehci->hcs_params); in companion_show() 21 for (index = 0; index < nports; ++index) { in companion_show()
|
| /linux/tools/usb/usbip/src/ |
| H A D | usbip_detach.c | 58 for (i = 0; i < vhci_driver->nports; i++) { in detach_port() 73 port, vhci_driver->nports); in detach_port()
|
| H A D | usbip_port.c | 28 for (i = 0; i < vhci_driver->nports; i++) { in list_imported_devices()
|
| /linux/drivers/gpio/ |
| H A D | gpio-dwapb.c | 77 unsigned int nports; member 78 struct dwapb_port_property properties[] __counted_by(nports); 611 int nports; in dwapb_gpio_get_pdata() local 614 nports = device_get_child_node_count(dev); in dwapb_gpio_get_pdata() 615 if (nports == 0) in dwapb_gpio_get_pdata() 618 pdata = devm_kzalloc(dev, struct_size(pdata, properties, nports), GFP_KERNEL); in dwapb_gpio_get_pdata() 622 pdata->nports = nports; in dwapb_gpio_get_pdata() 744 gpio = devm_kzalloc(&pdev->dev, struct_size(gpio, ports, pdata->nports), GFP_KERNEL); in dwapb_gpio_probe() 748 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe()
|
| /linux/drivers/net/bonding/ |
| H A D | bond_3ad.c | 796 int nports = __agg_active_ports(aggregator); in __get_agg_bandwidth() local 799 if (nports) { in __get_agg_bandwidth() 802 bandwidth = nports; in __get_agg_bandwidth() 805 bandwidth = nports * 10; in __get_agg_bandwidth() 808 bandwidth = nports * 100; in __get_agg_bandwidth() 811 bandwidth = nports * 1000; in __get_agg_bandwidth() 814 bandwidth = nports * 2500; in __get_agg_bandwidth() 817 bandwidth = nports * 5000; in __get_agg_bandwidth() 820 bandwidth = nports * 10000; in __get_agg_bandwidth() 823 bandwidth = nports * 14000; in __get_agg_bandwidth() [all …]
|
| /linux/drivers/scsi/bfa/ |
| H 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/net/pse-pd/ |
| H A D | pd692x0.c | 826 int nports; member 835 int ret, nports, i; in pd692x0_of_get_ports_manager() local 837 nports = 0; in pd692x0_of_get_ports_manager() 848 if (port >= PD692X0_MAX_MANAGER_PORTS || port != nports) { in pd692x0_of_get_ports_manager() 858 nports++; in pd692x0_of_get_ports_manager() 861 manager->nports = nports; in pd692x0_of_get_ports_manager() 865 for (i = 0; i < nports; i++) { in pd692x0_of_get_ports_manager() 923 for (j = 0; j < manager[i].nports; j++) { in pd692x0_of_get_managers() 1106 for (j = 0; j < manager[i].nports; j++) { in pd692x0_set_port_matrix() 1221 for (j = 0; j < manager[i].nports; j++) in pd692x0_of_put_managers()
|
| /linux/drivers/soundwire/ |
| H A D | qcom.c | 208 int nports; member 1244 int maxport, pn, nports = 0; in qcom_swrm_stream_alloc_ports() local 1247 ctrl->nports); in qcom_swrm_stream_alloc_ports() 1275 maxport = ctrl->nports; in qcom_swrm_stream_alloc_ports() 1292 pconfig[nports].num = pn; in qcom_swrm_stream_alloc_ports() 1293 pconfig[nports].ch_mask = p_rt->ch_mask; in qcom_swrm_stream_alloc_ports() 1294 nports++; in qcom_swrm_stream_alloc_ports() 1300 nports, stream); in qcom_swrm_stream_alloc_ports() 1464 ctrl->nports = ctrl->num_dout_ports + ctrl->num_din_ports; in qcom_swrm_get_port_config() 1466 ctrl->pconfig = devm_kcalloc(ctrl->dev, ctrl->nports + 1, in qcom_swrm_get_port_config() [all …]
|
| /linux/include/linux/platform_data/ |
| H A D | usb-omap.h | 44 int nports; member
|
| /linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
| H A D | t4vf_common.h | 268 u8 nports; /* # of Ethernet "ports" */ member 307 for (iter = 0; iter < (adapter)->params.nports; iter++)
|
| /linux/drivers/net/ethernet/chelsio/cxgb3/ |
| H A D | cxgb3_ctl_defs.h | 111 unsigned int nports; /* number of ports on this adapter */ member
|
| /linux/drivers/pci/controller/ |
| H A D | pci-mvebu.c | 90 int nports; member 966 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_find_port() 1204 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_suspend() 1220 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_resume() 1490 pcie->nports = i; in mvebu_pcie_probe() 1492 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_probe() 1640 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_remove()
|
| /linux/drivers/scsi/cxgbi/ |
| H 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 136 cdev = kzalloc(sizeof(*cdev) + extra + nports * in cxgbi_device_register() 141 pr_warn("nport %d, OOM.\n", nports); in cxgbi_device_register() 145 cdev->hbas = (struct cxgbi_hba **)(((char*)cdev->ports) + 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() [all …]
|
| /linux/drivers/net/wan/ |
| H A D | farsync.h | 96 unsigned int nports; /* Number of serial ports */ member
|
| /linux/include/uapi/linux/ |
| H A D | usbdevice_fs.h | 148 char nports; /* number of downstream ports in this hub */ member
|
| /linux/tools/include/uapi/linux/ |
| H A D | usbdevice_fs.h | |