Home
last modified time | relevance | path

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

1234

/linux-6.1.9/drivers/mfd/
Domap-usb-host.c86 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()
404 for (i = 0; i < omap->nports; i++) { in omap_usbhs_rev1_hostconfig()
421 for (i = 0; i < omap->nports; i++) { in omap_usbhs_rev2_hostconfig()
478 ret = of_property_read_u32(node, "num-ports", &pdata->nports); in usbhs_omap_get_dt_pdata()
480 pdata->nports = 0; in usbhs_omap_get_dt_pdata()
482 if (pdata->nports > OMAP3_HS_USB_PORTS) { in usbhs_omap_get_dt_pdata()
484 pdata->nports, OMAP3_HS_USB_PORTS); in usbhs_omap_get_dt_pdata()
[all …]
/linux-6.1.9/drivers/usb/host/
Dehci-omap.c56 int nports; member
144 omap->nports = pdata->nports; in ehci_hcd_omap_probe()
149 for (i = 0 ; i < omap->nports ; i++) { in ehci_hcd_omap_probe()
204 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_probe()
221 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_probe()
249 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_remove()
Dehci-sysfs.c15 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-6.1.9/drivers/net/ethernet/chelsio/cxgb/
Despi.c209 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()
Despi.h47 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
Dcommon.h188 unsigned int nports; /* # of ethernet ports */ member
309 for (iter = 0; iter < (adapter)->params.nports; ++iter)
/linux-6.1.9/tools/usb/usbip/libsrc/
Dvhci_driver.c245 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()
Dvhci_driver.h42 int nports; member
/linux-6.1.9/drivers/infiniband/sw/rdmavt/
Dmad.c67 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-6.1.9/drivers/ata/
Dlibahci_platform.c50 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()
211 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_regulators()
245 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_regulators()
345 for (c = 0; c < hpriv->nports; c++) in ahci_platform_put_resources()
561 hpriv->nports = child_nodes; in ahci_platform_get_resources()
563 hpriv->nports = 1; in ahci_platform_get_resources()
565 hpriv->phys = devm_kcalloc(dev, hpriv->nports, sizeof(*hpriv->phys), GFP_KERNEL); in ahci_platform_get_resources()
574 hpriv->target_pwrs = kcalloc(hpriv->nports, sizeof(*hpriv->target_pwrs), GFP_KERNEL); in ahci_platform_get_resources()
594 if (port >= hpriv->nports) { in ahci_platform_get_resources()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.c118 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()
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()
[all …]
/linux-6.1.9/drivers/soundwire/
Dqcom.c971 int i, maxport, pn, nports = 0, ret = 0; in qcom_swrm_stream_alloc_ports() local
1000 pconfig[nports].num = pn; in qcom_swrm_stream_alloc_ports()
1001 pconfig[nports].ch_mask = p_rt->ch_mask; in qcom_swrm_stream_alloc_ports()
1002 nports++; in qcom_swrm_stream_alloc_ports()
1018 nports, stream); in qcom_swrm_stream_alloc_ports()
1021 for (i = 0; i < nports; i++) in qcom_swrm_stream_alloc_ports()
1186 int i, ret, nports, val; in qcom_swrm_get_port_config() local
1211 nports = ctrl->num_dout_ports + ctrl->num_din_ports; in qcom_swrm_get_port_config()
1217 off1, nports); in qcom_swrm_get_port_config()
1222 off2, nports); in qcom_swrm_get_port_config()
[all …]
/linux-6.1.9/tools/usb/usbip/src/
Dusbip_detach.c58 for (i = 0; i < vhci_driver->nports; i++) { in detach_port()
72 port, vhci_driver->nports); in detach_port()
Dusbip_port.c28 for (i = 0; i < vhci_driver->nports; i++) { in list_imported_devices()
/linux-6.1.9/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()
/linux-6.1.9/drivers/gpio/
Dgpio-dwapb.c79 unsigned int nports; member
569 int nports; in dwapb_gpio_get_pdata() local
572 nports = device_get_child_node_count(dev); in dwapb_gpio_get_pdata()
573 if (nports == 0) in dwapb_gpio_get_pdata()
580 pdata->properties = devm_kcalloc(dev, nports, sizeof(*pp), GFP_KERNEL); in dwapb_gpio_get_pdata()
584 pdata->nports = nports; in dwapb_gpio_get_pdata()
710 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe()
/linux-6.1.9/drivers/net/bonding/
Dbond_3ad.c703 int nports = __agg_active_ports(aggregator); in __get_agg_bandwidth() local
706 if (nports) { in __get_agg_bandwidth()
709 bandwidth = nports; in __get_agg_bandwidth()
712 bandwidth = nports * 10; in __get_agg_bandwidth()
715 bandwidth = nports * 100; in __get_agg_bandwidth()
718 bandwidth = nports * 1000; in __get_agg_bandwidth()
721 bandwidth = nports * 2500; in __get_agg_bandwidth()
724 bandwidth = nports * 5000; in __get_agg_bandwidth()
727 bandwidth = nports * 10000; in __get_agg_bandwidth()
730 bandwidth = nports * 14000; in __get_agg_bandwidth()
[all …]
/linux-6.1.9/drivers/platform/chrome/
Dcros_typec_switch.c211 int nports, ret; in cros_typec_register_switches() local
213 nports = device_get_child_node_count(dev); in cros_typec_register_switches()
214 if (nports == 0) { in cros_typec_register_switches()
/linux-6.1.9/drivers/scsi/bfa/
Dbfad_attr.c741 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-6.1.9/drivers/net/wan/
Dfarsync.c451 unsigned int nports; /* Number of serial ports */ member
1292 for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { in do_bottom_half_tx()
1386 for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { in do_bottom_half_rx()
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()
2314 port_to_dev(&card->ports[card->nports - 1])->name, in fst_init_card()
2315 type_strings[card->type], card->irq, card->nports); in fst_init_card()
2412 card->nports = 1; in fst_add_one()
[all …]
/linux-6.1.9/include/linux/platform_data/
Dusb-omap.h44 int nports; member
/linux-6.1.9/drivers/tty/
Dmxser.c284 unsigned short nports; member
1663 unsigned int i, max = brd->nports; in mxser_interrupt()
1755 for (i = 0; i < brd->nports; i++) { in mxser_initbrd()
1791 unsigned short nports = MXSER_NPORTS(ent->driver_data); in mxser_probe() local
1802 brd = devm_kzalloc(&pdev->dev, struct_size(brd, ports, nports), in mxser_probe()
1823 brd->nports = nports; in mxser_probe()
1824 for (i = 0; i < nports; i++) in mxser_probe()
1846 for (i = 0; i < nports; i++) { in mxser_probe()
1862 for (i = 0; i < nports; i++) in mxser_probe()
1875 for (i = 0; i < brd->nports; i++) { in mxser_remove()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_ctl_defs.h111 unsigned int nports; /* number of ports on this adapter */ member
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_common.h268 u8 nports; /* # of Ethernet "ports" */ member
307 for (iter = 0; iter < (adapter)->params.nports; iter++)
Dcxgb4vf_main.c2351 return pos <= adapter->params.nports in interfaces_get_idx()
2455 adapter->params.nports = vfres->nvi; in size_nports_qsets()
2456 if (adapter->params.nports > MAX_NPORTS) { in size_nports_qsets()
2459 adapter->params.nports); in size_nports_qsets()
2460 adapter->params.nports = MAX_NPORTS; in size_nports_qsets()
2469 if (pmask_nports < adapter->params.nports) { in size_nports_qsets()
2472 " mask %#x\n", pmask_nports, adapter->params.nports, in size_nports_qsets()
2474 adapter->params.nports = pmask_nports; in size_nports_qsets()
2502 if (adapter->sge.max_ethqsets < adapter->params.nports) { in size_nports_qsets()
2505 adapter->sge.max_ethqsets, adapter->params.nports); in size_nports_qsets()
[all …]

1234