Home
last modified time | relevance | path

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

/linux/net/core/
H A 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/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-core.c313 dma_buf_put(p->dbuf); in __vb2_plane_dmabuf_put()
315 p->dbuf = NULL; in __vb2_plane_dmabuf_put()
1398 struct dma_buf *dbuf = dma_buf_get(planes[plane].m.fd); in __prepare_dmabuf() local
1400 planes[plane].dbuf = dbuf; in __prepare_dmabuf()
1402 if (IS_ERR_OR_NULL(dbuf)) { in __prepare_dmabuf()
1411 planes[plane].length = dbuf->size; in __prepare_dmabuf()
1422 if (dbuf == vb->planes[plane].dbuf && in __prepare_dmabuf()
1445 if (planes[plane].dbuf == vb->planes[i].dbuf && in __prepare_dmabuf()
1448 vb->planes[plane].dbuf = vb->planes[i].dbuf; in __prepare_dmabuf()
1461 planes[plane].dbuf, in __prepare_dmabuf()
[all …]
/linux/drivers/scsi/lpfc/
H A Dlpfc_mem.c518 hbqbp->dbuf.virt = dma_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
519 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
520 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
543 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
576 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
577 &dma_buf->dbuf.phys); in lpfc_sli4_rb_alloc()
578 if (!dma_buf->dbuf.virt) { in lpfc_sli4_rb_alloc()
604 dma_pool_free(phba->lpfc_drb_pool, dmab->dbuf.virt, dmab->dbuf.phys); in lpfc_sli4_rb_free()
634 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_nvmet_drb_pool, in lpfc_sli4_nvmet_alloc()
635 GFP_KERNEL, &dma_buf->dbuf.phys); in lpfc_sli4_nvmet_alloc()
[all …]
H A Dlpfc_sli.c2405 hbq_buf = container_of(dmabuf, struct hbq_dmabuf, dbuf); in lpfc_sli_hbqbuf_free_all()
2406 list_del(&hbq_buf->dbuf.list); in lpfc_sli_hbqbuf_free_all()
2453 dma_addr_t physaddr = hbq_buf->dbuf.phys; in lpfc_sli_hbq_to_firmware_s3()
2472 list_add_tail(&hbq_buf->dbuf.list, &hbqp->hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s3()
2506 drqe.address_lo = putPaddrLow(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
2507 drqe.address_hi = putPaddrHigh(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
2512 list_add_tail(&hbq_buf->dbuf.list, &phba->hbqs[hbqno].hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s4()
2564 list_add_tail(&hbq_buffer->dbuf.list, &hbq_buf_list); in lpfc_sli_hbqbuf_fill_hbqs()
2572 dbuf.list); in lpfc_sli_hbqbuf_fill_hbqs()
2587 dbuf.list); in lpfc_sli_hbqbuf_fill_hbqs()
[all …]
H A Dlpfc.h162 struct lpfc_dmabuf dbuf; member
173 struct lpfc_dmabuf dbuf; member
H A Dlpfc_nvmet.c933 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in __lpfc_nvme_xmt_ls_rsp()
947 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in __lpfc_nvme_xmt_ls_rsp()
2225 payload = (uint32_t *)(nvmebuf->dbuf.virt); in lpfc_nvmet_process_rcv_fcp_req()
H A Dlpfc_init.c948 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/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()
448 dbuf[dbufCount++] = uc; in get_next_block()
478 dbuf[dbufCount++] = (unsigned int)uc; in get_next_block()
496 uc = (unsigned char)(dbuf[i] & 0xff); in get_next_block()
497 dbuf[byteCount[uc]] |= (i << 8); in get_next_block()
507 bd->writePos = dbuf[origPtr]; in get_next_block()
526 const unsigned int *dbuf; in read_bunzip() local
534 dbuf = bd->dbuf; in read_bunzip()
[all …]
/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/tty/serial/
H A Damba-pl011.c819 struct pl011_dmabuf *dbuf; in pl011_dma_rx_trigger_dma() local
825 dbuf = uap->dmarx.use_buf_b ? in pl011_dma_rx_trigger_dma()
827 desc = dmaengine_prep_slave_single(rxchan, dbuf->dma, dbuf->len, in pl011_dma_rx_trigger_dma()
867 struct pl011_dmabuf *dbuf = use_buf_b ? in pl011_dma_rx_chars() local
877 dmataken = dbuf->len - dmarx->last_residue; in pl011_dma_rx_chars()
890 dma_count = tty_insert_flip_string(port, dbuf->buf + dmataken, pending); in pl011_dma_rx_chars()
900 dmarx->last_residue = dbuf->len; in pl011_dma_rx_chars()
935 struct pl011_dmabuf *dbuf = dmarx->use_buf_b ? in pl011_dma_rx_irq() local
958 pending = dbuf->len - state.residue; in pl011_dma_rx_irq()
985 struct pl011_dmabuf *dbuf = dmarx->use_buf_b ? in pl011_dma_rx_callback() local
[all …]
/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/include/media/
H A Dvideobuf2-core.h138 struct dma_buf *dbuf,
182 struct dma_buf *dbuf; member
/linux/drivers/usb/gadget/udc/
H A Domap_udc.c2462 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2503 dbuf = 1; in omap_ep_setup()
2510 dbuf = 0; in omap_ep_setup()
2528 if (dbuf && addr) in omap_ep_setup()
2538 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2547 if (dbuf) in omap_ep_setup()
2558 ep->double_buf = dbuf; in omap_ep_setup()
/linux/drivers/mmc/host/
H A Dcavium.c299 u64 dbuf) in do_read() argument
307 writeq((0x10000 | (dbuf << 6)), host->base + MIO_EMM_BUF_IDX(host)); in do_read()
/linux/drivers/scsi/qla2xxx/
H A Dqla_sup.c1544 uint8_t *dbuf = vmalloc(RMW_BUFFER_SIZE); in qla25xx_write_nvram_data() local
1546 if (!dbuf) in qla25xx_write_nvram_data()
1548 ha->isp_ops->read_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, in qla25xx_write_nvram_data()
1550 memcpy(dbuf + (naddr << 2), buf, bytes); in qla25xx_write_nvram_data()
1551 ha->isp_ops->write_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, in qla25xx_write_nvram_data()
1553 vfree(dbuf); in qla25xx_write_nvram_data()
/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()
H A Dtrace_kprobe.c871 char *dbuf __free(kfree) = NULL; in trace_kprobe_create_internal()
1026 ret = traceprobe_expand_dentry_args(argc, argv, &dbuf); in trace_kprobe_create_internal()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_debug.c7919 u32 *dbuf, dwords; in format_feature() local
7927 dbuf = (u32 *)feature->dump_buf; in format_feature()
7932 dbuf, in format_feature()
7961 dbuf, in format_feature()
8006 u32 buf_size_dwords, *dbuf, *dwords; in qed_dbg_dump() local
8044 dbuf = (u32 *)feature->dump_buf; in qed_dbg_dump()
8047 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_common.c1428 ICE_CTX_STORE(ice_rlan_ctx, dbuf, 7, 102),