/Linux-v5.15/mm/ |
D | mmu_gather.c | 18 struct mmu_gather_batch *batch; in tlb_next_batch() local 20 batch = tlb->active; in tlb_next_batch() 21 if (batch->next) { in tlb_next_batch() 22 tlb->active = batch->next; in tlb_next_batch() 29 batch = (void *)__get_free_pages(GFP_NOWAIT | __GFP_NOWARN, 0); in tlb_next_batch() 30 if (!batch) in tlb_next_batch() 34 batch->next = NULL; in tlb_next_batch() 35 batch->nr = 0; in tlb_next_batch() 36 batch->max = MAX_GATHER_BATCH; in tlb_next_batch() 38 tlb->active->next = batch; in tlb_next_batch() [all …]
|
/Linux-v5.15/arch/powerpc/mm/book3s64/ |
D | hash_tlb.c | 44 struct ppc64_tlb_batch *batch = &get_cpu_var(ppc64_tlb_batch); in hpte_need_flush() local 51 i = batch->index; in hpte_need_flush() 103 if (!batch->active) { in hpte_need_flush() 119 if (i != 0 && (mm != batch->mm || batch->psize != psize || in hpte_need_flush() 120 batch->ssize != ssize)) { in hpte_need_flush() 121 __flush_tlb_pending(batch); in hpte_need_flush() 125 batch->mm = mm; in hpte_need_flush() 126 batch->psize = psize; in hpte_need_flush() 127 batch->ssize = ssize; in hpte_need_flush() 129 batch->pte[i] = rpte; in hpte_need_flush() [all …]
|
/Linux-v5.15/drivers/gpu/drm/i915/selftests/ |
D | igt_spinner.c | 96 if (!spin->batch) { in igt_spinner_pin() 104 spin->batch = vaddr; in igt_spinner_pin() 146 u32 *batch; in igt_spinner_create_request() local 154 if (!spin->batch) { in igt_spinner_create_request() 175 batch = spin->batch; in igt_spinner_create_request() 178 *batch++ = MI_STORE_DWORD_IMM_GEN4; in igt_spinner_create_request() 179 *batch++ = lower_32_bits(hws_address(hws, rq)); in igt_spinner_create_request() 180 *batch++ = upper_32_bits(hws_address(hws, rq)); in igt_spinner_create_request() 182 *batch++ = MI_STORE_DWORD_IMM_GEN4; in igt_spinner_create_request() 183 *batch++ = 0; in igt_spinner_create_request() [all …]
|
D | i915_request.c | 862 struct i915_vma *batch) in empty_request() argument 872 batch->node.start, in empty_request() 873 batch->node.size, in empty_request() 889 struct i915_vma *batch; in live_empty_request() local 898 batch = empty_batch(i915); in live_empty_request() 899 if (IS_ERR(batch)) in live_empty_request() 900 return PTR_ERR(batch); in live_empty_request() 915 request = empty_request(engine, batch); in live_empty_request() 928 request = empty_request(engine, batch); in live_empty_request() 958 i915_vma_unpin(batch); in live_empty_request() [all …]
|
/Linux-v5.15/drivers/gpu/drm/i915/gt/ |
D | gen7_renderclear.c | 234 gen7_emit_state_base_address(struct batch_chunk *batch, in gen7_emit_state_base_address() argument 237 u32 *cs = batch_alloc_items(batch, 0, 10); in gen7_emit_state_base_address() 241 *cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address() 243 *cs++ = (batch_addr(batch) + surface_state_base) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address() 245 *cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address() 247 *cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address() 249 *cs++ = batch_addr(batch) | BASE_ADDRESS_MODIFY; in gen7_emit_state_base_address() 256 batch_advance(batch, cs); in gen7_emit_state_base_address() 260 gen7_emit_vfe_state(struct batch_chunk *batch, in gen7_emit_vfe_state() argument 266 u32 *cs = batch_alloc_items(batch, 32, 8); in gen7_emit_vfe_state() [all …]
|
D | intel_lrc.c | 1283 gen8_emit_flush_coherentl3_wa(struct intel_engine_cs *engine, u32 *batch) in gen8_emit_flush_coherentl3_wa() argument 1286 *batch++ = MI_STORE_REGISTER_MEM_GEN8 | MI_SRM_LRM_GLOBAL_GTT; in gen8_emit_flush_coherentl3_wa() 1287 *batch++ = i915_mmio_reg_offset(GEN8_L3SQCREG4); in gen8_emit_flush_coherentl3_wa() 1288 *batch++ = intel_gt_scratch_offset(engine->gt, in gen8_emit_flush_coherentl3_wa() 1290 *batch++ = 0; in gen8_emit_flush_coherentl3_wa() 1292 *batch++ = MI_LOAD_REGISTER_IMM(1); in gen8_emit_flush_coherentl3_wa() 1293 *batch++ = i915_mmio_reg_offset(GEN8_L3SQCREG4); in gen8_emit_flush_coherentl3_wa() 1294 *batch++ = 0x40400000 | GEN8_LQSC_FLUSH_COHERENT_LINES; in gen8_emit_flush_coherentl3_wa() 1296 batch = gen8_emit_pipe_control(batch, in gen8_emit_flush_coherentl3_wa() 1301 *batch++ = MI_LOAD_REGISTER_MEM_GEN8 | MI_SRM_LRM_GLOBAL_GTT; in gen8_emit_flush_coherentl3_wa() [all …]
|
D | gen8_engine_cs.h | 42 __gen8_emit_pipe_control(u32 *batch, u32 flags0, u32 flags1, u32 offset) in __gen8_emit_pipe_control() argument 44 memset(batch, 0, 6 * sizeof(u32)); in __gen8_emit_pipe_control() 46 batch[0] = GFX_OP_PIPE_CONTROL(6) | flags0; in __gen8_emit_pipe_control() 47 batch[1] = flags1; in __gen8_emit_pipe_control() 48 batch[2] = offset; in __gen8_emit_pipe_control() 50 return batch + 6; in __gen8_emit_pipe_control() 53 static inline u32 *gen8_emit_pipe_control(u32 *batch, u32 flags, u32 offset) in gen8_emit_pipe_control() argument 55 return __gen8_emit_pipe_control(batch, 0, flags, offset); in gen8_emit_pipe_control() 58 static inline u32 *gen12_emit_pipe_control(u32 *batch, u32 flags0, u32 flags1, u32 offset) in gen12_emit_pipe_control() argument 60 return __gen8_emit_pipe_control(batch, flags0, flags1, offset); in gen12_emit_pipe_control()
|
D | selftest_hangcheck.c | 36 u32 *batch; member 79 h->batch = vaddr; in hang_init() 126 u32 *batch; in hang_create_request() local 146 h->batch = vaddr; in hang_create_request() 184 batch = h->batch; in hang_create_request() 186 *batch++ = MI_STORE_DWORD_IMM_GEN4; in hang_create_request() 187 *batch++ = lower_32_bits(hws_address(hws, rq)); in hang_create_request() 188 *batch++ = upper_32_bits(hws_address(hws, rq)); in hang_create_request() 189 *batch++ = rq->fence.seqno; in hang_create_request() 190 *batch++ = MI_NOOP; in hang_create_request() [all …]
|
D | selftest_workarounds.c | 507 struct i915_vma *batch; in check_dirty_whitelist() local 516 batch = create_batch(ce->vm); in check_dirty_whitelist() 517 if (IS_ERR(batch)) { in check_dirty_whitelist() 518 err = PTR_ERR(batch); in check_dirty_whitelist() 545 err = i915_gem_object_lock(batch->obj, &ww); in check_dirty_whitelist() 551 cs = i915_gem_object_pin_map(batch->obj, I915_MAP_WC); in check_dirty_whitelist() 617 i915_gem_object_flush_map(batch->obj); in check_dirty_whitelist() 618 i915_gem_object_unpin_map(batch->obj); in check_dirty_whitelist() 634 err = i915_request_await_object(rq, batch->obj, false); in check_dirty_whitelist() 636 err = i915_vma_move_to_active(batch, rq, 0); in check_dirty_whitelist() [all …]
|
D | selftest_lrc.c | 915 struct i915_vma *batch; in store_context() local 919 batch = create_user_vma(ce->vm, SZ_64K); in store_context() 920 if (IS_ERR(batch)) in store_context() 921 return batch; in store_context() 923 cs = i915_gem_object_pin_map_unlocked(batch->obj, I915_MAP_WC); in store_context() 925 i915_vma_put(batch); in store_context() 931 i915_gem_object_unpin_map(batch->obj); in store_context() 932 i915_vma_put(batch); in store_context() 971 i915_gem_object_flush_map(batch->obj); in store_context() 972 i915_gem_object_unpin_map(batch->obj); in store_context() [all …]
|
D | selftest_engine_cs.c | 134 struct i915_vma *batch; in perf_mi_bb_start() local 140 batch = create_empty_batch(ce); in perf_mi_bb_start() 141 if (IS_ERR(batch)) { in perf_mi_bb_start() 142 err = PTR_ERR(batch); in perf_mi_bb_start() 147 err = i915_vma_sync(batch); in perf_mi_bb_start() 150 i915_vma_put(batch); in perf_mi_bb_start() 168 batch->node.start, 8, in perf_mi_bb_start() 189 i915_vma_put(batch); in perf_mi_bb_start()
|
/Linux-v5.15/arch/powerpc/include/asm/book3s/64/ |
D | tlbflush-hash.h | 25 extern void __flush_tlb_pending(struct ppc64_tlb_batch *batch); 31 struct ppc64_tlb_batch *batch; in arch_enter_lazy_mmu_mode() local 35 batch = this_cpu_ptr(&ppc64_tlb_batch); in arch_enter_lazy_mmu_mode() 36 batch->active = 1; in arch_enter_lazy_mmu_mode() 41 struct ppc64_tlb_batch *batch; in arch_leave_lazy_mmu_mode() local 45 batch = this_cpu_ptr(&ppc64_tlb_batch); in arch_leave_lazy_mmu_mode() 47 if (batch->index) in arch_leave_lazy_mmu_mode() 48 __flush_tlb_pending(batch); in arch_leave_lazy_mmu_mode() 49 batch->active = 0; in arch_leave_lazy_mmu_mode()
|
/Linux-v5.15/drivers/gpu/drm/i915/gem/selftests/ |
D | igt_gem_utils.c | 115 struct i915_vma *batch; in igt_gpu_fill_dw() local 122 batch = igt_emit_store_dw(vma, offset, count, val); in igt_gpu_fill_dw() 123 if (IS_ERR(batch)) in igt_gpu_fill_dw() 124 return PTR_ERR(batch); in igt_gpu_fill_dw() 132 i915_vma_lock(batch); in igt_gpu_fill_dw() 133 err = i915_request_await_object(rq, batch->obj, false); in igt_gpu_fill_dw() 135 err = i915_vma_move_to_active(batch, rq, 0); in igt_gpu_fill_dw() 136 i915_vma_unlock(batch); in igt_gpu_fill_dw() 153 batch->node.start, batch->node.size, in igt_gpu_fill_dw() 161 i915_vma_unpin_and_release(&batch, 0); in igt_gpu_fill_dw()
|
D | i915_gem_client_blt.c | 33 struct i915_vma *batch; member 42 struct drm_i915_gem_object *batch) in prepare_blit() argument 44 const int ver = GRAPHICS_VER(to_i915(batch->base.dev)); in prepare_blit() 49 cs = i915_gem_object_pin_map_unlocked(batch, I915_MAP_WC); in prepare_blit() 101 i915_gem_object_flush_map(batch); in prepare_blit() 102 i915_gem_object_unpin_map(batch); in prepare_blit() 115 i915_vma_put(t->batch); in tiled_blits_destroy_buffers() 154 t->batch = __create_vma(t, PAGE_SIZE, false); in tiled_blits_create_buffers() 155 if (IS_ERR(t->batch)) in tiled_blits_create_buffers() 156 return PTR_ERR(t->batch); in tiled_blits_create_buffers() [all …]
|
/Linux-v5.15/drivers/xen/ |
D | gntdev.c | 734 static int gntdev_get_page(struct gntdev_copy_batch *batch, void __user *virt, in gntdev_get_page() argument 742 ret = pin_user_pages_fast(addr, 1, batch->writeable ? FOLL_WRITE : 0, &page); in gntdev_get_page() 746 batch->pages[batch->nr_pages++] = page; in gntdev_get_page() 754 static void gntdev_put_pages(struct gntdev_copy_batch *batch) in gntdev_put_pages() argument 756 unpin_user_pages_dirty_lock(batch->pages, batch->nr_pages, batch->writeable); in gntdev_put_pages() 757 batch->nr_pages = 0; in gntdev_put_pages() 758 batch->writeable = false; in gntdev_put_pages() 761 static int gntdev_copy(struct gntdev_copy_batch *batch) in gntdev_copy() argument 765 gnttab_batch_copy(batch->ops, batch->nr_ops); in gntdev_copy() 766 gntdev_put_pages(batch); in gntdev_copy() [all …]
|
/Linux-v5.15/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_mob.c | 246 struct vmw_otable_batch *batch) in vmw_otable_batch_setup() argument 250 struct vmw_otable *otables = batch->otables; in vmw_otable_batch_setup() 255 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup() 263 ret = vmw_bo_create_and_populate(dev_priv, bo_size, &batch->otable_bo); in vmw_otable_batch_setup() 268 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup() 269 if (!batch->otables[i].enabled) in vmw_otable_batch_setup() 272 ret = vmw_setup_otable_base(dev_priv, i, batch->otable_bo, in vmw_otable_batch_setup() 283 for (i = 0; i < batch->num_otables; ++i) { in vmw_otable_batch_setup() 284 if (batch->otables[i].enabled) in vmw_otable_batch_setup() 286 &batch->otables[i]); in vmw_otable_batch_setup() [all …]
|
/Linux-v5.15/tools/virtio/ |
D | virtio_test.c | 169 bool delayed, int batch, int reset_n, int bufs) in run_test() argument 177 const bool random_batch = batch == RANDOM_BATCH; in run_test() 192 batch = (random() % vq->vring.num) + 1; in run_test() 195 (started - completed) < batch) { in run_test() 346 long batch = 1, reset = 0; in main() local 375 batch = RANDOM_BATCH; in main() 377 batch = strtol(optarg, NULL, 10); in main() 378 assert(batch > 0); in main() 379 assert(batch < (long)INT_MAX + 1); in main() 400 run_test(&dev, &dev.vqs[0], delayed, batch, reset, 0x100000); in main()
|
/Linux-v5.15/tools/testing/selftests/bpf/map_tests/ |
D | htab_map_batch_ops.c | 78 __u32 batch, count, total, total_success; in __test_map_lookup_and_delete_batch() local 115 err = bpf_map_lookup_and_delete_batch(map_fd, NULL, &batch, keys, in __test_map_lookup_and_delete_batch() 125 err = bpf_map_lookup_and_delete_batch(map_fd, NULL, &batch, keys, in __test_map_lookup_and_delete_batch() 133 err = bpf_map_lookup_and_delete_batch(map_fd, NULL, &batch, keys, in __test_map_lookup_and_delete_batch() 159 total ? &batch : NULL, in __test_map_lookup_and_delete_batch() 160 &batch, keys + total, in __test_map_lookup_and_delete_batch() 222 total ? &batch : NULL, in __test_map_lookup_and_delete_batch() 223 &batch, keys + total, in __test_map_lookup_and_delete_batch()
|
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/flower/ |
D | lag_conf.c | 204 unsigned int member_cnt, enum nfp_fl_lag_batch *batch) in nfp_fl_lag_config_group() argument 224 if (*batch == NFP_FL_LAG_BATCH_FIRST) { in nfp_fl_lag_config_group() 227 *batch = NFP_FL_LAG_BATCH_MEMBER; in nfp_fl_lag_config_group() 233 *batch = NFP_FL_LAG_BATCH_FINISHED; in nfp_fl_lag_config_group() 239 if (*batch == NFP_FL_LAG_BATCH_FINISHED) { in nfp_fl_lag_config_group() 266 enum nfp_fl_lag_batch batch = NFP_FL_LAG_BATCH_FIRST; in nfp_fl_lag_do_work() local 288 &batch); in nfp_fl_lag_do_work() 357 active_count, &batch); in nfp_fl_lag_do_work() 371 if (batch == NFP_FL_LAG_BATCH_MEMBER) { in nfp_fl_lag_do_work() 372 batch = NFP_FL_LAG_BATCH_FINISHED; in nfp_fl_lag_do_work() [all …]
|
/Linux-v5.15/arch/x86/include/asm/ |
D | tlbflush.h | 253 static inline void arch_tlbbatch_add_mm(struct arch_tlbflush_unmap_batch *batch, in arch_tlbbatch_add_mm() argument 257 cpumask_or(&batch->cpumask, &batch->cpumask, mm_cpumask(mm)); in arch_tlbbatch_add_mm() 260 extern void arch_tlbbatch_flush(struct arch_tlbflush_unmap_batch *batch);
|
/Linux-v5.15/tools/virtio/ringtest/ |
D | main.c | 22 int batch = 1; variable 116 int tokick = batch; in run_guest() 129 tokick = batch; in run_guest() 348 batch = c; in main() 372 if (batch > max_outstanding) in main() 373 batch = max_outstanding; in main()
|
/Linux-v5.15/net/core/ |
D | netclassid_cgroup.c | 64 unsigned int batch; member 76 if (--ctx->batch == 0) { in update_classid_sock() 77 ctx->batch = UPDATE_CLASSID_BATCH; in update_classid_sock() 87 .batch = UPDATE_CLASSID_BATCH in update_classid_task()
|
/Linux-v5.15/drivers/vfio/ |
D | vfio_iommu_type1.c | 472 static void vfio_batch_init(struct vfio_batch *batch) in vfio_batch_init() argument 474 batch->size = 0; in vfio_batch_init() 475 batch->offset = 0; in vfio_batch_init() 480 batch->pages = (struct page **) __get_free_page(GFP_KERNEL); in vfio_batch_init() 481 if (!batch->pages) in vfio_batch_init() 484 batch->capacity = VFIO_BATCH_MAX_CAPACITY; in vfio_batch_init() 488 batch->pages = &batch->fallback_page; in vfio_batch_init() 489 batch->capacity = 1; in vfio_batch_init() 492 static void vfio_batch_unpin(struct vfio_batch *batch, struct vfio_dma *dma) in vfio_batch_unpin() argument 494 while (batch->size) { in vfio_batch_unpin() [all …]
|
/Linux-v5.15/include/linux/ |
D | ptr_ring.h | 39 int batch; /* number of entries to consume in a batch */ member 272 if (unlikely(consumer_head - r->consumer_tail >= r->batch || in __ptr_ring_discard_one() 477 r->batch = SMP_CACHE_BYTES * 2 / sizeof(*(r->queue)); in __ptr_ring_set_size() 483 if (r->batch > r->size / 2 || !r->batch) in __ptr_ring_set_size() 484 r->batch = 1; in __ptr_ring_set_size() 511 static inline void ptr_ring_unconsume(struct ptr_ring *r, void **batch, int n, in ptr_ring_unconsume() argument 544 r->queue[head] = batch[--n]; in ptr_ring_unconsume() 553 destroy(batch[--n]); in ptr_ring_unconsume()
|
D | percpu_counter.h | 44 s32 batch); 46 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch); 128 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument 142 percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch) in percpu_counter_add_batch() argument
|