Home
last modified time | relevance | path

Searched refs:num_ports (Results 1 – 25 of 226) sorted by relevance

12345678910

/drivers/parport/
Dparport_serial.c334 .num_ports = 1,
340 .num_ports = 2,
346 .num_ports = 1,
352 .num_ports = 1,
358 .num_ports = 1,
364 .num_ports = 1,
370 .num_ports = 0,
376 .num_ports = 0,
382 .num_ports = 1,
388 .num_ports = 1,
[all …]
Ddaisy.c110 int num_ports; in parport_daisy_init() local
139 ((num_ports = num_mux_ports(port)) == 2 || num_ports == 4)) { in parport_daisy_init()
143 port->name, num_ports); in parport_daisy_init()
144 for (i = 1; i < num_ports; i++) { in parport_daisy_init()
156 extra->name, i + 1, th[i + 1], num_ports, in parport_daisy_init()
/drivers/tty/serial/8250/
D8250_men_mcb.c75 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 …]
D8250_pci.c761 if (idx >= board->num_ports) in pci_ni8430_setup()
2031 if (board->num_ports == 4 && idx == 3) in pci_moxa_setup()
3335 .num_ports = 1,
3341 .num_ports = 1,
3347 .num_ports = 2,
3353 .num_ports = 4,
3359 .num_ports = 5,
3365 .num_ports = 8,
3371 .num_ports = 1,
3377 .num_ports = 2,
[all …]
D8250_acorn.c26 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,
D8250_exar.c139 unsigned int num_ports; member
610 if (priv->board->num_ports > 8) in exar_misc_clear()
651 else if (board->num_ports) in exar_pci_probe()
652 nr_ports = board->num_ports; in exar_pci_probe()
756 .num_ports = 2,
761 .num_ports = 4,
766 .num_ports = 8,
775 .num_ports = 1,
789 .num_ports = 2,
795 .num_ports = 4,
[all …]
D8250_hp300.c59 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()
/drivers/phy/ti/
Dphy-gmii-sel.c42 u32 num_ports; member
54 u32 num_ports; member
144 .num_ports = 2,
162 .num_ports = 2,
168 .num_ports = 2,
234 if (phy_id > priv->num_ports) in phy_gmii_sel_of_xlate()
325 priv->num_ports = size / sizeof(u32); in phy_gmii_sel_init_ports()
326 if (!priv->num_ports) in phy_gmii_sel_init_ports()
331 if_phys = devm_kcalloc(dev, priv->num_ports, in phy_gmii_sel_init_ports()
335 dev_dbg(dev, "%s %d\n", __func__, priv->num_ports); in phy_gmii_sel_init_ports()
[all …]
/drivers/usb/serial/
Dvisor.c169 .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 …]
Dusb-serial.c84 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()
566 seq_printf(m, " num_ports:%d", serial->num_ports); in serial_proc_show()
969 int num_ports = 0; in usb_serial_probe() local
1030 num_ports = retval; in usb_serial_probe()
1033 if (!num_ports) in usb_serial_probe()
1034 num_ports = type->num_ports; in usb_serial_probe()
1036 if (num_ports > MAX_NUM_PORTS) { in usb_serial_probe()
[all …]
Dmxuport.c482 if (rcv_port >= serial->num_ports) { in mxuport_process_read_urb_demux_data()
529 if (rcv_port >= serial->num_ports) { in mxuport_process_read_urb_demux_event()
942 int num_ports; in mxuport_calc_num_ports() local
946 num_ports = 2; in mxuport_calc_num_ports()
948 num_ports = 4; in mxuport_calc_num_ports()
950 num_ports = 8; in mxuport_calc_num_ports()
952 num_ports = 16; in mxuport_calc_num_ports()
956 num_ports = 2; in mxuport_calc_num_ports()
965 for (i = 1; i < num_ports; ++i) in mxuport_calc_num_ports()
968 epds->num_bulk_out = num_ports; in mxuport_calc_num_ports()
[all …]
/drivers/slimbus/
Dstream.c207 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/net/dsa/xrs700x/
Dxrs700x.c154 for (i = 0; i < priv->ds->num_ports; i++) in xrs700x_mib_work()
191 priv->ds->num_ports, in xrs700x_setup_regmap_range()
197 priv->ds->num_ports, in xrs700x_setup_regmap_range()
203 priv->ds->num_ports, in xrs700x_setup_regmap_range()
209 priv->ds->num_ports, in xrs700x_setup_regmap_range()
320 for (i = 0; i < ds->num_ports; i++) { in xrs700x_port_add_bpdu_ipf()
364 for (i = 0; i < ds->num_ports; i++) { in xrs700x_port_add_hsrsup_ipf()
394 for (i = 0; i < ds->num_ports; i++) { in xrs700x_port_setup()
427 for (i = 0; i < ds->num_ports; i++) { in xrs700x_setup()
513 for (i = 0; i < ds->num_ports; i++) { in xrs700x_bridge_common()
[all …]
/drivers/gpio/
Dgpio-tegra186.c68 unsigned int num_ports; member
94 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_get_port()
293 if (port >= gpio->soc->num_ports) { in tegra186_gpio_add_pin_ranges()
326 if (port >= gpio->soc->num_ports) { in tegra186_gpio_of_xlate()
463 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_irq()
506 if (port >= gpio->soc->num_ports) in tegra186_gpio_irq_domain_translate()
556 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_child_offset_to_irq()
577 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_init_route_mapping()
666 for (i = 0; i < gpio->soc->num_ports; i++) in tegra186_gpio_probe()
674 for (i = 0, offset = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_probe()
[all …]
/drivers/usb/host/
Dxhci-mem.c837 unsigned int num_ports; in xhci_alloc_tt_info() local
842 num_ports = 1; in xhci_alloc_tt_info()
844 num_ports = hdev->maxchild; in xhci_alloc_tt_info()
846 for (i = 0; i < num_ports; i++, tt_info++) { in xhci_alloc_tt_info()
1853 int i, j, num_ports; in xhci_mem_cleanup() local
1873 num_ports = HCS_MAX_PORTS(xhci->hcs_params1); in xhci_mem_cleanup()
1874 for (i = 0; i < num_ports && xhci->rh_bw; i++) { in xhci_mem_cleanup()
1914 for (i = 0; i < num_ports; i++) { in xhci_mem_cleanup()
1924 xhci->usb2_rhub.num_ports = 0; in xhci_mem_cleanup()
1925 xhci->usb3_rhub.num_ports = 0; in xhci_mem_cleanup()
[all …]
Duhci-platform.c107 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/
Dipmi_si_hardcode.c22 static unsigned int num_ports; variable
40 module_param_hw_array(ports, uint, ioport, &num_ports, 0);
117 if (i < num_ports && ports[i]) in ipmi_hardcode_init()
141 for (i = 0; i < num_ports; i++) { in ipmi_si_hardcode_match()
/drivers/infiniband/hw/mlx5/
Dib_rep.c36 u32 num_ports = mlx5_eswitch_get_total_vports(dev); in mlx5_ib_vport_rep_load() local
51 num_ports += peer_num_ports - 1; in mlx5_ib_vport_rep_load()
69 ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), in mlx5_ib_vport_rep_load()
82 ibdev->num_ports = num_ports; in mlx5_ib_vport_rep_load()
/drivers/net/dsa/sja1105/
Dsja1105_main.c259 for (i = 0; i < ds->num_ports; i++) { in sja1105_init_mii_settings()
363 for (port = 0; port < priv->ds->num_ports; port++) in sja1105_init_static_fdb()
407 for (port = 0; port < ds->num_ports; port++) in sja1105_init_l2_lookup_params()
413 for (port = 0; port < ds->num_ports; port++) { in sja1105_init_l2_lookup_params()
477 for (port = 0; port < ds->num_ports; port++) { in sja1105_init_static_vlan()
525 for (port = 0; port < ds->num_ports; port++) { in sja1105_init_l2_forwarding()
536 for (from = 0; from < ds->num_ports; from++) { in sja1105_init_l2_forwarding()
540 for (to = 0; to < ds->num_ports; to++) { in sja1105_init_l2_forwarding()
556 for (from = 0; from < ds->num_ports; from++) { in sja1105_init_l2_forwarding()
560 for (to = 0; to < ds->num_ports; to++) { in sja1105_init_l2_forwarding()
[all …]
Dsja1105_spi.c341 rc = sja1105_inhibit_tx(priv, GENMASK_ULL(ds->num_ports - 1, 0), true); in sja1105_static_config_upload()
583 .num_ports = SJA1105_NUM_PORTS,
615 .num_ports = SJA1105_NUM_PORTS,
647 .num_ports = SJA1105_NUM_PORTS,
680 .num_ports = SJA1105_NUM_PORTS,
713 .num_ports = SJA1105_NUM_PORTS,
750 .num_ports = SJA1105_NUM_PORTS,
788 .num_ports = SJA1110_NUM_PORTS,
839 .num_ports = SJA1110_NUM_PORTS,
890 .num_ports = SJA1110_NUM_PORTS,
[all …]
/drivers/power/supply/
Dcros_peripheral_charger.c295 int num_ports; in cros_pchg_probe() local
324 num_ports = ret; in cros_pchg_probe()
325 if (num_ports > EC_PCHG_MAX_PORTS) { in cros_pchg_probe()
327 num_ports); in cros_pchg_probe()
331 dev_info(dev, "%d peripheral charge ports found\n", num_ports); in cros_pchg_probe()
333 for (i = 0; i < num_ports; i++) { in cros_pchg_probe()
/drivers/video/fbdev/omap2/omapfb/dss/
Ddss.c66 int num_ports; member
826 .num_ports = ARRAY_SIZE(omap2plus_ports),
835 .num_ports = ARRAY_SIZE(omap34xx_ports),
844 .num_ports = ARRAY_SIZE(omap2plus_ports),
853 .num_ports = ARRAY_SIZE(omap2plus_ports),
862 .num_ports = ARRAY_SIZE(omap2plus_ports),
871 .num_ports = ARRAY_SIZE(omap2plus_ports),
880 .num_ports = ARRAY_SIZE(dra7xx_ports),
931 if (dss.feat->num_ports == 0) in dss_init_ports()
942 if (reg >= dss.feat->num_ports) in dss_init_ports()
[all …]
/drivers/gpu/drm/rcar-du/
Drcar_du_encoder.c33 unsigned int num_ports = 0; in rcar_du_encoder_count_ports() local
41 num_ports++; in rcar_du_encoder_count_ports()
46 return num_ports; in rcar_du_encoder_count_ports()
/drivers/net/ethernet/mellanox/mlx4/
Dsense.c72 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()
Dmain.c313 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()
589 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap()
648 if (mlx4_is_master(dev) && (dev->caps.num_ports == 2) && in mlx4_dev_cap()
663 dev->caps.num_ports; in mlx4_dev_cap()
[all …]

12345678910