/linux-6.12.1/fs/smb/server/ |
D | crypto_ctx.c | 23 static struct crypto_ctx_list ctx_list; variable 116 spin_lock(&ctx_list.ctx_lock); in ksmbd_find_crypto_ctx() 117 if (!list_empty(&ctx_list.idle_ctx)) { in ksmbd_find_crypto_ctx() 118 ctx = list_entry(ctx_list.idle_ctx.next, in ksmbd_find_crypto_ctx() 122 spin_unlock(&ctx_list.ctx_lock); in ksmbd_find_crypto_ctx() 126 if (ctx_list.avail_ctx > num_online_cpus()) { in ksmbd_find_crypto_ctx() 127 spin_unlock(&ctx_list.ctx_lock); in ksmbd_find_crypto_ctx() 128 wait_event(ctx_list.ctx_wait, in ksmbd_find_crypto_ctx() 129 !list_empty(&ctx_list.idle_ctx)); in ksmbd_find_crypto_ctx() 133 ctx_list.avail_ctx++; in ksmbd_find_crypto_ctx() [all …]
|
/linux-6.12.1/io_uring/ |
D | sqpoll.c | 85 list_for_each_entry(ctx, &sqd->ctx_list, sqd_list) in io_sqd_update_thread_idle() 158 INIT_LIST_HEAD(&sqd->ctx_list); in io_get_sq_data() 312 cap_entries = !list_is_singular(&sqd->ctx_list); in io_sq_thread() 314 list_for_each_entry(ctx, &sqd->ctx_list, sqd_list) { in io_sq_thread() 323 list_for_each_entry(ctx, &sqd->ctx_list, sqd_list) in io_sq_thread() 345 list_for_each_entry(ctx, &sqd->ctx_list, sqd_list) { in io_sq_thread() 372 list_for_each_entry(ctx, &sqd->ctx_list, sqd_list) in io_sq_thread() 386 list_for_each_entry(ctx, &sqd->ctx_list, sqd_list) in io_sq_thread() 453 list_add(&ctx->sqd_list, &sqd->ctx_list); in io_sq_offload_create()
|
D | sqpoll.h | 9 struct list_head ctx_list; member
|
/linux-6.12.1/drivers/misc/vmw_vmci/ |
D | vmci_context.c | 36 } ctx_list = { variable 37 .head = LIST_HEAD_INIT(ctx_list.head), 38 .lock = __SPIN_LOCK_UNLOCKED(ctx_list.lock), 160 spin_lock(&ctx_list.lock); in vmci_ctx_create() 170 list_add_tail_rcu(&context->list_item, &ctx_list.head); in vmci_ctx_create() 171 spin_unlock(&ctx_list.lock); in vmci_ctx_create() 190 spin_lock(&ctx_list.lock); in vmci_ctx_destroy() 192 spin_unlock(&ctx_list.lock); in vmci_ctx_destroy() 222 list_for_each_entry_rcu(sub_ctx, &ctx_list.head, list_item) { in ctx_fire_notification() 377 list_for_each_entry_rcu(context, &ctx_list.head, list_item) { in vmci_ctx_exists() [all …]
|
/linux-6.12.1/drivers/iommu/ |
D | msm_iommu.c | 129 list_for_each_entry(master, &iommu->ctx_list, list) in __flush_iotlb() 152 list_for_each_entry(master, &iommu->ctx_list, list) { in __flush_iotlb_range() 367 master = list_first_entry(&iommu->ctx_list, in find_iommu_for_dev() 407 master = list_first_entry(&iommu->ctx_list, in msm_iommu_attach_dev() 415 list_for_each_entry(master, &iommu->ctx_list, list) { in msm_iommu_attach_dev() 465 list_for_each_entry(master, &iommu->ctx_list, list) { in msm_iommu_identity_attach() 541 if (list_empty(&iommu->ctx_list)) in msm_iommu_iova_to_phys() 544 master = list_first_entry(&iommu->ctx_list, in msm_iommu_iova_to_phys() 606 if (list_empty(&(*iommu)->ctx_list)) { in insert_iommu_master() 613 list_add(&master->list, &(*iommu)->ctx_list); in insert_iommu_master() [all …]
|
D | msm_iommu.h | 57 struct list_head ctx_list; member
|
/linux-6.12.1/arch/sparc/mm/ |
D | srmmu.c | 384 struct ctx_list { struct 385 struct ctx_list *next; argument 386 struct ctx_list *prev; argument 391 static struct ctx_list *ctx_list_pool; argument 392 static struct ctx_list ctx_free; 393 static struct ctx_list ctx_used; 398 static inline void remove_from_ctx_list(struct ctx_list *entry) in remove_from_ctx_list() 404 static inline void add_to_ctx_list(struct ctx_list *head, struct ctx_list *entry) in add_to_ctx_list() 416 struct ctx_list *ctxp; in alloc_context() 442 struct ctx_list *ctx_old; in free_context() [all …]
|
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/common/ |
D | mtk_vcodec_fw_vpu.c | 54 list_for_each_entry(ctx, &dev->ctx_list, list) { in mtk_vcodec_vpu_reset_dec_handler() 69 list_for_each_entry(ctx, &dev->ctx_list, list) { in mtk_vcodec_vpu_reset_enc_handler()
|
/linux-6.12.1/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_binding.c | 291 ctx_list)->ctx; in vmw_cbs_context() 323 list_del(&bi->ctx_list); in vmw_binding_drop() 353 list_add(&loc->ctx_list, &cbs->list); in vmw_binding_add() 414 list_add_tail(&loc->ctx_list, &cbs->list); in vmw_binding_transfer() 433 list_for_each_entry_safe(entry, next, &cbs->list, ctx_list) in vmw_binding_state_kill() 450 list_for_each_entry(entry, &cbs->list, ctx_list) { in vmw_binding_state_scrub() 525 list_for_each_entry_safe(entry, next, &from->list, ctx_list) { in vmw_binding_state_commit() 548 list_for_each_entry(entry, &cbs->list, ctx_list) { in vmw_binding_rebind_all() 1410 list_for_each_entry_safe(entry, next, &cbs->list, ctx_list) in vmw_binding_state_reset()
|
D | vmwgfx_binding.h | 75 struct list_head ctx_list; member
|
/linux-6.12.1/drivers/gpu/drm/i915/ |
D | i915_drm_client.c | 30 INIT_LIST_HEAD(&client->ctx_list); in i915_drm_client_alloc() 145 list_for_each_entry_rcu(ctx, &client->ctx_list, client_link) in show_client_class()
|
D | i915_drm_client.h | 28 struct list_head ctx_list; /* List of contexts belonging to client. */ member
|
/linux-6.12.1/drivers/media/platform/mediatek/mdp/ |
D | mtk_mdp_core.c | 80 list_for_each_entry(ctx, &mdp->ctx_list, list) { in mtk_mdp_wdt_worker() 120 INIT_LIST_HEAD(&mdp->ctx_list); in mtk_mdp_probe()
|
D | mtk_mdp_core.h | 159 struct list_head ctx_list; member
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | xsk.c | 63 struct list_head ctx_list; member 248 INIT_LIST_HEAD(&umem->ctx_list); in xsk_umem__create() 463 if (list_empty(&umem->ctx_list)) in xsk_get_ctx() 466 list_for_each_entry(ctx, &umem->ctx_list, list) { in xsk_get_ctx() 534 list_add(&ctx->list, &umem->ctx_list); in xsk_create_ctx()
|
/linux-6.12.1/drivers/infiniband/hw/usnic/ |
D | usnic_ib.h | 80 struct list_head ctx_list; member
|
D | usnic_ib_main.c | 113 list_for_each_entry(ctx, &us_ibdev->ctx_list, link) { in usnic_ib_qp_grp_modify_active_to_err() 394 INIT_LIST_HEAD(&us_ibdev->ctx_list); in usnic_ib_device_add()
|
/linux-6.12.1/drivers/infiniband/ulp/rtrs/ |
D | rtrs-srv.h | 108 struct list_head ctx_list; member
|
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/encoder/ |
D | mtk_vcodec_enc_drv.h | 197 struct list_head ctx_list; member
|
D | mtk_vcodec_enc_drv.c | 181 list_add(&ctx->list, &dev->ctx_list); in fops_vcodec_open() 246 INIT_LIST_HEAD(&dev->ctx_list); in mtk_vcodec_probe()
|
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/ |
D | mtk_vcodec_dec_drv.h | 273 struct list_head ctx_list; member
|
D | mtk_vcodec_dec_drv.c | 272 list_add(&ctx->list, &dev->ctx_list); in fops_vcodec_open() 365 INIT_LIST_HEAD(&dev->ctx_list); in mtk_vcodec_probe()
|
D | vdec_vpu_if.c | 81 list_for_each_entry(ctx, &dec_dev->ctx_list, list) { in vpu_dec_check_ap_inst()
|
/linux-6.12.1/drivers/infiniband/core/ |
D | ucma.c | 79 struct list_head ctx_list; member 225 list_add_tail(&ctx->list, &ctx->file->ctx_list); in ucma_finish_ctx() 1670 list_add_tail(&ctx->list, &new_file->ctx_list); in ucma_migrate_id() 1780 INIT_LIST_HEAD(&file->ctx_list); in ucma_open() 1802 while (!list_empty(&file->ctx_list)) { in ucma_close() 1804 &file->ctx_list, struct ucma_context, list); in ucma_close()
|
/linux-6.12.1/drivers/gpu/ipu-v3/ |
D | ipu-image-convert.c | 217 struct list_head ctx_list; member 1597 list_for_each_entry(ctx, &chan->ctx_list, list) { in do_bh() 2233 get_res = list_empty(&chan->ctx_list); in ipu_image_convert_prepare() 2235 list_add_tail(&ctx->list, &chan->ctx_list); in ipu_image_convert_prepare() 2384 put_res = list_empty(&chan->ctx_list); in ipu_image_convert_unprepare() 2498 INIT_LIST_HEAD(&chan->ctx_list); in ipu_image_convert_init()
|