Home
last modified time | relevance | path

Searched refs:dbuf (Results 1 – 25 of 34) sorted by relevance

12

/Linux-v5.4/net/core/
Dutils.c124 u8 dbuf[4]; in in4_pton() local
132 d = dbuf; in in4_pton()
164 memcpy(dst, dbuf, sizeof(dbuf)); in in4_pton()
190 u8 dbuf[16]; in in6_pton() local
196 memset(dbuf, 0, sizeof(dbuf)); in in6_pton()
199 d = dbuf; in in6_pton()
229 if (dc - dbuf >= sizeof(dbuf)) in in6_pton()
262 if (!dc && d + 2 < dbuf + sizeof(dbuf)) { in in6_pton()
266 if (d + 2 >= dbuf + sizeof(dbuf)) { in in6_pton()
270 if ((dc && d + 4 < dbuf + sizeof(dbuf)) || in in6_pton()
[all …]
/Linux-v5.4/drivers/media/common/videobuf2/
Dvideobuf2-vmalloc.c32 struct dma_buf *dbuf; member
211 static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_attach() argument
215 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_attach()
250 static void vb2_vmalloc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_detach() argument
316 static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_release() argument
319 vb2_vmalloc_put(dbuf->priv); in vb2_vmalloc_dmabuf_ops_release()
322 static void *vb2_vmalloc_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_vmalloc_dmabuf_ops_kmap() argument
324 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_kmap()
329 static void *vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_vmap() argument
331 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_vmap()
[all …]
Dvideobuf2-dma-sg.c363 static int vb2_dma_sg_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_attach() argument
370 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_attach()
401 static void vb2_dma_sg_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_detach() argument
467 static void vb2_dma_sg_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dma_sg_dmabuf_ops_release() argument
470 vb2_dma_sg_put(dbuf->priv); in vb2_dma_sg_dmabuf_ops_release()
473 static void *vb2_dma_sg_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_dma_sg_dmabuf_ops_kmap() argument
475 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_kmap()
480 static void *vb2_dma_sg_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_dma_sg_dmabuf_ops_vmap() argument
482 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_vmap()
487 static int vb2_dma_sg_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_mmap() argument
[all …]
Dvideobuf2-dma-contig.c219 static int vb2_dc_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_attach() argument
226 struct vb2_dc_buf *buf = dbuf->priv; in vb2_dc_dmabuf_ops_attach()
257 static void vb2_dc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_detach() argument
332 static void vb2_dc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dc_dmabuf_ops_release() argument
335 vb2_dc_put(dbuf->priv); in vb2_dc_dmabuf_ops_release()
338 static void *vb2_dc_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_dc_dmabuf_ops_kmap() argument
340 struct vb2_dc_buf *buf = dbuf->priv; in vb2_dc_dmabuf_ops_kmap()
345 static void *vb2_dc_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_dc_dmabuf_ops_vmap() argument
347 struct vb2_dc_buf *buf = dbuf->priv; in vb2_dc_dmabuf_ops_vmap()
352 static int vb2_dc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_mmap() argument
[all …]
Dvideobuf2-core.c281 dma_buf_put(p->dbuf); in __vb2_plane_dmabuf_put()
283 p->dbuf = NULL; in __vb2_plane_dmabuf_put()
1141 struct dma_buf *dbuf = dma_buf_get(planes[plane].m.fd); in __prepare_dmabuf() local
1143 if (IS_ERR_OR_NULL(dbuf)) { in __prepare_dmabuf()
1152 planes[plane].length = dbuf->size; in __prepare_dmabuf()
1158 dma_buf_put(dbuf); in __prepare_dmabuf()
1164 if (dbuf == vb->planes[plane].dbuf && in __prepare_dmabuf()
1166 dma_buf_put(dbuf); in __prepare_dmabuf()
1188 dbuf, planes[plane].length, q->dma_dir); in __prepare_dmabuf()
1192 dma_buf_put(dbuf); in __prepare_dmabuf()
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_format_helper.c116 static void drm_fb_xrgb8888_to_rgb565_line(u16 *dbuf, u32 *sbuf, in drm_fb_xrgb8888_to_rgb565_line() argument
128 dbuf[x] = swab16(val16); in drm_fb_xrgb8888_to_rgb565_line()
130 dbuf[x] = val16; in drm_fb_xrgb8888_to_rgb565_line()
200 void *dbuf; in drm_fb_xrgb8888_to_rgb565_dstclip() local
202 dbuf = kmalloc(dst_len, GFP_KERNEL); in drm_fb_xrgb8888_to_rgb565_dstclip()
203 if (!dbuf) in drm_fb_xrgb8888_to_rgb565_dstclip()
209 drm_fb_xrgb8888_to_rgb565_line(dbuf, vaddr, linepixels, swab); in drm_fb_xrgb8888_to_rgb565_dstclip()
210 memcpy_toio(dst, dbuf, dst_len); in drm_fb_xrgb8888_to_rgb565_dstclip()
215 kfree(dbuf); in drm_fb_xrgb8888_to_rgb565_dstclip()
219 static void drm_fb_xrgb8888_to_rgb888_line(u8 *dbuf, u32 *sbuf, in drm_fb_xrgb8888_to_rgb888_line() argument
[all …]
/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_mem.c499 hbqbp->dbuf.virt = dma_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
500 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
501 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
524 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
557 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
558 &dma_buf->dbuf.phys); in lpfc_sli4_rb_alloc()
559 if (!dma_buf->dbuf.virt) { in lpfc_sli4_rb_alloc()
585 dma_pool_free(phba->lpfc_drb_pool, dmab->dbuf.virt, dmab->dbuf.phys); in lpfc_sli4_rb_free()
617 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_nvmet_drb_pool, in lpfc_sli4_nvmet_alloc()
618 GFP_KERNEL, &dma_buf->dbuf.phys); in lpfc_sli4_nvmet_alloc()
[all …]
Dlpfc_sli.c1988 hbq_buf = container_of(dmabuf, struct hbq_dmabuf, dbuf); in lpfc_sli_hbqbuf_free_all()
1989 list_del(&hbq_buf->dbuf.list); in lpfc_sli_hbqbuf_free_all()
2036 dma_addr_t physaddr = hbq_buf->dbuf.phys; in lpfc_sli_hbq_to_firmware_s3()
2055 list_add_tail(&hbq_buf->dbuf.list, &hbqp->hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s3()
2089 drqe.address_lo = putPaddrLow(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
2090 drqe.address_hi = putPaddrHigh(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
2095 list_add_tail(&hbq_buf->dbuf.list, &phba->hbqs[hbqno].hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s4()
2147 list_add_tail(&hbq_buffer->dbuf.list, &hbq_buf_list); in lpfc_sli_hbqbuf_fill_hbqs()
2155 dbuf.list); in lpfc_sli_hbqbuf_fill_hbqs()
2170 dbuf.list); in lpfc_sli_hbqbuf_fill_hbqs()
[all …]
Dlpfc_nvmet.c880 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_xmt_ls_rsp()
911 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_xmt_ls_rsp()
923 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_xmt_ls_rsp()
1975 payload = (uint32_t *)(nvmebuf->dbuf.virt); in lpfc_nvmet_unsol_ls_buffer()
1989 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_unsol_ls_buffer()
2033 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_unsol_ls_buffer()
2072 payload = (uint32_t *)(nvmebuf->dbuf.virt); in lpfc_nvmet_process_rcv_fcp_req()
2402 nvmebuf = container_of(d_buf, struct hbq_dmabuf, dbuf); in lpfc_nvmet_unsol_ls_event()
2405 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_unsol_ls_event()
/Linux-v5.4/lib/
Ddecompress_bunzip2.c104 unsigned int *dbuf, dbufSize; member
164 unsigned int *dbuf, origPtr; in get_next_block() local
166 dbuf = bd->dbuf; in get_next_block()
447 dbuf[dbufCount++] = uc; in get_next_block()
477 dbuf[dbufCount++] = (unsigned int)uc; in get_next_block()
495 uc = (unsigned char)(dbuf[i] & 0xff); in get_next_block()
496 dbuf[byteCount[uc]] |= (i << 8); in get_next_block()
506 bd->writePos = dbuf[origPtr]; in get_next_block()
525 const unsigned int *dbuf; in read_bunzip() local
533 dbuf = bd->dbuf; in read_bunzip()
[all …]
/Linux-v5.4/tools/virtio/
Dvringh_test.c330 int *dbuf, err; in parallel_test() local
334 while ((dbuf = virtqueue_get_buf(vq, &len)) != NULL) { in parallel_test()
336 assert(*dbuf == finished - 1); in parallel_test()
338 assert(*dbuf == finished); in parallel_test()
343 dbuf = data + (xfers % (RINGSIZE + 1)); in parallel_test()
346 *dbuf = xfers; in parallel_test()
348 *dbuf = -1; in parallel_test()
350 switch ((xfers / sizeof(*dbuf)) % 4) { in parallel_test()
354 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
355 sg_set_buf(&sg[1], (void *)dbuf + 1, 2); in parallel_test()
[all …]
/Linux-v5.4/drivers/gpu/drm/xen/
Dxen_drm_front.c45 struct xen_drm_front_dbuf *dbuf, u64 dbuf_cookie) in dbuf_add_to_list() argument
47 dbuf->dbuf_cookie = dbuf_cookie; in dbuf_add_to_list()
48 list_add(&dbuf->list, &front_info->dbuf_list); in dbuf_add_to_list()
163 struct xen_drm_front_dbuf *dbuf; in xen_drm_front_dbuf_create() local
173 dbuf = kzalloc(sizeof(*dbuf), GFP_KERNEL); in xen_drm_front_dbuf_create()
174 if (!dbuf) in xen_drm_front_dbuf_create()
177 dbuf_add_to_list(front_info, dbuf, dbuf_cookie); in xen_drm_front_dbuf_create()
183 buf_cfg.pgdir = &dbuf->shbuf; in xen_drm_front_dbuf_create()
195 xen_front_pgdir_shbuf_get_dir_start(&dbuf->shbuf); in xen_drm_front_dbuf_create()
214 ret = xen_front_pgdir_shbuf_map(&dbuf->shbuf); in xen_drm_front_dbuf_create()
/Linux-v5.4/drivers/net/appletalk/
Dltpc.c243 void *dbuf, int dbuflen);
274 unsigned char *dbuf; member
547 qels[0].dbuf = resdbuf; in idle()
596 qels[0].dbuf = resdbuf; in idle()
611 memcpy(ltdmabuf,q->dbuf,q->dbuflen); in idle()
619 memcpy(q->dbuf,ltdmabuf,q->dbuflen); in idle()
647 void *dbuf, int dbuflen) in do_write() argument
656 qels[i].dbuf = dbuf; in do_write()
671 void *dbuf, int dbuflen) in do_read() argument
680 qels[i].dbuf = dbuf; in do_read()
/Linux-v5.4/arch/hexagon/mm/
Dstrnlen_user.S17 #define dbuf r15:14 macro
67 dbuf = memd(start); define
71 P0 = vcmpb.eq(dbuf,dcmp);
/Linux-v5.4/net/netfilter/ipvs/
Dip_vs_conn.c1090 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_seq_show() local
1106 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_seq_show()
1109 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_seq_show()
1119 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1132 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1158 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_sync_seq_show() local
1172 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_sync_seq_show()
1175 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_sync_seq_show()
1185 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
1198 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
/Linux-v5.4/fs/reiserfs/
Dxattr.c196 struct reiserfs_dentry_buf *dbuf = in fill_with_dentries() local
200 WARN_ON_ONCE(!inode_is_locked(d_inode(dbuf->xadir))); in fill_with_dentries()
202 if (dbuf->count == ARRAY_SIZE(dbuf->dentries)) in fill_with_dentries()
209 dentry = lookup_one_len(name, dbuf->xadir, namelen); in fill_with_dentries()
211 dbuf->err = PTR_ERR(dentry); in fill_with_dentries()
218 dentry, dbuf->xadir); in fill_with_dentries()
220 dbuf->err = -EIO; in fill_with_dentries()
224 dbuf->dentries[dbuf->count++] = dentry; in fill_with_dentries()
/Linux-v5.4/drivers/misc/mic/vop/
Dvop_vringh.c519 void __iomem *dbuf = vpdev->hw_ops->remap(vpdev, daddr, len); in vop_virtio_copy_to_user() local
528 if (copy_to_user(ubuf, (void __force *)dbuf, len)) { in vop_virtio_copy_to_user()
571 dbuf += partlen; in vop_virtio_copy_to_user()
579 vpdev->hw_ops->unmap(vpdev, dbuf); in vop_virtio_copy_to_user()
582 __func__, ubuf, dbuf, len, vr_idx); in vop_virtio_copy_to_user()
597 void __iomem *dbuf = vpdev->hw_ops->remap(vpdev, daddr, len); in vop_virtio_copy_from_user() local
648 dbuf += partlen; in vop_virtio_copy_from_user()
658 if (copy_from_user((void __force *)dbuf, ubuf, len)) { in vop_virtio_copy_from_user()
667 vpdev->hw_ops->unmap(vpdev, dbuf); in vop_virtio_copy_from_user()
670 __func__, ubuf, dbuf, len, vr_idx); in vop_virtio_copy_from_user()
/Linux-v5.4/drivers/misc/mei/
Ddma-ring.c131 unsigned char *dbuf = dev->dr_dscr[DMA_DSCR_DEVICE].vaddr; in mei_dma_copy_from() local
136 memcpy(buf, dbuf + b_offset, b_n); in mei_dma_copy_from()
/Linux-v5.4/drivers/base/firmware_loader/
Dmain.c170 void *dbuf, size_t size) in __allocate_fw_priv() argument
186 fw_priv->data = dbuf; in __allocate_fw_priv()
212 struct fw_priv **fw_priv, void *dbuf, in alloc_lookup_fw_priv() argument
229 tmp = __allocate_fw_priv(fw_name, fwc, dbuf, size); in alloc_lookup_fw_priv()
686 struct device *device, void *dbuf, size_t size, in _request_firmware_prepare() argument
700 if (fw_get_builtin_firmware(firmware, name, dbuf, size)) { in _request_firmware_prepare()
705 ret = alloc_lookup_fw_priv(name, &fw_cache, &fw_priv, dbuf, size, in _request_firmware_prepare()
/Linux-v5.4/drivers/crypto/bcm/
Dutil.c274 u8 dbuf[16]; in __dump_sg() local
282 sg_copy_part_to_buf(sg, dbuf, count, idx); in __dump_sg()
285 4, 1, dbuf, count, false); in __dump_sg()
/Linux-v5.4/fs/afs/
Ddir.c113 struct afs_xdr_dir_page *dbuf; in afs_dir_check_page() local
132 dbuf = kmap(page); in afs_dir_check_page()
134 if (dbuf->blocks[tmp].hdr.magic != AFS_DIR_MAGIC) { in afs_dir_check_page()
137 ntohs(dbuf->blocks[tmp].hdr.magic)); in afs_dir_check_page()
148 ((u8 *)&dbuf->blocks[tmp])[AFS_DIR_BLOCK_SIZE - 1] = 0; in afs_dir_check_page()
166 struct afs_xdr_dir_page *dbuf; in afs_dir_check_pages() local
182 dbuf = kmap(req->pages[i]); in afs_dir_check_pages()
184 union afs_xdr_dir_block *block = &dbuf->blocks[j]; in afs_dir_check_pages()
446 struct afs_xdr_dir_page *dbuf; in afs_dir_iterate() local
486 dbuf = kmap(page); in afs_dir_iterate()
[all …]
/Linux-v5.4/include/media/
Dvideobuf2-core.h135 struct dma_buf *dbuf,
176 struct dma_buf *dbuf; member
/Linux-v5.4/fs/gfs2/
Dlog.c460 unsigned int dbuf; in calc_reserved() local
465 dbuf = tr->tr_num_databuf_new - tr->tr_num_databuf_rm; in calc_reserved()
466 reserved = mbuf + dbuf; in calc_reserved()
469 reserved += DIV_ROUND_UP(dbuf, databuf_limit(sdp)); in calc_reserved()
/Linux-v5.4/drivers/usb/gadget/udc/
Domap_udc.c2465 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2506 dbuf = 1; in omap_ep_setup()
2513 dbuf = 0; in omap_ep_setup()
2531 if (dbuf && addr) in omap_ep_setup()
2541 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2550 if (dbuf) in omap_ep_setup()
2561 ep->double_buf = dbuf; in omap_ep_setup()
/Linux-v5.4/drivers/net/ethernet/intel/ice/
Dice_lan_tx_rx.h277 u16 dbuf; /* bigger than needed, see above for reason */ member

12