/drivers/mfd/ |
D | omap-usb-host.c | 97 int nports; member 323 for (i = 0; i < omap->nports; i++) { in usbhs_runtime_resume() 371 for (i = 0; i < omap->nports; i++) { in usbhs_runtime_suspend() 404 for (i = 0; i < omap->nports; i++) { in omap_usbhs_rev1_hostconfig() 436 for (i = 0; i < omap->nports; i++) { in omap_usbhs_rev1_hostconfig() 453 for (i = 0; i < omap->nports; i++) { in omap_usbhs_rev2_hostconfig() 510 ret = of_property_read_u32(node, "num-ports", &pdata->nports); in usbhs_omap_get_dt_pdata() 512 pdata->nports = 0; in usbhs_omap_get_dt_pdata() 514 if (pdata->nports > OMAP3_HS_USB_PORTS) { in usbhs_omap_get_dt_pdata() 516 pdata->nports, OMAP3_HS_USB_PORTS); in usbhs_omap_get_dt_pdata() [all …]
|
D | intel_quark_i2c_gpio.c | 215 pdata->nports = INTEL_QUARK_GPIO_NPORTS; in intel_quark_gpio_setup() 216 pdata->properties = devm_kcalloc(dev, pdata->nports, in intel_quark_gpio_setup()
|
/drivers/usb/host/ |
D | ehci-omap.c | 71 int nports; member 165 omap->nports = pdata->nports; in ehci_hcd_omap_probe() 170 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() 242 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_probe() 270 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_remove()
|
D | ehci-sysfs.c | 28 int nports, index, n; in show_companion() local 33 nports = HCS_N_PORTS(ehci->hcs_params); in show_companion() 35 for (index = 0; index < nports; ++index) { in show_companion()
|
/drivers/net/ethernet/chelsio/cxgb/ |
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()
|
D | common.h | 193 unsigned int nports; /* # of ethernet ports */ member 315 for (iter = 0; iter < (adapter)->params.nports; ++iter)
|
D | espi.h | 56 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
|
D | sge.c | 710 sge->cmdQ[0].stop_thres = sge->adapter->params.nports * in alloc_tx_resources() 1368 if (p->iff >= adapter->params.nports) { in sge_rx() 1985 unsigned int nports = adapter->params.nports; in espibug_workaround_t204() local 1994 for (i = 0; i < nports; i++) { in espibug_workaround_t204() 2085 if (adapter->params.nports > 1) { in t1_sge_create() 2094 if (adapter->params.nports > 1) in t1_sge_create()
|
/drivers/ata/ |
D | libahci_platform.c | 53 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_phys() 85 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_phys() 153 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_regulators() 183 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_regulators() 271 for (c = 0; c < hpriv->nports; c++) in ahci_platform_put_resources() 395 hpriv->nports = child_nodes = of_get_child_count(dev->of_node); in ahci_platform_get_resources() 403 hpriv->nports = 1; in ahci_platform_get_resources() 405 sz = hpriv->nports * sizeof(*hpriv->phys); in ahci_platform_get_resources() 411 sz = hpriv->nports * sizeof(*hpriv->target_pwrs); in ahci_platform_get_resources() 431 if (port >= hpriv->nports) { in ahci_platform_get_resources()
|
/drivers/infiniband/sw/rdmavt/ |
D | mad.c | 109 for (p = 0; p < rdi->dparms.nports; p++) { in rvt_create_mad_agents() 129 for (p = 0; p < rdi->dparms.nports; p++) { in rvt_create_mad_agents() 155 for (p = 0; p < rdi->dparms.nports; p++) { in rvt_free_mad_agents()
|
D | vt.h | 98 if ((port_index < 0) || (port_index >= rdi->dparms.nports)) in ibport_num_to_idx()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_uld.c | 148 per_chan = rxq_info->nrxq / adap->params.nports; in alloc_uld_rxqs() 158 per_chan = rxq_info->nciq / adap->params.nports; in alloc_uld_rxqs() 278 rxq_info->nrxq = roundup(i, adap->params.nports); in cfg_queues_uld() 282 rxq_info->nrxq = roundup(i, adap->params.nports); in cfg_queues_uld() 293 rxq_info->nciq = ((rxq_info->nciq / adap->params.nports) * in cfg_queues_uld() 294 adap->params.nports); in cfg_queues_uld() 296 adap->params.nports); in cfg_queues_uld() 521 lld->nchan = adap->params.nports; in uld_init() 522 lld->nports = adap->params.nports; in uld_init()
|
/drivers/media/platform/xilinx/ |
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()
|
/drivers/gpio/ |
D | gpio-dwapb.c | 463 int nports; in dwapb_gpio_get_pdata() local 466 nports = device_get_child_node_count(dev); in dwapb_gpio_get_pdata() 467 if (nports == 0) in dwapb_gpio_get_pdata() 474 pdata->properties = devm_kcalloc(dev, nports, sizeof(*pp), GFP_KERNEL); in dwapb_gpio_get_pdata() 478 pdata->nports = nports; in dwapb_gpio_get_pdata() 538 if (!pdata->nports) in dwapb_gpio_probe() 546 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe()
|
/drivers/tty/ |
D | mxser.c | 107 unsigned int nports; member 2228 max = brd->info->nports; in mxser_interrupt() 2349 brd->vector < brd->ports[0].ioaddr + 8 * brd->info->nports; in mxser_overlapping_vector() 2368 release_region(brd->ports[0].ioaddr, 8 * brd->info->nports); in mxser_release_ISA_res() 2382 for (i = 0; i < brd->info->nports; i++) { in mxser_initbrd() 2414 for (i = 0; i < brd->info->nports; i++) in mxser_initbrd() 2428 for (i = 0; i < brd->info->nports; i++) { in mxser_board_remove() 2470 if (brd->info->nports == 2 || (brd->info->flags & MXSER_HAS2)) { in mxser_get_ISA_conf() 2475 } else if (brd->info->nports == 4) { in mxser_get_ISA_conf() 2481 } else if (brd->info->nports == 8) { in mxser_get_ISA_conf() [all …]
|
/drivers/net/wan/ |
D | farsync.c | 455 unsigned int nports; /* Number of serial ports */ member 1339 for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { in do_bottom_half_tx() 1438 for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { in do_bottom_half_rx() 1658 if (FST_RDL(card, numberOfPorts) != card->nports) { in check_started_ok() 1661 FST_RDL(card, numberOfPorts), card->nports); in check_started_ok() 1765 info->nports = card->nports; in gather_conf_info() 2376 for (i = 0; i < card->nports; i++) { in fst_init_card() 2389 port_to_dev(&card->ports[card->nports - 1])->name, in fst_init_card() 2390 type_strings[card->type], card->irq, card->nports); in fst_init_card() 2486 card->nports = 1; in fst_add_one() [all …]
|
D | farsync.h | 100 unsigned int nports; /* Number of serial ports */ member
|
/drivers/scsi/bfa/ |
D | bfad_attr.c | 750 int nports = 0; in bfad_im_model_desc_show() local 753 nports = bfa_get_nports(&bfad->bfa); in bfad_im_model_desc_show() 794 if (nports == 1 && bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 797 else if (nports == 1 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 800 else if (nports == 2 && bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 803 else if (nports == 2 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 807 if (nports == 1 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show() 810 else if (nports == 2 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show()
|
/drivers/pci/host/ |
D | pci-mvebu.c | 133 int nports; member 785 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_find_port() 879 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_setup() 1031 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_suspend() 1045 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_resume() 1271 pcie->nports = i; in mvebu_pcie_probe() 1273 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_probe() 1296 pcie->nports = i; in mvebu_pcie_probe()
|
/drivers/net/bonding/ |
D | bond_3ad.c | 684 int nports = __agg_active_ports(aggregator); in __get_agg_bandwidth() local 687 if (nports) { in __get_agg_bandwidth() 690 bandwidth = nports; in __get_agg_bandwidth() 693 bandwidth = nports * 10; in __get_agg_bandwidth() 696 bandwidth = nports * 100; in __get_agg_bandwidth() 699 bandwidth = nports * 1000; in __get_agg_bandwidth() 702 bandwidth = nports * 2500; in __get_agg_bandwidth() 705 bandwidth = nports * 10000; in __get_agg_bandwidth() 708 bandwidth = nports * 20000; in __get_agg_bandwidth() 711 bandwidth = nports * 40000; in __get_agg_bandwidth() [all …]
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 121 "cdev 0x%p, p# %u.\n", cdev, cdev->nports); in cxgbi_device_destroy() 131 unsigned int nports) in cxgbi_device_register() argument 135 cdev = kzalloc(sizeof(*cdev) + extra + nports * in cxgbi_device_register() 140 pr_warn("nport %d, OOM.\n", nports); in cxgbi_device_register() 144 cdev->hbas = (struct cxgbi_hba **)(((char*)cdev->ports) + nports * in cxgbi_device_register() 148 nports * sizeof(struct cxgbi_hba *); in cxgbi_device_register() 160 "cdev 0x%p, p# %u.\n", cdev, nports); in cxgbi_device_register() 169 cdev, cdev->nports, cdev->nports ? cdev->ports[0]->name : ""); in cxgbi_device_unregister() 235 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_netdev() 267 for (i = 0; i < cdev->nports; i++) { in cxgbi_device_find_by_netdev_rcu() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_common.h | 229 u8 nports; /* # of Ethernet "ports" */ member 267 for (iter = 0; iter < (adapter)->params.nports; iter++)
|
D | cxgb4vf_main.c | 2244 return pos <= adapter->params.nports in interfaces_get_idx() 2366 adapter->params.nports = vfres->nvi; in size_nports_qsets() 2367 if (adapter->params.nports > MAX_NPORTS) { in size_nports_qsets() 2370 adapter->params.nports); in size_nports_qsets() 2371 adapter->params.nports = MAX_NPORTS; in size_nports_qsets() 2380 if (pmask_nports < adapter->params.nports) { in size_nports_qsets() 2383 " mask %#x\n", pmask_nports, adapter->params.nports, in size_nports_qsets() 2385 adapter->params.nports = pmask_nports; in size_nports_qsets() 2413 if (adapter->sge.max_ethqsets < adapter->params.nports) { in size_nports_qsets() 2416 adapter->sge.max_ethqsets, adapter->params.nports); in size_nports_qsets() [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_ctl_defs.h | 111 unsigned int nports; /* number of ports on this adapter */ member
|
/drivers/net/ethernet/sun/ |
D | sunvnet_common.h | 114 int nports; member
|