/linux/drivers/parport/ |
A D | parport_serial.c | 294 .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 …]
|
/linux/arch/mips/cavium-octeon/executive/ |
A 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 …]
|
A D | cvmx-helper-util.c | 203 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 …]
|
A 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()
|
A 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 …]
|
A 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()
|
A D | cvmx-helper-sgmii.c | 307 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()
|
/linux/drivers/tty/serial/8250/ |
A D | 8250_men_mcb.c | 75 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 …]
|
A D | 8250_pci.c | 2982 .num_ports = 1, 2988 .num_ports = 1, 2994 .num_ports = 2, 3000 .num_ports = 4, 3006 .num_ports = 5, 3012 .num_ports = 8, 3018 .num_ports = 1, 3024 .num_ports = 2, 3030 .num_ports = 4, 3044 .num_ports = 4, [all …]
|
A 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,
|
A D | 8250_exar.c | 726 .num_ports = 2, 731 .num_ports = 4, 736 .num_ports = 8, 742 .num_ports = 2, 747 .num_ports = 4, 752 .num_ports = 8, 761 .num_ports = 1, 775 .num_ports = 2, 781 .num_ports = 4, 787 .num_ports = 8, [all …]
|
A 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()
|
/linux/sound/drivers/ |
A D | mtpav.c | 132 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 …]
|
/linux/drivers/phy/ti/ |
A D | phy-gmii-sel.c | 42 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() 337 for (i = 0; i < priv->num_ports; i++) { in phy_gmii_sel_init_ports() [all …]
|
/linux/drivers/usb/serial/ |
A 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() 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 …]
|
A D | usb-serial.c | 93 for (i = 0; i < num_ports; ++i) { in allocate_minors() 972 int num_ports = 0; in usb_serial_probe() local 1033 num_ports = retval; in usb_serial_probe() 1036 if (!num_ports) in usb_serial_probe() 1037 num_ports = type->num_ports; in usb_serial_probe() 1039 if (num_ports > MAX_NUM_PORTS) { in usb_serial_probe() 1041 num_ports = MAX_NUM_PORTS; in usb_serial_probe() 1044 serial->num_ports = (unsigned char)num_ports; in usb_serial_probe() 1132 serial->num_ports = 0; in usb_serial_probe() 1146 for (i = 0; i < num_ports; ++i) { in usb_serial_probe() [all …]
|
/linux/drivers/slimbus/ |
A 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/drivers/net/dsa/xrs700x/ |
A D | xrs700x.c | 190 priv->ds->num_ports, in xrs700x_setup_regmap_range() 196 priv->ds->num_ports, in xrs700x_setup_regmap_range() 202 priv->ds->num_ports, in xrs700x_setup_regmap_range() 208 priv->ds->num_ports, in xrs700x_setup_regmap_range() 319 for (i = 0; i < ds->num_ports; i++) { in xrs700x_port_add_bpdu_ipf() 363 for (i = 0; i < ds->num_ports; i++) { in xrs700x_port_add_hsrsup_ipf() 393 for (i = 0; i < ds->num_ports; i++) { in xrs700x_port_setup() 426 for (i = 0; i < ds->num_ports; i++) { in xrs700x_setup() 605 val = GENMASK(ds->num_ports - 1, 0); in xrs700x_hsr_join() 673 val = GENMASK(ds->num_ports - 1, 0); in xrs700x_hsr_leave() [all …]
|
/linux/drivers/gpio/ |
A D | gpio-tegra186.c | 68 unsigned int num_ports; member 98 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_get_port() 297 if (port >= gpio->soc->num_ports) { in tegra186_gpio_add_pin_ranges() 330 if (port >= gpio->soc->num_ports) { in tegra186_gpio_of_xlate() 461 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() 581 for (i = 0; i < gpio->soc->num_ports; i++) { in tegra186_gpio_init_route_mapping() 668 for (i = 0; i < gpio->soc->num_ports; i++) in tegra186_gpio_probe() 724 for (i = 0; i < gpio->soc->num_ports; i++) in tegra186_gpio_probe() [all …]
|
/linux/drivers/usb/host/ |
A D | xhci-mem.c | 830 unsigned int num_ports; in xhci_alloc_tt_info() local 835 num_ports = 1; in xhci_alloc_tt_info() 837 num_ports = hdev->maxchild; in xhci_alloc_tt_info() 1838 int i, j, num_ports; in xhci_mem_cleanup() local 2237 rhub->num_ports++; in xhci_add_in_port() 2249 if (!rhub->num_ports) in xhci_create_rhub_port_array() 2279 unsigned int num_ports; in xhci_setup_port_arrays() local 2339 if (xhci->usb2_rhub.num_ports + xhci->usb3_rhub.num_ports == in xhci_setup_port_arrays() 2340 num_ports) in xhci_setup_port_arrays() 2345 if (xhci->usb2_rhub.num_ports == 0 && xhci->usb3_rhub.num_ports == 0) { in xhci_setup_port_arrays() [all …]
|
A 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()
|
/linux/drivers/net/dsa/sja1105/ |
A D | sja1105_main.c | 273 for (i = 0; i < ds->num_ports; i++) { in sja1105_init_mii_settings() 421 for (port = 0; port < ds->num_ports; port++) in sja1105_init_l2_lookup_params() 554 for (to = 0; to < ds->num_ports; to++) { in sja1105_init_l2_forwarding() 574 for (to = 0; to < ds->num_ports; to++) { in sja1105_init_l2_forwarding() 802 general_params->host_port = ds->num_ports; in sja1105_init_topology() 877 .mirr_port = priv->ds->num_ports, in sja1105_init_general_params() 1990 for (i = 0; i < ds->num_ports; i++) { in sja1105_bridge_member() 2217 for (i = 0; i < ds->num_ports; i++) { in sja1105_static_config_reload() 2279 for (i = 0; i < ds->num_ports; i++) { in sja1105_static_config_reload() 2811 new_mirr_port = ds->num_ports; in sja1105_mirror_apply() [all …]
|
/linux/drivers/char/ipmi/ |
A D | ipmi_si_hardcode.c | 22 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/arch/mips/include/asm/octeon/ |
A D | cvmx-spi.h | 53 int num_ports); 98 int timeout, int num_ports); 201 int num_ports);
|
/linux/drivers/infiniband/hw/mlx5/ |
A D | ib_rep.c | 36 u32 num_ports = mlx5_eswitch_get_total_vports(dev); in mlx5_ib_vport_rep_load() local 51 num_ports += peer_num_ports - 1; in mlx5_ib_vport_rep_load() 69 ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), in mlx5_ib_vport_rep_load() 82 ibdev->num_ports = num_ports; in mlx5_ib_vport_rep_load()
|