Home
last modified time | relevance | path

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

12

/Linux-v6.1/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-v6.1/drivers/media/common/videobuf2/
Dvideobuf2-vmalloc.c32 struct dma_buf *dbuf; member
208 static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_attach() argument
212 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_attach()
247 static void vb2_vmalloc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_detach() argument
309 static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_release() argument
312 vb2_vmalloc_put(dbuf->priv); in vb2_vmalloc_dmabuf_ops_release()
315 static int vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_vmap() argument
318 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_vmap()
325 static int vb2_vmalloc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_mmap() argument
328 return vb2_vmalloc_mmap(dbuf->priv, vma); in vb2_vmalloc_dmabuf_ops_mmap()
[all …]
Dvideobuf2-dma-sg.c366 static int vb2_dma_sg_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_attach() argument
373 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_attach()
404 static void vb2_dma_sg_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_detach() argument
466 static void vb2_dma_sg_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dma_sg_dmabuf_ops_release() argument
469 vb2_dma_sg_put(dbuf->priv); in vb2_dma_sg_dmabuf_ops_release()
473 vb2_dma_sg_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_begin_cpu_access() argument
476 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_begin_cpu_access()
484 vb2_dma_sg_dmabuf_ops_end_cpu_access(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_end_cpu_access() argument
487 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_end_cpu_access()
494 static int vb2_dma_sg_dmabuf_ops_vmap(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_vmap() argument
[all …]
Dvideobuf2-dma-contig.c317 static int vb2_dc_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_attach() argument
324 struct vb2_dc_buf *buf = dbuf->priv; in vb2_dc_dmabuf_ops_attach()
355 static void vb2_dc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_detach() argument
429 static void vb2_dc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dc_dmabuf_ops_release() argument
432 vb2_dc_put(dbuf->priv); in vb2_dc_dmabuf_ops_release()
436 vb2_dc_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_begin_cpu_access() argument
443 vb2_dc_dmabuf_ops_end_cpu_access(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_end_cpu_access() argument
449 static int vb2_dc_dmabuf_ops_vmap(struct dma_buf *dbuf, struct iosys_map *map) in vb2_dc_dmabuf_ops_vmap() argument
454 buf = dbuf->priv; in vb2_dc_dmabuf_ops_vmap()
464 static int vb2_dc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_mmap() argument
[all …]
Dvideobuf2-core.c301 dma_buf_put(p->dbuf); in __vb2_plane_dmabuf_put()
303 p->dbuf = NULL; in __vb2_plane_dmabuf_put()
1274 struct dma_buf *dbuf = dma_buf_get(planes[plane].m.fd); in __prepare_dmabuf() local
1276 if (IS_ERR_OR_NULL(dbuf)) { in __prepare_dmabuf()
1285 planes[plane].length = dbuf->size; in __prepare_dmabuf()
1291 dma_buf_put(dbuf); in __prepare_dmabuf()
1297 if (dbuf == vb->planes[plane].dbuf && in __prepare_dmabuf()
1299 dma_buf_put(dbuf); in __prepare_dmabuf()
1322 dbuf, in __prepare_dmabuf()
1327 dma_buf_put(dbuf); in __prepare_dmabuf()
[all …]
/Linux-v6.1/drivers/gpu/drm/
Ddrm_format_helper.c48 void (*xfrm_line)(void *dbuf, const void *sbuf, unsigned int npixels)) in __drm_fb_xfrm() argument
91 void (*xfrm_line)(void *dbuf, const void *sbuf, unsigned int npixels)) in __drm_fb_xfrm_toio() argument
101 void *dbuf; in __drm_fb_xfrm_toio() local
104 dbuf = kmalloc(dbuf_len, GFP_KERNEL); in __drm_fb_xfrm_toio()
106 dbuf = kmalloc(stmp_off + sbuf_len, GFP_KERNEL); in __drm_fb_xfrm_toio()
107 stmp = dbuf + stmp_off; in __drm_fb_xfrm_toio()
109 if (!dbuf) in __drm_fb_xfrm_toio()
121 xfrm_line(dbuf, sbuf, linepixels); in __drm_fb_xfrm_toio()
122 memcpy_toio(dst, dbuf, dbuf_len); in __drm_fb_xfrm_toio()
127 kfree(dbuf); in __drm_fb_xfrm_toio()
[all …]
/Linux-v6.1/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-v6.1/drivers/scsi/lpfc/
Dlpfc_mem.c511 hbqbp->dbuf.virt = dma_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
512 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
513 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
536 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
569 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
570 &dma_buf->dbuf.phys); in lpfc_sli4_rb_alloc()
571 if (!dma_buf->dbuf.virt) { in lpfc_sli4_rb_alloc()
597 dma_pool_free(phba->lpfc_drb_pool, dmab->dbuf.virt, dmab->dbuf.phys); in lpfc_sli4_rb_free()
627 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_nvmet_drb_pool, in lpfc_sli4_nvmet_alloc()
628 GFP_KERNEL, &dma_buf->dbuf.phys); in lpfc_sli4_nvmet_alloc()
[all …]
Dlpfc_sli.c2382 hbq_buf = container_of(dmabuf, struct hbq_dmabuf, dbuf); in lpfc_sli_hbqbuf_free_all()
2383 list_del(&hbq_buf->dbuf.list); in lpfc_sli_hbqbuf_free_all()
2430 dma_addr_t physaddr = hbq_buf->dbuf.phys; in lpfc_sli_hbq_to_firmware_s3()
2449 list_add_tail(&hbq_buf->dbuf.list, &hbqp->hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s3()
2483 drqe.address_lo = putPaddrLow(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
2484 drqe.address_hi = putPaddrHigh(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
2489 list_add_tail(&hbq_buf->dbuf.list, &phba->hbqs[hbqno].hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s4()
2541 list_add_tail(&hbq_buffer->dbuf.list, &hbq_buf_list); in lpfc_sli_hbqbuf_fill_hbqs()
2549 dbuf.list); in lpfc_sli_hbqbuf_fill_hbqs()
2564 dbuf.list); in lpfc_sli_hbqbuf_fill_hbqs()
[all …]
/Linux-v6.1/tools/virtio/
Dvringh_test.c331 int *dbuf, err; in parallel_test() local
335 while ((dbuf = virtqueue_get_buf(vq, &len)) != NULL) { in parallel_test()
337 assert(*dbuf == finished - 1); in parallel_test()
339 assert(*dbuf == finished); in parallel_test()
344 dbuf = data + (xfers % (RINGSIZE + 1)); in parallel_test()
347 *dbuf = xfers; in parallel_test()
349 *dbuf = -1; in parallel_test()
351 switch ((xfers / sizeof(*dbuf)) % 4) { in parallel_test()
355 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
356 sg_set_buf(&sg[1], (void *)dbuf + 1, 2); in parallel_test()
[all …]
/Linux-v6.1/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()
164 struct xen_drm_front_dbuf *dbuf; in xen_drm_front_dbuf_create() local
174 dbuf = kzalloc(sizeof(*dbuf), GFP_KERNEL); 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-v6.1/net/netfilter/ipvs/
Dip_vs_conn.c1130 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_seq_show() local
1146 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_seq_show()
1149 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_seq_show()
1159 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1172 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1198 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_sync_seq_show() local
1212 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_sync_seq_show()
1215 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_sync_seq_show()
1225 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
1238 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
/Linux-v6.1/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-v6.1/drivers/gpu/drm/i915/display/
Dskl_watermark.h70 …uf_state(intel_atomic_get_old_global_obj_state(state, &to_i915(state->base.dev)->display.dbuf.obj))
72 …uf_state(intel_atomic_get_new_global_obj_state(state, &to_i915(state->base.dev)->display.dbuf.obj))
Dintel_display_core.h316 } dbuf; member
Dskl_watermark.c506 return INTEL_INFO(i915)->display.dbuf.size / in intel_dbuf_slice_size()
507 hweight8(INTEL_INFO(i915)->display.dbuf.slice_mask); in intel_dbuf_slice_size()
526 WARN_ON(ddb->end > INTEL_INFO(i915)->display.dbuf.size); in skl_ddb_entry_for_slices()
2510 INTEL_INFO(i915)->display.dbuf.slice_mask, in skl_compute_ddb()
2882 to_intel_dbuf_state(i915->display.dbuf.obj.state); in skl_wm_get_hw_state()
2944 dbuf_state->enabled_slices = i915->display.dbuf.enabled_slices; in skl_wm_get_hw_state()
2950 to_intel_dbuf_state(i915->display.dbuf.obj.state); in skl_dbuf_is_misconfigured()
3043 hw_enabled_slices != i915->display.dbuf.enabled_slices) in intel_wm_state_verify()
3046 i915->display.dbuf.enabled_slices, in intel_wm_state_verify()
3327 dbuf_state = intel_atomic_get_global_obj_state(state, &i915->display.dbuf.obj); in intel_atomic_get_dbuf_state()
[all …]
/Linux-v6.1/drivers/gpu/drm/i915/
Di915_pci.c667 .display.dbuf.size = 896 - 4, /* 4 blocks for bypass path allocation */ \
668 .display.dbuf.slice_mask = BIT(DBUF_S1)
703 .display.dbuf.slice_mask = BIT(DBUF_S1), \
741 .display.dbuf.size = 512 - 4, /* 4 blocks for bypass path allocation */
748 .display.dbuf.size = 1024 - 4, /* 4 blocks for bypass path allocation */
838 .display.dbuf.size = 2048, \
839 .display.dbuf.slice_mask = BIT(DBUF_S1) | BIT(DBUF_S2), \
955 .display.dbuf.size = 4096, \
956 .display.dbuf.slice_mask = BIT(DBUF_S1) | BIT(DBUF_S2) | BIT(DBUF_S3) | \
Dintel_device_info.h276 } dbuf; member
/Linux-v6.1/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-v6.1/drivers/base/firmware_loader/
Dmain.c114 void *dbuf, in __allocate_fw_priv() argument
122 if ((opt_flags & FW_OPT_PARTIAL) && !dbuf) in __allocate_fw_priv()
141 fw_priv->data = dbuf; in __allocate_fw_priv()
168 struct fw_priv **fw_priv, void *dbuf, size_t size, in alloc_lookup_fw_priv() argument
189 tmp = __allocate_fw_priv(fw_name, fwc, dbuf, size, offset, opt_flags); in alloc_lookup_fw_priv()
729 struct device *device, void *dbuf, size_t size, in _request_firmware_prepare() argument
743 if (firmware_request_builtin_buf(firmware, name, dbuf, size)) { in _request_firmware_prepare()
748 ret = alloc_lookup_fw_priv(name, &fw_cache, &fw_priv, dbuf, size, in _request_firmware_prepare()
Dfirmware.h164 struct fw_priv **fw_priv, void *dbuf, size_t size,
/Linux-v6.1/drivers/crypto/bcm/
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-v6.1/include/media/
Dvideobuf2-core.h138 struct dma_buf *dbuf,
180 struct dma_buf *dbuf; member
/Linux-v6.1/drivers/media/platform/nvidia/tegra-vde/
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-v6.1/drivers/usb/gadget/udc/
Domap_udc.c2470 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2511 dbuf = 1; in omap_ep_setup()
2518 dbuf = 0; in omap_ep_setup()
2536 if (dbuf && addr) in omap_ep_setup()
2546 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2555 if (dbuf) in omap_ep_setup()
2566 ep->double_buf = dbuf; in omap_ep_setup()

12