/kernel/linux/linux-5.10/tools/testing/selftests/sparc64/drivers/ |
D | adi-test.c | 184 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/ |
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_ts.h | 63 u32 buf_sz; member 78 u32 buf_sz; member
|
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_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 | 973 .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/ |
D | usnic_vnic.c | 90 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 …]
|
D | usnic_transport.c | 64 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()
|
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);
|
D | usnic_vnic.h | 87 int usnic_vnic_dump(struct usnic_vnic *vnic, char *buf, int buf_sz, 97 int usnic_vnic_spec_dump(char *buf, int buf_sz,
|
D | usnic_transport.h | 44 int usnic_transport_sock_to_str(char *buf, int buf_sz,
|
D | usnic_ib_qp_grp.c | 72 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/ |
D | dbring.c | 29 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/ |
D | snic_trc.c | 65 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/ |
D | vdec_h264_if.c | 172 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/ |
D | ionic_fw.c | 101 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/ |
D | llvm-utils.c | 118 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()
|
D | data.c | 430 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/ |
D | gunz_test.c | 172 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/ |
D | debugfs_sta.c | 619 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/ |
D | xen_snd_front_cfg.c | 245 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/ |
D | stm32-dfsdm-adc.c | 92 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/ |
D | interrupt.c | 101 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/ |
D | sdio_txrx.c | 141 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/ |
D | pci.c | 137 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()
|