Home
last modified time | relevance | path

Searched refs:num_comp_vectors (Results 1 – 25 of 46) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/infiniband/core/
Dcq.c305 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()
396 nr_cqs = min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_alloc_cqs()
442 unsigned int vector, num_comp_vectors; in ib_cq_pool_get() local
451 num_comp_vectors = in ib_cq_pool_get()
452 min_t(unsigned int, dev->num_comp_vectors, num_online_cpus()); in ib_cq_pool_get()
456 (READ_ONCE(default_comp_vector) + 1) % num_comp_vectors; in ib_cq_pool_get()
459 vector = comp_vector_hint % num_comp_vectors; in ib_cq_pool_get()
Duverbs_std_types_cq.c107 if (attr.comp_vector >= attrs->ufile->device->num_comp_vectors) { in UVERBS_HANDLER()
Duverbs_std_types_device.c214 u32 num_comp = attrs->ufile->device->num_comp_vectors; in UVERBS_HANDLER()
257 num_comp = attrs->ufile->device->num_comp_vectors; in UVERBS_HANDLER()
Duverbs.h101 u32 num_comp_vectors; member
Duverbs_main.c1134 uverbs_dev->num_comp_vectors = device->num_comp_vectors; in ib_uverbs_add_one()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Deq.c857 for (i = 0; i < dev->caps.num_comp_vectors + 1; ++i) in mlx4_interrupt()
930 return (dev->caps.num_comp_vectors + 1 + dev->caps.reserved_eqs) / 4 - in mlx4_num_eq_uar()
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()
[all …]
Den_cq.c66 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq()
172 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_activate_cq()
Dcq.c354 if (vector >= dev->caps.num_comp_vectors) in mlx4_cq_alloc()
Dmain.c2913 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()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
Dipoib_verbs.c177 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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_cq.c260 if (vector >= hr_dev->caps.num_comp_vectors) { in hns_roce_create_cq()
262 vector, hr_dev->caps.num_comp_vectors); in hns_roce_create_cq()
Dhns_roce_main.c497 ib_dev->num_comp_vectors = hr_dev->caps.num_comp_vectors; in hns_roce_register_device()
Dhns_roce_hw_v1.c1464 caps->num_comp_vectors = HNS_ROCE_V1_COMP_VEC_NUM; in hns_roce_v1_profile()
3998 for (i = 0; i < hr_dev->caps.num_comp_vectors; i++) { in hns_roce_v1_msix_interrupt_abn()
4077 for (i = 0; i < hr_dev->caps.num_comp_vectors; i++) { in hns_roce_v1_int_mask_enable()
4221 eq_num = hr_dev->caps.num_comp_vectors + hr_dev->caps.num_aeq_vectors; in hns_roce_v1_init_eq_table()
4242 if (i < hr_dev->caps.num_comp_vectors) { in hns_roce_v1_init_eq_table()
4331 eq_num = hr_dev->caps.num_comp_vectors + hr_dev->caps.num_aeq_vectors; in hns_roce_v1_cleanup_eq_table()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Dvt.c623 if (!rdi->ibdev.num_comp_vectors) in rvt_register_device()
624 rdi->ibdev.num_comp_vectors = 1; in rvt_register_device()
Dcq.c222 comp_vector = comp_vector % rdi->ibdev.num_comp_vectors; in rvt_create_cq()
/kernel/linux/linux-5.10/net/rds/
Dib_cm.c423 int min = rds_ibdev->vector_load[rds_ibdev->dev->num_comp_vectors - 1]; in ibdev_get_unused_vector()
424 int index = rds_ibdev->dev->num_comp_vectors - 1; in ibdev_get_unused_vector()
427 for (i = rds_ibdev->dev->num_comp_vectors - 1; i >= 0; i--) { in ibdev_get_unused_vector()
Dib.c175 rds_ibdev->vector_load = kcalloc(device->num_comp_vectors, in rds_ib_add_one()
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
Docrdma_main.c236 dev->ibdev.num_comp_vectors = dev->eq_cnt; in ocrdma_register_device()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dmain.c2422 ibdev->eq_table = kcalloc(dev->caps.num_comp_vectors, in mlx4_ib_alloc_eqs()
2441 for (i = eq; i < dev->caps.num_comp_vectors; in mlx4_ib_alloc_eqs()
2446 ibdev->ib_dev.num_comp_vectors = eq; in mlx4_ib_alloc_eqs()
2452 int total_eqs = ibdev->ib_dev.num_comp_vectors; in mlx4_ib_free_eqs()
2459 ibdev->ib_dev.num_comp_vectors = 0; in mlx4_ib_free_eqs()
2654 ibdev->ib_dev.num_comp_vectors = dev->caps.num_comp_vectors; in mlx4_ib_add()
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
Dsiw_main.c368 base_dev->num_comp_vectors = num_possible_cpus(); in siw_device_create()
/kernel/linux/linux-5.10/drivers/infiniband/hw/efa/
Defa_main.c308 dev->ibdev.num_comp_vectors = 1; in efa_ib_device_add()
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c398 us_ibdev->ib_dev.num_comp_vectors = USNIC_IB_NUM_COMP_VECTORS; in usnic_ib_device_add()
/kernel/linux/linux-5.10/include/linux/mlx4/
Ddevice.h52 #define MLX4_IS_LEGACY_EQ_MODE(dev_cap) ((dev_cap).num_comp_vectors < \
574 int num_comp_vectors; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/
Dprovider.c562 dev->ibdev.num_comp_vectors = dev->rdev.lldi.nciq; in c4iw_register_device()
/kernel/linux/linux-5.10/drivers/nvme/host/
Drdma.c474 comp_vector = (idx == 0 ? idx : idx - 1) % ibdev->num_comp_vectors; in nvme_rdma_create_cq()
727 nr_read_queues = min_t(unsigned int, ibdev->num_comp_vectors, in nvme_rdma_alloc_io_queues()
729 nr_default_queues = min_t(unsigned int, ibdev->num_comp_vectors, in nvme_rdma_alloc_io_queues()

12