Home
last modified time | relevance | path

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

1234567

/drivers/parport/
Dparport_serial.c286 .num_ports = 1,
292 .num_ports = 2,
298 .num_ports = 1,
304 .num_ports = 1,
310 .num_ports = 1,
316 .num_ports = 1,
322 .num_ports = 0,
328 .num_ports = 0,
334 .num_ports = 1,
340 .num_ports = 1,
[all …]
Ddaisy.c97 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/
D8250_pci.c748 if (idx >= board->num_ports) in pci_ni8430_setup()
2720 .num_ports = 1,
2726 .num_ports = 1,
2732 .num_ports = 2,
2738 .num_ports = 4,
2744 .num_ports = 5,
2750 .num_ports = 8,
2756 .num_ports = 1,
2762 .num_ports = 2,
2768 .num_ports = 4,
[all …]
D8250_acorn.c29 unsigned int num_ports; member
36 unsigned int num_ports; member
54 info->num_ports = type->num_ports; in serial_card_probe()
73 for (i = 0; i < info->num_ports; i++) { in serial_card_probe()
90 for (i = 0; i < info->num_ports; i++) in serial_card_remove()
98 .num_ports = 3,
105 .num_ports = 2,
D8250_moxa.c34 unsigned int num_ports; member
45 [moxa8250_2p] = { .num_ports = 2},
46 [moxa8250_4p] = { .num_ports = 4},
47 [moxa8250_8p] = { .num_ports = 8},
61 nr_ports = brd->num_ports; in moxa8250_probe()
71 brd->num_ports = nr_ports; in moxa8250_probe()
124 for (i = 0; i < brd->num_ports; i++) in moxa8250_remove()
D8250_exar.c125 unsigned int num_ports; member
450 if (priv->board->num_ports > 8) in exar_misc_handler()
475 nr_ports = board->num_ports ? board->num_ports : pcidev->device & 0x0f; in exar_pci_probe()
574 .num_ports = 2,
579 .num_ports = 4,
584 .num_ports = 8,
590 .num_ports = 2,
595 .num_ports = 4,
600 .num_ports = 8,
609 .num_ports = 1,
[all …]
D8250_hp300.c58 static unsigned int num_ports; variable
196 num_ports++; in hpdca_init_one()
224 if (!num_ports) in hp300_8250_init()
275 num_ports++; in hp300_8250_init()
280 if (!num_ports) in hp300_8250_init()
/drivers/usb/serial/
Dvisor.c172 .num_ports = 2,
191 .num_ports = 2,
211 .num_ports = 1,
323 int num_ports = 0; in palm_os_3_probe() local
349 num_ports = le16_to_cpu(connection_info->num_ports); in palm_os_3_probe()
352 if (num_ports == 0 || num_ports > 2) { in palm_os_3_probe()
355 num_ports = 2; in palm_os_3_probe()
358 for (i = 0; i < num_ports; ++i) { in palm_os_3_probe()
384 num_ports); in palm_os_3_probe()
390 usb_set_serial_data(serial, (void *)(long)num_ports); in palm_os_3_probe()
[all …]
Dusb-serial.c87 static int allocate_minors(struct usb_serial *serial, int num_ports) in allocate_minors() argument
93 dev_dbg(&serial->interface->dev, "%s %d\n", __func__, num_ports); in allocate_minors()
96 for (i = 0; i < num_ports; ++i) { in allocate_minors()
121 for (i = 0; i < serial->num_ports; ++i) in release_minors()
467 seq_printf(m, " num_ports:%d", serial->num_ports); in serial_proc_show()
871 int num_ports = 0; in usb_serial_probe() local
930 num_ports = retval; in usb_serial_probe()
933 if (!num_ports) in usb_serial_probe()
934 num_ports = type->num_ports; in usb_serial_probe()
936 if (num_ports > MAX_NUM_PORTS) { in usb_serial_probe()
[all …]
Dmxuport.c493 if (rcv_port >= serial->num_ports) { in mxuport_process_read_urb_demux_data()
540 if (rcv_port >= serial->num_ports) { in mxuport_process_read_urb_demux_event()
953 int num_ports; in mxuport_calc_num_ports() local
957 num_ports = 2; in mxuport_calc_num_ports()
959 num_ports = 4; in mxuport_calc_num_ports()
961 num_ports = 8; in mxuport_calc_num_ports()
963 num_ports = 16; in mxuport_calc_num_ports()
967 num_ports = 2; in mxuport_calc_num_ports()
976 for (i = 1; i < num_ports; ++i) in mxuport_calc_num_ports()
979 epds->num_bulk_out = num_ports; in mxuport_calc_num_ports()
[all …]
Dvisor.h105 __le16 num_ports; member
149 __u8 num_ports; member
Dusb_debug.c81 .num_ports = 1,
93 .num_ports = 1,
Dkeyspan.c166 int num_ports; member
213 .num_ports = 1,
230 .num_ports = 1,
247 .num_ports = 1,
264 .num_ports = 1,
281 .num_ports = 1,
298 .num_ports = 1,
315 .num_ports = 1,
332 .num_ports = 2,
349 .num_ports = 2,
[all …]
Dsierra.c91 int num_ports = 0; in sierra_calc_num_ports() local
99 num_ports = 0; in sierra_calc_num_ports()
101 num_ports = 1; in sierra_calc_num_ports()
103 num_ports = (numendpoints-1)/2; in sierra_calc_num_ports()
104 return num_ports; in sierra_calc_num_ports()
327 if (serial->num_ports == 1) { in sierra_send_setup()
900 if (serial->num_ports == 1) { in sierra_port_probe()
945 for (i = 0; i < serial->num_ports; ++i) { in stop_read_write_urbs()
1022 for (i = 0; i < serial->num_ports; i++) { in sierra_resume()
/drivers/usb/host/
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/soc/fsl/qe/
Dqe_io.c37 const u32 *num_ports; in par_io_init() local
45 num_ports = of_get_property(np, "num-ports", NULL); in par_io_init()
46 if (num_ports) in par_io_init()
47 num_par_io_ports = *num_ports; in par_io_init()
/drivers/net/ethernet/netronome/nfp/flower/
Dcmsg.c81 nfp_flower_cmsg_mac_repr_start(struct nfp_app *app, unsigned int num_ports) in nfp_flower_cmsg_mac_repr_start() argument
87 size = sizeof(*msg) + num_ports * sizeof(msg->ports[0]); in nfp_flower_cmsg_mac_repr_start()
94 msg->num_ports = num_ports; in nfp_flower_cmsg_mac_repr_start()
/drivers/video/fbdev/omap2/omapfb/dss/
Ddss.c76 int num_ports; member
833 .num_ports = ARRAY_SIZE(omap2plus_ports),
842 .num_ports = ARRAY_SIZE(omap34xx_ports),
851 .num_ports = ARRAY_SIZE(omap2plus_ports),
860 .num_ports = ARRAY_SIZE(omap2plus_ports),
869 .num_ports = ARRAY_SIZE(omap2plus_ports),
878 .num_ports = ARRAY_SIZE(omap2plus_ports),
887 .num_ports = ARRAY_SIZE(dra7xx_ports),
959 if (dss.feat->num_ports == 0) in dss_init_ports()
970 if (reg >= dss.feat->num_ports) in dss_init_ports()
[all …]
/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.c199 for (i = 0; i < dev->caps.num_ports - 1; i++) { in mlx4_check_port_params()
207 for (i = 0; i < dev->caps.num_ports; i++) { in mlx4_check_port_params()
221 for (i = 1; i <= dev->caps.num_ports; ++i) in mlx4_set_port_mask()
360 if (dev_cap->num_ports > MLX4_MAX_PORTS) { in mlx4_dev_cap()
362 dev_cap->num_ports, MLX4_MAX_PORTS); in mlx4_dev_cap()
374 dev->caps.num_ports = dev_cap->num_ports; in mlx4_dev_cap()
379 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap()
474 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap()
533 if (mlx4_is_master(dev) && (dev->caps.num_ports == 2) && in mlx4_dev_cap()
548 dev->caps.num_ports; in mlx4_dev_cap()
[all …]
/drivers/firewire/
Dinit_ohci1394_dma.c120 int num_ports, i; in init_ohci1394_initialize() local
169 num_ports = get_phy_reg(ohci, 2) & 0xf; in init_ohci1394_initialize()
170 for (i = 0; i < num_ports; i++) { in init_ohci1394_initialize()
/drivers/gpio/
Dgpio-etraxfs.c82 unsigned int num_ports; member
131 .num_ports = ARRAY_SIZE(etraxfs_gpio_etraxfs_ports),
169 .num_ports = ARRAY_SIZE(etraxfs_gpio_artpec3_ports),
383 chips = devm_kzalloc(dev, sizeof(*chips) * info->num_ports, GFP_KERNEL); in etraxfs_gpio_probe()
414 for (i = 0; i < info->num_ports; i++) { in etraxfs_gpio_probe()
Dgpio-ml-ioh.c104 static const int num_ports[] = {6, 12, 16, 16, 15, 16, 16, 12}; variable
140 ((1 << num_ports[chip->ch]) - 1); in ioh_gpio_direction_output()
164 ((1 << num_ports[chip->ch]) - 1); in ioh_gpio_direction_input()
373 for (j = 0; j < num_ports[i]; j++) { in ioh_gpio_handler()
460 ioh_gpio_setup(chip, num_ports[i]); in ioh_gpio_probe()
471 num_ports[j], NUMA_NO_NODE); in ioh_gpio_probe()
481 irq_base, num_ports[j]); in ioh_gpio_probe()
/drivers/hsi/controllers/
Domap_ssi_core.c316 for (i = 0; i < ssi->num_ports; i++) { in ssi_clk_event()
339 for (i = 0; i < ssi->num_ports; i++) { in ssi_clk_event()
422 omap_ssi->port = devm_kcalloc(&ssi->device, ssi->num_ports, in ssi_add_controller()
523 int num_ports; in ssi_probe() local
530 num_ports = ssi_of_get_available_ports_count(np); in ssi_probe()
532 ssi = hsi_alloc_controller(num_ports, GFP_KERNEL); in ssi_probe()
568 ssi->id, num_ports); in ssi_probe()
/drivers/gpu/drm/omapdrm/dss/
Ddss.c87 int num_ports; member
1080 .num_ports = ARRAY_SIZE(omap2plus_ports),
1095 .num_ports = ARRAY_SIZE(omap34xx_ports),
1108 .num_ports = ARRAY_SIZE(omap2plus_ports),
1122 .num_ports = ARRAY_SIZE(omap2plus_ports),
1136 .num_ports = ARRAY_SIZE(omap2plus_ports),
1150 .num_ports = ARRAY_SIZE(omap2plus_ports),
1164 .num_ports = ARRAY_SIZE(dra7xx_ports),
1177 for (i = 0; i < dss.feat->num_ports; i++) { in dss_init_ports()
1203 for (i = 0; i < dss.feat->num_ports; i++) { in dss_uninit_ports()

1234567