Searched refs:actv_ports (Results 1 – 10 of 10) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | cmd.c | 2010 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_activate_admin_state() 2077 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_deactivate_admin_state() 2780 struct mlx4_active_ports actv_ports; in mlx4_get_active_ports() local 2783 bitmap_zero(actv_ports.ports, MLX4_MAX_PORTS); in mlx4_get_active_ports() 2787 return actv_ports; in mlx4_get_active_ports() 2792 return actv_ports; in mlx4_get_active_ports() 2798 return actv_ports; in mlx4_get_active_ports() 2822 if (test_bit(port - 1, actv_ports.ports)) in mlx4_phys_to_slave_port() 2842 struct mlx4_active_ports actv_ports = in mlx4_phys_to_slaves_pport() local 2844 if (test_bit(port - 1, actv_ports.ports)) in mlx4_phys_to_slaves_pport() [all …]
|
A D | eq.c | 315 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_get_slave_port_state() local 318 port <= 0 || !test_bit(port - 1, actv_ports.ports)) { in mlx4_get_slave_port_state() 332 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_set_slave_port_state() local 335 port <= 0 || !test_bit(port - 1, actv_ports.ports)) { in mlx4_set_slave_port_state() 381 port <= 0 || !test_bit(port - 1, actv_ports.ports)) { in set_and_calc_slave_port_state() 1229 int port = find_first_bit(eq->actv_ports.ports, in mlx4_init_eq_table() 1426 priv->eq_table.eq[i].actv_ports.ports); in mlx4_get_eqs_per_port() 1440 return !!(bitmap_weight(priv->eq_table.eq[vector].actv_ports.ports, in mlx4_is_eq_shared() 1465 priv->eq_table.eq[requested_vector].actv_ports.ports)) { in mlx4_assign_eq() 1476 test_bit(port - 1, eq->actv_ports.ports)) { in mlx4_assign_eq() [all …]
|
A D | port.c | 1098 struct mlx4_active_ports actv_ports; in mlx4_get_slave_num_gids() local 1106 actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_get_slave_num_gids() 1136 struct mlx4_active_ports actv_ports; in mlx4_get_base_gid_ix() local 1143 actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_get_base_gid_ix() 1206 struct mlx4_active_ports actv_ports; in mlx4_reset_roce_gids() local 1214 actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_reset_roce_gids() 1217 if (test_bit(i, actv_ports.ports)) { in mlx4_reset_roce_gids() 1233 if (test_bit(i, actv_ports.ports)) { in mlx4_reset_roce_gids() 1901 struct mlx4_active_ports actv_ports; in mlx4_get_slave_from_roce_gid() local 1930 actv_ports.ports, dev->caps.num_ports) + in mlx4_get_slave_from_roce_gid() [all …]
|
A D | fw.c | 395 struct mlx4_active_ports actv_ports = in mlx4_QUERY_FUNC_CAP_wrapper() local 407 find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_QUERY_FUNC_CAP_wrapper() 451 struct mlx4_active_ports actv_ports = in mlx4_QUERY_FUNC_CAP_wrapper() local 465 bitmap_weight(actv_ports.ports, dev->caps.num_ports), in mlx4_QUERY_FUNC_CAP_wrapper() 1286 struct mlx4_active_ports actv_ports; in mlx4_QUERY_DEV_CAP_wrapper() local 1300 actv_ports = mlx4_get_active_ports(dev, slave); in mlx4_QUERY_DEV_CAP_wrapper() 1301 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_QUERY_DEV_CAP_wrapper() 1304 bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_QUERY_DEV_CAP_wrapper() 1320 field |= bitmap_weight(actv_ports.ports, dev->caps.num_ports) & 0x0F; in mlx4_QUERY_DEV_CAP_wrapper()
|
A D | main.c | 2969 bitmap_zero(priv->eq_table.eq[MLX4_EQ_ASYNC].actv_ports.ports, in mlx4_enable_msi_x() 2980 bitmap_fill(priv->eq_table.eq[i].actv_ports.ports, in mlx4_enable_msi_x() 2987 priv->eq_table.eq[i].actv_ports.ports); in mlx4_enable_msi_x() 3024 bitmap_fill(priv->eq_table.eq[i].actv_ports.ports, in mlx4_enable_msi_x()
|
A D | resource_tracker.c | 479 struct mlx4_active_ports actv_ports; in mlx4_calc_res_counter_guaranteed() local 487 actv_ports = mlx4_get_active_ports(dev, vf); in mlx4_calc_res_counter_guaranteed() 488 ports = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_calc_res_counter_guaranteed() 553 struct mlx4_active_ports actv_ports = in mlx4_init_resource_tracker() local 632 if (test_bit(j, actv_ports.ports)) in mlx4_init_resource_tracker()
|
A D | mlx4.h | 402 struct mlx4_active_ports actv_ports; member
|
/linux/drivers/infiniband/hw/mlx4/ |
A D | sysfs.c | 701 struct mlx4_active_ports actv_ports; in register_one_pkey_tree() local 724 actv_ports = mlx4_get_active_ports(dev->dev, slave); in register_one_pkey_tree() 727 if (!test_bit(port - 1, actv_ports.ports)) in register_one_pkey_tree()
|
A D | main.c | 3013 struct mlx4_active_ports actv_ports; in do_slave_init() local 3020 actv_ports = mlx4_get_active_ports(dev, slave); in do_slave_init() 3021 ports = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in do_slave_init() 3022 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); in do_slave_init()
|
A D | mad.c | 2178 struct mlx4_active_ports actv_ports = in mlx4_ib_alloc_demux_ctx() local 2181 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_ib_alloc_demux_ctx()
|
Completed in 60 milliseconds