Home
last modified time | relevance | path

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

/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 …]
/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 …]
/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()
Dlpfc.h160 struct lpfc_dmabuf dbuf; member
171 struct lpfc_dmabuf dbuf; member
Dlpfc_debugfs.c360 hbq_buf = container_of(d_buf, struct hbq_dmabuf, dbuf); in lpfc_debugfs_hbqinfo_data()
361 phys = ((uint64_t)hbq_buf->dbuf.phys & 0xffffffff); in lpfc_debugfs_hbqinfo_data()
365 hbq_buf->dbuf.virt, hbq_buf->tag); in lpfc_debugfs_hbqinfo_data()
Dlpfc_init.c898 lpfc_in_buf_free(phba, &dmabuf->dbuf); in lpfc_sli4_free_sp_events()
/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()
/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()
/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()
/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()
/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()
/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()
/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()
/drivers/net/ethernet/intel/ice/
Dice_lan_tx_rx.h277 u16 dbuf; /* bigger than needed, see above for reason */ member
Dice_lib.c37 rlan_ctx.dbuf = vsi->rx_buf_len >> ICE_RLAN_CTX_DBUF_S; in ice_setup_rx_ctx()
Dice_common.c1107 ICE_CTX_STORE(ice_rlan_ctx, dbuf, 7, 102),
/drivers/mmc/host/
Dcavium.c299 u64 dbuf) in do_read() argument
307 writeq((0x10000 | (dbuf << 6)), host->base + MIO_EMM_BUF_IDX(host)); in do_read()
/drivers/scsi/qla2xxx/
Dqla_sup.c1527 uint8_t *dbuf = vmalloc(RMW_BUFFER_SIZE); in qla25xx_write_nvram_data() local
1529 if (!dbuf) in qla25xx_write_nvram_data()
1531 ha->isp_ops->read_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, in qla25xx_write_nvram_data()
1533 memcpy(dbuf + (naddr << 2), buf, bytes); in qla25xx_write_nvram_data()
1534 ha->isp_ops->write_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, in qla25xx_write_nvram_data()
1536 vfree(dbuf); in qla25xx_write_nvram_data()
/drivers/scsi/bfa/
Dbfa_ioc.c5369 u16 *buf, *dbuf; in bfa_phy_write_send() local
5386 dbuf = (u16 *)phy->dbuf_kva; in bfa_phy_write_send()
5389 buf[i] = cpu_to_be16(dbuf[i]); in bfa_phy_write_send()
5788 u16 *dbuf = (u16 *)phy->dbuf_kva; in bfa_phy_intr() local
5795 buf[i] = be16_to_cpu(dbuf[i]); in bfa_phy_intr()