Home
last modified time | relevance | path

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

12345678910

/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 …]
/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.c180 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument
190 gmx_tx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx()
203 if (num_ports > 4) { in __cvmx_helper_setup_gmx()
210 gmx_rx_prts.s.prts = num_ports; 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()
[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()
H A Dcvmx-helper-sgmii.c307 static int __cvmx_helper_sgmii_hardware_init(int interface, int num_ports) in __cvmx_helper_sgmii_hardware_init() argument
311 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_sgmii_hardware_init()
313 for (index = 0; index < num_ports; index++) { in __cvmx_helper_sgmii_hardware_init()
368 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_sgmii_enable() local
371 __cvmx_helper_sgmii_hardware_init(interface, num_ports); in __cvmx_helper_sgmii_enable()
373 for (index = 0; index < num_ports; index++) { in __cvmx_helper_sgmii_enable()
H A Dcvmx-spi.c106 int num_ports) in cvmx_spi_start_interface() argument
118 num_ports); in cvmx_spi_start_interface()
312 int num_ports) in cvmx_spi_calendar_setup_cb() argument
322 srxx_com_ctl.s.prts = num_ports - 1; in cvmx_spi_calendar_setup_cb()
330 while (port < num_ports) { in cvmx_spi_calendar_setup_cb()
344 srxx_spi4_stat.s.len = num_ports; in cvmx_spi_calendar_setup_cb()
393 while (port < num_ports) { in cvmx_spi_calendar_setup_cb()
407 stxx_spi4_stat.s.len = num_ports; in cvmx_spi_calendar_setup_cb()
/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()
172 return subdev - chip->num_ports + 0x09; /* remote port */ in translate_subdevice_to_hwport()
173 else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) in translate_subdevice_to_hwport()
175 else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) 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()
[all …]
/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.c822 if (idx >= board->num_ports) in pci_ni8430_setup()
2086 unsigned int i, num_ports = moxa_get_nports(device); in pci_moxa_init() local
2095 for (i = 0; i < num_ports; ++i) in pci_moxa_init()
2113 return num_ports; in pci_moxa_init()
2127 if (board->num_ports == 4 && idx == 3) in pci_moxa_setup()
3180 .num_ports = 1,
3186 .num_ports = 1,
3192 .num_ports = 2,
3198 .num_ports = 4,
3204 .num_ports = 5,
[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()
/linux/drivers/infiniband/hw/mlx5/
H A Dib_rep.c31 static void mlx5_ib_num_ports_update(struct mlx5_core_dev *dev, u32 *num_ports) in mlx5_ib_num_ports_update() argument
40 *num_ports += peer_num_ports; in mlx5_ib_num_ports_update()
43 *num_ports += peer_num_ports - 1; in mlx5_ib_num_ports_update()
50 u32 num_ports = mlx5_eswitch_get_total_vports(dev); in mlx5_ib_vport_rep_load() local
64 mlx5_ib_num_ports_update(dev, &num_ports); in mlx5_ib_vport_rep_load()
95 ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), in mlx5_ib_vport_rep_load()
106 ibdev->num_ports = num_ports; in mlx5_ib_vport_rep_load()
107 ibdev->ib_dev.phys_port_cnt = num_ports; in mlx5_ib_vport_rep_load()
156 for (i = 0; i < dev->num_ports; i++) { in mlx5_ib_vport_rep_unload()
160 if (WARN_ON(i == dev->num_ports)) in mlx5_ib_vport_rep_unload()
/linux/drivers/usb/serial/
H A Dvisor.c168 .num_ports = 2,
186 .num_ports = 2,
205 .num_ports = 1,
317 int num_ports = 0; in palm_os_3_probe() local
343 num_ports = le16_to_cpu(connection_info->num_ports); in palm_os_3_probe()
346 if (num_ports == 0 || num_ports > 2) { in palm_os_3_probe()
349 num_ports = 2; in palm_os_3_probe()
352 for (i = 0; i < num_ports; ++i) { in palm_os_3_probe()
378 num_ports); in palm_os_3_probe()
384 usb_set_serial_data(serial, (void *)(long)num_ports); in palm_os_3_probe()
[all …]
/linux/drivers/slimbus/
H A Dstream.c209 int num_ports, i, port_id, prrate; in slim_stream_prepare() local
216 num_ports = hweight32(cfg->port_mask); in slim_stream_prepare()
217 rt->ports = kcalloc(num_ports, sizeof(*port), GFP_KERNEL); in slim_stream_prepare()
221 rt->num_ports = num_ports; in slim_stream_prepare()
371 for (i = 0; i < stream->num_ports; i++) in slim_stream_enable()
382 for (i = 0; i < stream->num_ports; i++) { in slim_stream_enable()
389 for (i = 0; i < stream->num_ports; i++) { in slim_stream_enable()
419 if (!stream->ports || !stream->num_ports) in slim_stream_disable()
429 for (i = 0; i < stream->num_ports; i++) in slim_stream_disable()
453 if (!stream->ports || !stream->num_ports) in slim_stream_unprepare()
[all …]
/linux/drivers/usb/host/
H A Dxhci-mem.c800 unsigned int num_ports; in xhci_alloc_tt_info() local
805 num_ports = 1; in xhci_alloc_tt_info()
807 num_ports = hdev->maxchild; in xhci_alloc_tt_info()
809 for (i = 0; i < num_ports; i++, tt_info++) { in xhci_alloc_tt_info()
1865 int i, j, num_ports; in xhci_mem_cleanup() local
1884 num_ports = HCS_MAX_PORTS(xhci->hcs_params1); in xhci_mem_cleanup()
1885 for (i = 0; i < num_ports && xhci->rh_bw; i++) { in xhci_mem_cleanup()
1925 for (i = 0; i < num_ports; i++) { in xhci_mem_cleanup()
1935 xhci->usb2_rhub.num_ports = 0; in xhci_mem_cleanup()
1936 xhci->usb3_rhub.num_ports = 0; in xhci_mem_cleanup()
[all …]
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-spi.h53 int num_ports);
98 int timeout, int num_ports);
201 int num_ports);
/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()
/linux/drivers/power/supply/
H A Dcros_peripheral_charger.c272 int num_ports; in cros_pchg_probe() local
303 num_ports = ret; in cros_pchg_probe()
304 if (num_ports > EC_PCHG_MAX_PORTS) { in cros_pchg_probe()
306 num_ports); in cros_pchg_probe()
310 dev_info(dev, "%d peripheral charge ports found\n", num_ports); in cros_pchg_probe()
312 for (i = 0; i < num_ports; i++) { in cros_pchg_probe()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/
H A Dbridge_tracepoint.h121 __field(int, num_ports)
127 __entry->num_ports = mdb->num_ports;
133 __entry->num_ports,
/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()
/linux/sound/soc/codecs/
H A Dhdac_hdmi.c81 int num_ports; member
135 int num_ports; member
256 int num_ports; in hdac_hdmi_port_select_set() local
262 num_ports = hdac_hdmi_get_port_len(hdev, port->pin->nid); in hdac_hdmi_port_select_set()
263 if (num_ports < 0) in hdac_hdmi_port_select_set()
269 if (num_ports + 1 < port->id) in hdac_hdmi_port_select_set()
1039 int mux_index = hdmi->num_cvt + hdmi->num_ports; in hdac_hdmi_add_pinmux_cvt_route()
1042 for (i = 0; i < hdmi->num_ports; i++) { in hdac_hdmi_add_pinmux_cvt_route()
1090 ((2 * hdmi->num_ports) + hdmi->num_cvt)), in create_fill_widget_route_map()
1110 for (j = 0; j < pin->num_ports; j++) { in create_fill_widget_route_map()
[all …]
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Ddss.c67 int num_ports; member
825 .num_ports = ARRAY_SIZE(omap2plus_ports),
834 .num_ports = ARRAY_SIZE(omap34xx_ports),
843 .num_ports = ARRAY_SIZE(omap2plus_ports),
852 .num_ports = ARRAY_SIZE(omap2plus_ports),
861 .num_ports = ARRAY_SIZE(omap2plus_ports),
870 .num_ports = ARRAY_SIZE(omap2plus_ports),
879 .num_ports = ARRAY_SIZE(dra7xx_ports),
927 if (dss.feat->num_ports == 0) in dss_init_ports()
938 if (reg >= dss.feat->num_ports) in dss_init_ports()
[all …]
/linux/drivers/net/dsa/sja1105/
H A 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 …]

12345678910