Searched refs:port_cnt (Results 1 - 10 of 10) sorted by relevance

/linux-4.1.27/drivers/tty/serial/
H A Dmux.c53 static unsigned int port_cnt __read_mostly;
382 for(i = 0; i < port_cnt; ++i) { mux_poll()
471 if(!port_cnt) { mux_probe()
481 for(i = 0; i < port_count; ++i, ++port_cnt) { mux_probe()
482 struct uart_port *port = &mux_ports[port_cnt].port; mux_probe()
494 port->line = port_cnt; mux_probe()
517 for(i = 0; i < port_cnt; ++i) { mux_remove()
521 BUG_ON(i + port_count > port_cnt); mux_remove()
582 if(port_cnt > 0) { mux_init()
604 if(port_cnt > 0) { mux_exit()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Den_main.c277 mdev->port_cnt = 0; mlx4_en_add()
279 mdev->port_cnt++; mlx4_en_add()
H A Dmlx4_en.h394 u32 port_cnt; member in struct:mlx4_en_dev
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_file_ops.c1611 if (!pd->port_cnt) { try_alloc_port()
1619 pd->port_cnt = 1; try_alloc_port()
1793 if (!pd || !pd->port_cnt) find_shared_port()
1801 pd->port_cnt >= pd->port_subport_cnt) { find_shared_port()
1806 subport_fp(fp) = pd->port_cnt++; find_shared_port()
2076 if (--pd->port_cnt) { ipath_close()
H A Dipath_intr.c607 if (!pd || !pd->port_cnt) handle_hdrq_full()
1041 if (portr & (1 << i) && pd && pd->port_cnt) { handle_urcv()
H A Dipath_kernel.h109 int port_cnt; member in struct:ipath_portdata
480 /* around ipath_pd and (user ports) port_cnt use (intr vs free) */
H A Dipath_init_chip.c218 pd->port_cnt = 1; create_portdata0()
H A Dipath_driver.c2582 if (!dd->ipath_pd[i] || !dd->ipath_pd[i]->port_cnt) ipath_reset_device()
2634 if (!dd->ipath_pd[i] || !dd->ipath_pd[i]->port_cnt) ipath_signal_procs()
/linux-4.1.27/drivers/net/ethernet/micrel/
H A Dksz884x.c1337 * @port_cnt: Number of ports this port supports.
1350 int port_cnt; member in struct:ksz_port
3301 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { port_get_link_speed()
3384 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { port_set_link_speed()
3436 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { port_force_link_speed()
3460 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) port_set_power_saving()
5540 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { netdev_open()
5931 for (i = 0, pi = port->first_port; i < port->port_cnt; i++, pi++) mdio_write()
7074 port->port_cnt = port_count; pcidev_init()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_main.c11386 int port, port_cnt = CHIP_MODE_IS_4_PORT(bp) ? 2 : 1; bnx2x_shared_fcoe_funcs() local
11388 for (port = 0; port < port_cnt; port++) { bnx2x_shared_fcoe_funcs()

Completed in 320 milliseconds