/drivers/media/common/videobuf2/ |
D | videobuf2-vmalloc.c | 32 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 …]
|
D | videobuf2-dma-sg.c | 363 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 …]
|
D | videobuf2-dma-contig.c | 219 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 …]
|
D | videobuf2-core.c | 281 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/ |
D | drm_format_helper.c | 116 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/ |
D | lpfc_mem.c | 499 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 …]
|
D | lpfc_sli.c | 1988 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 …]
|
D | lpfc_nvmet.c | 880 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()
|
D | lpfc.h | 160 struct lpfc_dmabuf dbuf; member 171 struct lpfc_dmabuf dbuf; member
|
D | lpfc_debugfs.c | 360 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()
|
D | lpfc_init.c | 898 lpfc_in_buf_free(phba, &dmabuf->dbuf); in lpfc_sli4_free_sp_events()
|
/drivers/net/appletalk/ |
D | ltpc.c | 243 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/ |
D | xen_drm_front.c | 45 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/ |
D | vop_vringh.c | 519 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/ |
D | main.c | 170 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/ |
D | dma-ring.c | 131 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/ |
D | util.c | 274 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/ |
D | omap_udc.c | 2465 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/ |
D | ice_lan_tx_rx.h | 277 u16 dbuf; /* bigger than needed, see above for reason */ member
|
D | ice_lib.c | 37 rlan_ctx.dbuf = vsi->rx_buf_len >> ICE_RLAN_CTX_DBUF_S; in ice_setup_rx_ctx()
|
D | ice_common.c | 1107 ICE_CTX_STORE(ice_rlan_ctx, dbuf, 7, 102),
|
/drivers/mmc/host/ |
D | cavium.c | 299 u64 dbuf) in do_read() argument 307 writeq((0x10000 | (dbuf << 6)), host->base + MIO_EMM_BUF_IDX(host)); in do_read()
|
/drivers/scsi/qla2xxx/ |
D | qla_sup.c | 1527 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/ |
D | bfa_ioc.c | 5369 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()
|