Home
last modified time | relevance | path

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

12345678910>>...13

/openbmc/linux/drivers/parport/
H A 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 …]
/openbmc/linux/arch/mips/cavium-octeon/executive/
H A Dcvmx-interrupt-rsl.c80 int num_ports; in __cvmx_interrupt_gmxx_enable() local
89 num_ports = 1; in __cvmx_interrupt_gmxx_enable()
93 num_ports = 4; in __cvmx_interrupt_gmxx_enable()
96 num_ports = 0; in __cvmx_interrupt_gmxx_enable()
100 num_ports = 0; in __cvmx_interrupt_gmxx_enable()
111 num_ports = 1; in __cvmx_interrupt_gmxx_enable()
113 num_ports = 4; in __cvmx_interrupt_gmxx_enable()
121 num_ports = 2; in __cvmx_interrupt_gmxx_enable()
123 num_ports = 3; in __cvmx_interrupt_gmxx_enable()
126 num_ports = 0; in __cvmx_interrupt_gmxx_enable()
[all …]
H A Dcvmx-helper-util.c203 if (num_ports > 4) { in __cvmx_helper_setup_gmx()
220 if (num_ports == 1) in __cvmx_helper_setup_gmx()
222 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
224 else if (num_ports <= 4) in __cvmx_helper_setup_gmx()
226 else if (num_ports <= 8) in __cvmx_helper_setup_gmx()
231 if (num_ports == 1) in __cvmx_helper_setup_gmx()
233 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
259 if (num_ports <= 1) in __cvmx_helper_setup_gmx()
261 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
270 if (num_ports > 4) in __cvmx_helper_setup_gmx()
[all …]
H A Dcvmx-helper-spi.c73 int num_ports = 0; in __cvmx_helper_spi_probe() local
77 num_ports = 10; in __cvmx_helper_spi_probe()
80 num_ports = 16; in __cvmx_helper_spi_probe()
91 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe()
92 return num_ports; in __cvmx_helper_spi_probe()
111 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable() local
113 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable()
123 CVMX_HELPER_SPI_TIMEOUT, num_ports); in __cvmx_helper_spi_enable()
H A Dcvmx-helper-rgmii.c54 int num_ports = 0; in __cvmx_helper_rgmii_probe() local
70 num_ports = 2; in __cvmx_helper_rgmii_probe()
78 num_ports = 4; in __cvmx_helper_rgmii_probe()
82 num_ports = 3; in __cvmx_helper_rgmii_probe()
88 return num_ports; in __cvmx_helper_rgmii_probe()
161 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_rgmii_enable() local
179 asx_tx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable()
183 asx_rx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable()
187 for (port = 0; port < num_ports; port++) { in __cvmx_helper_rgmii_enable()
236 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_rgmii_enable()
[all …]
H A Dcvmx-helper-loop.c51 int num_ports = 4; in __cvmx_helper_loop_probe() local
56 for (port = 0; port < num_ports; port++) { in __cvmx_helper_loop_probe()
69 return num_ports; in __cvmx_helper_loop_probe()
/openbmc/linux/drivers/tty/serial/8250/
H A 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,
H A D8250_pci.c3022 .num_ports = 1,
3028 .num_ports = 1,
3034 .num_ports = 2,
3040 .num_ports = 4,
3046 .num_ports = 5,
3052 .num_ports = 8,
3058 .num_ports = 1,
3064 .num_ports = 2,
3070 .num_ports = 4,
3084 .num_ports = 4,
[all …]
H A D8250_men_mcb.c48 int num_ports; member
159 serial_data->num_ports = count; in read_serial_data()
170 serial_data->num_ports = 1; in init_serial_data()
206 mdev->id, data->num_ports); in serial_8250_men_mcb_probe()
210 for (i = 0; i < data->num_ports; i++) { in serial_8250_men_mcb_probe()
246 for (i = 0; i < data->num_ports; i++) in serial_8250_men_mcb_remove()
H A 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()
H A D8250_exar.c182 unsigned int num_ports; member
696 else if (board->num_ports) in exar_pci_probe()
798 .num_ports = 2,
803 .num_ports = 4,
808 .num_ports = 8,
817 .num_ports = 1,
831 .num_ports = 2,
837 .num_ports = 4,
843 .num_ports = 8,
849 .num_ports = 12,
[all …]
/openbmc/linux/sound/drivers/
H A Dmtpav.c132 int num_ports; /* number of hw ports (1-8) */ member
169 else if (subdev < chip->num_ports) in translate_subdevice_to_hwport()
171 else if (subdev < chip->num_ports * 2) in translate_subdevice_to_hwport()
184 return chip->num_ports + MTPAV_PIDX_BROADCAST; in translate_hwport_to_subdevice()
187 if (p >= chip->num_ports) in translate_hwport_to_subdevice()
191 p = hwport - 0x09 + chip->num_ports; in translate_hwport_to_subdevice()
192 if (p >= chip->num_ports * 2) in translate_hwport_to_subdevice()
193 p = chip->num_ports; in translate_hwport_to_subdevice()
196 return chip->num_ports + MTPAV_PIDX_COMPUTER; in translate_hwport_to_subdevice()
198 return chip->num_ports + MTPAV_PIDX_ADAT; in translate_hwport_to_subdevice()
[all …]
/openbmc/linux/drivers/phy/ti/
H A Dphy-gmii-sel.c50 u32 num_ports; member
64 u32 num_ports; member
182 .num_ports = 2,
200 .num_ports = 2,
206 .num_ports = 2,
234 .num_ports = 4,
243 .num_ports = 8,
253 .num_ports = 8,
312 if (phy_id > priv->num_ports) in phy_gmii_sel_of_xlate()
404 if (!priv->num_ports) in phy_gmii_sel_init_ports()
[all …]
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dib_rep.c33 static void mlx5_ib_num_ports_update(struct mlx5_core_dev *dev, u32 *num_ports) in mlx5_ib_num_ports_update() argument
42 *num_ports += peer_num_ports; in mlx5_ib_num_ports_update()
45 *num_ports += peer_num_ports - 1; in mlx5_ib_num_ports_update()
52 u32 num_ports = mlx5_eswitch_get_total_vports(dev); in mlx5_ib_vport_rep_load() local
66 mlx5_ib_num_ports_update(dev, &num_ports); in mlx5_ib_vport_rep_load()
97 ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), in mlx5_ib_vport_rep_load()
110 ibdev->num_ports = num_ports; in mlx5_ib_vport_rep_load()
153 for (i = 0; i < dev->num_ports; i++) { in mlx5_ib_vport_rep_unload()
157 if (WARN_ON(i == dev->num_ports)) in mlx5_ib_vport_rep_unload()
/openbmc/qemu/hw/usb/
H A Ddev-hub.c48 uint32_t num_ports; member
219 for (i = 0; i < s->num_ports; i++) { in usb_hub_port_update_timer()
296 for (i = 0; i < s->num_ports; i++) { in usb_hub_find_device()
316 for (i = 0; i < s->num_ports; i++) { in usb_hub_handle_reset()
381 if (n >= s->num_ports) { in usb_hub_handle_control()
410 if (n >= s->num_ports) { in usb_hub_handle_control()
448 if (n >= s->num_ports) { in usb_hub_handle_control()
492 data[2] = s->num_ports; in usb_hub_handle_control()
574 for (i = 0; i < s->num_ports; i++) { in usb_hub_unrealize()
596 if (s->num_ports < 1 || s->num_ports > MAX_PORTS) { in usb_hub_realize()
[all …]
H A Dhcd-ohci.h44 uint32_t num_ports; member
108 uint32_t num_ports; member
115 void usb_ohci_init(OHCIState *ohci, DeviceState *dev, uint32_t num_ports,
/openbmc/linux/drivers/usb/serial/
H A 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()
381 num_ports); in palm_os_3_probe()
473 if (num_ports) in visor_calc_num_ports()
499 return num_ports; in visor_calc_num_ports()
[all …]
/openbmc/linux/drivers/slimbus/
H A Dstream.c207 int num_ports, i, port_id, prrate; in slim_stream_prepare() local
214 num_ports = hweight32(cfg->port_mask); in slim_stream_prepare()
219 rt->num_ports = num_ports; in slim_stream_prepare()
369 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()
387 for (i = 0; i < stream->num_ports; i++) { in slim_stream_enable()
417 if (!stream->ports || !stream->num_ports) in slim_stream_disable()
427 for (i = 0; i < stream->num_ports; i++) in slim_stream_disable()
451 if (!stream->ports || !stream->num_ports) in slim_stream_unprepare()
454 for (i = 0; i < stream->num_ports; i++) in slim_stream_unprepare()
[all …]
/openbmc/u-boot/drivers/net/
H A Dbcm6368-eth.c131 uint8_t num_ports; member
219 for (i = 0; i < priv->num_ports; i++) { in bcm6368_eth_adjust_link()
313 for (i = 0; i < priv->num_ports; i++) { in bcm6368_eth_start()
322 for (i = ETH_RGMII_PORT0; i < priv->num_ports; i++) { in bcm6368_eth_start()
364 for (i = 0; i < priv->num_ports; i++) { in bcm6368_eth_start()
411 for (i = 0; i < priv->num_ports; i++) { in bcm6368_eth_stop()
458 for (i = 0; i < priv->num_ports; ++i) { in bcm6368_phy_is_external()
508 int num_ports, ret, i; in bcm6368_eth_probe() local
519 if (!num_ports || num_ports > ETH_MAX_PORT) in bcm6368_eth_probe()
576 priv->num_ports = num_ports; in bcm6368_eth_probe()
[all …]
/openbmc/linux/drivers/net/dsa/xrs700x/
H A Dxrs700x.c192 priv->ds->num_ports, in xrs700x_setup_regmap_range()
198 priv->ds->num_ports, in xrs700x_setup_regmap_range()
204 priv->ds->num_ports, in xrs700x_setup_regmap_range()
210 priv->ds->num_ports, in xrs700x_setup_regmap_range()
321 for (i = 0; i < ds->num_ports; i++) { in xrs700x_port_add_bpdu_ipf()
365 for (i = 0; i < ds->num_ports; i++) { in xrs700x_port_add_hsrsup_ipf()
395 for (i = 0; i < ds->num_ports; i++) { in xrs700x_port_setup()
428 for (i = 0; i < ds->num_ports; i++) { in xrs700x_setup()
601 val = GENMASK(ds->num_ports - 1, 0); in xrs700x_hsr_join()
669 val = GENMASK(ds->num_ports - 1, 0); in xrs700x_hsr_leave()
[all …]
/openbmc/linux/arch/mips/include/asm/octeon/
H A Dcvmx-spi.h53 int num_ports);
98 int timeout, int num_ports);
201 int num_ports);
/openbmc/linux/drivers/char/ipmi/
H A 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()
/openbmc/linux/drivers/usb/host/
H A Duhci-platform.c106 u32 num_ports; in uhci_hcd_platform_probe() local
108 if (of_property_read_u32(np, "#ports", &num_ports) == 0) { in uhci_hcd_platform_probe()
109 uhci->rh_numports = num_ports; in uhci_hcd_platform_probe()
112 num_ports); in uhci_hcd_platform_probe()
/openbmc/linux/drivers/gpio/
H A Dgpio-tegra186.c84 unsigned int num_ports; member
115 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_get_port()
444 if (port >= gpio->soc->num_ports) { in tegra186_gpio_add_pin_ranges()
477 if (port >= gpio->soc->num_ports) { in tegra186_gpio_of_xlate()
636 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_irq()
684 if (port >= gpio->soc->num_ports) in tegra186_gpio_irq_domain_translate()
731 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_child_offset_to_irq()
754 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_init_route_mapping()
837 for (i = 0; i < gpio->soc->num_ports; i++) in tegra186_gpio_probe()
898 for (i = 0; i < gpio->soc->num_ports; i++) in tegra186_gpio_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_encoder.c29 unsigned int num_ports = 0; in rcar_du_encoder_count_ports() local
37 num_ports++; in rcar_du_encoder_count_ports()
42 return num_ports; in rcar_du_encoder_count_ports()

12345678910>>...13