• Home
  • Raw
  • Download

Lines Matching refs:caps

172 	    dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_ROCE_V1_V2)  in __mlx4_qp_modify()
256 flags &= dev->caps.alloc_res_qp_mask; in mlx4_qp_reserve_range()
421 (dev->caps.num_qps - 1), qp); in mlx4_qp_alloc()
463 if (!(dev->caps.flags2 in mlx4_update_qp()
491 if (!(dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QOS_VPP)) { in mlx4_update_qp()
519 radix_tree_delete(&dev->qp_table_tree, qp->qpn & (dev->caps.num_qps - 1)); in mlx4_qp_remove()
570 err = mlx4_bitmap_init(*bitmap + MLX4_QP_TABLE_ZONE_GENERAL, dev->caps.num_qps, in mlx4_create_zones()
590 dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW], in mlx4_create_zones()
607 last_offset = dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW]; in mlx4_create_zones()
770 u32 max_table_offset = dev->caps.dmfs_high_rate_qpn_base + in mlx4_init_qp_table()
771 dev->caps.dmfs_high_rate_qpn_range; in mlx4_init_qp_table()
786 fixed_reserved_from_bot_rv += dev->caps.reserved_qps_cnt[k]; in mlx4_init_qp_table()
799 int last_base = dev->caps.num_qps; in mlx4_init_qp_table()
806 if (dev->caps.reserved_qps_cnt[sort[j]] > in mlx4_init_qp_table()
807 dev->caps.reserved_qps_cnt[sort[j - 1]]) in mlx4_init_qp_table()
813 last_base -= dev->caps.reserved_qps_cnt[sort[i]]; in mlx4_init_qp_table()
814 dev->caps.reserved_qps_base[sort[i]] = last_base; in mlx4_init_qp_table()
816 dev->caps.reserved_qps_cnt[sort[i]]; in mlx4_init_qp_table()
831 if (reserved_from_bot + reserved_from_top > dev->caps.num_qps) { in mlx4_init_qp_table()
851 dev->caps.spec_qps = kcalloc(dev->caps.num_ports, in mlx4_init_qp_table()
852 sizeof(*dev->caps.spec_qps), in mlx4_init_qp_table()
854 if (!dev->caps.spec_qps) { in mlx4_init_qp_table()
859 for (k = 0; k < dev->caps.num_ports; k++) { in mlx4_init_qp_table()
860 dev->caps.spec_qps[k].qp0_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()
862 dev->caps.spec_qps[k].qp0_tunnel = dev->caps.spec_qps[k].qp0_proxy + 8 * MLX4_MFUNC_MAX; in mlx4_init_qp_table()
863 dev->caps.spec_qps[k].qp1_proxy = dev->phys_caps.base_proxy_sqpn + in mlx4_init_qp_table()
865 dev->caps.spec_qps[k].qp1_tunnel = dev->caps.spec_qps[k].qp1_proxy + 8 * MLX4_MFUNC_MAX; in mlx4_init_qp_table()
877 kfree(dev->caps.spec_qps); in mlx4_init_qp_table()
878 dev->caps.spec_qps = NULL; in mlx4_init_qp_table()