/linux/drivers/infiniband/core/ |
A D | cq.c | 305 if (dev->num_comp_vectors > 1) in __ib_alloc_cq_any() 308 min_t(int, dev->num_comp_vectors, num_online_cpus()); in __ib_alloc_cq_any() 388 nr_cqs = min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_alloc_cqs() 434 unsigned int vector, num_comp_vectors; in ib_cq_pool_get() local 443 num_comp_vectors = in ib_cq_pool_get() 444 min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_cq_pool_get() 448 (READ_ONCE(default_comp_vector) + 1) % num_comp_vectors; in ib_cq_pool_get() 451 vector = comp_vector_hint % num_comp_vectors; in ib_cq_pool_get()
|
A D | uverbs_std_types_device.c | 214 u32 num_comp = attrs->ufile->device->num_comp_vectors; in UVERBS_HANDLER() 257 num_comp = attrs->ufile->device->num_comp_vectors; in UVERBS_HANDLER()
|
A D | uverbs_std_types_cq.c | 107 if (attr.comp_vector >= attrs->ufile->device->num_comp_vectors) { in UVERBS_HANDLER()
|
A D | uverbs.h | 101 u32 num_comp_vectors; member
|
A D | uverbs_main.c | 1134 uverbs_dev->num_comp_vectors = device->num_comp_vectors; in ib_uverbs_add_one()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | eq.c | 857 for (i = 0; i < dev->caps.num_comp_vectors + 1; ++i) in mlx4_interrupt() 1123 for (i = 0; i < dev->caps.num_comp_vectors + 1; ++i) in mlx4_free_irqs() 1214 (dev->caps.num_comp_vectors + 1), in mlx4_init_eq_table() 1221 for (i = 0; i < dev->caps.num_comp_vectors + 1; ++i) { in mlx4_init_eq_table() 1349 for (i = 0; i < dev->caps.num_comp_vectors + 1; ++i) in mlx4_cleanup_eq_table() 1410 if (vector < 0 || (vector >= dev->caps.num_comp_vectors + 1) || in mlx4_is_eq_vector_valid() 1424 for (i = 0; i < dev->caps.num_comp_vectors + 1; i++) in mlx4_get_eqs_per_port() 1437 if (vector <= 0 || (vector >= dev->caps.num_comp_vectors + 1)) in mlx4_is_eq_shared() 1461 if (requested_vector < (dev->caps.num_comp_vectors + 1) && in mlx4_assign_eq() 1475 if (requested_vector < dev->caps.num_comp_vectors + 1 && in mlx4_assign_eq() [all …]
|
A D | en_cq.c | 66 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq() 170 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_activate_cq()
|
A D | main.c | 2913 if (eqn > dev->caps.num_comp_vectors) in mlx4_init_affinity_hint() 2966 dev->caps.num_comp_vectors = nreq - 1; in mlx4_enable_msi_x() 2972 for (i = 0; i < dev->caps.num_comp_vectors + 1; i++) { in mlx4_enable_msi_x() 3001 if ((dev->caps.num_comp_vectors > dev->caps.num_ports) && in mlx4_enable_msi_x() 3003 (dev->caps.num_comp_vectors / dev->caps.num_ports)) == in mlx4_enable_msi_x() 3018 dev->caps.num_comp_vectors = 1; in mlx4_enable_msi_x() 3612 dev->caps.num_comp_vectors = 1; in mlx4_load_one()
|
A D | cq.c | 355 if (vector >= dev->caps.num_comp_vectors) in mlx4_cq_alloc()
|
/linux/drivers/infiniband/ulp/ipoib/ |
A D | ipoib_verbs.c | 177 cq_attr.comp_vector = req_vec % priv->ca->num_comp_vectors; in ipoib_transport_dev_init() 186 cq_attr.comp_vector = (req_vec + 1) % priv->ca->num_comp_vectors; in ipoib_transport_dev_init()
|
/linux/drivers/infiniband/sw/rdmavt/ |
A D | vt.c | 552 if (!rdi->ibdev.num_comp_vectors) in rvt_register_device() 553 rdi->ibdev.num_comp_vectors = 1; in rvt_register_device()
|
A D | cq.c | 180 comp_vector = comp_vector % rdi->ibdev.num_comp_vectors; in rvt_create_cq()
|
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_cq.c | 289 if (attr->comp_vector >= hr_dev->caps.num_comp_vectors) { in verify_cq_create_attr() 291 attr->comp_vector, hr_dev->caps.num_comp_vectors); in verify_cq_create_attr()
|
A D | hns_roce_main.c | 596 ib_dev->num_comp_vectors = hr_dev->caps.num_comp_vectors; in hns_roce_register_device()
|
A D | hns_roce_hw_v1.c | 1548 caps->num_comp_vectors = HNS_ROCE_V1_COMP_VEC_NUM; in hns_roce_v1_profile() 4058 for (i = 0; i < hr_dev->caps.num_comp_vectors; i++) { in hns_roce_v1_msix_interrupt_abn() 4137 for (i = 0; i < hr_dev->caps.num_comp_vectors; i++) { in hns_roce_v1_int_mask_enable() 4281 eq_num = hr_dev->caps.num_comp_vectors + hr_dev->caps.num_aeq_vectors; in hns_roce_v1_init_eq_table() 4302 if (i < hr_dev->caps.num_comp_vectors) { in hns_roce_v1_init_eq_table() 4391 eq_num = hr_dev->caps.num_comp_vectors + hr_dev->caps.num_aeq_vectors; in hns_roce_v1_cleanup_eq_table()
|
A D | hns_roce_hw_v2.c | 1943 caps->num_comp_vectors = 0; in set_default_caps() 2159 if (!caps->num_comp_vectors) in apply_func_caps() 2160 caps->num_comp_vectors = min_t(u32, caps->eqc_bt_num - 1, in apply_func_caps() 2310 caps->num_comp_vectors = roce_get_field(resp_d->num_ceqs_ceq_depth, in hns_roce_query_pf_caps() 5876 if (eqn < hr_dev->caps.num_comp_vectors) in hns_roce_v2_destroy_eqc() 6102 eq_num = hr_dev->caps.num_comp_vectors + hr_dev->caps.num_aeq_vectors; in __hns_roce_free_irq() 6130 comp_num = hr_dev->caps.num_comp_vectors; in hns_roce_v2_init_eq_table() 6208 eq_num = hr_dev->caps.num_comp_vectors + hr_dev->caps.num_aeq_vectors; in hns_roce_v2_cleanup_eq_table()
|
/linux/net/rds/ |
A D | ib_cm.c | 389 int min = rds_ibdev->vector_load[rds_ibdev->dev->num_comp_vectors - 1]; in ibdev_get_unused_vector() 390 int index = rds_ibdev->dev->num_comp_vectors - 1; in ibdev_get_unused_vector() 393 for (i = rds_ibdev->dev->num_comp_vectors - 1; i >= 0; i--) { in ibdev_get_unused_vector()
|
A D | ib.c | 175 rds_ibdev->vector_load = kcalloc(device->num_comp_vectors, in rds_ib_add_one()
|
/linux/drivers/infiniband/hw/ocrdma/ |
A D | ocrdma_main.c | 213 dev->ibdev.num_comp_vectors = dev->eq_cnt; in ocrdma_register_device()
|
/linux/drivers/infiniband/hw/mlx4/ |
A D | main.c | 2443 ibdev->eq_table = kcalloc(dev->caps.num_comp_vectors, in mlx4_ib_alloc_eqs() 2462 for (i = eq; i < dev->caps.num_comp_vectors; in mlx4_ib_alloc_eqs() 2467 ibdev->ib_dev.num_comp_vectors = eq; in mlx4_ib_alloc_eqs() 2473 int total_eqs = ibdev->ib_dev.num_comp_vectors; in mlx4_ib_free_eqs() 2480 ibdev->ib_dev.num_comp_vectors = 0; in mlx4_ib_free_eqs() 2677 ibdev->ib_dev.num_comp_vectors = dev->caps.num_comp_vectors; in mlx4_ib_add()
|
/linux/drivers/infiniband/sw/siw/ |
A D | siw_main.c | 347 base_dev->num_comp_vectors = num_possible_cpus(); in siw_device_create()
|
/linux/include/linux/mlx4/ |
A D | device.h | 51 #define MLX4_IS_LEGACY_EQ_MODE(dev_cap) ((dev_cap).num_comp_vectors < \ 573 int num_comp_vectors; member
|
/linux/drivers/infiniband/hw/cxgb4/ |
A D | provider.c | 538 dev->ibdev.num_comp_vectors = dev->rdev.lldi.nciq; in c4iw_register_device()
|
/linux/drivers/infiniband/hw/usnic/ |
A D | usnic_ib_main.c | 400 us_ibdev->ib_dev.num_comp_vectors = USNIC_IB_NUM_COMP_VECTORS; in usnic_ib_device_add()
|
/linux/drivers/infiniband/hw/efa/ |
A D | efa_main.c | 428 dev->ibdev.num_comp_vectors = dev->neqs ?: 1; in efa_ib_device_add()
|