Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/tools/testing/selftests/sparc64/drivers/
Dadi-test.c184 static int read_adi(int fd, unsigned char *buf, int buf_sz) in read_adi() argument
191 ret = read(fd, buf + bytes_read, buf_sz - bytes_read); in read_adi()
197 update_stats(&read_stats, elapsed_time, buf_sz); in read_adi()
200 } while (bytes_read < buf_sz); in read_adi()
209 int buf_sz, unsigned long offset) in pread_adi() argument
218 ret = pread(fd, buf + bytes_read, buf_sz - bytes_read, in pread_adi()
225 update_stats(&pread_stats, elapsed_time, buf_sz); in pread_adi()
229 } while (bytes_read < buf_sz); in pread_adi()
240 static int write_adi(int fd, const unsigned char * const buf, int buf_sz) in write_adi() argument
247 ret = write(fd, buf + bytes_written, buf_sz - bytes_written); in write_adi()
[all …]
/kernel/linux/linux-5.10/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.h63 u32 buf_sz; member
78 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.c973 .dest_buf_sz = args->buf_sz, in vidtv_psi_pat_write_into()
981 .dest_buf_sz = args->buf_sz, in vidtv_psi_pat_write_into()
986 .dest_buf_sz = args->buf_sz, in vidtv_psi_pat_write_into()
1175 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into()
1185 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into()
1192 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into()
1197 .dest_buf_sz = args->buf_sz, in vidtv_psi_pmt_write_into()
1317 .dest_buf_sz = args->buf_sz, in vidtv_psi_sdt_write_into()
1326 .dest_buf_sz = args->buf_sz, in vidtv_psi_sdt_write_into()
1331 .dest_buf_sz = args->buf_sz, in vidtv_psi_sdt_write_into()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_vnic.c90 int buf_sz, in usnic_vnic_dump() argument
103 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
109 offset += printtitle(hdr_obj, buf + offset, buf_sz - offset); in usnic_vnic_dump()
110 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump()
111 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
114 offset += printcols(buf + offset, buf_sz - offset); in usnic_vnic_dump()
115 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump()
122 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
128 buf_sz - offset); in usnic_vnic_dump()
130 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
[all …]
Dusnic_transport.c64 int usnic_transport_sock_to_str(char *buf, int buf_sz, in usnic_transport_sock_to_str() argument
72 memset(buf, 0, buf_sz); in usnic_transport_sock_to_str()
77 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_transport.h44 int usnic_transport_sock_to_str(char *buf, int buf_sz,
Dusnic_ib_qp_grp.c72 int usnic_ib_qp_grp_dump_hdr(char *buf, int buf_sz) in usnic_ib_qp_grp_dump_hdr() argument
74 return scnprintf(buf, buf_sz, "|QPN\t|State\t|PID\t|VF Idx\t|Fil ID"); in usnic_ib_qp_grp_dump_hdr()
77 int usnic_ib_qp_grp_dump_rows(void *obj, char *buf, int buf_sz) in usnic_ib_qp_grp_dump_rows() argument
84 return scnprintf(buf, buf_sz, "|%d\t|%s\t|%d\t|%hu\t|%d", in usnic_ib_qp_grp_dump_rows()
92 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()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Ddbring.c29 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, in ath11k_dbring_bufs_replenish()
66 dma_unmap_single(ab->dev, paddr, ring->buf_sz, in ath11k_dbring_bufs_replenish()
90 size = sizeof(*buff) + ring->buf_sz + align - 1; in ath11k_dbring_fill_bufs()
131 param.buf_size = ring->buf_sz; in ath11k_dbring_wmi_cfg_setup()
171 ring->buf_sz = db_cap->min_buf_sz; in ath11k_dbring_buf_setup()
285 size = sizeof(*buff) + ring->buf_sz + ring->buf_align - 1; in ath11k_dbring_buffer_release_event()
310 dma_unmap_single(ab->dev, buff->paddr, ring->buf_sz, in ath11k_dbring_buffer_release_event()
317 handler_data.data_sz = ring->buf_sz; in ath11k_dbring_buffer_release_event()
348 ring->buf_sz, DMA_FROM_DEVICE); in ath11k_dbring_buf_cleanup()
/kernel/linux/linux-5.10/drivers/scsi/snic/
Dsnic_trc.c65 snic_fmt_trc_data(struct snic_trc_data *td, char *buf, int buf_sz) in snic_fmt_trc_data() argument
72 len += snprintf(buf, buf_sz, in snic_fmt_trc_data()
89 snic_get_trc_data(char *buf, int buf_sz) in snic_get_trc_data() argument
115 return snic_fmt_trc_data(td, buf, buf_sz); in snic_get_trc_data()
/kernel/linux/linux-5.10/drivers/media/platform/mtk-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()
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_fw.c101 u32 buf_sz, copy_sz, offset; in ionic_firmware_update() local
120 buf_sz = sizeof(idev->dev_cmd_regs->data); in ionic_firmware_update()
124 (int)fw->size, buf_sz, DIV_ROUND_UP(fw->size, buf_sz)); in ionic_firmware_update()
135 copy_sz = min_t(unsigned int, buf_sz, fw->size - offset); in ionic_firmware_update()
/kernel/linux/linux-5.10/tools/perf/util/
Dllvm-utils.c118 size_t read_sz = 0, buf_sz = 0; in read_from_pipe() local
133 if (buf_sz - read_sz < READ_SIZE + 1) { in read_from_pipe()
136 buf_sz = read_sz + READ_SIZE + 1; in read_from_pipe()
137 new_buf = realloc(buf, buf_sz); in read_from_pipe()
150 if (buf_sz - read_sz < 1) { in read_from_pipe()
Ddata.c430 int perf_data__make_kcore_dir(struct perf_data *data, char *buf, size_t buf_sz) in perf_data__make_kcore_dir() argument
437 ret = snprintf(buf, buf_sz, "%s/kcore_dir", data->path); in perf_data__make_kcore_dir()
438 if (ret < 0 || (size_t)ret >= buf_sz) in perf_data__make_kcore_dir()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/mac80211/
Ddebugfs_sta.c619 size_t buf_sz = PAGE_SIZE; in sta_he_capa_read() local
628 buf = kmalloc(buf_sz, GFP_KERNEL); in sta_he_capa_read()
633 p += scnprintf(p, buf_sz + buf - p, "HE %ssupported\n", in sta_he_capa_read()
639 p += scnprintf(p, buf_sz + buf - p, in sta_he_capa_read()
644 p += scnprintf(p, buf_sz + buf - p, "\t\t" fmt "\n", \ in sta_he_capa_read()
750 p += scnprintf(p, buf_sz + buf - p, in sta_he_capa_read()
930 p += scnprintf(p, buf_sz + buf - p, n ": %#.4x\n", v); \ in sta_he_capa_read()
969 p += scnprintf(p, buf_sz + buf - p, "PPE-THRESHOLDS: %#.2x", in sta_he_capa_read()
974 p += scnprintf(p, buf_sz + buf - p, " %#.2x", in sta_he_capa_read()
977 p += scnprintf(p, buf_sz + buf - p, "\n"); in sta_he_capa_read()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/iio/adc/
Dstm32-dfsdm-adc.c92 unsigned int buf_sz; /* Buffer size */ member
797 adc->buf_sz = min(rx_buf_sz, watermark * 2 * adc->nconv); in stm32_dfsdm_set_watermark()
812 unsigned int i = adc->buf_sz - state.residue; in stm32_dfsdm_adc_dma_residue()
819 size = adc->buf_sz + i - adc->bufi; in stm32_dfsdm_adc_dma_residue()
878 if (adc->bufi >= adc->buf_sz) { in stm32_dfsdm_dma_buffer_done()
881 adc->buf_sz - old_pos, adc->cb_priv); in stm32_dfsdm_dma_buffer_done()
922 adc->buf_sz, adc->buf_sz / 2); in stm32_dfsdm_adc_dma_start()
935 adc->buf_sz, adc->buf_sz / 2, in stm32_dfsdm_adc_dma_start()
/kernel/linux/linux-5.10/drivers/misc/mei/
Dinterrupt.c101 size_t buf_sz; in mei_cl_irq_read_msg() local
169 buf_sz = length + cb->buf_idx; in mei_cl_irq_read_msg()
171 if (buf_sz < cb->buf_idx) { in mei_cl_irq_read_msg()
178 if (cb->buf.size < buf_sz) { in mei_cl_irq_read_msg()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dsdio_txrx.c141 int buf_sz, int *pse_size, int *ple_size) in mt7663s_tx_pick_quota() argument
145 pse_sz = DIV_ROUND_UP(buf_sz + sdio->sched.deficit, MT_PSE_PAGE_SZ); in mt7663s_tx_pick_quota()
220 if (mt7663s_tx_pick_quota(sdio, qid, e->buf_sz, &pse_sz, in mt7663s_tx_run_queue()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dpci.c137 int buf_sz = RTK_PCI_RX_BUF_SIZE; in rtw_pci_free_rx_ring_skbs() local
147 dma_unmap_single(&pdev->dev, dma, buf_sz, DMA_FROM_DEVICE); in rtw_pci_free_rx_ring_skbs()
220 int buf_sz = RTK_PCI_RX_BUF_SIZE; in rtw_pci_reset_rx_desc() local
226 dma = dma_map_single(&pdev->dev, skb->data, buf_sz, DMA_FROM_DEVICE); in rtw_pci_reset_rx_desc()
246 int buf_sz = RTK_PCI_RX_BUF_SIZE; in rtw_pci_sync_rx_desc_device() local
248 dma_sync_single_for_device(dev, dma, buf_sz, DMA_FROM_DEVICE); in rtw_pci_sync_rx_desc_device()
266 int buf_sz = RTK_PCI_RX_BUF_SIZE; in rtw_pci_init_rx_ring() local
283 skb = dev_alloc_skb(buf_sz); in rtw_pci_init_rx_ring()
290 memset(skb->data, 0, buf_sz); in rtw_pci_init_rx_ring()
314 dma_unmap_single(&pdev->dev, dma, buf_sz, DMA_FROM_DEVICE); in rtw_pci_init_rx_ring()

123