Home
last modified time | relevance | path

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

/linux-4.4.14/net/core/
Dutils.c126 u8 dbuf[4]; in in4_pton() local
134 d = dbuf; in in4_pton()
166 memcpy(dst, dbuf, sizeof(dbuf)); in in4_pton()
192 u8 dbuf[16]; in in6_pton() local
198 memset(dbuf, 0, sizeof(dbuf)); in in6_pton()
201 d = dbuf; in in6_pton()
231 if (dc - dbuf >= sizeof(dbuf)) in in6_pton()
264 if (!dc && d + 2 < dbuf + sizeof(dbuf)) { in in6_pton()
268 if (d + 2 >= dbuf + sizeof(dbuf)) { in in6_pton()
272 if ((dc && d + 4 < dbuf + sizeof(dbuf)) || in in6_pton()
[all …]
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf2-vmalloc.c31 struct dma_buf *dbuf; member
206 static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf, struct device *dev, in vb2_vmalloc_dmabuf_ops_attach() argument
210 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_attach()
245 static void vb2_vmalloc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_detach() argument
311 static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_release() argument
314 vb2_vmalloc_put(dbuf->priv); in vb2_vmalloc_dmabuf_ops_release()
317 static void *vb2_vmalloc_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_vmalloc_dmabuf_ops_kmap() argument
319 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_kmap()
324 static void *vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_vmap() argument
326 struct vb2_vmalloc_buf *buf = dbuf->priv; in vb2_vmalloc_dmabuf_ops_vmap()
[all …]
Dvideobuf2-dma-contig.c218 static int vb2_dc_dmabuf_ops_attach(struct dma_buf *dbuf, struct device *dev, in vb2_dc_dmabuf_ops_attach() argument
225 struct vb2_dc_buf *buf = dbuf->priv; in vb2_dc_dmabuf_ops_attach()
256 static void vb2_dc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_detach() argument
322 static void vb2_dc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dc_dmabuf_ops_release() argument
325 vb2_dc_put(dbuf->priv); in vb2_dc_dmabuf_ops_release()
328 static void *vb2_dc_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_dc_dmabuf_ops_kmap() argument
330 struct vb2_dc_buf *buf = dbuf->priv; in vb2_dc_dmabuf_ops_kmap()
335 static void *vb2_dc_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_dc_dmabuf_ops_vmap() argument
337 struct vb2_dc_buf *buf = dbuf->priv; in vb2_dc_dmabuf_ops_vmap()
342 static int vb2_dc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_mmap() argument
[all …]
Dvideobuf2-dma-sg.c384 static int vb2_dma_sg_dmabuf_ops_attach(struct dma_buf *dbuf, struct device *dev, in vb2_dma_sg_dmabuf_ops_attach() argument
391 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_attach()
422 static void vb2_dma_sg_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_detach() argument
488 static void vb2_dma_sg_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dma_sg_dmabuf_ops_release() argument
491 vb2_dma_sg_put(dbuf->priv); in vb2_dma_sg_dmabuf_ops_release()
494 static void *vb2_dma_sg_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_dma_sg_dmabuf_ops_kmap() argument
496 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_kmap()
501 static void *vb2_dma_sg_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_dma_sg_dmabuf_ops_vmap() argument
503 struct vb2_dma_sg_buf *buf = dbuf->priv; in vb2_dma_sg_dmabuf_ops_vmap()
508 static int vb2_dma_sg_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_mmap() argument
[all …]
Dvideobuf2-core.c121 dma_buf_put(p->dbuf); in __vb2_plane_dmabuf_put()
123 p->dbuf = NULL; in __vb2_plane_dmabuf_put()
1071 struct dma_buf *dbuf = dma_buf_get(planes[plane].m.fd); in __qbuf_dmabuf() local
1073 if (IS_ERR_OR_NULL(dbuf)) { in __qbuf_dmabuf()
1082 planes[plane].length = dbuf->size; in __qbuf_dmabuf()
1092 if (dbuf == vb->planes[plane].dbuf && in __qbuf_dmabuf()
1094 dma_buf_put(dbuf); in __qbuf_dmabuf()
1114 q->alloc_ctx[plane], dbuf, planes[plane].length, in __qbuf_dmabuf()
1119 dma_buf_put(dbuf); in __qbuf_dmabuf()
1123 vb->planes[plane].dbuf = dbuf; in __qbuf_dmabuf()
[all …]
/linux-4.4.14/lib/
Ddecompress_bunzip2.c103 unsigned int *dbuf, dbufSize; member
163 unsigned int *dbuf, origPtr; in get_next_block() local
165 dbuf = bd->dbuf; in get_next_block()
446 dbuf[dbufCount++] = uc; in get_next_block()
476 dbuf[dbufCount++] = (unsigned int)uc; in get_next_block()
494 uc = (unsigned char)(dbuf[i] & 0xff); in get_next_block()
495 dbuf[byteCount[uc]] |= (i << 8); in get_next_block()
505 bd->writePos = dbuf[origPtr]; in get_next_block()
524 const unsigned int *dbuf; in read_bunzip() local
532 dbuf = bd->dbuf; in read_bunzip()
[all …]
/linux-4.4.14/tools/virtio/
Dvringh_test.c328 int *dbuf, err; in parallel_test() local
332 while ((dbuf = virtqueue_get_buf(vq, &len)) != NULL) { in parallel_test()
334 assert(*dbuf == finished - 1); in parallel_test()
336 assert(*dbuf == finished); in parallel_test()
341 dbuf = data + (xfers % (RINGSIZE + 1)); in parallel_test()
344 *dbuf = xfers; in parallel_test()
346 *dbuf = -1; in parallel_test()
348 switch ((xfers / sizeof(*dbuf)) % 4) { in parallel_test()
352 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
353 sg_set_buf(&sg[1], (void *)dbuf + 1, 2); in parallel_test()
[all …]
/linux-4.4.14/sound/oss/
Dpss.c851 copr_debug_buf dbuf; in pss_coproc_ioctl() local
921 if (copy_from_user(&dbuf, arg, sizeof(dbuf))) in pss_coproc_ioctl()
928 if (!pss_put_dspword(devc, (unsigned short)(dbuf.parm1 & 0xffff))) { in pss_coproc_ioctl()
936 dbuf.parm1 = tmp; in pss_coproc_ioctl()
938 if (copy_to_user(arg, &dbuf, sizeof(dbuf))) in pss_coproc_ioctl()
943 if (copy_from_user(&dbuf, arg, sizeof(dbuf))) in pss_coproc_ioctl()
950 if (!pss_put_dspword(devc, (unsigned short) (dbuf.parm1 & 0xffff))) { in pss_coproc_ioctl()
954 tmp = (unsigned int)dbuf.parm2 & 0xffff; in pss_coproc_ioctl()
963 if (copy_from_user(&dbuf, arg, sizeof(dbuf))) in pss_coproc_ioctl()
970 if (!pss_put_dspword(devc, (unsigned short)(dbuf.parm1 & 0xffff))) { in pss_coproc_ioctl()
[all …]
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_mem.c455 hbqbp->dbuf.virt = pci_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
456 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
457 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
480 pci_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
513 dma_buf->dbuf.virt = pci_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
514 &dma_buf->dbuf.phys); in lpfc_sli4_rb_alloc()
515 if (!dma_buf->dbuf.virt) { in lpfc_sli4_rb_alloc()
541 pci_pool_free(phba->lpfc_drb_pool, dmab->dbuf.virt, dmab->dbuf.phys); in lpfc_sli4_rb_free()
574 hbq_entry = container_of(mp, struct hbq_dmabuf, dbuf); in lpfc_in_buf_free()
575 list_del(&hbq_entry->dbuf.list); in lpfc_in_buf_free()
Dlpfc_sli.c1704 hbq_buf = container_of(dmabuf, struct hbq_dmabuf, dbuf); in lpfc_sli_hbqbuf_free_all()
1705 list_del(&hbq_buf->dbuf.list); in lpfc_sli_hbqbuf_free_all()
1713 hbq_buf = container_of(dmabuf, struct hbq_dmabuf, dbuf); in lpfc_sli_hbqbuf_free_all()
1714 list_del(&hbq_buf->dbuf.list); in lpfc_sli_hbqbuf_free_all()
1769 dma_addr_t physaddr = hbq_buf->dbuf.phys; in lpfc_sli_hbq_to_firmware_s3()
1787 list_add_tail(&hbq_buf->dbuf.list, &hbqp->hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s3()
1813 drqe.address_lo = putPaddrLow(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
1814 drqe.address_hi = putPaddrHigh(hbq_buf->dbuf.phys); in lpfc_sli_hbq_to_firmware_s4()
1820 list_add_tail(&hbq_buf->dbuf.list, &phba->hbqs[hbqno].hbq_buffer_list); in lpfc_sli_hbq_to_firmware_s4()
1885 list_add_tail(&hbq_buffer->dbuf.list, &hbq_buf_list); in lpfc_sli_hbqbuf_fill_hbqs()
[all …]
Dlpfc.h133 struct lpfc_dmabuf dbuf; member
Dlpfc_debugfs.c345 hbq_buf = container_of(d_buf, struct hbq_dmabuf, dbuf); in lpfc_debugfs_hbqinfo_data()
346 phys = ((uint64_t)hbq_buf->dbuf.phys & 0xffffffff); in lpfc_debugfs_hbqinfo_data()
350 hbq_buf->dbuf.virt, hbq_buf->tag); in lpfc_debugfs_hbqinfo_data()
Dlpfc_init.c865 lpfc_in_buf_free(phba, &dmabuf->dbuf); in lpfc_sli4_free_sp_events()
/linux-4.4.14/arch/hexagon/mm/
Dstrnlen_user.S30 #define dbuf r15:14 macro
80 dbuf = memd(start); define
84 P0 = vcmpb.eq(dbuf,dcmp);
/linux-4.4.14/drivers/net/appletalk/
Dltpc.c243 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()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_conn.c1063 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_seq_show() local
1079 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_seq_show()
1082 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_seq_show()
1092 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1103 dbuf, ntohs(cp->dport), in ip_vs_conn_seq_show()
1141 char dbuf[IP_VS_ADDRSTRLEN]; in ip_vs_conn_sync_seq_show() local
1155 snprintf(dbuf, sizeof(dbuf), "%pI6", &cp->daddr.in6); in ip_vs_conn_sync_seq_show()
1158 snprintf(dbuf, sizeof(dbuf), "%08X", in ip_vs_conn_sync_seq_show()
1168 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
1180 dbuf, ntohs(cp->dport), in ip_vs_conn_sync_seq_show()
/linux-4.4.14/fs/afs/
Ddir.c133 struct afs_dir_page *dbuf; in afs_dir_check_page() local
139 qty = desc.size / sizeof(dbuf->blocks[0]); in afs_dir_check_page()
143 if (page->index == 0 && qty != ntohs(dbuf->blocks[0].pagehdr.npages)) { in afs_dir_check_page()
146 ntohs(dbuf->blocks[0].pagehdr.npages)); in afs_dir_check_page()
160 dbuf = page_address(page); in afs_dir_check_page()
162 if (dbuf->blocks[tmp].pagehdr.magic != AFS_DIR_MAGIC) { in afs_dir_check_page()
165 ntohs(dbuf->blocks[tmp].pagehdr.magic)); in afs_dir_check_page()
325 struct afs_dir_page *dbuf; in afs_dir_iterate() local
355 dbuf = page_address(page); in afs_dir_iterate()
359 dblock = &dbuf->blocks[(blkoff % PAGE_SIZE) / in afs_dir_iterate()
/linux-4.4.14/fs/reiserfs/
Dxattr.c194 struct reiserfs_dentry_buf *dbuf = in fill_with_dentries() local
198 WARN_ON_ONCE(!mutex_is_locked(&d_inode(dbuf->xadir)->i_mutex)); in fill_with_dentries()
200 if (dbuf->count == ARRAY_SIZE(dbuf->dentries)) in fill_with_dentries()
207 dentry = lookup_one_len(name, dbuf->xadir, namelen); in fill_with_dentries()
215 dentry, dbuf->xadir); in fill_with_dentries()
220 dbuf->dentries[dbuf->count++] = dentry; in fill_with_dentries()
/linux-4.4.14/include/media/
Dvideobuf2-core.h110 void *(*attach_dmabuf)(void *alloc_ctx, struct dma_buf *dbuf,
149 struct dma_buf *dbuf; member
/linux-4.4.14/drivers/misc/mic/host/
Dmic_virtio.c80 void __iomem *dbuf = mdev->aper.va + daddr; in mic_virtio_copy_to_user() local
106 dbuf += partlen; in mic_virtio_copy_to_user()
129 void __iomem *dbuf = mdev->aper.va + daddr; in mic_virtio_copy_from_user() local
156 dbuf += partlen; in mic_virtio_copy_from_user()
166 if (copy_from_user((void __force *)dbuf, ubuf, len)) { in mic_virtio_copy_from_user()
/linux-4.4.14/fs/gfs2/
Dlog.c445 unsigned int dbuf; in calc_reserved() local
450 dbuf = tr->tr_num_databuf_new - tr->tr_num_databuf_rm; in calc_reserved()
451 reserved = mbuf + dbuf; in calc_reserved()
454 reserved += DIV_ROUND_UP(dbuf, databuf_limit(sdp)); in calc_reserved()
/linux-4.4.14/net/ceph/
Dauth_x.c146 void *dbuf = NULL; in process_one_ticket() local
178 dlen = ceph_x_decrypt(secret, p, end, &dbuf, 0); in process_one_ticket()
184 dp = dbuf; in process_one_ticket()
247 kfree(dbuf); in process_one_ticket()
/linux-4.4.14/drivers/usb/gadget/udc/
Domap_udc.c2481 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2522 dbuf = 1; in omap_ep_setup()
2529 dbuf = 0; in omap_ep_setup()
2547 if (dbuf && addr) in omap_ep_setup()
2559 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2568 if (dbuf) in omap_ep_setup()
2579 ep->double_buf = dbuf; in omap_ep_setup()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_sup.c1464 uint8_t *dbuf; in qla25xx_write_nvram_data() local
1466 dbuf = vmalloc(RMW_BUFFER_SIZE); in qla25xx_write_nvram_data()
1467 if (!dbuf) in qla25xx_write_nvram_data()
1469 ha->isp_ops->read_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, in qla25xx_write_nvram_data()
1471 memcpy(dbuf + (naddr << 2), buf, bytes); in qla25xx_write_nvram_data()
1472 ha->isp_ops->write_optrom(vha, dbuf, ha->flt_region_vpd_nvram << 2, in qla25xx_write_nvram_data()
1474 vfree(dbuf); in qla25xx_write_nvram_data()
/linux-4.4.14/drivers/crypto/
Dmv_cesa.c221 static void copy_src_to_buf(struct req_progress *p, char *dbuf, int len) in copy_src_to_buf() argument
238 memcpy(dbuf, sbuf, copy_len); in copy_src_to_buf()
244 dbuf += copy_len; in copy_src_to_buf()
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_ioc.c5378 u16 *buf, *dbuf; in bfa_phy_write_send() local
5395 dbuf = (u16 *)phy->dbuf_kva; in bfa_phy_write_send()
5398 buf[i] = cpu_to_be16(dbuf[i]); in bfa_phy_write_send()
5797 u16 *dbuf = (u16 *)phy->dbuf_kva; in bfa_phy_intr() local
5804 buf[i] = be16_to_cpu(dbuf[i]); in bfa_phy_intr()
/linux-4.4.14/arch/mips/include/asm/octeon/
Dcvmx-mio-defs.h1064 uint64_t dbuf:1; member
1078 uint64_t dbuf:1;
1257 uint64_t dbuf:1; member
1289 uint64_t dbuf:1;