Home
last modified time | relevance | path

Searched refs:port_cnt (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/tty/serial/
H A Dmux.c45 static unsigned int port_cnt __read_mostly;
355 for(i = 0; i < port_cnt; ++i) { in mux_poll()
439 if(!port_cnt) { in mux_probe()
449 for(i = 0; i < port_count; ++i, ++port_cnt) { in mux_probe()
450 struct uart_port *port = &mux_ports[port_cnt].port; in mux_probe()
462 port->line = port_cnt; in mux_probe()
480 for(i = 0; i < port_cnt; ++i) { in mux_remove()
484 BUG_ON(i + port_count > port_cnt); in mux_remove()
544 if(port_cnt > 0) { in mux_init()
565 if(port_cnt > 0) { in mux_exit()
/linux/drivers/net/pse-pd/
H A Dtps23881.c677 int port_cnt) in tps23881_get_unused_chan() argument
685 for (j = 0; j < port_cnt; j++) { in tps23881_get_unused_chan()
716 int i, ret, port_cnt = 0, cnt_4ch_grp1 = 0, cnt_4ch_grp2 = 4; in tps23881_sort_port_matrix() local
730 tmp_port_matrix[port_cnt].exist = true; in tps23881_sort_port_matrix()
731 tmp_port_matrix[port_cnt].is_4p = true; in tps23881_sort_port_matrix()
732 tmp_port_matrix[port_cnt].pi_id = i; in tps23881_sort_port_matrix()
733 tmp_port_matrix[port_cnt].hw_chan[0] = port_matrix[i].hw_chan[0]; in tps23881_sort_port_matrix()
734 tmp_port_matrix[port_cnt].hw_chan[1] = port_matrix[i].hw_chan[1]; in tps23881_sort_port_matrix()
739 tmp_port_matrix[port_cnt].lgcl_chan[0] = (*cnt)++; in tps23881_sort_port_matrix()
740 tmp_port_matrix[port_cnt] in tps23881_sort_port_matrix()
816 tps23881_write_port_matrix(struct tps23881_priv * priv,struct tps23881_port_matrix port_matrix[TPS23881_MAX_CHANS],int port_cnt) tps23881_write_port_matrix() argument
[all...]
H A Dpd692x0.c1096 int i, j, port_cnt; in pd692x0_set_port_matrix()
1103 port_cnt = 0; in pd692x0_set_port_matrix()
1112 port_cnt += j; in pd692x0_set_port_matrix()
1122 port_matrix->hw_port_a = port_cnt; in pd692x0_set_port_matrix()
1124 port_matrix->hw_port_b = port_cnt; in pd692x0_set_port_matrix()
1095 int i, j, port_cnt; pd692x0_set_port_matrix() local
/linux/drivers/net/dsa/microchip/
H A Dlan937x_main.c153 for (i = 0; i < dev->info->port_cnt; i++) in lan937x_create_phy_addr_map()
197 if (size < dev->info->port_cnt) in lan937x_create_phy_addr_map()
200 for (i = 0; i < dev->info->port_cnt; i++) { in lan937x_create_phy_addr_map()
668 dev->port_mask = (1 << dev->info->port_cnt) - 1;
H A Dksz8.c1403 if ((uint)port < dev->info->port_cnt) { in ksz8_del_sta_mac()
1409 cnt = dev->info->port_cnt; in ksz8_del_sta_mac()
2385 dev->phy_port_cnt = dev->info->port_cnt - 1;
/linux/net/smc/
H A Dsmc_ib.c916 u8 port_cnt; in smc_ib_ndev_change() local
921 port_cnt = smcibdev->ibdev->phys_port_cnt; in smc_ib_ndev_change()
922 for (i = 0; i < min_t(size_t, port_cnt, SMC_MAX_PORTS); i++) { in smc_ib_ndev_change()
941 u8 port_cnt; in smc_ib_add_dev() local
965 port_cnt = smcibdev->ibdev->phys_port_cnt; in smc_ib_add_dev()
967 smcibdev->ibdev->name, port_cnt); in smc_ib_add_dev()
969 i < min_t(size_t, port_cnt, SMC_MAX_PORTS); in smc_ib_add_dev()
/linux/drivers/ntb/hw/idt/
H A Dntb_hw_idt.c502 for (pidx = 0; pidx < ndev->swcfg->port_cnt; pidx++) { in idt_scan_ports()
2829 .port_cnt = 6, .ports = {0, 2, 4, 6, 8, 12}
2833 .port_cnt = 8, .ports = {0, 2, 4, 6, 8, 12, 16, 20}
2837 .port_cnt = 8, .ports = {0, 2, 4, 6, 8, 12, 16, 20}
2841 .port_cnt = 3, .ports = {0, 8, 16}
2845 .port_cnt = 4, .ports = {0, 8, 12, 16}
2849 .port_cnt = 8, .ports = {0, 2, 4, 6, 8, 12, 16, 20}
2853 .port_cnt = 8, .ports = {0, 2, 4, 6, 8, 12, 16, 20}
2857 .port_cnt = 8, .ports = {0, 2, 4, 6, 8, 12, 16, 20}
H A Dntb_hw_idt.h1049 unsigned char port_cnt; member
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_main.c322 mdev->port_cnt = 0; in mlx4_en_probe()
324 mdev->port_cnt++; in mlx4_en_probe()
/linux/include/linux/
H A Dswitchtec.h299 u32 port_cnt;
298 u32 port_cnt; global() member
/linux/drivers/net/ethernet/micrel/
H A Dksz884x.c1263 * @port_cnt: Number of ports this port supports.
1276 int port_cnt; member
2926 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { in port_get_link_speed()
3005 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { in port_set_link_speed()
3055 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { in port_force_link_speed()
3079 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) in port_set_power_saving()
5149 for (i = 0, p = port->first_port; i < port->port_cnt; i++, p++) { in netdev_open()
5534 for (i = 0, pi = port->first_port; i < port->port_cnt; i++, pi++) in mdio_write()
6697 port->port_cnt = port_count; in pcidev_init()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_main.c11649 int port, port_cnt = CHIP_MODE_IS_4_PORT(bp) ? 2 : 1; in bnx2x_shared_fcoe_funcs() local
11651 for (port = 0; port < port_cnt; port++) { in bnx2x_shared_fcoe_funcs()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c12254 bp->port_count = resp->port_cnt; in bnxt_support_speed_dropped()