/drivers/parport/ |
D | parport_serial.c | 294 .num_ports = 1, 300 .num_ports = 2, 306 .num_ports = 1, 312 .num_ports = 1, 318 .num_ports = 1, 324 .num_ports = 1, 330 .num_ports = 0, 336 .num_ports = 0, 342 .num_ports = 1, 348 .num_ports = 1, [all …]
|
D | daisy.c | 97 int num_ports; in parport_daisy_init() local 109 ((num_ports = num_mux_ports(port)) == 2 || num_ports == 4)) { in parport_daisy_init() 114 port->name, num_ports); in parport_daisy_init() 115 for (i = 1; i < num_ports; i++) { in parport_daisy_init() 128 extra->name, i + 1, th[i + 1], num_ports, in parport_daisy_init()
|
/drivers/tty/serial/8250/ |
D | 8250_men_mcb.c | 75 int num_ports; in serial_8250_men_mcb_probe() local 86 num_ports = get_num_ports(mdev, membase); in serial_8250_men_mcb_probe() 89 mdev->id, num_ports); in serial_8250_men_mcb_probe() 91 if (num_ports <= 0 || num_ports > 4) { in serial_8250_men_mcb_probe() 93 num_ports); in serial_8250_men_mcb_probe() 97 data = devm_kcalloc(&mdev->dev, num_ports, in serial_8250_men_mcb_probe() 105 for (i = 0; i < num_ports; i++) { in serial_8250_men_mcb_probe() 136 int num_ports, i; in serial_8250_men_mcb_remove() local 142 num_ports = get_num_ports(mdev, data[0].uart.port.membase); in serial_8250_men_mcb_remove() 143 if (num_ports < 0 || num_ports > 4) { in serial_8250_men_mcb_remove() [all …]
|
D | 8250_pci.c | 760 if (idx >= board->num_ports) in pci_ni8430_setup() 1813 if (board->num_ports == 4 && idx == 3) in pci_moxa_setup() 2951 .num_ports = 1, 2957 .num_ports = 1, 2963 .num_ports = 2, 2969 .num_ports = 4, 2975 .num_ports = 5, 2981 .num_ports = 8, 2987 .num_ports = 1, 2993 .num_ports = 2, [all …]
|
D | 8250_acorn.c | 26 unsigned int num_ports; member 33 unsigned int num_ports; member 51 info->num_ports = type->num_ports; in serial_card_probe() 70 for (i = 0; i < info->num_ports; i++) { in serial_card_probe() 87 for (i = 0; i < info->num_ports; i++) in serial_card_remove() 95 .num_ports = 3, 102 .num_ports = 2,
|
D | 8250_hp300.c | 59 static unsigned int num_ports; variable 197 num_ports++; in hpdca_init_one() 225 if (!num_ports) in hp300_8250_init() 276 num_ports++; in hp300_8250_init() 281 if (!num_ports) in hp300_8250_init()
|
D | 8250_exar.c | 119 unsigned int num_ports; member 523 if (priv->board->num_ports > 8) in exar_misc_clear() 562 nr_ports = board->num_ports ? board->num_ports : pcidev->device & 0x0f; in exar_pci_probe() 662 .num_ports = 2, 667 .num_ports = 4, 672 .num_ports = 8, 681 .num_ports = 1, 695 .num_ports = 12, 701 .num_ports = 16,
|
/drivers/usb/serial/ |
D | visor.c | 169 .num_ports = 2, 188 .num_ports = 2, 208 .num_ports = 1, 320 int num_ports = 0; in palm_os_3_probe() local 346 num_ports = le16_to_cpu(connection_info->num_ports); in palm_os_3_probe() 349 if (num_ports == 0 || num_ports > 2) { in palm_os_3_probe() 352 num_ports = 2; in palm_os_3_probe() 355 for (i = 0; i < num_ports; ++i) { in palm_os_3_probe() 381 num_ports); in palm_os_3_probe() 387 usb_set_serial_data(serial, (void *)(long)num_ports); in palm_os_3_probe() [all …]
|
D | usb-serial.c | 84 static int allocate_minors(struct usb_serial *serial, int num_ports) in allocate_minors() argument 90 dev_dbg(&serial->interface->dev, "%s %d\n", __func__, num_ports); in allocate_minors() 93 for (i = 0; i < num_ports; ++i) { in allocate_minors() 118 for (i = 0; i < serial->num_ports; ++i) in release_minors() 485 seq_printf(m, " num_ports:%d", serial->num_ports); in serial_proc_show() 876 int num_ports = 0; in usb_serial_probe() local 935 num_ports = retval; in usb_serial_probe() 938 if (!num_ports) in usb_serial_probe() 939 num_ports = type->num_ports; in usb_serial_probe() 941 if (num_ports > MAX_NUM_PORTS) { in usb_serial_probe() [all …]
|
D | mxuport.c | 489 if (rcv_port >= serial->num_ports) { in mxuport_process_read_urb_demux_data() 536 if (rcv_port >= serial->num_ports) { in mxuport_process_read_urb_demux_event() 949 int num_ports; in mxuport_calc_num_ports() local 953 num_ports = 2; in mxuport_calc_num_ports() 955 num_ports = 4; in mxuport_calc_num_ports() 957 num_ports = 8; in mxuport_calc_num_ports() 959 num_ports = 16; in mxuport_calc_num_ports() 963 num_ports = 2; in mxuport_calc_num_ports() 972 for (i = 1; i < num_ports; ++i) in mxuport_calc_num_ports() 975 epds->num_bulk_out = num_ports; in mxuport_calc_num_ports() [all …]
|
D | visor.h | 101 __le16 num_ports; member 145 __u8 num_ports; member
|
/drivers/phy/ti/ |
D | phy-gmii-sel.c | 41 u32 num_ports; member 140 .num_ports = 2, 162 .num_ports = 2, 168 .num_ports = 2, 212 if (phy_id > priv->soc_data->num_ports) in phy_gmii_sel_of_xlate() 231 int i, num_ports, ret; in phy_gmii_sel_init_ports() local 233 num_ports = priv->soc_data->num_ports; in phy_gmii_sel_init_ports() 235 if_phys = devm_kcalloc(priv->dev, num_ports, in phy_gmii_sel_init_ports() 239 dev_dbg(dev, "%s %d\n", __func__, num_ports); in phy_gmii_sel_init_ports() 241 for (i = 0; i < num_ports; i++) { in phy_gmii_sel_init_ports()
|
/drivers/slimbus/ |
D | stream.c | 207 int num_ports, i, port_id; in slim_stream_prepare() local 214 num_ports = hweight32(cfg->port_mask); in slim_stream_prepare() 215 rt->ports = kcalloc(num_ports, sizeof(*port), GFP_KERNEL); in slim_stream_prepare() 219 rt->num_ports = num_ports; in slim_stream_prepare() 362 for (i = 0; i < stream->num_ports; i++) in slim_stream_enable() 373 for (i = 0; i < stream->num_ports; i++) { in slim_stream_enable() 380 for (i = 0; i < stream->num_ports; i++) { in slim_stream_enable() 417 for (i = 0; i < stream->num_ports; i++) in slim_stream_disable() 441 for (i = 0; i < stream->num_ports; i++) in slim_stream_unprepare() 446 stream->num_ports = 0; in slim_stream_unprepare()
|
/drivers/gpio/ |
D | gpio-tegra186.c | 54 unsigned int num_ports; member 74 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_get_port() 223 if (port >= gpio->soc->num_ports) { in tegra186_gpio_of_xlate() 343 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_irq() 385 if (port >= gpio->soc->num_ports) { in tegra186_gpio_irq_domain_xlate() 455 for (i = 0; i < gpio->soc->num_ports; i++) in tegra186_gpio_probe() 463 for (i = 0, offset = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_probe() 506 for (i = 0, offset = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_probe() 564 .num_ports = ARRAY_SIZE(tegra186_main_ports), 589 .num_ports = ARRAY_SIZE(tegra186_aon_ports), [all …]
|
/drivers/usb/host/ |
D | xhci-mem.c | 838 unsigned int num_ports; in xhci_alloc_tt_info() local 843 num_ports = 1; in xhci_alloc_tt_info() 845 num_ports = hdev->maxchild; in xhci_alloc_tt_info() 847 for (i = 0; i < num_ports; i++, tt_info++) { in xhci_alloc_tt_info() 1837 int i, j, num_ports; in xhci_mem_cleanup() local 1857 num_ports = HCS_MAX_PORTS(xhci->hcs_params1); in xhci_mem_cleanup() 1858 for (i = 0; i < num_ports && xhci->rh_bw; i++) { in xhci_mem_cleanup() 1898 for (i = 0; i < num_ports; i++) { in xhci_mem_cleanup() 1908 xhci->usb2_rhub.num_ports = 0; in xhci_mem_cleanup() 1909 xhci->usb3_rhub.num_ports = 0; in xhci_mem_cleanup() [all …]
|
D | uhci-platform.c | 107 u32 num_ports; in uhci_hcd_platform_probe() local 109 if (of_property_read_u32(np, "#ports", &num_ports) == 0) { in uhci_hcd_platform_probe() 110 uhci->rh_numports = num_ports; in uhci_hcd_platform_probe() 113 num_ports); in uhci_hcd_platform_probe()
|
/drivers/char/ipmi/ |
D | ipmi_si_hardcode.c | 22 static unsigned int num_ports; variable 44 module_param_hw_array(ports, uint, ioport, &num_ports, 0); 140 if (i < num_ports && ports[i]) in ipmi_hardcode_init() 164 for (i = 0; i < num_ports; i++) { in ipmi_si_hardcode_match()
|
/drivers/soc/fsl/qe/ |
D | qe_io.c | 33 const u32 *num_ports; in par_io_init() local 41 num_ports = of_get_property(np, "num-ports", NULL); in par_io_init() 42 if (num_ports) in par_io_init() 43 num_par_io_ports = *num_ports; in par_io_init()
|
/drivers/infiniband/hw/mlx5/ |
D | ib_rep.c | 32 int num_ports = mlx5_eswitch_get_total_vports(dev); in mlx5_ib_vport_rep_load() local 46 ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), in mlx5_ib_vport_rep_load() 59 ibdev->num_ports = num_ports; in mlx5_ib_vport_rep_load()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dss.c | 66 int num_ports; member 823 .num_ports = ARRAY_SIZE(omap2plus_ports), 832 .num_ports = ARRAY_SIZE(omap34xx_ports), 841 .num_ports = ARRAY_SIZE(omap2plus_ports), 850 .num_ports = ARRAY_SIZE(omap2plus_ports), 859 .num_ports = ARRAY_SIZE(omap2plus_ports), 868 .num_ports = ARRAY_SIZE(omap2plus_ports), 877 .num_ports = ARRAY_SIZE(dra7xx_ports), 928 if (dss.feat->num_ports == 0) in dss_init_ports() 939 if (reg >= dss.feat->num_ports) in dss_init_ports() [all …]
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_encoder.c | 36 unsigned int num_ports = 0; in rcar_du_encoder_count_ports() local 44 num_ports++; in rcar_du_encoder_count_ports() 49 return num_ports; in rcar_du_encoder_count_ports()
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | vxlan.c | 46 int num_ports; member 122 if (vxlan->num_ports >= mlx5_vxlan_max_udp_ports(vxlan->mdev)) { in mlx5_vxlan_add_port() 147 vxlan->num_ports++; in mlx5_vxlan_add_port() 185 vxlan->num_ports--; in mlx5_vxlan_del_port()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | sense.c | 72 for (i = 1; i <= dev->caps.num_ports; i++) { in mlx4_do_sense_ports() 86 for (i = 0; i < dev->caps.num_ports; i++) in mlx4_do_sense_ports() 139 for (port = 1; port <= dev->caps.num_ports; port++) in mlx4_sense_init()
|
D | main.c | 313 for (i = 0; i < dev->caps.num_ports - 1; i++) { in mlx4_check_port_params() 321 for (i = 0; i < dev->caps.num_ports; i++) { in mlx4_check_port_params() 335 for (i = 1; i <= dev->caps.num_ports; ++i) in mlx4_set_port_mask() 474 if (dev_cap->num_ports > MLX4_MAX_PORTS) { in mlx4_dev_cap() 476 dev_cap->num_ports, MLX4_MAX_PORTS); in mlx4_dev_cap() 488 dev->caps.num_ports = dev_cap->num_ports; in mlx4_dev_cap() 493 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap() 588 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap() 647 if (mlx4_is_master(dev) && (dev->caps.num_ports == 2) && in mlx4_dev_cap() 662 dev->caps.num_ports; in mlx4_dev_cap() [all …]
|
/drivers/net/dsa/ |
D | rtl8366.c | 22 for (i = 0; i < smi->num_ports; i++) { in rtl8366_mc_is_used() 268 for (port = 0; port < smi->num_ports; port++) { in rtl8366_init_vlan() 275 mask = GENMASK(smi->num_ports - 1, 0); in rtl8366_init_vlan() 472 if (port >= smi->num_ports) in rtl8366_get_strings() 490 if (port >= smi->num_ports) in rtl8366_get_sset_count() 503 if (port >= smi->num_ports) in rtl8366_get_ethtool_stats()
|