Home
last modified time | relevance | path

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

123

/drivers/mfd/
Domap-usb-host.c97 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 …]
Dintel_quark_i2c_gpio.c224 pdata->nports = INTEL_QUARK_GPIO_NPORTS; in intel_quark_gpio_setup()
225 pdata->properties = devm_kcalloc(dev, pdata->nports, in intel_quark_gpio_setup()
/drivers/usb/host/
Dehci-omap.c71 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()
Dehci-sysfs.c28 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/
Despi.c218 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()
Dcommon.h198 unsigned int nports; /* # of ethernet ports */ member
319 for (iter = 0; iter < (adapter)->params.nports; ++iter)
Despi.h56 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
/drivers/ata/
Dlibahci_platform.c53 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_phys()
86 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_phys()
155 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_regulators()
185 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_regulators()
273 for (c = 0; c < hpriv->nports; c++) in ahci_platform_put_resources()
400 hpriv->nports = child_nodes = of_get_child_count(dev->of_node); in ahci_platform_get_resources()
408 hpriv->nports = 1; in ahci_platform_get_resources()
410 sz = hpriv->nports * sizeof(*hpriv->phys); in ahci_platform_get_resources()
416 sz = hpriv->nports * sizeof(*hpriv->target_pwrs); in ahci_platform_get_resources()
436 if (port >= hpriv->nports) { in ahci_platform_get_resources()
/drivers/infiniband/sw/rdmavt/
Dmad.c109 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()
Dvt.h97 if ((port_index < 0) || (port_index >= rdi->dparms.nports)) in ibport_num_to_idx()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.c147 per_chan = rxq_info->nrxq / adap->params.nports; in alloc_uld_rxqs()
157 per_chan = rxq_info->nciq / adap->params.nports; in alloc_uld_rxqs()
281 rxq_info->nrxq = roundup(i, adap->params.nports); in cfg_queues_uld()
285 rxq_info->nrxq = roundup(i, adap->params.nports); in cfg_queues_uld()
296 rxq_info->nciq = ((rxq_info->nciq / adap->params.nports) * in cfg_queues_uld()
297 adap->params.nports); in cfg_queues_uld()
299 adap->params.nports); in cfg_queues_uld()
477 j = nq / adap->params.nports; in alloc_sge_txq_uld()
528 txq_info->ntxq = roundup(i, adap->params.nports); in setup_sge_txq_uld()
641 lld->nchan = adap->params.nports; in uld_init()
[all …]
/drivers/media/platform/xilinx/
Dxilinx-tpg.c717 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/
Dgpio-dwapb.c512 int nports; in dwapb_gpio_get_pdata() local
515 nports = device_get_child_node_count(dev); in dwapb_gpio_get_pdata()
516 if (nports == 0) in dwapb_gpio_get_pdata()
523 pdata->properties = devm_kcalloc(dev, nports, sizeof(*pp), GFP_KERNEL); in dwapb_gpio_get_pdata()
527 pdata->nports = nports; in dwapb_gpio_get_pdata()
602 if (!pdata->nports) in dwapb_gpio_probe()
610 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe()
/drivers/net/bonding/
Dbond_3ad.c713 int nports = __agg_active_ports(aggregator); in __get_agg_bandwidth() local
716 if (nports) { in __get_agg_bandwidth()
719 bandwidth = nports; in __get_agg_bandwidth()
722 bandwidth = nports * 10; in __get_agg_bandwidth()
725 bandwidth = nports * 100; in __get_agg_bandwidth()
728 bandwidth = nports * 1000; in __get_agg_bandwidth()
731 bandwidth = nports * 2500; in __get_agg_bandwidth()
734 bandwidth = nports * 5000; in __get_agg_bandwidth()
737 bandwidth = nports * 10000; in __get_agg_bandwidth()
740 bandwidth = nports * 14000; in __get_agg_bandwidth()
[all …]
/drivers/tty/
Dmxser.c107 unsigned int nports; member
2234 max = brd->info->nports; in mxser_interrupt()
2355 brd->vector < brd->ports[0].ioaddr + 8 * brd->info->nports; in mxser_overlapping_vector()
2374 release_region(brd->ports[0].ioaddr, 8 * brd->info->nports); in mxser_release_ISA_res()
2388 for (i = 0; i < brd->info->nports; i++) { in mxser_initbrd()
2420 for (i = 0; i < brd->info->nports; i++) in mxser_initbrd()
2434 for (i = 0; i < brd->info->nports; i++) { in mxser_board_remove()
2476 if (brd->info->nports == 2 || (brd->info->flags & MXSER_HAS2)) { in mxser_get_ISA_conf()
2481 } else if (brd->info->nports == 4) { in mxser_get_ISA_conf()
2487 } else if (brd->info->nports == 8) { in mxser_get_ISA_conf()
[all …]
/drivers/net/wan/
Dfarsync.c455 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()
2485 card->nports = 1; in fst_add_one()
[all …]
Dfarsync.h100 unsigned int nports; /* Number of serial ports */ member
/drivers/scsi/bfa/
Dbfad_attr.c752 int nports = 0; in bfad_im_model_desc_show() local
755 nports = bfa_get_nports(&bfad->bfa); in bfad_im_model_desc_show()
796 if (nports == 1 && bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show()
799 else if (nports == 1 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show()
802 else if (nports == 2 && bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show()
805 else if (nports == 2 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show()
809 if (nports == 1 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show()
812 else if (nports == 2 && !bfa_ioc_is_cna(&bfad->bfa.ioc)) in bfad_im_model_desc_show()
/drivers/pci/host/
Dpci-mvebu.c133 int nports; member
786 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_find_port()
880 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_setup()
1016 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_suspend()
1030 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_resume()
1255 pcie->nports = i; in mvebu_pcie_probe()
1257 for (i = 0; i < pcie->nports; i++) { in mvebu_pcie_probe()
1280 pcie->nports = i; in mvebu_pcie_probe()
/drivers/scsi/cxgbi/
Dlibcxgbi.c121 "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 …]
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_common.h267 u8 nports; /* # of Ethernet "ports" */ member
306 for (iter = 0; iter < (adapter)->params.nports; iter++)
Dcxgb4vf_main.c2262 return pos <= adapter->params.nports in interfaces_get_idx()
2384 adapter->params.nports = vfres->nvi; in size_nports_qsets()
2385 if (adapter->params.nports > MAX_NPORTS) { in size_nports_qsets()
2388 adapter->params.nports); in size_nports_qsets()
2389 adapter->params.nports = MAX_NPORTS; in size_nports_qsets()
2398 if (pmask_nports < adapter->params.nports) { in size_nports_qsets()
2401 " mask %#x\n", pmask_nports, adapter->params.nports, in size_nports_qsets()
2403 adapter->params.nports = pmask_nports; in size_nports_qsets()
2431 if (adapter->sge.max_ethqsets < adapter->params.nports) { in size_nports_qsets()
2434 adapter->sge.max_ethqsets, adapter->params.nports); in size_nports_qsets()
[all …]
/drivers/scsi/cxlflash/
Dvlun.c893 u32 nports; in init_luntable() local
904 nports = get_num_ports(lli->port_sel); in init_luntable()
905 if (nports == 0 || nports > cfg->num_fc_ports) { in init_luntable()
906 WARN(1, "Unsupported port configuration nports=%u", nports); in init_luntable()
911 if (nports > 1) { in init_luntable()
/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_ctl_defs.h111 unsigned int nports; /* number of ports on this adapter */ member
/drivers/net/ethernet/sun/
Dsunvnet_common.h125 int nports; member

123