/linux-6.1.9/drivers/mfd/ |
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() 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/ |
D | ehci-omap.c | 56 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()
|
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-6.1.9/drivers/net/ethernet/chelsio/cxgb/ |
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()
|
D | espi.h | 47 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
|
D | common.h | 188 unsigned int nports; /* # of ethernet ports */ member 309 for (iter = 0; iter < (adapter)->params.nports; ++iter)
|
/linux-6.1.9/tools/usb/usbip/libsrc/ |
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()
|
D | vhci_driver.h | 42 int nports; member
|
/linux-6.1.9/drivers/infiniband/sw/rdmavt/ |
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-6.1.9/drivers/ata/ |
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() 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/ |
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() 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/ |
D | qcom.c | 971 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/ |
D | usbip_detach.c | 58 for (i = 0; i < vhci_driver->nports; i++) { in detach_port() 72 port, vhci_driver->nports); in detach_port()
|
D | usbip_port.c | 28 for (i = 0; i < vhci_driver->nports; i++) { in list_imported_devices()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/gpio/ |
D | gpio-dwapb.c | 79 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/ |
D | bond_3ad.c | 703 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/ |
D | cros_typec_switch.c | 211 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/ |
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-6.1.9/drivers/net/wan/ |
D | farsync.c | 451 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/ |
D | usb-omap.h | 44 int nports; member
|
/linux-6.1.9/drivers/tty/ |
D | mxser.c | 284 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/ |
D | cxgb3_ctl_defs.h | 111 unsigned int nports; /* number of ports on this adapter */ member
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_common.h | 268 u8 nports; /* # of Ethernet "ports" */ member 307 for (iter = 0; iter < (adapter)->params.nports; iter++)
|
D | cxgb4vf_main.c | 2351 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 …]
|