Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A 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()
A 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.3-rc2/tools/testing/selftests/sparc64/drivers/
A Dadi-test.c193 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
221 update_stats(&pread_stats, elapsed_time, buf_sz); in pread_adi()
225 } while (bytes_read < buf_sz); in pread_adi()
249 update_stats(&write_stats, elapsed_time, buf_sz); in write_adi()
251 } while (bytes_written < buf_sz); in write_adi()
260 int buf_sz, unsigned long offset) in pwrite_adi() argument
271 buf_sz - bytes_written, cur_offset); in pwrite_adi()
284 } while (bytes_written < buf_sz); in pwrite_adi()
[all …]
/linux-6.3-rc2/drivers/media/test-drivers/vidtv/
A 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()
A Dvidtv_ts.h62 u32 buf_sz; member
77 u32 buf_sz; member
A 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
A 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()
A 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()
1860 .dest_buf_sz = args->buf_sz, in vidtv_psi_eit_write_into()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/usnic/
A Dusnic_vnic.c89 int buf_sz, in usnic_vnic_dump() argument
102 offset += scnprintf(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()
178 int usnic_vnic_spec_dump(char *buf, int buf_sz, in usnic_vnic_spec_dump() argument
[all …]
A 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()
A 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);
A 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,
A 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()
/linux-6.3-rc2/tools/perf/util/intel-pt-decoder/
A 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.3-rc2/drivers/net/wireless/ath/ath11k/
A 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.3-rc2/drivers/net/wireless/ath/ath12k/
A Ddbring.c31 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.3-rc2/drivers/media/platform/mediatek/vcodec/vdec/
A 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.3-rc2/drivers/scsi/snic/
A 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.3-rc2/drivers/net/ethernet/pensando/ionic/
A 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.3-rc2/drivers/firmware/arm_ffa/
A Ddriver.c193 int idx, count, flags = 0, sz, buf_sz; in __ffa_partition_info_get() local
214 buf_sz = sz = partition_info.a3; in __ffa_partition_info_get()
216 buf_sz = sizeof(*buffer); in __ffa_partition_info_get()
219 buf_sz = sz = 8; in __ffa_partition_info_get()
225 buf_sz); in __ffa_partition_info_get()
319 static int ffa_mem_first_frag(u32 func_id, phys_addr_t buf, u32 buf_sz, in ffa_mem_first_frag() argument
326 .a3 = buf, .a4 = buf_sz, in ffa_mem_first_frag()
385 return ffa_mem_first_frag(func_id, buf, buf_sz, frag_len, len, handle); in ffa_transmit_fragment()
437 buf_sz = max_fragsize / FFA_PAGE_SIZE; in ffa_setup_and_transmit()
444 rc = ffa_transmit_fragment(func_id, addr, buf_sz, in ffa_setup_and_transmit()
[all …]
/linux-6.3-rc2/tools/perf/util/
A 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.3-rc2/tools/testing/selftests/powerpc/nx-gzip/
A 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.3-rc2/sound/xen/
A 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.3-rc2/drivers/iio/adc/
A 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()
/linux-6.3-rc2/net/mac80211/
A Ddebugfs_sta.c669 size_t buf_sz = PAGE_SIZE; in link_sta_he_capa_read() local
678 buf = kmalloc(buf_sz, GFP_KERNEL); in link_sta_he_capa_read()
683 p += scnprintf(p, buf_sz + buf - p, "HE %ssupported\n", in link_sta_he_capa_read()
689 p += scnprintf(p, buf_sz + buf - p, in link_sta_he_capa_read()
694 p += scnprintf(p, buf_sz + buf - p, "\t\t" fmt "\n", \ in link_sta_he_capa_read()
800 p += scnprintf(p, buf_sz + buf - p, in link_sta_he_capa_read()
982 p += scnprintf(p, buf_sz + buf - p, n ": %#.4x\n", v); \ in link_sta_he_capa_read()
1021 p += scnprintf(p, buf_sz + buf - p, "PPE-THRESHOLDS: %#.2x", in link_sta_he_capa_read()
1026 p += scnprintf(p, buf_sz + buf - p, " %#.2x", in link_sta_he_capa_read()
1029 p += scnprintf(p, buf_sz + buf - p, "\n"); in link_sta_he_capa_read()

Completed in 51 milliseconds

1234