Home
last modified time | relevance | path

Searched refs:batch_size (Results 1 - 25 of 35) sorted by relevance

12

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dmap_in_map_batch_ops.c123 __u32 batch_size, bool delete_entries) in fetch_and_validate()
137 for (step_size = batch_size; in fetch_and_validate()
139 step_size += batch_size) { in fetch_and_validate()
179 printf("batch_op(%s) is successful with batch_size(%d)\n", in fetch_and_validate()
180 delete_entries ? "LOOKUP_AND_DELETE" : "LOOKUP", batch_size); in fetch_and_validate()
193 int batch_size[2] = {5, 10}; in _map_in_map_batch_ops() local
222 batch_size[op_index], false); in _map_in_map_batch_ops()
121 fetch_and_validate(int outer_map_fd, struct bpf_map_batch_opts *opts, __u32 batch_size, bool delete_entries) fetch_and_validate() argument
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_lru_map.c252 unsigned int batch_size; in test_lru_sanity1() local
265 batch_size = tgt_free / 2; in test_lru_sanity1()
266 assert(batch_size * 2 == tgt_free); in test_lru_sanity1()
268 map_size = tgt_free + batch_size; in test_lru_sanity1()
284 end_key = 1 + batch_size; in test_lru_sanity1()
329 unsigned int batch_size; in test_lru_sanity2() local
342 batch_size = tgt_free / 2; in test_lru_sanity2()
343 assert(batch_size * 2 == tgt_free); in test_lru_sanity2()
345 map_size = tgt_free + batch_size; in test_lru_sanity2()
384 end_key = 1 + batch_size; in test_lru_sanity2()
436 unsigned int batch_size; test_lru_sanity3() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_lru_map.c243 unsigned int batch_size; in test_lru_sanity1() local
256 batch_size = tgt_free / 2; in test_lru_sanity1()
257 assert(batch_size * 2 == tgt_free); in test_lru_sanity1()
259 map_size = tgt_free + batch_size; in test_lru_sanity1()
275 end_key = 1 + batch_size; in test_lru_sanity1()
320 unsigned int batch_size; in test_lru_sanity2() local
333 batch_size = tgt_free / 2; in test_lru_sanity2()
334 assert(batch_size * 2 == tgt_free); in test_lru_sanity2()
336 map_size = tgt_free + batch_size; in test_lru_sanity2()
375 end_key = 1 + batch_size; in test_lru_sanity2()
426 unsigned int batch_size; test_lru_sanity3() local
[all...]
/kernel/linux/linux-6.6/net/bpf/
H A Dtest_run.c118 u32 batch_size; member
166 .pool_size = xdp->batch_size, in xdp_test_run_setup()
172 xdp->frames = kvmalloc_array(xdp->batch_size, sizeof(void *), GFP_KERNEL); in xdp_test_run_setup()
176 xdp->skbs = kvmalloc_array(xdp->batch_size, sizeof(void *), GFP_KERNEL); in xdp_test_run_setup()
293 batch_sz = min_t(u32, repeat, xdp->batch_size); in xdp_test_run_batch()
365 u32 repeat, u32 batch_size, u32 *time) in bpf_test_run_xdp_live()
368 struct xdp_test_data xdp = { .batch_size = batch_size }; in bpf_test_run_xdp_live()
660 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing()
729 kattr->test.repeat || kattr->test.batch_size) in bpf_prog_test_run_raw_tp()
364 bpf_test_run_xdp_live(struct bpf_prog *prog, struct xdp_buff *ctx, u32 repeat, u32 batch_size, u32 *time) bpf_test_run_xdp_live() argument
1143 u32 batch_size = kattr->test.batch_size; bpf_prog_test_run_xdp() local
[all...]
/kernel/linux/linux-5.10/samples/bpf/
H A Dxdpsock_user.c1154 int batch_size) in complete_tx_only()
1167 rcvd = xsk_ring_cons__peek(&xsk->umem->cq, batch_size, &idx); in complete_tx_only()
1245 static void tx_only(struct xsk_socket_info *xsk, u32 *frame_nb, int batch_size) in tx_only() argument
1250 while (xsk_ring_prod__reserve(&xsk->tx, batch_size, &idx) < in tx_only()
1251 batch_size) { in tx_only()
1252 complete_tx_only(xsk, batch_size); in tx_only()
1257 for (i = 0; i < batch_size; i++) { in tx_only()
1264 xsk_ring_prod__submit(&xsk->tx, batch_size); in tx_only()
1265 xsk->outstanding_tx += batch_size; in tx_only()
1266 *frame_nb += batch_size; in tx_only()
1153 complete_tx_only(struct xsk_socket_info *xsk, int batch_size) complete_tx_only() argument
1311 int batch_size = get_batch_size(pkt_cnt); tx_only_all() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
H A Dintel_renderstate.h57 u32 batch_size; member
H A Dintel_renderstate.c108 so->batch_size = rodata->batch_items * sizeof(u32); in render_state_setup()
243 so->batch_offset, so->batch_size, in intel_renderstate_emit()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dintel_renderstate.h40 u32 batch_size; member
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Drx_common.c472 unsigned int fill_level, batch_size; in efx_fast_push_rx_descriptors() local
490 batch_size = efx->rx_pages_per_batch * efx->rx_bufs_per_page; in efx_fast_push_rx_descriptors()
492 EFX_WARN_ON_ONCE_PARANOID(space < batch_size); in efx_fast_push_rx_descriptors()
507 } while ((space -= batch_size) >= batch_size); in efx_fast_push_rx_descriptors()
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Drx_common.c459 unsigned int fill_level, batch_size; in efx_fast_push_rx_descriptors() local
477 batch_size = efx->rx_pages_per_batch * efx->rx_bufs_per_page; in efx_fast_push_rx_descriptors()
479 EFX_WARN_ON_ONCE_PARANOID(space < batch_size); in efx_fast_push_rx_descriptors()
494 } while ((space -= batch_size) >= batch_size); in efx_fast_push_rx_descriptors()
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
H A Drx_common.c460 unsigned int fill_level, batch_size; in efx_siena_fast_push_rx_descriptors() local
478 batch_size = efx->rx_pages_per_batch * efx->rx_bufs_per_page; in efx_siena_fast_push_rx_descriptors()
480 EFX_WARN_ON_ONCE_PARANOID(space < batch_size); in efx_siena_fast_push_rx_descriptors()
495 } while ((space -= batch_size) >= batch_size); in efx_siena_fast_push_rx_descriptors()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbpf.h631 __u32 batch_size; member
633 #define bpf_test_run_opts__last_field batch_size
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_do_redirect.c104 .batch_size = 64, in test_xdp_do_redirect()
/kernel/linux/linux-5.10/drivers/dma/idxd/
H A Dsysfs.c1135 u64 batch_size; in wq_max_batch_size_store() local
1144 rc = __get_sysfs_u64(buf, &batch_size); in wq_max_batch_size_store()
1148 if (batch_size > idxd->max_batch_size) in wq_max_batch_size_store()
1151 wq->max_batch_size = (u32)batch_size; in wq_max_batch_size_store()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/md/
H A Draid5.c6372 int i, batch_size = 0, hash; variable
6375 while (batch_size < MAX_STRIPE_BATCH &&
6377 batch[batch_size++] = sh;
6379 if (batch_size == 0) {
6387 return batch_size;
6402 for (i = 0; i < batch_size; i++)
6409 for (i = 0; i < batch_size; i++) {
6413 return batch_size;
6432 int batch_size, released; in raid5_do_work() local
6436 batch_size in raid5_do_work()
6483 int batch_size, released; raid5d() local
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A Draid5.c6696 int i, batch_size = 0, hash; variable
6699 while (batch_size < MAX_STRIPE_BATCH &&
6701 batch[batch_size++] = sh;
6703 if (batch_size == 0) {
6711 return batch_size;
6726 for (i = 0; i < batch_size; i++)
6733 for (i = 0; i < batch_size; i++) {
6737 return batch_size;
6756 int batch_size, released; in raid5_do_work() local
6760 batch_size in raid5_do_work()
6807 int batch_size, released; raid5d() local
[all...]
/kernel/linux/linux-5.10/mm/
H A Dvmscan.c352 long batch_size = shrinker->batch ? shrinker->batch in do_shrink_slab() local
420 * Normally, we should not scan less than batch_size objects in one in do_shrink_slab()
422 * than batch_size objects in total and we are really tight on memory, in do_shrink_slab()
426 * batch_size. in do_shrink_slab()
434 while (total_scan >= batch_size || in do_shrink_slab()
437 unsigned long nr_to_scan = min(batch_size, total_scan); in do_shrink_slab()
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mcu.c2172 int i, n_chan, batch_size, idx = 0, tx_power, last_ch; in mt76_connac_mcu_rate_txpower_band() local
2192 batch_size = DIV_ROUND_UP(n_chan, batch_len); in mt76_connac_mcu_rate_txpower_band()
2201 for (i = 0; i < batch_size; i++) { in mt76_connac_mcu_rate_txpower_band()
2206 num_ch = i == batch_size - 1 ? n_chan % batch_len : batch_len; in mt76_connac_mcu_rate_txpower_band()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dtree-log.c3643 int batch_size = 0; in process_dir_items_leaf() local
3727 if (batch_size == 0) in process_dir_items_leaf()
3729 batch_size++; in process_dir_items_leaf()
3732 if (batch_size > 0) { in process_dir_items_leaf()
3736 batch_start, batch_size); in process_dir_items_leaf()
/kernel/linux/linux-5.10/drivers/media/pci/tw5864/
H A Dtw5864-video.c1323 int batch_size = H264_BUF_CNT; in tw5864_handle_frame_task() local
1326 while (dev->h264_buf_r_index != dev->h264_buf_w_index && batch_size--) { in tw5864_handle_frame_task()
/kernel/linux/linux-6.6/drivers/media/pci/tw5864/
H A Dtw5864-video.c1322 int batch_size = H264_BUF_CNT; in tw5864_handle_frame_task() local
1325 while (dev->h264_buf_r_index != dev->h264_buf_w_index && batch_size--) { in tw5864_handle_frame_task()

Completed in 57 milliseconds

12