Home
last modified time | relevance | path

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

/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-vmalloc.c32 struct dma_buf *dbuf; member
212 static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_attach() argument
216 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_attach()
251 static void vb2_vmalloc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_detach() argument
304 static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_release() argument
307 vb2_vmalloc_put(dbuf->priv); in vb2_vmalloc_dmabuf_ops_release()
310 static int vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_vmap() argument
313 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_vmap()
320 static int vb2_vmalloc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_mmap() argument
323 return vb2_vmalloc_mmap(dbuf->priv, vma); in vb2_vmalloc_dmabuf_ops_mmap()
[all …]
H A Dvideobuf2-dma-contig.c318 static int vb2_dc_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_attach() argument
325 struct vb2_dc_buf *buf = dbuf->priv; in vb2_dc_dmabuf_ops_attach()
356 static void vb2_dc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_detach() argument
421 static void vb2_dc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dc_dmabuf_ops_release() argument
424 vb2_dc_put(dbuf->priv); in vb2_dc_dmabuf_ops_release()
428 vb2_dc_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_begin_cpu_access() argument
435 vb2_dc_dmabuf_ops_end_cpu_access(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_end_cpu_access() argument
441 static int vb2_dc_dmabuf_ops_vmap(struct dma_buf *dbuf, struct iosys_map *map) in vb2_dc_dmabuf_ops_vmap() argument
446 buf = dbuf->priv; in vb2_dc_dmabuf_ops_vmap()
456 static int vb2_dc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_mmap() argument
[all …]
H A Dvideobuf2-core.c313 dma_buf_put(p->dbuf); in __vb2_plane_dmabuf_put()
315 p->dbuf = NULL; in __vb2_plane_dmabuf_put()
1392 struct dma_buf *dbuf = dma_buf_get(planes[plane].m.fd); in __prepare_dmabuf() local
1394 planes[plane].dbuf = dbuf; in __prepare_dmabuf()
1396 if (IS_ERR_OR_NULL(dbuf)) { in __prepare_dmabuf()
1405 planes[plane].length = dbuf->size; in __prepare_dmabuf()
1416 if (dbuf == vb->planes[plane].dbuf && in __prepare_dmabuf()
1439 if (planes[plane].dbuf == vb->planes[i].dbuf && in __prepare_dmabuf()
1442 vb->planes[plane].dbuf = vb->planes[i].dbuf; in __prepare_dmabuf()
1455 planes[plane].dbuf, in __prepare_dmabuf()
[all …]
/linux/drivers/scsi/lpfc/
H A Dlpfc_mem.c516 hbqbp->dbuf.virt = dma_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
517 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
518 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
541 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
574 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
575 &dma_buf->dbuf.phys); in lpfc_sli4_rb_alloc()
576 if (!dma_buf->dbuf.virt) { in lpfc_sli4_rb_alloc()
602 dma_pool_free(phba->lpfc_drb_pool, dmab->dbuf.virt, dmab->dbuf.phys); in lpfc_sli4_rb_free()
632 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_nvmet_drb_pool, in lpfc_sli4_nvmet_alloc()
633 GFP_KERNEL, &dma_buf->dbuf.phys); in lpfc_sli4_nvmet_alloc()
[all …]
H A Dlpfc_sli.c2397 hbq_buf = container_of(dmabuf, struct hbq_dmabuf, dbuf); in lpfc_sli_hbqbuf_free_all()
2398 list_del(&hbq_buf->dbuf.list); in lpfc_sli_hbqbuf_free_all()
2445 dma_addr_t physaddr = hbq_buf->dbuf.phys; in lpfc_sli_hbq_to_firmware_s3()
2464 list_add_tail(&hbq_buf->dbuf.list, &hbqp->hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s3()
2498 drqe.address_lo = putPaddrLow(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
2499 drqe.address_hi = putPaddrHigh(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
2504 list_add_tail(&hbq_buf->dbuf.list, &phba->hbqs[hbqno].hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s4()
2556 list_add_tail(&hbq_buffer->dbuf.list, &hbq_buf_list); in lpfc_sli_hbqbuf_fill_hbqs()
2564 dbuf.list); in lpfc_sli_hbqbuf_fill_hbqs()
2579 dbuf.list); in lpfc_sli_hbqbuf_fill_hbqs()
[all …]
H A Dlpfc_debugfs.c358 hbq_buf = container_of(d_buf, struct hbq_dmabuf, dbuf); in lpfc_debugfs_hbqinfo_data()
359 phys = ((uint64_t)hbq_buf->dbuf.phys & 0xffffffff); in lpfc_debugfs_hbqinfo_data()
363 hbq_buf->dbuf.virt, hbq_buf->tag); in lpfc_debugfs_hbqinfo_data()
H A Dlpfc_init.c951 lpfc_in_buf_free(phba, &dmabuf->dbuf); in lpfc_sli4_free_sp_events()
/linux/tools/virtio/
H A Dvringh_test.c335 int *dbuf, err; in parallel_test() local
339 while ((dbuf = virtqueue_get_buf(vq, &len)) != NULL) { in parallel_test()
341 assert(*dbuf == finished - 1); in parallel_test()
343 assert(*dbuf == finished); in parallel_test()
348 dbuf = data + (xfers % (RINGSIZE + 1)); in parallel_test()
351 *dbuf = xfers; in parallel_test()
353 *dbuf = -1; in parallel_test()
355 switch ((xfers / sizeof(*dbuf)) % 4) { in parallel_test()
359 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
360 sg_set_buf(&sg[1], (void *)dbuf + 1, 2); in parallel_test()
[all …]
/linux/drivers/gpu/drm/xen/
H A 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()
164 struct xen_drm_front_dbuf *dbuf; in xen_drm_front_dbuf_create() local
174 dbuf = kzalloc_obj(*dbuf); in xen_drm_front_dbuf_create()
175 if (!dbuf) in xen_drm_front_dbuf_create()
178 dbuf_add_to_list(front_info, dbuf, dbuf_cookie); in xen_drm_front_dbuf_create()
184 buf_cfg.pgdir = &dbuf->shbuf; in xen_drm_front_dbuf_create()
196 xen_front_pgdir_shbuf_get_dir_start(&dbuf->shbuf); in xen_drm_front_dbuf_create()
216 ret = xen_front_pgdir_shbuf_map(&dbuf->shbuf); in xen_drm_front_dbuf_create()
/linux/net/netfilter/ipvs/
H A Dip_vs_conn.c1586 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_seq_show() local
1600 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_seq_show()
1603 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_seq_show()
1613 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1626 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1652 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_sync_seq_show() local
1662 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_sync_seq_show()
1665 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_sync_seq_show()
1675 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
1688 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
/linux/drivers/base/firmware_loader/
H A Dmain.c115 void *dbuf, in __allocate_fw_priv() argument
123 if ((opt_flags & FW_OPT_PARTIAL) && !dbuf) in __allocate_fw_priv()
142 fw_priv->data = dbuf; in __allocate_fw_priv()
169 struct fw_priv **fw_priv, void *dbuf, size_t size, in alloc_lookup_fw_priv() argument
190 tmp = __allocate_fw_priv(fw_name, fwc, dbuf, size, offset, opt_flags); in alloc_lookup_fw_priv()
743 struct device *device, void *dbuf, size_t size, in _request_firmware_prepare() argument
757 if (firmware_request_builtin_buf(firmware, name, dbuf, size)) { in _request_firmware_prepare()
762 ret = alloc_lookup_fw_priv(name, &fw_cache, &fw_priv, dbuf, size, in _request_firmware_prepare()
H A Dfirmware.h163 struct fw_priv **fw_priv, void *dbuf, size_t size,
/linux/drivers/crypto/bcm/
H A Dutil.c275 u8 dbuf[16]; in __dump_sg() local
283 sg_copy_part_to_buf(sg, dbuf, count, idx); in __dump_sg()
286 4, 1, dbuf, count, false); in __dump_sg()
/linux/drivers/media/platform/nvidia/tegra-vde/
H A Dv4l2.c177 get_dma_buf(vb->planes[i].dbuf); in tegra_buf_init()
179 err = tegra_vde_dmabuf_cache_map(vde, vb->planes[i].dbuf, in tegra_buf_init()
183 dma_buf_put(vb->planes[i].dbuf); in tegra_buf_init()
/linux/drivers/usb/gadget/udc/
H A Domap_udc.c2458 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2499 dbuf = 1; in omap_ep_setup()
2506 dbuf = 0; in omap_ep_setup()
2524 if (dbuf && addr) in omap_ep_setup()
2534 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2543 if (dbuf) in omap_ep_setup()
2554 ep->double_buf = dbuf; in omap_ep_setup()
/linux/kernel/trace/
H A Dtrace_fprobe.c1249 char *dbuf __free(kfree) = NULL; in trace_fprobe_create_internal()
1346 ret = traceprobe_expand_dentry_args(argc, argv, &dbuf); in trace_fprobe_create_internal()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_debug.c7916 u32 *dbuf, dwords; in format_feature() local
7924 dbuf = (u32 *)feature->dump_buf; in format_feature()
7929 dbuf, in format_feature()
7958 dbuf, in format_feature()
8003 u32 buf_size_dwords, *dbuf, *dwords; in qed_dbg_dump() local
8041 dbuf = (u32 *)feature->dump_buf; in qed_dbg_dump()
8044 dbuf, in qed_dbg_dump()
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-mio-defs.h849 uint64_t dbuf:1; member
863 uint64_t dbuf:1;
1026 uint64_t dbuf:1; member
1058 uint64_t dbuf:1;
/linux/drivers/net/ethernet/intel/ice/
H A Dice_base.c501 rlan_ctx.dbuf = DIV_ROUND_UP(ring->rx_buf_len, in ice_setup_rx_ctx()
H A Dice_common.c1388 ICE_CTX_STORE(ice_rlan_ctx, dbuf, 7, 102),
/linux/drivers/gpu/drm/i915/display/
H A Dintel_display_power_well.c1050 u8 enabled_dbuf_slices = display->dbuf.enabled_slices; in gen9_assert_dbuf_enabled()