Home
last modified time | relevance | path

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

1234567891011

/OK3568_Linux_fs/kernel/drivers/parport/
H A Dparport_serial.c294 .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 …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/tty/serial/8250/
H A 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 …]
H A D8250_pci.c760 if (idx >= board->num_ports) in pci_ni8430_setup()
1823 if (board->num_ports == 4 && idx == 3) in pci_moxa_setup()
2978 .num_ports = 1,
2984 .num_ports = 1,
2990 .num_ports = 2,
2996 .num_ports = 4,
3002 .num_ports = 5,
3008 .num_ports = 8,
3014 .num_ports = 1,
3020 .num_ports = 2,
[all …]
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_exar.c127 unsigned int num_ports; member
560 if (priv->board->num_ports > 8) in exar_misc_clear()
599 nr_ports = board->num_ports ? board->num_ports : pcidev->device & 0x0f; in exar_pci_probe()
699 .num_ports = 2,
704 .num_ports = 4,
709 .num_ports = 8,
715 .num_ports = 2,
720 .num_ports = 4,
725 .num_ports = 8,
734 .num_ports = 1,
[all …]
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()
/OK3568_Linux_fs/kernel/sound/drivers/
H A Dmtpav.c133 int num_ports; /* number of hw ports (1-8) */ member
170 else if (subdev < chip->num_ports) in translate_subdevice_to_hwport()
172 else if (subdev < chip->num_ports * 2) in translate_subdevice_to_hwport()
173 return subdev - chip->num_ports + 0x09; /* remote port */ in translate_subdevice_to_hwport()
174 else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) in translate_subdevice_to_hwport()
176 else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) in translate_subdevice_to_hwport()
185 return chip->num_ports + MTPAV_PIDX_BROADCAST; in translate_hwport_to_subdevice()
188 if (p >= chip->num_ports) in translate_hwport_to_subdevice()
192 p = hwport - 0x09 + chip->num_ports; in translate_hwport_to_subdevice()
193 if (p >= chip->num_ports * 2) in translate_hwport_to_subdevice()
[all …]
/OK3568_Linux_fs/kernel/drivers/phy/ti/
H A 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 …]
/OK3568_Linux_fs/kernel/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()
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 …]
H A 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()
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 …]
/OK3568_Linux_fs/kernel/drivers/slimbus/
H A 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()
/OK3568_Linux_fs/u-boot/drivers/phy/
H A Dphy-rockchip-inno-usb2.c138 u32 num_ports; member
948 .num_ports = 2,
1001 .num_ports = 2,
1038 .num_ports = 2,
1087 .num_ports = 2,
1134 .num_ports = 2,
1157 .num_ports = 2,
1211 .num_ports = 2,
1265 .num_ports = 2,
1305 .num_ports = 2,
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/chrome/
H A Dcros_ec_typec.c57 int num_ports; member
190 for (i = 0; i < typec->num_ports; i++) { in cros_unregister_ports()
244 if (nports > typec->num_ports) { in cros_typec_init_ports()
258 if (port_num >= typec->num_ports) { in cros_typec_init_ports()
587 if (port_num < 0 || port_num >= typec->num_ports) { in cros_typec_port_update()
669 for (i = 0; i < typec->num_ports; i++) { in cros_typec_port_work()
734 typec->num_ports = resp.num_ports; in cros_typec_probe()
735 if (typec->num_ports > EC_USB_PD_MAX_PORTS) { in cros_typec_probe()
738 typec->num_ports, EC_USB_PD_MAX_PORTS); in cros_typec_probe()
739 typec->num_ports = EC_USB_PD_MAX_PORTS; in cros_typec_probe()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpio/
H A 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()
509 if (port >= gpio->soc->num_ports) in tegra186_gpio_irq_domain_translate()
559 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_child_offset_to_irq()
580 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_init_route_mapping()
663 for (i = 0; i < gpio->soc->num_ports; i++) in tegra186_gpio_probe()
671 for (i = 0, offset = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_probe()
[all …]
/OK3568_Linux_fs/kernel/net/dsa/
H A Dswitch.c22 for (i = 0; i < ds->num_ports; ++i) { in dsa_switch_fastest_ageing_time()
78 for (port = 0; port < ds->num_ports; port++) { in dsa_switch_mtu()
132 for (i = 0; i < ds->num_ports; i++) { in dsa_switch_bridge_leave()
201 for (port = 0; port < ds->num_ports; port++) { in dsa_switch_mdb_prepare()
223 for (port = 0; port < ds->num_ports; port++) in dsa_switch_mdb_add()
262 for (port = 0; port < ds->num_ports; port++) { in dsa_switch_vlan_prepare()
284 for (port = 0; port < ds->num_ports; port++) in dsa_switch_vlan_add()
/OK3568_Linux_fs/kernel/drivers/char/ipmi/
H A Dipmi_si_hardcode.c22 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()
/OK3568_Linux_fs/kernel/arch/mips/include/asm/octeon/
H A Dcvmx-spi.h53 int num_ports);
98 int timeout, int num_ports);
201 int num_ports);
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A 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()
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Dhdac_hdmi.c80 int num_ports; member
134 int num_ports; member
255 int num_ports; in hdac_hdmi_port_select_set() local
261 num_ports = hdac_hdmi_get_port_len(hdev, port->pin->nid); in hdac_hdmi_port_select_set()
262 if (num_ports < 0) in hdac_hdmi_port_select_set()
268 if (num_ports + 1 < port->id) in hdac_hdmi_port_select_set()
1031 int mux_index = hdmi->num_cvt + hdmi->num_ports; in hdac_hdmi_add_pinmux_cvt_route()
1034 for (i = 0; i < hdmi->num_ports; i++) { in hdac_hdmi_add_pinmux_cvt_route()
1082 ((2 * hdmi->num_ports) + hdmi->num_cvt)), in create_fill_widget_route_map()
1102 for (j = 0; j < pin->num_ports; j++) { in create_fill_widget_route_map()
[all …]

1234567891011