Home
last modified time | relevance | path

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

12

/openbmc/u-boot/fs/btrfs/
H A Dextent-io.c18 char *dbuf; in btrfs_read_extent_inline() local
38 dbuf = malloc(dlen); in btrfs_read_extent_inline()
39 if (!dbuf) in btrfs_read_extent_inline()
42 dbuf = out; in btrfs_read_extent_inline()
50 memcpy(out, dbuf + offset, size); in btrfs_read_extent_inline()
51 free(dbuf); in btrfs_read_extent_inline()
53 memmove(out, dbuf + offset, size); in btrfs_read_extent_inline()
60 free(dbuf); in btrfs_read_extent_inline()
70 char *cbuf, *dbuf; in btrfs_read_extent_reg() local
98 dbuf = cbuf + clen; in btrfs_read_extent_reg()
[all …]
H A Dcompression.c13 static u32 decompress_lzo(const u8 *cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_lzo() argument
45 ret = lzo1x_decompress_safe(cbuf, in_len, dbuf, &out_len); in decompress_lzo()
51 dbuf += out_len; in decompress_lzo()
63 static u32 decompress_zlib(const u8 *_cbuf, u32 clen, u8 *dbuf, u32 dlen) in decompress_zlib() argument
76 stream.next_out = dbuf; in decompress_zlib()
115 u8 *dbuf; in btrfs_decompress() local
118 dbuf = (u8 *) d; in btrfs_decompress()
123 memcpy(dbuf, cbuf, res); in btrfs_decompress()
126 return decompress_zlib(cbuf, clen, dbuf, dlen); in btrfs_decompress()
128 return decompress_lzo(cbuf, clen, dbuf, dlen); in btrfs_decompress()
/openbmc/linux/net/core/
H A Dutils.c132 d = dbuf; in in4_pton()
164 memcpy(dst, dbuf, sizeof(dbuf)); in in4_pton()
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()
271 d + 4 == dbuf + sizeof(dbuf)) { in in6_pton()
274 if (d >= dbuf + sizeof(dbuf)) { in in6_pton()
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_format_helper.c101 void *dbuf; in __drm_fb_xfrm_toio() local
107 stmp = dbuf + stmp_off; in __drm_fb_xfrm_toio()
109 if (!dbuf) in __drm_fb_xfrm_toio()
127 kfree(dbuf); in __drm_fb_xfrm_toio()
211 u16 *dbuf16 = dbuf; in drm_fb_swab16_line()
221 u32 *dbuf32 = dbuf; in drm_fb_swab32_line()
277 u8 *dbuf8 = dbuf; in drm_fb_xrgb8888_to_rgb332_line()
325 __le16 *dbuf16 = dbuf; in drm_fb_xrgb8888_to_rgb565_line()
556 u8 *dbuf8 = dbuf; in drm_fb_xrgb8888_to_rgb888_line()
819 u8 *dbuf8 = dbuf; in drm_fb_xrgb8888_to_gray8_line()
[all …]
/openbmc/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-vmalloc.c32 struct dma_buf *dbuf; member
214 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_attach()
305 vb2_vmalloc_put(dbuf->priv); in vb2_vmalloc_dmabuf_ops_release()
311 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_vmap()
339 struct dma_buf *dbuf; in vb2_vmalloc_get_dmabuf() local
350 dbuf = dma_buf_export(&exp_info); in vb2_vmalloc_get_dmabuf()
351 if (IS_ERR(dbuf)) in vb2_vmalloc_get_dmabuf()
357 return dbuf; in vb2_vmalloc_get_dmabuf()
402 struct dma_buf *dbuf, in vb2_vmalloc_attach_dmabuf() argument
407 if (dbuf->size < size) in vb2_vmalloc_attach_dmabuf()
[all …]
H A Dvideobuf2-dma-sg.c375 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_attach()
462 vb2_dma_sg_put(dbuf->priv); in vb2_dma_sg_dmabuf_ops_release()
469 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_begin_cpu_access()
480 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_end_cpu_access()
493 buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_vmap()
526 struct dma_buf *dbuf; in vb2_dma_sg_get_dmabuf() local
537 dbuf = dma_buf_export(&exp_info); in vb2_dma_sg_get_dmabuf()
538 if (IS_ERR(dbuf)) in vb2_dma_sg_get_dmabuf()
544 return dbuf; in vb2_dma_sg_get_dmabuf()
626 if (dbuf->size < size) in vb2_dma_sg_attach_dmabuf()
[all …]
H A Dvideobuf2-dma-contig.c324 struct vb2_dc_buf *buf = dbuf->priv; in vb2_dc_dmabuf_ops_attach()
423 vb2_dc_put(dbuf->priv); in vb2_dc_dmabuf_ops_release()
445 buf = dbuf->priv; in vb2_dc_dmabuf_ops_vmap()
458 return vb2_dc_mmap(dbuf->priv, vma); in vb2_dc_dmabuf_ops_mmap()
503 struct dma_buf *dbuf; in vb2_dc_get_dmabuf() local
517 dbuf = dma_buf_export(&exp_info); in vb2_dc_get_dmabuf()
518 if (IS_ERR(dbuf)) in vb2_dc_get_dmabuf()
524 return dbuf; in vb2_dc_get_dmabuf()
769 struct dma_buf *dbuf, unsigned long size) in vb2_dc_attach_dmabuf() argument
774 if (dbuf->size < size) in vb2_dc_attach_dmabuf()
[all …]
H A Dvideobuf2-core.c301 dma_buf_put(p->dbuf); in __vb2_plane_dmabuf_put()
303 p->dbuf = NULL; in __vb2_plane_dmabuf_put()
1277 dma_buf_put(dbuf); in __prepare_dmabuf()
1283 if (dbuf == vb->planes[plane].dbuf && in __prepare_dmabuf()
1285 dma_buf_put(dbuf); in __prepare_dmabuf()
1308 dbuf, in __prepare_dmabuf()
1313 dma_buf_put(dbuf); in __prepare_dmabuf()
1317 vb->planes[plane].dbuf = dbuf; in __prepare_dmabuf()
2238 struct dma_buf *dbuf; in vb2_core_expbuf() local
2283 if (IS_ERR_OR_NULL(dbuf)) { in vb2_core_expbuf()
[all …]
/openbmc/linux/lib/
H A 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()
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()
571 pos = dbuf[pos]; in read_bunzip()
672 if (!bd->dbuf) in start_bunzip()
732 if (bd->dbuf) in bunzip2()
[all …]
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_mem.c512 &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()
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()
628 GFP_KERNEL, &dma_buf->dbuf.phys); in lpfc_sli4_nvmet_alloc()
629 if (!dma_buf->dbuf.virt) { in lpfc_sli4_nvmet_alloc()
656 dmab->dbuf.virt, dmab->dbuf.phys); in lpfc_sli4_nvmet_free()
689 list_del(&hbq_entry->dbuf.list); in lpfc_in_buf_free()
[all …]
/openbmc/linux/tools/virtio/
H A Dvringh_test.c332 int *dbuf, err; in parallel_test() local
338 assert(*dbuf == finished - 1); in parallel_test()
340 assert(*dbuf == finished); in parallel_test()
348 *dbuf = xfers; in parallel_test()
350 *dbuf = -1; in parallel_test()
356 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
386 dbuf, GFP_KERNEL); in parallel_test()
409 int *dbuf; in parallel_test() local
413 dbuf = virtqueue_get_buf(vq, &len); in parallel_test()
414 if (dbuf) { in parallel_test()
[all …]
/openbmc/u-boot/drivers/block/
H A Dide.c134 ushort *dbuf; in ide_output_data_shorts() local
138 dbuf = (ushort *)sect_buf; in ide_output_data_shorts()
145 *pbuf = *dbuf++; in ide_output_data_shorts()
151 ushort *dbuf; in ide_input_data_shorts() local
162 *dbuf++ = *pbuf; in ide_input_data_shorts()
877 ushort *dbuf; in ide_output_data() local
884 *pbuf = *dbuf++; in ide_output_data()
886 *pbuf = *dbuf++; in ide_output_data()
903 ushort *dbuf; in ide_input_data() local
913 *dbuf++ = *pbuf; in ide_input_data()
[all …]
/openbmc/linux/drivers/gpu/drm/xen/
H A Dxen_drm_front.c44 struct xen_drm_front_dbuf *dbuf, u64 dbuf_cookie) in dbuf_add_to_list() argument
46 dbuf->dbuf_cookie = dbuf_cookie; in dbuf_add_to_list()
47 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()
215 ret = xen_front_pgdir_shbuf_map(&dbuf->shbuf); in xen_drm_front_dbuf_create()
/openbmc/qemu/tests/tcg/hexagon/
H A Dbrev.c29 int64_t dbuf[SIZE] __attribute__((aligned(1 << 16))) = {0}; variable
160 dbuf[i] = bitreverse(i); in main()
169 TEST_BREV_LOAD(d, int64_t, dbuf, 13, i); in main()
175 TEST_BREV_STORE(d, int64_t, dbuf, i, 13); in main()
H A Dcirc.c39 int64_t dbuf[NDOBLS] __attribute__((aligned(1 << 12))) = {0}; variable
59 INIT(dbuf, NDOBLS) in INIT()
262 TEST_LOAD_IMM(d, int64_t, dbuf, NDOBLS, 8, lld)
291 TEST_LOAD_REG(d, int64_t, dbuf, NDOBLS, lld) in TEST_LOAD_REG()
337 CHECK_STORE(d, dbuf, NDOBLS, llx)
366 CIRC_TEST_STORE_IMM(d, d, int64_t, dbuf, NDOBLS, 0, 8)
397 CIRC_TEST_STORE_REG(d, d, int64_t, dbuf, NDOBLS, 0)
434 DEBUG_PRINTF("Address of dbuf = 0x%p\n", dbuf); in main()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dskl_watermark.h67 …uf_state(intel_atomic_get_old_global_obj_state(state, &to_i915(state->base.dev)->display.dbuf.obj))
69 …uf_state(intel_atomic_get_new_global_obj_state(state, &to_i915(state->base.dev)->display.dbuf.obj))
H A Dintel_display_device.c448 .dbuf.size = 896 - 4, /* 4 blocks for bypass path allocation */
449 .dbuf.slice_mask = BIT(DBUF_S1),
473 .dbuf.slice_mask = BIT(DBUF_S1), \
497 .dbuf.size = 512 - 4, /* 4 blocks for bypass path allocation */
504 .dbuf.size = 1024 - 4, /* 4 blocks for bypass path allocation */
512 .dbuf.size = 2048, \
513 .dbuf.slice_mask = BIT(DBUF_S1) | BIT(DBUF_S2), \
565 .dbuf.size = 2048, \
566 .dbuf.slice_mask = BIT(DBUF_S1) | BIT(DBUF_S2), \
653 .dbuf.size = 4096, \
[all …]
/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_conn.c1129 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_seq_show() local
1145 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_seq_show()
1148 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_seq_show()
1158 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1171 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1197 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_sync_seq_show() local
1211 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_sync_seq_show()
1214 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_sync_seq_show()
1224 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
1237 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
/openbmc/linux/fs/reiserfs/
H A Dxattr.c197 struct reiserfs_dentry_buf *dbuf = in fill_with_dentries() local
201 WARN_ON_ONCE(!inode_is_locked(d_inode(dbuf->xadir))); in fill_with_dentries()
203 if (dbuf->count == ARRAY_SIZE(dbuf->dentries)) in fill_with_dentries()
210 dentry = lookup_one_len(name, dbuf->xadir, namelen); in fill_with_dentries()
212 dbuf->err = PTR_ERR(dentry); in fill_with_dentries()
219 dentry, dbuf->xadir); in fill_with_dentries()
221 dbuf->err = -EIO; in fill_with_dentries()
225 dbuf->dentries[dbuf->count++] = dentry; in fill_with_dentries()
/openbmc/u-boot/drivers/misc/
H A Dfs_loader.c113 const char *name, void *dbuf, in _request_firmware_prepare() argument
126 firmwarep->data = dbuf; in _request_firmware_prepare()
/openbmc/linux/drivers/misc/mei/
H A 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()
/openbmc/linux/drivers/base/firmware_loader/
H A 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()
738 struct device *device, void *dbuf, size_t size, in _request_firmware_prepare() argument
752 if (firmware_request_builtin_buf(firmware, name, dbuf, size)) { in _request_firmware_prepare()
757 ret = alloc_lookup_fw_priv(name, &fw_cache, &fw_priv, dbuf, size, in _request_firmware_prepare()
/openbmc/linux/drivers/tty/serial/
H A Damba-pl011.c826 struct pl011_dmabuf *dbuf; in pl011_dma_rx_trigger_dma() local
832 dbuf = uap->dmarx.use_buf_b ? in pl011_dma_rx_trigger_dma()
834 desc = dmaengine_prep_slave_single(rxchan, dbuf->dma, dbuf->len, in pl011_dma_rx_trigger_dma()
874 struct pl011_dmabuf *dbuf = use_buf_b ? in pl011_dma_rx_chars() local
884 dmataken = dbuf->len - dmarx->last_residue; in pl011_dma_rx_chars()
909 dmarx->last_residue = dbuf->len; in pl011_dma_rx_chars()
944 struct pl011_dmabuf *dbuf = dmarx->use_buf_b ? in pl011_dma_rx_irq() local
967 pending = dbuf->len - state.residue; in pl011_dma_rx_irq()
1013 pending = dbuf->len - state.residue; in pl011_dma_rx_callback()
1065 struct pl011_dmabuf *dbuf; in pl011_dma_rx_poll() local
[all …]
/openbmc/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()
/openbmc/linux/include/media/
H A Dvideobuf2-core.h138 struct dma_buf *dbuf,
180 struct dma_buf *dbuf; member

12