/linux-4.19.296/drivers/dma-buf/ |
D | dma-buf.c | 51 struct dma_buf *dmabuf; in dma_buf_release() local 56 dmabuf = file->private_data; in dma_buf_release() 58 BUG_ON(dmabuf->vmapping_counter); in dma_buf_release() 68 BUG_ON(dmabuf->cb_shared.active || dmabuf->cb_excl.active); in dma_buf_release() 70 dmabuf->ops->release(dmabuf); in dma_buf_release() 73 list_del(&dmabuf->list_node); in dma_buf_release() 76 if (dmabuf->resv == (struct reservation_object *)&dmabuf[1]) in dma_buf_release() 77 reservation_object_fini(dmabuf->resv); in dma_buf_release() 79 module_put(dmabuf->owner); in dma_buf_release() 80 kfree(dmabuf); in dma_buf_release() [all …]
|
/linux-4.19.296/drivers/hid/ |
D | hid-elan.c | 84 unsigned char *dmabuf, unsigned char param) in elan_get_device_param() argument 88 dmabuf[0] = ELAN_FEATURE_REPORT; in elan_get_device_param() 89 dmabuf[1] = 0x05; in elan_get_device_param() 90 dmabuf[2] = 0x03; in elan_get_device_param() 91 dmabuf[3] = param; in elan_get_device_param() 92 dmabuf[4] = 0x01; in elan_get_device_param() 94 ret = hid_hw_raw_request(hdev, ELAN_FEATURE_REPORT, dmabuf, in elan_get_device_param() 102 ret = hid_hw_raw_request(hdev, ELAN_FEATURE_REPORT, dmabuf, in elan_get_device_param() 125 unsigned char *dmabuf; in elan_get_device_params() local 128 dmabuf = kmalloc(ELAN_FEATURE_SIZE, GFP_KERNEL); in elan_get_device_params() [all …]
|
D | hid-asus.c | 257 unsigned char *dmabuf; in asus_kbd_set_report() local 260 dmabuf = kmemdup(buf, buf_size, GFP_KERNEL); in asus_kbd_set_report() 261 if (!dmabuf) in asus_kbd_set_report() 264 ret = hid_hw_raw_request(hdev, FEATURE_KBD_REPORT_ID, dmabuf, in asus_kbd_set_report() 267 kfree(dmabuf); in asus_kbd_set_report() 596 unsigned char *dmabuf = kmemdup(buf, sizeof(buf), GFP_KERNEL); in asus_start_multitouch() local 598 if (!dmabuf) { in asus_start_multitouch() 604 ret = hid_hw_raw_request(hdev, dmabuf[0], dmabuf, sizeof(buf), in asus_start_multitouch() 607 kfree(dmabuf); in asus_start_multitouch()
|
/linux-4.19.296/include/linux/ |
D | dma-buf.h | 322 struct dma_buf *dmabuf; member 371 static inline void get_dma_buf(struct dma_buf *dmabuf) in get_dma_buf() argument 373 get_file(dmabuf->file); in get_dma_buf() 376 struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf, 378 void dma_buf_detach(struct dma_buf *dmabuf, 383 int dma_buf_fd(struct dma_buf *dmabuf, int flags); 385 void dma_buf_put(struct dma_buf *dmabuf);
|
/linux-4.19.296/drivers/xen/ |
D | gntdev-dmabuf.c | 35 struct dma_buf *dmabuf; member 268 struct gntdev_dmabuf *gntdev_dmabuf = attach->dmabuf->priv; in dmabuf_exp_ops_map_dma_buf() 414 gntdev_dmabuf->dmabuf = dma_buf_export(&exp_info); in dmabuf_exp_from_pages() 415 if (IS_ERR(gntdev_dmabuf->dmabuf)) { in dmabuf_exp_from_pages() 416 ret = PTR_ERR(gntdev_dmabuf->dmabuf); in dmabuf_exp_from_pages() 417 gntdev_dmabuf->dmabuf = NULL; in dmabuf_exp_from_pages() 421 ret = dma_buf_fd(gntdev_dmabuf->dmabuf, O_CLOEXEC); in dmabuf_exp_from_pages() 437 if (gntdev_dmabuf->dmabuf) in dmabuf_exp_from_pages() 438 dma_buf_put(gntdev_dmabuf->dmabuf); in dmabuf_exp_from_pages() 653 if (attach->dmabuf->size != gntdev_dmabuf->nr_pages << PAGE_SHIFT) { in dmabuf_imp_to_refs() [all …]
|
D | Makefile | 44 xen-gntdev-$(CONFIG_XEN_GNTDEV_DMABUF) += gntdev-dmabuf.o
|
/linux-4.19.296/drivers/media/common/videobuf2/ |
D | videobuf2-dma-sg.c | 311 buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); in vb2_dma_sg_vaddr() 437 struct mutex *lock = &db_attach->dmabuf->lock; in vb2_dma_sg_dmabuf_ops_map() 587 dma_buf_vunmap(buf->db_attach->dmabuf, buf->vaddr); in vb2_dma_sg_unmap_dmabuf() 604 dma_buf_detach(buf->db_attach->dmabuf, buf->db_attach); in vb2_dma_sg_detach_dmabuf()
|
D | videobuf2-dma-contig.c | 81 buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); in vb2_dc_vaddr() 288 struct mutex *lock = &db_attach->dmabuf->lock; in vb2_dc_dmabuf_ops_map() 654 dma_buf_vunmap(buf->db_attach->dmabuf, buf->vaddr); in vb2_dc_unmap_dmabuf() 672 dma_buf_detach(buf->db_attach->dmabuf, buf->db_attach); in vb2_dc_detach_dmabuf()
|
D | videobuf2-vmalloc.c | 276 struct mutex *lock = &db_attach->dmabuf->lock; in vb2_vmalloc_dmabuf_ops_map()
|
/linux-4.19.296/drivers/isdn/hardware/avm/ |
D | b1.c | 726 p->recvbuf.dmabuf = buf; in avmcard_dma_alloc() 735 p->sendbuf.dmabuf = buf; in avmcard_dma_alloc() 742 p->recvbuf.dmabuf, p->recvbuf.dmaaddr); in avmcard_dma_alloc() 752 p->recvbuf.dmabuf, p->recvbuf.dmaaddr); in avmcard_dma_free() 754 p->sendbuf.dmabuf, p->sendbuf.dmaaddr); in avmcard_dma_free()
|
D | b1dma.c | 385 p = dma->sendbuf.dmabuf; in b1dma_dispatch_tx() 396 txlen = (u8 *)p - (u8 *)dma->sendbuf.dmabuf; in b1dma_dispatch_tx() 410 skb_copy_from_linear_data_offset(skb, 2, dma->sendbuf.dmabuf, in b1dma_dispatch_tx() 453 void *p = dma->recvbuf.dmabuf + 4; in b1dma_handle_rx() 608 dma->recvlen = *((u32 *)dma->recvbuf.dmabuf); in b1dma_handle_interrupt()
|
D | c4.c | 438 p = dma->sendbuf.dmabuf; in c4_dispatch_tx() 449 txlen = (u8 *)p - (u8 *)dma->sendbuf.dmabuf; in c4_dispatch_tx() 463 skb_copy_from_linear_data_offset(skb, 2, dma->sendbuf.dmabuf, in c4_dispatch_tx() 509 void *p = dma->recvbuf.dmabuf; in c4_handle_rx()
|
D | avmcard.h | 48 u8 *dmabuf; member
|
/linux-4.19.296/include/uapi/linux/ |
D | fd.h | 232 char *dmabuf; member
|
/linux-4.19.296/drivers/isdn/hardware/mISDN/ |
D | hfcsusb.c | 1712 void *dmabuf = kmalloc(sizeof(u_char), GFP_KERNEL); in setup_hfcsusb() local 1719 if (!dmabuf) in setup_hfcsusb() 1722 ret = read_reg_atomic(hw, HFCUSB_CHIP_ID, dmabuf); in setup_hfcsusb() 1724 memcpy(&b, dmabuf, sizeof(u_char)); in setup_hfcsusb() 1725 kfree(dmabuf); in setup_hfcsusb()
|