/Linux-v4.19/drivers/parport/ |
D | parport_serial.c | 286 .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 …]
|
D | daisy.c | 97 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()
|
/Linux-v4.19/arch/mips/cavium-octeon/executive/ |
D | cvmx-interrupt-rsl.c | 80 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 …]
|
D | cvmx-helper-util.c | 266 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument 276 gmx_tx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx() 289 if (num_ports > 4) { in __cvmx_helper_setup_gmx() 296 gmx_rx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx() 306 if (num_ports == 1) in __cvmx_helper_setup_gmx() 308 else if (num_ports == 2) in __cvmx_helper_setup_gmx() 310 else if (num_ports <= 4) in __cvmx_helper_setup_gmx() 312 else if (num_ports <= 8) in __cvmx_helper_setup_gmx() 317 if (num_ports == 1) in __cvmx_helper_setup_gmx() 319 else if (num_ports == 2) in __cvmx_helper_setup_gmx() [all …]
|
D | cvmx-helper-spi.c | 73 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()
|
D | cvmx-helper-rgmii.c | 54 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 …]
|
D | cvmx-helper-loop.c | 51 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()
|
/Linux-v4.19/drivers/tty/serial/8250/ |
D | 8250_men_mcb.c | 74 unsigned int num_ports; in serial_8250_men_mcb_probe() local 85 num_ports = get_num_ports(mdev, membase); in serial_8250_men_mcb_probe() 88 mdev->id, num_ports); in serial_8250_men_mcb_probe() 90 if (num_ports == 0 || num_ports > 4) { in serial_8250_men_mcb_probe() 92 num_ports); in serial_8250_men_mcb_probe() 96 data = devm_kcalloc(&mdev->dev, num_ports, in serial_8250_men_mcb_probe() 104 for (i = 0; i < num_ports; i++) { in serial_8250_men_mcb_probe() 135 unsigned int num_ports, i; in serial_8250_men_mcb_remove() local 141 num_ports = get_num_ports(mdev, data[0].uart.port.membase); in serial_8250_men_mcb_remove() 142 if (num_ports < 0 || num_ports > 4) { in serial_8250_men_mcb_remove() [all …]
|
D | 8250_acorn.c | 26 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,
|
D | 8250_pci.c | 745 if (idx >= board->num_ports) in pci_ni8430_setup() 2609 .num_ports = 1, 2615 .num_ports = 1, 2621 .num_ports = 2, 2627 .num_ports = 4, 2633 .num_ports = 5, 2639 .num_ports = 8, 2645 .num_ports = 1, 2651 .num_ports = 2, 2657 .num_ports = 4, [all …]
|
D | 8250_moxa.c | 31 unsigned int num_ports; member 42 [moxa8250_2p] = { .num_ports = 2}, 43 [moxa8250_4p] = { .num_ports = 4}, 44 [moxa8250_8p] = { .num_ports = 8}, 58 nr_ports = brd->num_ports; in moxa8250_probe() 68 brd->num_ports = nr_ports; in moxa8250_probe() 121 for (i = 0; i < brd->num_ports; i++) in moxa8250_remove()
|
D | 8250_hp300.c | 59 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()
|
D | 8250_exar.c | 116 unsigned int num_ports; member 451 if (priv->board->num_ports > 8) in exar_misc_handler() 476 nr_ports = board->num_ports ? board->num_ports : pcidev->device & 0x0f; in exar_pci_probe() 575 .num_ports = 2, 580 .num_ports = 4, 585 .num_ports = 8, 594 .num_ports = 1, 608 .num_ports = 12, 614 .num_ports = 16,
|
/Linux-v4.19/sound/drivers/ |
D | mtpav.c | 149 int num_ports; /* number of hw ports (1-8) */ member 186 else if (subdev < chip->num_ports) in translate_subdevice_to_hwport() 188 else if (subdev < chip->num_ports * 2) in translate_subdevice_to_hwport() 189 return subdev - chip->num_ports + 0x09; /* remote port */ in translate_subdevice_to_hwport() 190 else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) in translate_subdevice_to_hwport() 192 else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) in translate_subdevice_to_hwport() 201 return chip->num_ports + MTPAV_PIDX_BROADCAST; in translate_hwport_to_subdevice() 204 if (p >= chip->num_ports) in translate_hwport_to_subdevice() 208 p = hwport - 0x09 + chip->num_ports; in translate_hwport_to_subdevice() 209 if (p >= chip->num_ports * 2) in translate_hwport_to_subdevice() [all …]
|
/Linux-v4.19/drivers/usb/serial/ |
D | visor.c | 169 .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 …]
|
D | usb-serial.c | 84 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() 467 seq_printf(m, " num_ports:%d", serial->num_ports); in serial_proc_show() 858 int num_ports = 0; in usb_serial_probe() local 917 num_ports = retval; in usb_serial_probe() 920 if (!num_ports) in usb_serial_probe() 921 num_ports = type->num_ports; in usb_serial_probe() 923 if (num_ports > MAX_NUM_PORTS) { in usb_serial_probe() [all …]
|
/Linux-v4.19/net/dsa/ |
D | switch.c | 24 for (i = 0; i < ds->num_ports; ++i) { in dsa_switch_fastest_ageing_time() 115 for_each_set_bit(port, bitmap, ds->num_ports) { in dsa_switch_mdb_prepare_bitmap() 130 for_each_set_bit(port, bitmap, ds->num_ports) in dsa_switch_mdb_add_bitmap() 142 bitmap_zero(ds->bitmap, ds->num_ports); in dsa_switch_mdb_add() 145 for (port = 0; port < ds->num_ports; port++) in dsa_switch_mdb_add() 181 for_each_set_bit(port, bitmap, ds->num_ports) { in dsa_switch_vlan_prepare_bitmap() 197 for_each_set_bit(port, bitmap, ds->num_ports) in dsa_switch_vlan_add_bitmap() 209 bitmap_zero(ds->bitmap, ds->num_ports); in dsa_switch_vlan_add() 212 for (port = 0; port < ds->num_ports; port++) in dsa_switch_vlan_add()
|
/Linux-v4.19/drivers/slimbus/ |
D | stream.c | 207 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()
|
/Linux-v4.19/arch/mips/include/asm/octeon/ |
D | cvmx-spi.h | 53 int num_ports); 98 int timeout, int num_ports); 201 int num_ports);
|
/Linux-v4.19/drivers/usb/host/ |
D | uhci-platform.c | 107 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()
|
D | xhci-mem.c | 838 unsigned int num_ports; in xhci_alloc_tt_info() local 843 num_ports = 1; in xhci_alloc_tt_info() 845 num_ports = hdev->maxchild; in xhci_alloc_tt_info() 847 for (i = 0; i < num_ports; i++, tt_info++) { in xhci_alloc_tt_info() 1837 int i, j, num_ports; in xhci_mem_cleanup() local 1857 num_ports = HCS_MAX_PORTS(xhci->hcs_params1); in xhci_mem_cleanup() 1858 for (i = 0; i < num_ports && xhci->rh_bw; i++) { in xhci_mem_cleanup() 1898 for (i = 0; i < num_ports; i++) { in xhci_mem_cleanup() 1908 xhci->usb2_rhub.num_ports = 0; in xhci_mem_cleanup() 1909 xhci->usb3_rhub.num_ports = 0; in xhci_mem_cleanup() [all …]
|
/Linux-v4.19/drivers/gpio/ |
D | gpio-tegra186.c | 57 unsigned int num_ports; member 77 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_get_port() 226 if (port >= gpio->soc->num_ports) { in tegra186_gpio_of_xlate() 346 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_irq() 388 if (port >= gpio->soc->num_ports) { in tegra186_gpio_irq_domain_xlate() 458 for (i = 0; i < gpio->soc->num_ports; i++) in tegra186_gpio_probe() 466 for (i = 0, offset = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_probe() 509 for (i = 0, offset = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_probe() 567 .num_ports = ARRAY_SIZE(tegra186_main_ports), 592 .num_ports = ARRAY_SIZE(tegra186_aon_ports), [all …]
|
/Linux-v4.19/drivers/soc/fsl/qe/ |
D | qe_io.c | 37 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()
|
/Linux-v4.19/sound/soc/codecs/ |
D | hdac_hdmi.c | 87 int num_ports; member 138 int num_ports; member 241 int num_ports; in hdac_hdmi_port_select_set() local 247 num_ports = hdac_hdmi_get_port_len(hdev, port->pin->nid); in hdac_hdmi_port_select_set() 248 if (num_ports < 0) in hdac_hdmi_port_select_set() 254 if (num_ports + 1 < port->id) in hdac_hdmi_port_select_set() 999 int mux_index = hdmi->num_cvt + hdmi->num_ports; in hdac_hdmi_add_pinmux_cvt_route() 1002 for (i = 0; i < hdmi->num_ports; i++) { in hdac_hdmi_add_pinmux_cvt_route() 1050 ((2 * hdmi->num_ports) + hdmi->num_cvt)), in create_fill_widget_route_map() 1070 for (j = 0; j < pin->num_ports; j++) { in create_fill_widget_route_map() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | vxlan.c | 44 int num_ports; member 120 if (vxlan->num_ports >= mlx5_vxlan_max_udp_ports(vxlan->mdev)) { in mlx5_vxlan_add_port() 145 vxlan->num_ports++; in mlx5_vxlan_add_port() 183 vxlan->num_ports--; in mlx5_vxlan_del_port()
|