Home
last modified time | relevance | path

Searched refs:chunk_sz (Results 1 – 9 of 9) sorted by relevance

/linux/kernel/sched/ext/
H A Darena.c42 size_t chunk_sz = chunk->end_addr - chunk->start_addr + 1; in scx_arena_clear_chunk() local
43 unsigned long end_bit = chunk_sz >> order; in scx_arena_clear_chunk()
/linux/tools/testing/selftests/bpf/progs/
H A Ddynptr_success.c867 u32 data_sz, chunk_sz, offset = 0;
897 chunk_sz = min_t(u32, sizeof(buf), data_sz - offset); in test_dynptr_probe()
898 err = bpf_dynptr_read(&buf, chunk_sz, &ptr_xdp, offset, 0); in test_dynptr_probe()
812 u32 data_sz, chunk_sz, offset = 0; test_dynptr_memset_xdp_chunks() local
/linux/tools/testing/selftests/bpf/
H A Dtest_sockmap.c471 static int msg_verify_data(struct msghdr *msg, int size, int chunk_sz, in msg_verify_data() argument
502 if (bytes_cnt == chunk_sz) { in msg_verify_data()
522 if (bytes_cnt == chunk_sz) { in msg_verify_data()
695 int chunk_sz = opt->sendpage ? in msg_loop() local
699 errno = msg_verify_data(&msg, recv, chunk_sz, &k, &bytes_cnt, in msg_loop()
708 chunk_sz, in msg_loop()
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf.h41 #define IDPF_NUM_CHUNKS_PER_MSG(struct_sz, chunk_sz) \ argument
42 ((LIBIE_CTLQ_MAX_BUF_LEN - (struct_sz)) / (chunk_sz))
H A Didpf_virtchnl.c278 u32 chunk_sz; member
326 params->chunk_sz); in idpf_send_chunked_msg()
335 buf_sz = params->config_sz + num_chunks * params->chunk_sz; in idpf_send_chunked_msg()
351 pos += num_chunks * params->chunk_sz; in idpf_send_chunked_msg()
1433 .chunk_sz = sizeof(*qi), in idpf_send_config_tx_queue_set_msg()
1622 .chunk_sz = sizeof(*qi), in idpf_send_config_rx_queue_set_msg()
1748 .chunk_sz = sizeof(*qc), in idpf_send_ena_dis_queue_set_msg()
1914 .chunk_sz = sizeof(*vqv), in idpf_send_map_unmap_queue_set_vector_msg()
/linux/kernel/trace/
H A Dbpf_trace.c3486 u64 chunk_sz, off; in __bpf_dynptr_copy_str() local
3499 for (off = 0; off < size; off += chunk_sz - 1) { in __bpf_dynptr_copy_str()
3500 chunk_sz = min_t(u64, sizeof(buf), size - off); in __bpf_dynptr_copy_str()
3505 cnt = str_copy_fn(buf, unsafe_src + off, chunk_sz, tsk); in __bpf_dynptr_copy_str()
3511 if (cnt < chunk_sz || chunk_sz == 1) /* we are done */ in __bpf_dynptr_copy_str()
3524 u64 off, chunk_sz; in __bpf_dynptr_copy() local
3535 for (off = 0; off < size; off += chunk_sz) { in __bpf_dynptr_copy()
3536 chunk_sz = min_t(u64, sizeof(buf), size - off); in __bpf_dynptr_copy()
3537 err = copy_fn(buf, unsafe_src + off, chunk_sz, tsk); in __bpf_dynptr_copy()
3540 err = __bpf_dynptr_write(dst, doff + off, buf, chunk_sz, 0); in __bpf_dynptr_copy()
/linux/kernel/bpf/
H A Dhelpers.c3276 u64 chunk_sz = min_t(u64, sizeof(buf), size - off); in bpf_dynptr_copy() local
3279 err = __bpf_dynptr_read(buf, chunk_sz, src, src_off + off, 0); in bpf_dynptr_copy()
3282 err = __bpf_dynptr_write(dst, dst_off + off, buf, chunk_sz, 0); in bpf_dynptr_copy()
3286 off += chunk_sz; in bpf_dynptr_copy()
3305 u64 chunk_sz, write_off; in bpf_dynptr_memset() local
3324 chunk_sz = min_t(u64, sizeof(buf), size); in bpf_dynptr_memset()
3325 memset(buf, val, chunk_sz); in bpf_dynptr_memset()
3327 for (write_off = 0; write_off < size; write_off += chunk_sz) { in bpf_dynptr_memset()
3328 chunk_sz = min_t(u64, sizeof(buf), size - write_off); in bpf_dynptr_memset()
3329 err = __bpf_dynptr_write(ptr, offset + write_off, buf, chunk_sz, 0); in bpf_dynptr_memset()
/linux/fs/btrfs/
H A Dspace-info.c2064 u64 chunk_sz = calc_effective_data_chunk_size(fs_info); in calc_unalloc_target() local
2066 return BTRFS_UNALLOC_BLOCK_GROUP_TARGET * chunk_sz; in calc_unalloc_target()
2184 u64 chunk_sz = calc_effective_data_chunk_size(space_info->fs_info); in btrfs_space_info_update_reclaimable() local
2190 space_info->reclaimable_bytes >= chunk_sz) in btrfs_space_info_update_reclaimable()
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c736 table->table_chunk_size = hr_dev->caps.chunk_sz; in hns_roce_init_hem_table()