Home
last modified time | relevance | path

Searched refs:batch_size (Results 1 – 25 of 28) sorted by relevance

12

/linux/tools/testing/selftests/bpf/map_tests/
H A Dmap_in_map_batch_ops.c123 __u32 batch_size, bool delete_entries, in fetch_and_validate() argument
128 __u32 batch_key = 0, fetch_count, step_size = batch_size; in fetch_and_validate()
158 step_size += batch_size; in fetch_and_validate()
180 printf("batch_op(%s) is successful with batch_size(%d)\n", in fetch_and_validate()
181 delete_entries ? "LOOKUP_AND_DELETE" : "LOOKUP", batch_size); in fetch_and_validate()
195 int batch_size[2] = {5, 10}; in _map_in_map_batch_ops() local
242 batch_size[op_index], false, in _map_in_map_batch_ops()
/linux/tools/testing/selftests/bpf/
H A Dtest_lru_map.c256 unsigned int batch_size; in test_lru_sanity1() local
269 batch_size = tgt_free / 2; in test_lru_sanity1()
270 assert(batch_size * 2 == tgt_free); in test_lru_sanity1()
272 map_size = __map_size(tgt_free) + batch_size; in test_lru_sanity1()
281 /* Insert map_size - batch_size keys */ in test_lru_sanity1()
287 /* Lookup 1 to batch_size */ in test_lru_sanity1()
288 end_key = 1 + batch_size; in test_lru_sanity1()
295 /* Insert another map_size - batch_size keys in test_lru_sanity1()
296 * Map will contain 1 to batch_size plus these latest, i.e., in test_lru_sanity1()
297 * => previous 1+batch_size t in test_lru_sanity1()
325 unsigned int batch_size; test_lru_sanity2() local
430 unsigned int batch_size; test_lru_sanity3() local
[all...]
/linux/net/bpf/
H A Dtest_run.c119 u32 batch_size; member
168 .pool_size = xdp->batch_size, in xdp_test_run_setup()
174 xdp->frames = kvmalloc_array(xdp->batch_size, sizeof(void *), GFP_KERNEL); in xdp_test_run_setup()
178 xdp->skbs = kvmalloc_array(xdp->batch_size, sizeof(void *), GFP_KERNEL); in xdp_test_run_setup()
298 batch_sz = min_t(u32, repeat, xdp->batch_size); in xdp_test_run_batch()
373 u32 repeat, u32 batch_size, u32 *time) in bpf_test_run_xdp_live() argument
376 struct xdp_test_data xdp = { .batch_size = batch_size }; in bpf_test_run_xdp_live()
693 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing()
769 kattr->test.repeat || kattr->test.batch_size) in bpf_prog_test_run_raw_tp()
1210 u32 batch_size = kattr->test.batch_size; bpf_prog_test_run_xdp() local
[all...]
/linux/drivers/gpu/drm/xe/
H A Dxe_migrate.c812 u32 batch_size = 2; /* arb_clear() + MI_BATCH_BUFFER_END */ in xe_migrate_copy() local
834 batch_size += pte_update_size(m, pte_flags, src, &src_it, &src_L0, in xe_migrate_copy()
839 batch_size += pte_update_size(m, pte_flags, dst, &dst_it, &src_L0, in xe_migrate_copy()
846 batch_size += pte_update_size(m, 0, NULL, &ccs_it, &ccs_size, in xe_migrate_copy()
854 batch_size += ((copy_only_ccs) ? 0 : EMIT_COPY_DW) + in xe_migrate_copy()
857 bb = xe_bb_new(gt, batch_size, usm); in xe_migrate_copy()
1090 u32 batch_size, update_idx; in xe_migrate_clear() local
1100 batch_size = 2 + in xe_migrate_clear()
1107 batch_size += EMIT_COPY_CCS_DW; in xe_migrate_clear()
1114 bb = xe_bb_new(gt, batch_size, usm); in xe_migrate_clear()
[all …]
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_renderstate.c90 so->batch_size = rodata->batch_items * sizeof(u32); in render_state_setup()
223 so->batch_offset, so->batch_size, in intel_renderstate_emit()
H A Dintel_renderstate.h40 u32 batch_size; member
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_migrate.c394 u32 batch_size = 2; /* arb_clear() + MI_BATCH_BUFFER_END */ in blt_copy() local
409 batch_size += pte_update_size(m, pte_flags, src, &src_it, &src_L0, in blt_copy()
415 batch_size += pte_update_size(m, pte_flags, dst, &dst_it, &src_L0, in blt_copy()
420 batch_size += ((copy_only_ccs) ? 0 : EMIT_COPY_DW) + in blt_copy()
423 bb = xe_bb_new(gt, batch_size, xe->info.has_usm); in blt_copy()
/linux/drivers/net/ethernet/sfc/falcon/
H A Drx.c334 unsigned int fill_level, batch_size; in ef4_fast_push_rx_descriptors() local
352 batch_size = efx->rx_pages_per_batch * efx->rx_bufs_per_page; in ef4_fast_push_rx_descriptors()
354 EF4_BUG_ON_PARANOID(space < batch_size); in ef4_fast_push_rx_descriptors()
371 } while ((space -= batch_size) >= batch_size); in ef4_fast_push_rx_descriptors()
/linux/drivers/net/ethernet/sfc/siena/
H A Drx_common.c458 unsigned int fill_level, batch_size; in efx_siena_fast_push_rx_descriptors() local
476 batch_size = efx->rx_pages_per_batch * efx->rx_bufs_per_page; in efx_siena_fast_push_rx_descriptors()
478 EFX_WARN_ON_ONCE_PARANOID(space < batch_size); in efx_siena_fast_push_rx_descriptors()
493 } while ((space -= batch_size) >= batch_size); in efx_siena_fast_push_rx_descriptors()
/linux/drivers/net/ethernet/sfc/
H A Drx_common.c460 unsigned int fill_level, batch_size; in efx_fast_push_rx_descriptors() local
478 batch_size = efx->rx_pages_per_batch * efx->rx_bufs_per_page; in efx_fast_push_rx_descriptors()
480 EFX_WARN_ON_ONCE_PARANOID(space < batch_size); in efx_fast_push_rx_descriptors()
495 } while ((space -= batch_size) >= batch_size); in efx_fast_push_rx_descriptors()
/linux/mm/
H A Dshrinker.c380 long batch_size = shrinker->batch ? shrinker->batch in do_shrink_slab() local
416 * Normally, we should not scan less than batch_size objects in one in do_shrink_slab()
418 * than batch_size objects in total and we are really tight on memory, in do_shrink_slab()
422 * batch_size. in do_shrink_slab()
430 while (total_scan >= batch_size || in do_shrink_slab()
433 unsigned long nr_to_scan = min(batch_size, total_scan); in do_shrink_slab()
H A Dmemory.c2251 const int batch_size = min_t(int, pages_to_write_in_pmd, 8); in insert_pages() local
2258 for (pte = start_pte; pte_idx < batch_size; ++pte, ++pte_idx) { in insert_pages()
2271 pages_to_write_in_pmd -= batch_size; in insert_pages()
2272 remaining_pages_total -= batch_size; in insert_pages()
H A Dvmscan.c7794 unsigned long batch_size = (nr_to_reclaim - nr_reclaimed) / 4; in user_proactive_reclaim() local
7813 batch_size, gfp_mask, in user_proactive_reclaim()
7823 .nr_to_reclaim = max(batch_size, SWAP_CLUSTER_MAX), in user_proactive_reclaim()
7834 batch_size, &sc); in user_proactive_reclaim()
/linux/tools/lib/bpf/
H A Dbpf.h681 __u32 batch_size; member
683 #define bpf_test_run_opts__last_field batch_size
H A Dbpf.c1035 attr.test.batch_size = OPTS_GET(opts, batch_size, 0); in bpf_prog_test_run_opts()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_do_redirect.c114 .batch_size = 64, in test_xdp_do_redirect()
/linux/drivers/dma/idxd/
H A Dsysfs.c1049 u64 batch_size; in wq_max_batch_size_store() local
1058 rc = __get_sysfs_u64(buf, &batch_size); in wq_max_batch_size_store()
1062 if (batch_size > idxd->max_batch_size) in wq_max_batch_size_store()
1065 idxd_wq_set_max_batch_size(idxd->data->type, wq, (u32)batch_size); in wq_max_batch_size_store()
/linux/drivers/md/
H A Draid5.c6640 int i, batch_size = 0, hash; in handle_active_stripes() local
6643 while (batch_size < MAX_STRIPE_BATCH && in handle_active_stripes()
6645 batch[batch_size++] = sh; in handle_active_stripes()
6647 if (batch_size == 0) { in handle_active_stripes()
6655 return batch_size; in handle_active_stripes()
6670 for (i = 0; i < batch_size; i++) in handle_active_stripes()
6677 for (i = 0; i < batch_size; i++) { in handle_active_stripes()
6681 return batch_size; in handle_active_stripes()
6700 int batch_size, released; in raid5_do_work() local
6704 batch_size in raid5_do_work()
6751 int batch_size, released; raid5d() local
[all...]
/linux/Documentation/bpf/
H A Dbpf_prog_run.rst94 the ``batch_size`` parameter, up to a maximum of 256 packets. For each batch,
/linux/drivers/media/pci/tw5864/
H A Dtw5864-video.c1321 int batch_size = H264_BUF_CNT; in tw5864_handle_frame_work() local
1324 while (dev->h264_buf_r_index != dev->h264_buf_w_index && batch_size--) { in tw5864_handle_frame_work()
/linux/Documentation/networking/
H A Daf_xdp.rst684 int batch_size)
688 xsk_ring_prod__reserve(&xsk->tx, batch_size, &idx);
690 for (i = 0; i < batch_size;) {
711 if (i == batch_size) {
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mcu.c2127 int i, n_chan, batch_size, idx = 0, tx_power, last_ch, err = 0; in mt76_connac_mcu_rate_txpower_band() local
2151 batch_size = DIV_ROUND_UP(n_chan, batch_len); in mt76_connac_mcu_rate_txpower_band()
2160 for (i = 0; i < batch_size; i++) { in mt76_connac_mcu_rate_txpower_band()
2165 num_ch = i == batch_size - 1 ? n_chan - i * batch_len : batch_len; in mt76_connac_mcu_rate_txpower_band()
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmcu.c3565 int i, sku_len, batch_size, batch_len = 3; in mt7925_mcu_rate_txpower_band() local
3620 batch_size = DIV_ROUND_UP(n_chan, batch_len); in mt7925_mcu_rate_txpower_band()
3632 for (i = 0; i < batch_size; i++) { in mt7925_mcu_rate_txpower_band()
3637 num_ch = i == batch_size - 1 ? n_chan % batch_len : batch_len; in mt7925_mcu_rate_txpower_band()
/linux/fs/btrfs/
H A Dtree-log.c3763 int batch_size = 0; in process_dir_items_leaf() local
3844 if (batch_size == 0) in process_dir_items_leaf()
3846 batch_size++; in process_dir_items_leaf()
3849 if (batch_size > 0) { in process_dir_items_leaf()
3853 batch_start, batch_size); in process_dir_items_leaf()
/linux/tools/include/uapi/linux/
H A Dbpf.h1660 __u32 batch_size; member

12