Searched refs:num_ctx (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.15/drivers/vfio/pci/ |
D | vfio_pci_intrs.c | 154 vdev->num_ctx = 1; in vfio_intx_enable() 232 vdev->num_ctx = 0; in vfio_intx_disable() 273 vdev->num_ctx = nvec; in vfio_msi_enable() 296 if (vector < 0 || vector >= vdev->num_ctx) in vfio_msi_set_vector_signal() 372 if (start >= vdev->num_ctx || start + count > vdev->num_ctx) in vfio_msi_set_block() 394 for (i = 0; i < vdev->num_ctx; i++) { in vfio_msi_disable() 399 vfio_msi_set_block(vdev, 0, vdev->num_ctx, NULL, msix); in vfio_msi_disable() 413 vdev->num_ctx = 0; in vfio_msi_disable() 544 if (!irq_is(vdev, index) || start + count > vdev->num_ctx) in vfio_pci_set_msi_trigger()
|
/Linux-v5.15/drivers/iommu/ |
D | ipmmu-vmsa.c | 61 unsigned int num_ctx; member 340 ret = find_first_zero_bit(mmu->ctx, mmu->num_ctx); in ipmmu_domain_allocate_context() 341 if (ret != mmu->num_ctx) { in ipmmu_domain_allocate_context() 550 for (i = 0; i < mmu->num_ctx; i++) { in ipmmu_irq() 893 for (i = 0; i < mmu->num_ctx; ++i) in ipmmu_device_reset() 1008 mmu->num_ctx = min(IPMMU_CTX_MAX, mmu->features->number_of_contexts); in ipmmu_probe() 1103 for (i = 0; i < mmu->num_ctx; i++) { in ipmmu_resume_noirq()
|
/Linux-v5.15/include/linux/ |
D | vfio_pci_core.h | 109 int num_ctx; member
|
/Linux-v5.15/drivers/infiniband/sw/siw/ |
D | siw_verbs.c | 86 if (atomic_inc_return(&sdev->num_ctx) > SIW_MAX_CONTEXT) { in siw_alloc_ucontext() 103 atomic_read(&sdev->num_ctx)); in siw_alloc_ucontext() 108 atomic_dec(&sdev->num_ctx); in siw_alloc_ucontext() 110 atomic_read(&sdev->num_ctx)); in siw_alloc_ucontext() 119 atomic_dec(&uctx->sdev->num_ctx); in siw_dealloc_ucontext()
|
D | siw_main.c | 381 atomic_set(&sdev->num_ctx, 0); in siw_device_create()
|
D | siw.h | 95 atomic_t num_ctx; member
|
/Linux-v5.15/drivers/gpu/drm/i915/selftests/ |
D | i915_vma.c | 154 unsigned long num_obj, num_ctx; in igt_vma_create() local 176 for_each_prime_number(num_ctx, 2 * BITS_PER_LONG) { in igt_vma_create() 177 for (; nc < num_ctx; nc++) { in igt_vma_create()
|
/Linux-v5.15/drivers/net/wireless/ath/ath10k/ |
D | mac.c | 1223 int num_ctx; in ath10k_mac_monitor_vdev_is_needed() local 1228 num_ctx = ath10k_mac_num_chanctxs(ar); in ath10k_mac_monitor_vdev_is_needed() 1229 if (num_ctx == 0) in ath10k_mac_monitor_vdev_is_needed() 1247 int num_ctx; in ath10k_mac_monitor_vdev_is_allowed() local 1249 num_ctx = ath10k_mac_num_chanctxs(ar); in ath10k_mac_monitor_vdev_is_allowed() 1255 if (test_bit(ATH10K_CAC_RUNNING, &ar->dev_flags) && num_ctx > 1) in ath10k_mac_monitor_vdev_is_allowed()
|