Searched refs:chunk_sz (Results 1 – 7 of 7) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | dynptr_success.c | 867 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/kernel/trace/ |
| H A D | bpf_trace.c | 3406 u64 chunk_sz, off; in __bpf_dynptr_copy_str() local 3419 for (off = 0; off < size; off += chunk_sz - 1) { in __bpf_dynptr_copy_str() 3420 chunk_sz = min_t(u64, sizeof(buf), size - off); in __bpf_dynptr_copy_str() 3425 cnt = str_copy_fn(buf, unsafe_src + off, chunk_sz, tsk); in __bpf_dynptr_copy_str() 3431 if (cnt < chunk_sz || chunk_sz == 1) /* we are done */ in __bpf_dynptr_copy_str() 3444 u64 off, chunk_sz; in __bpf_dynptr_copy() local 3455 for (off = 0; off < size; off += chunk_sz) { in __bpf_dynptr_copy() 3456 chunk_sz = min_t(u64, sizeof(buf), size - off); in __bpf_dynptr_copy() 3457 err = copy_fn(buf, unsafe_src + off, chunk_sz, tsk); in __bpf_dynptr_copy() 3460 err = __bpf_dynptr_write(dst, doff + off, buf, chunk_sz, 0); in __bpf_dynptr_copy()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_sockmap.c | 549 static int msg_verify_data(struct msghdr *msg, int size, int chunk_sz, in msg_verify_data() argument 593 if (bytes_cnt == chunk_sz) { in msg_verify_data() 613 if (bytes_cnt == chunk_sz) { in msg_verify_data() 786 int chunk_sz = opt->sendpage ? in msg_loop() local 790 errno = msg_verify_data(&msg, recv, chunk_sz, &k, &bytes_cnt, in msg_loop() 799 chunk_sz, in msg_loop()
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf.h | 42 #define IDPF_NUM_CHUNKS_PER_MSG(struct_sz, chunk_sz) \ argument 43 ((IDPF_CTLQ_MAX_BUF_LEN - (struct_sz)) / (chunk_sz))
|
| H A D | idpf_virtchnl.c | 732 u32 chunk_sz; member 781 params->chunk_sz), totqs); in idpf_send_chunked_msg() 784 buf_sz = params->config_sz + num_chunks * params->chunk_sz; in idpf_send_chunked_msg() 804 pos += num_chunks * params->chunk_sz; in idpf_send_chunked_msg() 808 buf_sz = params->config_sz + num_chunks * params->chunk_sz; in idpf_send_chunked_msg() 1845 .chunk_sz = sizeof(*qi), in idpf_send_config_tx_queue_set_msg() 2034 .chunk_sz = sizeof(*qi), in idpf_send_config_rx_queue_set_msg() 2160 .chunk_sz = sizeof(*qc), in idpf_send_ena_dis_queue_set_msg() 2326 .chunk_sz = sizeof(*vqv), in idpf_send_map_unmap_queue_set_vector_msg()
|
| /linux/fs/btrfs/ |
| H A D | space-info.c | 2055 u64 chunk_sz = calc_effective_data_chunk_size(fs_info); in calc_unalloc_target() local 2057 return BTRFS_UNALLOC_BLOCK_GROUP_TARGET * chunk_sz; in calc_unalloc_target() 2175 u64 chunk_sz = calc_effective_data_chunk_size(space_info->fs_info); in btrfs_space_info_update_reclaimable() local 2181 space_info->reclaimable_bytes >= chunk_sz) in btrfs_space_info_update_reclaimable()
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_hw_v2.c | 2543 caps->chunk_sz = 1 << hr_reg_read(resp_e, PF_CAPS_E_CHUNK_SIZE_SHIFT); in hns_roce_query_caps()
|