/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/ |
D | cmd.c | 2002 struct mlx4_active_ports actv_ports = mlx4_get_active_ports( in mlx4_master_activate_admin_state() local 2005 for_each_set_bit(p, actv_ports.ports, priv->dev.caps.num_ports) { in mlx4_master_activate_admin_state() 2063 struct mlx4_active_ports actv_ports = mlx4_get_active_ports( in mlx4_master_deactivate_admin_state() local 2066 for_each_set_bit(p, actv_ports.ports, priv->dev.caps.num_ports) { in mlx4_master_deactivate_admin_state() 2770 struct mlx4_active_ports actv_ports; in mlx4_get_active_ports() local 2773 bitmap_zero(actv_ports.ports, MLX4_MAX_PORTS); in mlx4_get_active_ports() 2776 bitmap_fill(actv_ports.ports, dev->caps.num_ports); in mlx4_get_active_ports() 2777 return actv_ports; in mlx4_get_active_ports() 2782 return actv_ports; in mlx4_get_active_ports() 2784 bitmap_set(actv_ports.ports, dev->dev_vfs[vf].min_port - 1, in mlx4_get_active_ports() [all …]
|
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() 374 struct mlx4_active_ports actv_ports = mlx4_get_active_ports(dev, slave); in set_and_calc_slave_port_state() local 381 port <= 0 || !test_bit(port - 1, actv_ports.ports)) { in set_and_calc_slave_port_state() 1228 int port = find_first_bit(eq->actv_ports.ports, in mlx4_init_eq_table() 1413 return test_bit(port - 1, priv->eq_table.eq[vector].actv_ports.ports); in mlx4_is_eq_vector_valid() 1425 priv->eq_table.eq[i].actv_ports.ports); in mlx4_get_eqs_per_port() 1439 return !!(bitmap_weight(priv->eq_table.eq[vector].actv_ports.ports, in mlx4_is_eq_shared() [all …]
|
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() 1107 max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + in mlx4_get_slave_num_gids() 1108 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; 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() 1144 max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + in mlx4_get_base_gid_ix() 1145 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; 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() [all …]
|
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()
|
D | main.c | 2990 bitmap_zero(priv->eq_table.eq[MLX4_EQ_ASYNC].actv_ports.ports, in mlx4_enable_msi_x() 3001 bitmap_fill(priv->eq_table.eq[i].actv_ports.ports, in mlx4_enable_msi_x() 3008 priv->eq_table.eq[i].actv_ports.ports); in mlx4_enable_msi_x() 3045 bitmap_fill(priv->eq_table.eq[i].actv_ports.ports, in mlx4_enable_msi_x()
|
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()
|
D | mlx4.h | 404 struct mlx4_active_ports actv_ports; member
|
/linux-6.12.1/drivers/infiniband/hw/mlx4/ |
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()
|
D | main.c | 3025 struct mlx4_active_ports actv_ports; in do_slave_init() local 3032 actv_ports = mlx4_get_active_ports(dev, slave); in do_slave_init() 3033 ports = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in do_slave_init() 3034 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); in do_slave_init()
|
D | mad.c | 2177 struct mlx4_active_ports actv_ports = in mlx4_ib_alloc_demux_ctx() local 2180 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_ib_alloc_demux_ctx()
|