| /linux/arch/mips/cavium-octeon/executive/ |
| H 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 …]
|
| H A D | cvmx-helper-util.c | 180 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 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()
|
| H 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 …]
|
| H 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()
|
| /linux/drivers/tty/serial/8250/ |
| H 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,
|
| H A D | 8250_pci.c | 829 if (idx >= board->num_ports) in pci_ni8430_setup() 2093 unsigned int i, num_ports = moxa_get_nports(device); in pci_moxa_init() local 2102 for (i = 0; i < num_ports; ++i) in pci_moxa_init() 2120 return num_ports; in pci_moxa_init() 2134 if (board->num_ports == 4 && idx == 3) in pci_moxa_setup() 3203 .num_ports = 1, 3209 .num_ports = 1, 3215 .num_ports = 2, 3221 .num_ports = 4, 3227 .num_ports = 5, [all …]
|
| H A D | 8250_men_mcb.c | 48 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 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/drivers/interconnect/qcom/ |
| H A D | glymur.c | 650 .num_ports = 1, 692 .num_ports = 1, 707 .num_ports = 1, 722 .num_ports = 1, 746 .num_ports = 1, 762 .num_ports = 4, 778 .num_ports = 1, 794 .num_ports = 2, 810 .num_ports = 2, 826 .num_ports = 4, [all …]
|
| H A D | kaanapali.c | 457 .num_ports = 1, 472 .num_ports = 1, 515 .num_ports = 1, 530 .num_ports = 1, 554 .num_ports = 2, 570 .num_ports = 1, 595 .num_ports = 2, 611 .num_ports = 2, 627 .num_ports = 2, 643 .num_ports = 1, [all …]
|
| H A D | sar2130p.c | 231 .num_ports = 1, 248 .num_ports = 1, 274 .num_ports = 2, 291 .num_ports = 2, 307 .num_ports = 1, 323 .num_ports = 2, 340 .num_ports = 1, 356 .num_ports = 1, 372 .num_ports = 1, 425 .num_ports = 1, [all …]
|
| H A D | sm8650.c | 158 .num_ports = 1, 175 .num_ports = 1, 200 .num_ports = 1, 217 .num_ports = 1, 234 .num_ports = 1, 251 .num_ports = 1, 268 .num_ports = 1, 285 .num_ports = 1, 302 .num_ports = 1, 327 .num_ports = 1, [all …]
|
| H A D | milos.c | 141 .num_ports = 1, 158 .num_ports = 1, 175 .num_ports = 1, 192 .num_ports = 1, 209 .num_ports = 1, 226 .num_ports = 1, 243 .num_ports = 1, 260 .num_ports = 1, 277 .num_ports = 1, 294 .num_ports = 1, [all …]
|
| H A D | sa8775p.c | 217 .num_ports = 1, 232 .num_ports = 1, 247 .num_ports = 1, 262 .num_ports = 1, 277 .num_ports = 1, 292 .num_ports = 1, 307 .num_ports = 1, 322 .num_ports = 1, 337 .num_ports = 1, 352 .num_ports = 1, [all …]
|
| H A D | sm6350.c | 154 .num_ports = 1, 170 .num_ports = 1, 186 .num_ports = 1, 210 .num_ports = 1, 226 .num_ports = 1, 241 .num_ports = 1, 257 .num_ports = 1, 273 .num_ports = 1, 289 .num_ports = 1, 305 .num_ports = 1, [all …]
|
| H A D | sc7280.c | 167 .num_ports = 1, 181 .num_ports = 1, 195 .num_ports = 1, 217 .num_ports = 1, 231 .num_ports = 1, 245 .num_ports = 1, 259 .num_ports = 1, 281 .num_ports = 1, 295 .num_ports = 1, 317 .num_ports = 1, [all …]
|
| /linux/drivers/phy/ti/ |
| H A D | phy-gmii-sel.c | 51 u32 num_ports; member 65 u32 num_ports; member 188 .num_ports = 2, 206 .num_ports = 2, 212 .num_ports = 2, 262 .num_ports = 4, 273 .num_ports = 8, 285 .num_ports = 8, 344 if (phy_id < 1 || phy_id > priv->num_ports) in phy_gmii_sel_of_xlate() 435 priv->num_ports = size / sizeof(u32); in phy_gmii_sel_init_ports() [all …]
|
| /linux/drivers/usb/serial/ |
| H A D | visor.c | 168 .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 …]
|
| H A 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() 569 seq_printf(m, " num_ports:%d", serial->num_ports); in serial_proc_show() 970 int num_ports = 0; in usb_serial_probe() local 1031 num_ports = retval; in usb_serial_probe() 1034 if (!num_ports) in usb_serial_probe() 1035 num_ports = type->num_ports; in usb_serial_probe() 1037 if (num_ports > MAX_NUM_PORTS) { in usb_serial_probe() [all …]
|
| /linux/drivers/usb/typec/ucsi/ |
| H A D | ucsi_huawei_gaokun.c | 71 u8 num_ports; member 102 u8 num_ports; member 163 if (con->num > uec->num_ports) in gaokun_ucsi_update_connector() 188 if (con->num > uec->num_ports) { in gaokun_ucsi_connector_status() 280 uec->num_ports = ureg.num_ports; in gaokun_ucsi_refresh() 283 if (idx < 0 || idx >= ureg.num_ports) in gaokun_ucsi_refresh() 336 while (idx < uec->num_ports) { in gaokun_ucsi_complete_usb_ack() 394 int i, ret, num_ports; in gaokun_ucsi_ports_init() local 398 num_ports = ureg.num_ports; in gaokun_ucsi_ports_init() 399 uec->ports = devm_kcalloc(dev, num_ports, sizeof(*uec->ports), in gaokun_ucsi_ports_init() [all …]
|
| /linux/drivers/slimbus/ |
| H A D | stream.c | 209 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/infiniband/hw/mlx5/ |
| H A D | ib_rep.c | 31 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() 107 u32 num_ports = mlx5_eswitch_get_total_vports(dev); in mlx5_ib_vport_rep_load() local 121 mlx5_ib_num_ports_update(dev, &num_ports); in mlx5_ib_vport_rep_load() 161 ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), in mlx5_ib_vport_rep_load() 172 ibdev->num_ports = num_ports; in mlx5_ib_vport_rep_load() 173 ibdev->ib_dev.phys_port_cnt = num_ports; in mlx5_ib_vport_rep_load() 226 for (i = 0; i < dev->num_ports; i++) { in mlx5_ib_vport_rep_unload() 230 if (WARN_ON(i == dev->num_ports)) in mlx5_ib_vport_rep_unload()
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-spi.h | 53 int num_ports); 98 int timeout, int num_ports); 201 int num_ports);
|
| /linux/drivers/char/ipmi/ |
| H 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()
|