Home
last modified time | relevance | path

Searched refs:buf_sz (Results 1 – 25 of 78) sorted by relevance

1234

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_urandom_usdt.c14 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()
Dbpf_iter_task_stack.c43 uint64_t buf_sz = 0; in get_task_user_stacks() local
54 buf_sz += res; in get_task_user_stacks()
61 bpf_seq_write(seq, &entries, buf_sz); in get_task_user_stacks()
/linux-6.1.9/tools/testing/selftests/sparc64/drivers/
Dadi-test.c180 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.1.9/drivers/media/test-drivers/vidtv/
Dvidtv_ts.c64 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()
Dvidtv_ts.h62 u32 buf_sz; member
77 u32 buf_sz; member
Dvidtv_psi.h542 u32 buf_sz; member
574 u32 buf_sz; member
608 u32 buf_sz; member
697 u32 buf_sz; member
761 u32 buf_sz; member
Dvidtv_mux.c134 .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()
Dvidtv_psi.c965 .dest_buf_sz = args->buf_sz, in vidtv_psi_pat_write_into()
973 .dest_buf_sz = args->buf_sz, in vidtv_psi_pat_write_into()
978 .dest_buf_sz = args->buf_sz, in vidtv_psi_pat_write_into()
1167 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into()
1177 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into()
1184 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into()
1189 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into()
1309 .dest_buf_sz = args->buf_sz, in vidtv_psi_sdt_write_into()
1318 .dest_buf_sz = args->buf_sz, in vidtv_psi_sdt_write_into()
1323 .dest_buf_sz = args->buf_sz, in vidtv_psi_sdt_write_into()
[all …]
/linux-6.1.9/drivers/infiniband/hw/usnic/
Dusnic_vnic.c89 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 …]
Dusnic_transport.c63 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()
Dusnic_ib_qp_grp.h90 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);
Dusnic_vnic.h87 int usnic_vnic_dump(struct usnic_vnic *vnic, char *buf, int buf_sz,
97 int usnic_vnic_spec_dump(char *buf, int buf_sz,
Dusnic_ib_qp_grp.c71 int usnic_ib_qp_grp_dump_hdr(char *buf, int buf_sz) in usnic_ib_qp_grp_dump_hdr() argument
73 return scnprintf(buf, buf_sz, "|QPN\t|State\t|PID\t|VF Idx\t|Fil ID"); in usnic_ib_qp_grp_dump_hdr()
76 int usnic_ib_qp_grp_dump_rows(void *obj, char *buf, int buf_sz) in usnic_ib_qp_grp_dump_rows() argument
83 return scnprintf(buf, buf_sz, "|%d\t|%s\t|%d\t|%hu\t|%d", in usnic_ib_qp_grp_dump_rows()
91 return scnprintf(buf, buf_sz, "|N/A\t|N/A\t|N/A\t|N/A\t|N/A"); in usnic_ib_qp_grp_dump_rows()
Dusnic_transport.h44 int usnic_transport_sock_to_str(char *buf, int buf_sz,
/linux-6.1.9/tools/perf/util/intel-pt-decoder/
Dintel-pt-log.c29 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.1.9/drivers/net/wireless/ath/ath11k/
Ddbring.c59 ath11k_dbring_fill_magic_value(ar, ptr_aligned, ring->buf_sz); in ath11k_dbring_bufs_replenish()
60 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, in ath11k_dbring_bufs_replenish()
98 dma_unmap_single(ab->dev, paddr, ring->buf_sz, in ath11k_dbring_bufs_replenish()
123 size = ring->buf_sz + align - 1; in ath11k_dbring_fill_bufs()
170 param.buf_size = ring->buf_sz; in ath11k_dbring_wmi_cfg_setup()
210 ring->buf_sz = db_cap->min_buf_sz; in ath11k_dbring_buf_setup()
325 size = ring->buf_sz + ring->buf_align - 1; in ath11k_dbring_buffer_release_event()
350 dma_unmap_single(ab->dev, buff->paddr, ring->buf_sz, in ath11k_dbring_buffer_release_event()
360 handler_data.data_sz = ring->buf_sz; in ath11k_dbring_buffer_release_event()
392 ring->buf_sz, DMA_FROM_DEVICE); in ath11k_dbring_buf_cleanup()
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/vdec/
Dvdec_h264_if.c172 unsigned int buf_sz = get_mv_buf_size(pic->buf_w, pic->buf_h); in alloc_mv_buf() local
178 mem->size = buf_sz; in alloc_mv_buf()
345 unsigned int buf_sz; in vdec_h264_decode() local
359 buf_sz = bs->size; in vdec_h264_decode()
360 nal_start_idx = find_start_code(buf, buf_sz); in vdec_h264_decode()
373 buf_sz -= nal_start_idx; in vdec_h264_decode()
374 if (buf_sz > HDR_PARSING_BUF_SZ) { in vdec_h264_decode()
378 memcpy(inst->vsi->hdr_buf, buf + nal_start_idx, buf_sz); in vdec_h264_decode()
386 data[0] = buf_sz; in vdec_h264_decode()
/linux-6.1.9/drivers/scsi/snic/
Dsnic_trc.c51 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.1.9/drivers/net/ethernet/pensando/ionic/
Dionic_fw.c101 u32 buf_sz, copy_sz, offset; in ionic_firmware_update() local
112 buf_sz = sizeof(idev->dev_cmd_regs->data); in ionic_firmware_update()
116 (int)fw->size, buf_sz, DIV_ROUND_UP(fw->size, buf_sz)); in ionic_firmware_update()
127 copy_sz = min_t(unsigned int, buf_sz, fw->size - offset); in ionic_firmware_update()
/linux-6.1.9/drivers/firmware/arm_ffa/
Ddriver.c274 int idx, count, flags = 0, sz, buf_sz; in __ffa_partition_info_get() local
295 buf_sz = sz = partition_info.a3; in __ffa_partition_info_get()
297 buf_sz = sizeof(*buffer); in __ffa_partition_info_get()
300 buf_sz = sz = 8; in __ffa_partition_info_get()
306 buf_sz); in __ffa_partition_info_get()
400 static int ffa_mem_first_frag(u32 func_id, phys_addr_t buf, u32 buf_sz, in ffa_mem_first_frag() argument
407 .a3 = buf, .a4 = buf_sz, in ffa_mem_first_frag()
460 ffa_transmit_fragment(u32 func_id, phys_addr_t buf, u32 buf_sz, u32 frag_len, in ffa_transmit_fragment() argument
466 return ffa_mem_first_frag(func_id, buf, buf_sz, frag_len, len, handle); in ffa_transmit_fragment()
491 u32 idx, frag_len, length, buf_sz = 0, num_entries = sg_nents(args->sg); in ffa_setup_and_transmit() local
[all …]
/linux-6.1.9/tools/perf/util/
Dllvm-utils.c135 size_t read_sz = 0, buf_sz = 0; in read_from_pipe() local
150 if (buf_sz - read_sz < READ_SIZE + 1) { in read_from_pipe()
153 buf_sz = read_sz + READ_SIZE + 1; in read_from_pipe()
154 new_buf = realloc(buf, buf_sz); in read_from_pipe()
167 if (buf_sz - read_sz < 1) { in read_from_pipe()
/linux-6.1.9/tools/testing/selftests/powerpc/nx-gzip/
Dgunz_test.c172 static int nx_touch_pages_dde(struct nx_dde_t *ddep, long buf_sz, long page_sz, in nx_touch_pages_dde() argument
188 NXPRT(fprintf(stderr, "0x%lx\n", buf_sz)); in nx_touch_pages_dde()
198 if (buf_sz == 0) in nx_touch_pages_dde()
202 buf_sz), page_sz, wr); in nx_touch_pages_dde()
214 if (buf_sz == 0) in nx_touch_pages_dde()
215 buf_sz = getp32(ddep, ddebc); in nx_touch_pages_dde()
228 if (total > buf_sz) { in nx_touch_pages_dde()
229 buf_len = NX_MIN(buf_len, total - buf_sz); in nx_touch_pages_dde()
/linux-6.1.9/net/mac80211/
Ddebugfs_sta.c648 size_t buf_sz = PAGE_SIZE; in sta_he_capa_read() local
657 buf = kmalloc(buf_sz, GFP_KERNEL); in sta_he_capa_read()
662 p += scnprintf(p, buf_sz + buf - p, "HE %ssupported\n", in sta_he_capa_read()
668 p += scnprintf(p, buf_sz + buf - p, in sta_he_capa_read()
673 p += scnprintf(p, buf_sz + buf - p, "\t\t" fmt "\n", \ in sta_he_capa_read()
779 p += scnprintf(p, buf_sz + buf - p, in sta_he_capa_read()
961 p += scnprintf(p, buf_sz + buf - p, n ": %#.4x\n", v); \ in sta_he_capa_read()
1000 p += scnprintf(p, buf_sz + buf - p, "PPE-THRESHOLDS: %#.2x", in sta_he_capa_read()
1005 p += scnprintf(p, buf_sz + buf - p, " %#.2x", in sta_he_capa_read()
1008 p += scnprintf(p, buf_sz + buf - p, "\n"); in sta_he_capa_read()
/linux-6.1.9/sound/xen/
Dxen_snd_front_cfg.c245 size_t buf_sz; in cfg_read_pcm_hw() local
274 buf_sz = xenbus_read_unsigned(path, XENSND_FIELD_BUFFER_SIZE, 0); in cfg_read_pcm_hw()
275 if (buf_sz) in cfg_read_pcm_hw()
276 pcm_hw->buffer_bytes_max = buf_sz; in cfg_read_pcm_hw()
/linux-6.1.9/drivers/iio/adc/
Dstm32-dfsdm-adc.c92 unsigned int buf_sz; /* Buffer size */ member
796 adc->buf_sz = min(rx_buf_sz, watermark * 2 * adc->nconv); in stm32_dfsdm_set_watermark()
811 unsigned int i = adc->buf_sz - state.residue; in stm32_dfsdm_adc_dma_residue()
818 size = adc->buf_sz + i - adc->bufi; in stm32_dfsdm_adc_dma_residue()
877 if (adc->bufi >= adc->buf_sz) { in stm32_dfsdm_dma_buffer_done()
880 adc->buf_sz - old_pos, adc->cb_priv); in stm32_dfsdm_dma_buffer_done()
921 adc->buf_sz, adc->buf_sz / 2); in stm32_dfsdm_adc_dma_start()
934 adc->buf_sz, adc->buf_sz / 2, in stm32_dfsdm_adc_dma_start()

1234