/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | test_urandom_usdt.c | 14 int BPF_USDT(urand_read_without_sema, int iter_num, int iter_cnt, int buf_sz) in BPF_USDT() argument 20 __sync_fetch_and_add(&urand_read_without_sema_buf_sz_sum, buf_sz); in BPF_USDT() 29 int BPF_USDT(urand_read_with_sema, int iter_num, int iter_cnt, int buf_sz) in BPF_USDT() argument 35 __sync_fetch_and_add(&urand_read_with_sema_buf_sz_sum, buf_sz); in BPF_USDT() 44 int BPF_USDT(urandlib_read_without_sema, int iter_num, int iter_cnt, int buf_sz) in BPF_USDT() argument 50 __sync_fetch_and_add(&urandlib_read_without_sema_buf_sz_sum, buf_sz); in BPF_USDT() 59 int BPF_USDT(urandlib_read_with_sema, int iter_num, int iter_cnt, int buf_sz) in BPF_USDT() argument 65 __sync_fetch_and_add(&urandlib_read_with_sema_buf_sz_sum, buf_sz); in BPF_USDT()
|
D | bpf_iter_task_stack.c | 45 uint64_t buf_sz = 0; in get_task_user_stacks() local 59 buf_sz += res; in get_task_user_stacks() 66 bpf_seq_write(seq, &entries, buf_sz); in get_task_user_stacks()
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_ctrl_mbox.c | 164 u32 pi, ci, buf_sz, w_sz; in octep_ctrl_mbox_send() local 184 buf_sz = msg->hdr.s.sz; in octep_ctrl_mbox_send() 185 for (s = 0; ((s < msg->sg_num) && (buf_sz > 0)); s++) { in octep_ctrl_mbox_send() 187 w_sz = (sg->sz <= buf_sz) ? sg->sz : buf_sz; in octep_ctrl_mbox_send() 189 buf_sz -= w_sz; in octep_ctrl_mbox_send() 228 u32 pi, ci, r_sz, buf_sz, q_depth; in octep_ctrl_mbox_recv() local 247 buf_sz = msg->hdr.s.sz; in octep_ctrl_mbox_recv() 248 for (s = 0; ((s < msg->sg_num) && (buf_sz > 0)); s++) { in octep_ctrl_mbox_recv() 250 r_sz = (sg->sz <= buf_sz) ? sg->sz : buf_sz; in octep_ctrl_mbox_recv() 252 buf_sz -= r_sz; in octep_ctrl_mbox_recv()
|
/linux-6.12.1/tools/testing/selftests/sparc64/drivers/ |
D | adi-test.c | 180 static int read_adi(int fd, unsigned char *buf, int buf_sz) in read_adi() argument 187 ret = read(fd, buf + bytes_read, buf_sz - bytes_read); in read_adi() 193 update_stats(&read_stats, elapsed_time, buf_sz); in read_adi() 196 } while (bytes_read < buf_sz); in read_adi() 205 int buf_sz, unsigned long offset) in pread_adi() argument 214 ret = pread(fd, buf + bytes_read, buf_sz - bytes_read, in pread_adi() 221 update_stats(&pread_stats, elapsed_time, buf_sz); in pread_adi() 225 } while (bytes_read < buf_sz); in pread_adi() 236 static int write_adi(int fd, const unsigned char * const buf, int buf_sz) in write_adi() argument 243 ret = write(fd, buf + bytes_written, buf_sz - bytes_written); in write_adi() [all …]
|
/linux-6.12.1/drivers/media/test-drivers/vidtv/ |
D | vidtv_ts.c | 64 args.buf_sz, in vidtv_ts_null_write_into() 73 args.buf_sz, in vidtv_ts_null_write_into() 107 args.buf_sz, in vidtv_ts_pcr_write_into() 114 args.buf_sz, in vidtv_ts_pcr_write_into() 125 args.buf_sz, in vidtv_ts_pcr_write_into()
|
D | vidtv_psi.h | 542 u32 buf_sz; member 574 u32 buf_sz; member 608 u32 buf_sz; member 697 u32 buf_sz; member 761 u32 buf_sz; member
|
D | vidtv_ts.h | 62 u32 buf_sz; member 77 u32 buf_sz; member
|
D | vidtv_mux.c | 134 .buf_sz = m->mux_buf_sz, in vidtv_mux_push_si() 139 .buf_sz = m->mux_buf_sz, in vidtv_mux_push_si() 144 .buf_sz = m->mux_buf_sz, in vidtv_mux_push_si() 149 .buf_sz = m->mux_buf_sz, in vidtv_mux_push_si() 155 .buf_sz = m->mux_buf_sz, in vidtv_mux_push_si() 230 args.buf_sz = m->mux_buf_sz; in vidtv_mux_push_pcr() 353 .buf_sz = m->mux_buf_sz, in vidtv_mux_pad_with_nulls()
|
D | vidtv_psi.c | 1000 .dest_buf_sz = args->buf_sz, in vidtv_psi_pat_write_into() 1008 .dest_buf_sz = args->buf_sz, in vidtv_psi_pat_write_into() 1013 .dest_buf_sz = args->buf_sz, in vidtv_psi_pat_write_into() 1202 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into() 1212 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into() 1219 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into() 1224 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into() 1344 .dest_buf_sz = args->buf_sz, in vidtv_psi_sdt_write_into() 1353 .dest_buf_sz = args->buf_sz, in vidtv_psi_sdt_write_into() 1358 .dest_buf_sz = args->buf_sz, in vidtv_psi_sdt_write_into() [all …]
|
/linux-6.12.1/drivers/infiniband/hw/usnic/ |
D | usnic_vnic.c | 89 int buf_sz, in usnic_vnic_dump() argument 102 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump() 108 offset += printtitle(hdr_obj, buf + offset, buf_sz - offset); in usnic_vnic_dump() 109 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump() 110 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump() 113 offset += printcols(buf + offset, buf_sz - offset); in usnic_vnic_dump() 114 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump() 121 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump() 127 buf_sz - offset); in usnic_vnic_dump() 129 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump() [all …]
|
D | usnic_transport.c | 63 int usnic_transport_sock_to_str(char *buf, int buf_sz, in usnic_transport_sock_to_str() argument 71 memset(buf, 0, buf_sz); in usnic_transport_sock_to_str() 76 return scnprintf(buf, buf_sz, "Proto:%u Addr:%pI4h Port:%hu", in usnic_transport_sock_to_str()
|
D | usnic_ib_qp_grp.h | 90 int usnic_ib_qp_grp_dump_hdr(char *buf, int buf_sz); 91 int usnic_ib_qp_grp_dump_rows(void *obj, char *buf, int buf_sz);
|
/linux-6.12.1/drivers/net/wireless/ath/ath11k/ |
D | dbring.c | 60 ath11k_dbring_fill_magic_value(ar, ptr_aligned, ring->buf_sz); in ath11k_dbring_bufs_replenish() 61 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, in ath11k_dbring_bufs_replenish() 99 dma_unmap_single(ab->dev, paddr, ring->buf_sz, in ath11k_dbring_bufs_replenish() 124 size = ring->buf_sz + align - 1; in ath11k_dbring_fill_bufs() 171 param.buf_size = ring->buf_sz; in ath11k_dbring_wmi_cfg_setup() 211 ring->buf_sz = db_cap->min_buf_sz; in ath11k_dbring_buf_setup() 326 size = ring->buf_sz + ring->buf_align - 1; in ath11k_dbring_buffer_release_event() 351 dma_unmap_single(ab->dev, buff->paddr, ring->buf_sz, in ath11k_dbring_buffer_release_event() 361 handler_data.data_sz = ring->buf_sz; in ath11k_dbring_buffer_release_event() 393 ring->buf_sz, DMA_FROM_DEVICE); in ath11k_dbring_buf_cleanup()
|
/linux-6.12.1/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-log.c | 29 size_t buf_sz; member 105 size_t space = b->buf_sz - b->head; in log_buf__write() 112 if (sz && b->head >= b->buf_sz) { in log_buf__write() 137 b->buf_sz = sz; in log_buf__open() 138 b->buf = malloc(b->buf_sz); in log_buf__open() 176 write_lines(b->buf + b->head, b->buf_sz - b->head, b->backend, &remove_first); in log_buf__dump()
|
/linux-6.12.1/drivers/net/wireless/ath/ath12k/ |
D | dbring.c | 31 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, in ath12k_dbring_bufs_replenish() 68 dma_unmap_single(ab->dev, paddr, ring->buf_sz, in ath12k_dbring_bufs_replenish() 94 size = sizeof(*buff) + ring->buf_sz + align - 1; in ath12k_dbring_fill_bufs() 135 arg.buf_size = ring->buf_sz; in ath12k_dbring_wmi_cfg_setup() 175 ring->buf_sz = db_cap->min_buf_sz; in ath12k_dbring_buf_setup() 288 size = sizeof(*buff) + ring->buf_sz + ring->buf_align - 1; in ath12k_dbring_buffer_release_event() 313 dma_unmap_single(ab->dev, buff->paddr, ring->buf_sz, in ath12k_dbring_buffer_release_event() 320 handler_data.data_sz = ring->buf_sz; in ath12k_dbring_buffer_release_event() 351 ring->buf_sz, DMA_FROM_DEVICE); in ath12k_dbring_buf_cleanup()
|
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
D | vdec_h264_if.c | 169 unsigned int buf_sz = get_mv_buf_size(pic->buf_w, pic->buf_h); in alloc_mv_buf() local 175 mem->size = buf_sz; in alloc_mv_buf() 339 unsigned int buf_sz; in vdec_h264_decode() local 353 buf_sz = bs->size; in vdec_h264_decode() 354 nal_start_idx = find_start_code(buf, buf_sz); in vdec_h264_decode() 367 buf_sz -= nal_start_idx; in vdec_h264_decode() 368 if (buf_sz > HDR_PARSING_BUF_SZ) { in vdec_h264_decode() 372 memcpy(inst->vsi->hdr_buf, buf + nal_start_idx, buf_sz); in vdec_h264_decode() 380 data[0] = buf_sz; in vdec_h264_decode()
|
/linux-6.12.1/drivers/scsi/snic/ |
D | snic_trc.c | 51 snic_fmt_trc_data(struct snic_trc_data *td, char *buf, int buf_sz) in snic_fmt_trc_data() argument 58 len += snprintf(buf, buf_sz, in snic_fmt_trc_data() 75 snic_get_trc_data(char *buf, int buf_sz) in snic_get_trc_data() argument 101 return snic_fmt_trc_data(td, buf, buf_sz); in snic_get_trc_data()
|
/linux-6.12.1/drivers/net/ethernet/pensando/ionic/ |
D | ionic_fw.c | 101 u32 buf_sz, copy_sz, offset; in ionic_firmware_update() local 117 buf_sz = sizeof(idev->dev_cmd_regs->data); in ionic_firmware_update() 121 (int)fw->size, buf_sz, DIV_ROUND_UP(fw->size, buf_sz)); in ionic_firmware_update() 132 copy_sz = min_t(unsigned int, buf_sz, fw->size - offset); in ionic_firmware_update()
|
/linux-6.12.1/drivers/net/ethernet/amd/pds_core/ |
D | fw.c | 101 u32 buf_sz, copy_sz, offset; in pdsc_firmware_update() local 117 buf_sz = sizeof(pdsc->cmd_regs->data); in pdsc_firmware_update() 121 (int)fw->size, buf_sz, DIV_ROUND_UP(fw->size, buf_sz)); in pdsc_firmware_update() 135 copy_sz = min_t(unsigned int, buf_sz, fw->size - offset); in pdsc_firmware_update()
|
/linux-6.12.1/drivers/firmware/arm_ffa/ |
D | driver.c | 248 int idx, count, flags = 0, sz, buf_sz; in __ffa_partition_info_get() local 270 buf_sz = sz = partition_info.a3; in __ffa_partition_info_get() 272 buf_sz = sizeof(*buffer); in __ffa_partition_info_get() 275 buf_sz = sz = 8; in __ffa_partition_info_get() 281 buf_sz); in __ffa_partition_info_get() 302 u16 buf_sz, start_idx, cur_idx, count = 0, prev_idx = 0, tag = 0; in __ffa_partition_info_get_regs() local 325 buf_sz = PARTITION_INFO_SZ(partition_info.a2); in __ffa_partition_info_get_regs() 326 if (buf_sz > sizeof(*buffer)) in __ffa_partition_info_get_regs() 327 buf_sz = sizeof(*buffer); in __ffa_partition_info_get_regs() 329 memcpy(buffer + prev_idx * buf_sz, &partition_info.a3, in __ffa_partition_info_get_regs() [all …]
|
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/ |
D | sock.c | 536 ssize_t test_client_loop(int sk, char *buf, size_t buf_sz, in test_client_loop() argument 546 for (i = 0; i < buf_sz; i += min(msg_len, buf_sz - i)) { in test_client_loop() 547 size_t sent, bytes = min(msg_len, buf_sz - i); in test_client_loop() 586 size_t buf_sz = msg_len * nr; in test_client_verify() local 587 char *buf = alloca(buf_sz); in test_client_verify() 590 randomize_buffer(buf, buf_sz); in test_client_verify() 591 ret = test_client_loop(sk, buf, buf_sz, msg_len, timeout_sec); in test_client_verify() 594 return ret != buf_sz ? -1 : 0; in test_client_verify()
|
/linux-6.12.1/net/mac80211/ |
D | debugfs_sta.c | 681 size_t buf_sz = PAGE_SIZE; in link_sta_he_capa_read() local 690 buf = kmalloc(buf_sz, GFP_KERNEL); in link_sta_he_capa_read() 695 p += scnprintf(p, buf_sz + buf - p, "HE %ssupported\n", in link_sta_he_capa_read() 701 p += scnprintf(p, buf_sz + buf - p, in link_sta_he_capa_read() 706 p += scnprintf(p, buf_sz + buf - p, "\t\t" fmt "\n", \ in link_sta_he_capa_read() 812 p += scnprintf(p, buf_sz + buf - p, in link_sta_he_capa_read() 994 p += scnprintf(p, buf_sz + buf - p, n ": %#.4x\n", v); \ in link_sta_he_capa_read() 1033 p += scnprintf(p, buf_sz + buf - p, "PPE-THRESHOLDS: %#.2x", in link_sta_he_capa_read() 1038 p += scnprintf(p, buf_sz + buf - p, " %#.2x", in link_sta_he_capa_read() 1041 p += scnprintf(p, buf_sz + buf - p, "\n"); in link_sta_he_capa_read() [all …]
|
/linux-6.12.1/lib/ |
D | buildid.c | 16 u32 buf_sz; member 33 static void freader_init_from_file(struct freader *r, void *buf, u32 buf_sz, in freader_init_from_file() argument 38 r->buf_sz = buf_sz; in freader_init_from_file() 100 if (WARN_ON(r->buf && sz > r->buf_sz)) { in freader_fetch()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | disasm_helpers.c | 38 struct bpf_insn *disasm_insn(struct bpf_insn *insn, char *buf, size_t buf_sz) in disasm_insn() argument 42 .sz = buf_sz, in disasm_insn()
|
/linux-6.12.1/drivers/hwtracing/stm/ |
D | p_sys-t.c | 338 ssize_t buf_sz; in sys_t_write_data() local 351 buf_sz = stm_data_write(data, master, channel, false, in sys_t_write_data() 353 if (buf_sz != count - header_sz) in sys_t_write_data() 354 return buf_sz; in sys_t_write_data() 355 sz = header_sz + buf_sz; in sys_t_write_data()
|