Lines Matching refs:caps
65 table->max = 1 << dev->caps.log_num_macs; in mlx4_init_mac_table()
78 table->max = (1 << dev->caps.log_num_vlans) - MLX4_VLAN_REGULAR; in mlx4_init_vlan_table()
248 return dev->caps.reserved_qps_base[MLX4_QP_REGION_ETH_ADDR] + in mlx4_get_base_qpn()
249 (port - 1) * (1 << dev->caps.log_num_macs); in mlx4_get_base_qpn()
259 if (port < 1 || port > dev->caps.num_ports) { in __mlx4_unregister_mac()
498 int mlx4_get_port_ib_caps(struct mlx4_dev *dev, u8 port, __be32 *caps) in mlx4_get_port_ib_caps() argument
527 *caps = *(__be32 *) (outbuf + 84); in mlx4_get_port_ib_caps()
549 max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + in mlx4_get_slave_num_gids()
550 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; in mlx4_get_slave_num_gids()
555 bitmap_zero(exclusive_ports.ports, dev->caps.num_ports); in mlx4_get_slave_num_gids()
586 max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + in mlx4_get_base_gid_ix()
587 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; in mlx4_get_base_gid_ix()
592 bitmap_zero(exclusive_ports.ports, dev->caps.num_ports); in mlx4_get_base_gid_ix()
658 for (i = 0, num_eth_ports = 0; i < dev->caps.num_ports; i++) { in mlx4_reset_roce_gids()
660 if (dev->caps.port_type[i + 1] != MLX4_PORT_TYPE_ETH) in mlx4_reset_roce_gids()
674 for (i = 0; i < dev->caps.num_ports; i++) { in mlx4_reset_roce_gids()
676 if (dev->caps.port_type[i + 1] != MLX4_PORT_TYPE_ETH) in mlx4_reset_roce_gids()
721 if (slave != dev->caps.function && in mlx4_common_set_port()
750 mtu = min_t(int, mtu, dev->caps.eth_mtu_cap[port] + in mlx4_common_set_port()
887 if (slave != dev->caps.function) in mlx4_common_set_port()
938 if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH) in mlx4_SET_PORT()
945 ((__be32 *) mailbox->buf)[1] = dev->caps.ib_port_def_cap[port]; in mlx4_SET_PORT()
958 (dev->caps.port_ib_mtu[port] << MLX4_SET_PORT_MTU_CAP) | in mlx4_SET_PORT()
1007 u32 m_promisc = (dev->caps.flags & MLX4_DEV_CAP_FLAG_VEP_MC_STEER) ? in mlx4_SET_PORT_qpn_calc()
1010 if (dev->caps.steering_mode != MLX4_STEERING_MODE_A0) in mlx4_SET_PORT_qpn_calc()
1018 context->n_mac = dev->caps.log_num_macs; in mlx4_SET_PORT_qpn_calc()
1172 if (slave != dev->caps.function) in mlx4_DUMP_ETH_STATS_wrapper()
1230 bitmap_zero(exclusive_ports.ports, dev->caps.num_ports); in mlx4_get_slave_from_roce_gid()
1251 actv_ports.ports, dev->caps.num_ports) + in mlx4_get_slave_from_roce_gid()
1253 dev->caps.num_ports) + 1; in mlx4_get_slave_from_roce_gid()
1260 dev->caps.num_ports); in mlx4_get_slave_from_roce_gid()