/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/ |
H A D | map_in_map_batch_ops.c | 123 __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 D | test_lru_map.c | 252 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 D | test_lru_map.c | 243 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 D | test_run.c | 118 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 D | xdpsock_user.c | 1154 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 D | intel_renderstate.h | 57 u32 batch_size; member
|
H A D | intel_renderstate.c | 108 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 D | intel_renderstate.h | 40 u32 batch_size; member
|
H A D | intel_renderstate.c | 90 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 D | rx.c | 334 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 D | rx.c | 334 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 D | rx_common.c | 472 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 D | rx_common.c | 459 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 D | rx_common.c | 460 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 D | bpf.h | 631 __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 D | xdp_do_redirect.c | 104 .batch_size = 64, in test_xdp_do_redirect()
|
/kernel/linux/linux-5.10/drivers/dma/idxd/ |
H A D | sysfs.c | 1135 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 D | sysfs.c | 1049 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 D | raid5.c | 6372 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 D | raid5.c | 6696 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 D | vmscan.c | 352 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 D | mt76_connac_mcu.c | 2172 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 D | tree-log.c | 3643 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 D | tw5864-video.c | 1323 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 D | tw5864-video.c | 1322 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()
|