/kernel/linux/linux-5.10/drivers/mfd/ |
H A 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_PORT in usbhs_omap_get_dt_pdata() [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A 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_PORT in usbhs_omap_get_dt_pdata() [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ehci-omap.c | 56 int nports; member 149 omap->nports = pdata->nports; in ehci_hcd_omap_probe() 154 for (i = 0 ; i < omap->nports ; i++) { in ehci_hcd_omap_probe() 209 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() 254 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_remove()
|
H A 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()
|
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ehci-omap.c | 56 int nports; member 143 omap->nports = pdata->nports; in ehci_hcd_omap_probe() 148 for (i = 0 ; i < omap->nports ; i++) { in ehci_hcd_omap_probe() 203 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_probe() 220 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_probe() 248 for (i = 0; i < omap->nports; i++) { in ehci_hcd_omap_remove()
|
H A 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()
|
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/ |
H A D | vhci_driver.c | 142 attr_nports = udev_device_get_sysattr_value(hc_device, "nports"); in get_nports() 144 err("udev_device_get_sysattr_value nports failed"); in get_nports() 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; in usbip_vhci_get_free_port() [all...] |
/kernel/linux/linux-6.6/tools/usb/usbip/libsrc/ |
H A D | vhci_driver.c | 142 attr_nports = udev_device_get_sysattr_value(hc_device, "nports"); in get_nports() 144 err("udev_device_get_sysattr_value nports failed"); in get_nports() 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; in usbip_vhci_get_free_port() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/ |
H A 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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
H A 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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/ata/ |
H A 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() 166 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_regulators() 200 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_regulators() 302 for (c = 0; c < hpriv->nports; c++) in ahci_platform_put_resources() 465 * If no sub-node was found, we still need to set nports to in ahci_platform_get_resources() 470 hpriv->nports = child_nodes; in ahci_platform_get_resources() 472 hpriv->nports = 1; in ahci_platform_get_resources() 474 hpriv->phys = devm_kcalloc(dev, hpriv->nports, sizeof(*hpriv->phys), GFP_KERNEL); in ahci_platform_get_resources() 483 hpriv->target_pwrs = kcalloc(hpriv->nports, sizeo in ahci_platform_get_resources() [all...] |
/kernel/linux/linux-6.6/drivers/ata/ |
H A D | libahci_platform.c | 51 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_phys() 90 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_phys() 212 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_regulators() 246 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_regulators() 346 for (c = 0; c < hpriv->nports; c++) in ahci_platform_put_resources() 557 * If no sub-node was found, we still need to set nports to in ahci_platform_get_resources() 562 hpriv->nports = child_nodes; in ahci_platform_get_resources() 564 hpriv->nports = 1; in ahci_platform_get_resources() 566 hpriv->phys = devm_kcalloc(dev, hpriv->nports, sizeof(*hpriv->phys), GFP_KERNEL); in ahci_platform_get_resources() 575 hpriv->target_pwrs = kcalloc(hpriv->nports, sizeo in ahci_platform_get_resources() [all...] |
/kernel/linux/linux-5.10/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() 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...] |
/kernel/linux/linux-5.10/drivers/soundwire/ |
H A D | qcom.c | 539 int i, maxport, pn, nports = 0, ret = 0; in qcom_swrm_stream_alloc_ports() local 561 pconfig[nports].num = pn + 1; in qcom_swrm_stream_alloc_ports() 562 pconfig[nports].ch_mask = p_rt->ch_mask; in qcom_swrm_stream_alloc_ports() 563 nports++; in qcom_swrm_stream_alloc_ports() 579 nports, stream); in qcom_swrm_stream_alloc_ports() 582 for (i = 0; i < nports; i++) in qcom_swrm_stream_alloc_ports() 731 int i, ret, nports, val; in qcom_swrm_get_port_config() local 756 nports = ctrl->num_dout_ports + ctrl->num_din_ports; in qcom_swrm_get_port_config() 759 off1, nports); in qcom_swrm_get_port_config() 764 off2, nports); in qcom_swrm_get_port_config() [all...] |
/kernel/linux/linux-6.6/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() 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...] |
/kernel/linux/linux-5.10/drivers/media/platform/xilinx/ |
H A D | xilinx-tpg.c | 714 unsigned int nports = 0; in xtpg_parse_of() local 744 if (nports == 0) { in xtpg_parse_of() 752 nports++; in xtpg_parse_of() 755 if (nports != 1 && nports != 2) { in xtpg_parse_of() 756 dev_err(dev, "invalid number of ports %u\n", nports); in xtpg_parse_of() 760 xtpg->npads = nports; in xtpg_parse_of() 761 if (nports == 2 && has_endpoint) in xtpg_parse_of()
|
/kernel/linux/linux-6.6/drivers/media/platform/xilinx/ |
H A 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()
|
/kernel/linux/linux-5.10/tools/usb/usbip/src/ |
H A D | usbip_detach.c | 58 for (i = 0; i < vhci_driver->nports; i++) { in detach_port() 72 port, vhci_driver->nports); in detach_port()
|
/kernel/linux/linux-6.6/tools/usb/usbip/src/ |
H A D | usbip_detach.c | 58 for (i = 0; i < vhci_driver->nports; i++) { in detach_port() 72 port, vhci_driver->nports); in detach_port()
|
/kernel/linux/linux-6.6/drivers/soundwire/ |
H A D | qcom.c | 1148 int i, maxport, pn, nports = 0, ret = 0; in qcom_swrm_stream_alloc_ports() local 1177 pconfig[nports].num = pn; in qcom_swrm_stream_alloc_ports() 1178 pconfig[nports].ch_mask = p_rt->ch_mask; in qcom_swrm_stream_alloc_ports() 1179 nports++; in qcom_swrm_stream_alloc_ports() 1195 nports, stream); in qcom_swrm_stream_alloc_ports() 1198 for (i = 0; i < nports; i++) in qcom_swrm_stream_alloc_ports() 1374 int i, ret, nports, val; in qcom_swrm_get_port_config() local 1400 nports = ctrl->num_dout_ports + ctrl->num_din_ports; in qcom_swrm_get_port_config() 1401 if (nports > QCOM_SDW_MAX_PORTS) in qcom_swrm_get_port_config() 1409 off1, nports); in qcom_swrm_get_port_config() [all...] |
/kernel/linux/linux-6.6/drivers/net/bonding/ |
H A D | bond_3ad.c | 709 int nports = __agg_active_ports(aggregator); in __get_agg_bandwidth() local 712 if (nports) { in __get_agg_bandwidth() 715 bandwidth = nports; in __get_agg_bandwidth() 718 bandwidth = nports * 10; in __get_agg_bandwidth() 721 bandwidth = nports * 100; in __get_agg_bandwidth() 724 bandwidth = nports * 1000; in __get_agg_bandwidth() 727 bandwidth = nports * 2500; in __get_agg_bandwidth() 730 bandwidth = nports * 5000; in __get_agg_bandwidth() 733 bandwidth = nports * 10000; in __get_agg_bandwidth() 736 bandwidth = nports * 1400 in __get_agg_bandwidth() [all...] |
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | mxser.c | 103 unsigned int nports; member 2236 max = brd->info->nports; in mxser_interrupt() 2359 brd->vector < brd->ports[0].ioaddr + 8 * brd->info->nports; in mxser_overlapping_vector() 2378 release_region(brd->ports[0].ioaddr, 8 * brd->info->nports); in mxser_release_ISA_res() 2391 for (i = 0; i < brd->info->nports; i++) { in mxser_initbrd() 2423 for (i = 0; i < brd->info->nports; i++) in mxser_initbrd() 2437 for (i = 0; i < brd->info->nports; i++) { in mxser_board_remove() 2479 if (brd->info->nports == 2 || (brd->info->flags & MXSER_HAS2)) { in mxser_get_ISA_conf() 2484 } else if (brd->info->nports == 4) { in mxser_get_ISA_conf() 2490 } else if (brd->info->nports in mxser_get_ISA_conf() [all...] |
/kernel/linux/linux-5.10/drivers/net/wan/ |
H A D | farsync.c | 451 unsigned int nports; /* Number of serial ports */ member 1335 for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { in do_bottom_half_tx() 1434 for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { in do_bottom_half_rx() 1654 if (FST_RDL(card, numberOfPorts) != card->nports) { in check_started_ok() 1657 FST_RDL(card, numberOfPorts), card->nports); in check_started_ok() 1761 info->nports = card->nports; in gather_conf_info() 2370 for (i = 0; i < card->nports; i++) { in fst_init_card() 2383 port_to_dev(&card->ports[card->nports - 1])->name, in fst_init_card() 2384 type_strings[card->type], card->irq, card->nports); in fst_init_card() [all...] |