dmabuf 3638 drivers/block/floppy.c compat_caddr_t dmabuf; dmabuf 3818 drivers/block/floppy.c v.dmabuf = (uintptr_t)UDRS->dmabuf; dmabuf 43 drivers/dma-buf/dma-buf.c struct dma_buf *dmabuf; dmabuf 47 drivers/dma-buf/dma-buf.c dmabuf = dentry->d_fsdata; dmabuf 48 drivers/dma-buf/dma-buf.c mutex_lock(&dmabuf->lock); dmabuf 49 drivers/dma-buf/dma-buf.c if (dmabuf->name) dmabuf 50 drivers/dma-buf/dma-buf.c ret = strlcpy(name, dmabuf->name, DMA_BUF_NAME_LEN); dmabuf 51 drivers/dma-buf/dma-buf.c mutex_unlock(&dmabuf->lock); dmabuf 82 drivers/dma-buf/dma-buf.c struct dma_buf *dmabuf; dmabuf 87 drivers/dma-buf/dma-buf.c dmabuf = file->private_data; dmabuf 89 drivers/dma-buf/dma-buf.c BUG_ON(dmabuf->vmapping_counter); dmabuf 99 drivers/dma-buf/dma-buf.c BUG_ON(dmabuf->cb_shared.active || dmabuf->cb_excl.active); dmabuf 101 drivers/dma-buf/dma-buf.c dmabuf->ops->release(dmabuf); dmabuf 104 drivers/dma-buf/dma-buf.c list_del(&dmabuf->list_node); dmabuf 107 drivers/dma-buf/dma-buf.c if (dmabuf->resv == (struct dma_resv *)&dmabuf[1]) dmabuf 108 drivers/dma-buf/dma-buf.c dma_resv_fini(dmabuf->resv); dmabuf 110 drivers/dma-buf/dma-buf.c module_put(dmabuf->owner); dmabuf 111 drivers/dma-buf/dma-buf.c kfree(dmabuf->name); dmabuf 112 drivers/dma-buf/dma-buf.c kfree(dmabuf); dmabuf 118 drivers/dma-buf/dma-buf.c struct dma_buf *dmabuf; dmabuf 123 drivers/dma-buf/dma-buf.c dmabuf = file->private_data; dmabuf 126 drivers/dma-buf/dma-buf.c if (!dmabuf->ops->mmap) dmabuf 131 drivers/dma-buf/dma-buf.c dmabuf->size >> PAGE_SHIFT) dmabuf 134 drivers/dma-buf/dma-buf.c return dmabuf->ops->mmap(dmabuf, vma); dmabuf 139 drivers/dma-buf/dma-buf.c struct dma_buf *dmabuf; dmabuf 145 drivers/dma-buf/dma-buf.c dmabuf = file->private_data; dmabuf 151 drivers/dma-buf/dma-buf.c base = dmabuf->size; dmabuf 198 drivers/dma-buf/dma-buf.c struct dma_buf *dmabuf; dmabuf 205 drivers/dma-buf/dma-buf.c dmabuf = file->private_data; dmabuf 206 drivers/dma-buf/dma-buf.c if (!dmabuf || !dmabuf->resv) dmabuf 209 drivers/dma-buf/dma-buf.c resv = dmabuf->resv; dmabuf 211 drivers/dma-buf/dma-buf.c poll_wait(file, &dmabuf->poll, poll); dmabuf 233 drivers/dma-buf/dma-buf.c struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_excl; dmabuf 239 drivers/dma-buf/dma-buf.c spin_lock_irq(&dmabuf->poll.lock); dmabuf 245 drivers/dma-buf/dma-buf.c spin_unlock_irq(&dmabuf->poll.lock); dmabuf 268 drivers/dma-buf/dma-buf.c struct dma_buf_poll_cb_t *dcb = &dmabuf->cb_shared; dmabuf 272 drivers/dma-buf/dma-buf.c spin_lock_irq(&dmabuf->poll.lock); dmabuf 277 drivers/dma-buf/dma-buf.c spin_unlock_irq(&dmabuf->poll.lock); dmabuf 330 drivers/dma-buf/dma-buf.c static long dma_buf_set_name(struct dma_buf *dmabuf, const char __user *buf) dmabuf 338 drivers/dma-buf/dma-buf.c mutex_lock(&dmabuf->lock); dmabuf 339 drivers/dma-buf/dma-buf.c if (!list_empty(&dmabuf->attachments)) { dmabuf 344 drivers/dma-buf/dma-buf.c kfree(dmabuf->name); dmabuf 345 drivers/dma-buf/dma-buf.c dmabuf->name = name; dmabuf 348 drivers/dma-buf/dma-buf.c mutex_unlock(&dmabuf->lock); dmabuf 355 drivers/dma-buf/dma-buf.c struct dma_buf *dmabuf; dmabuf 360 drivers/dma-buf/dma-buf.c dmabuf = file->private_data; dmabuf 385 drivers/dma-buf/dma-buf.c ret = dma_buf_end_cpu_access(dmabuf, direction); dmabuf 387 drivers/dma-buf/dma-buf.c ret = dma_buf_begin_cpu_access(dmabuf, direction); dmabuf 393 drivers/dma-buf/dma-buf.c return dma_buf_set_name(dmabuf, (const char __user *)arg); dmabuf 402 drivers/dma-buf/dma-buf.c struct dma_buf *dmabuf = file->private_data; dmabuf 404 drivers/dma-buf/dma-buf.c seq_printf(m, "size:\t%zu\n", dmabuf->size); dmabuf 406 drivers/dma-buf/dma-buf.c seq_printf(m, "count:\t%ld\n", file_count(dmabuf->file) - 1); dmabuf 407 drivers/dma-buf/dma-buf.c seq_printf(m, "exp_name:\t%s\n", dmabuf->exp_name); dmabuf 408 drivers/dma-buf/dma-buf.c mutex_lock(&dmabuf->lock); dmabuf 409 drivers/dma-buf/dma-buf.c if (dmabuf->name) dmabuf 410 drivers/dma-buf/dma-buf.c seq_printf(m, "name:\t%s\n", dmabuf->name); dmabuf 411 drivers/dma-buf/dma-buf.c mutex_unlock(&dmabuf->lock); dmabuf 434 drivers/dma-buf/dma-buf.c static struct file *dma_buf_getfile(struct dma_buf *dmabuf, int flags) dmabuf 442 drivers/dma-buf/dma-buf.c inode->i_size = dmabuf->size; dmabuf 443 drivers/dma-buf/dma-buf.c inode_set_bytes(inode, dmabuf->size); dmabuf 450 drivers/dma-buf/dma-buf.c file->private_data = dmabuf; dmabuf 451 drivers/dma-buf/dma-buf.c file->f_path.dentry->d_fsdata = dmabuf; dmabuf 510 drivers/dma-buf/dma-buf.c struct dma_buf *dmabuf; dmabuf 533 drivers/dma-buf/dma-buf.c dmabuf = kzalloc(alloc_size, GFP_KERNEL); dmabuf 534 drivers/dma-buf/dma-buf.c if (!dmabuf) { dmabuf 539 drivers/dma-buf/dma-buf.c dmabuf->priv = exp_info->priv; dmabuf 540 drivers/dma-buf/dma-buf.c dmabuf->ops = exp_info->ops; dmabuf 541 drivers/dma-buf/dma-buf.c dmabuf->size = exp_info->size; dmabuf 542 drivers/dma-buf/dma-buf.c dmabuf->exp_name = exp_info->exp_name; dmabuf 543 drivers/dma-buf/dma-buf.c dmabuf->owner = exp_info->owner; dmabuf 544 drivers/dma-buf/dma-buf.c init_waitqueue_head(&dmabuf->poll); dmabuf 545 drivers/dma-buf/dma-buf.c dmabuf->cb_excl.poll = dmabuf->cb_shared.poll = &dmabuf->poll; dmabuf 546 drivers/dma-buf/dma-buf.c dmabuf->cb_excl.active = dmabuf->cb_shared.active = 0; dmabuf 549 drivers/dma-buf/dma-buf.c resv = (struct dma_resv *)&dmabuf[1]; dmabuf 552 drivers/dma-buf/dma-buf.c dmabuf->resv = resv; dmabuf 554 drivers/dma-buf/dma-buf.c file = dma_buf_getfile(dmabuf, exp_info->flags); dmabuf 561 drivers/dma-buf/dma-buf.c dmabuf->file = file; dmabuf 563 drivers/dma-buf/dma-buf.c mutex_init(&dmabuf->lock); dmabuf 564 drivers/dma-buf/dma-buf.c INIT_LIST_HEAD(&dmabuf->attachments); dmabuf 567 drivers/dma-buf/dma-buf.c list_add(&dmabuf->list_node, &db_list.head); dmabuf 570 drivers/dma-buf/dma-buf.c return dmabuf; dmabuf 573 drivers/dma-buf/dma-buf.c kfree(dmabuf); dmabuf 587 drivers/dma-buf/dma-buf.c int dma_buf_fd(struct dma_buf *dmabuf, int flags) dmabuf 591 drivers/dma-buf/dma-buf.c if (!dmabuf || !dmabuf->file) dmabuf 598 drivers/dma-buf/dma-buf.c fd_install(fd, dmabuf->file); dmabuf 640 drivers/dma-buf/dma-buf.c void dma_buf_put(struct dma_buf *dmabuf) dmabuf 642 drivers/dma-buf/dma-buf.c if (WARN_ON(!dmabuf || !dmabuf->file)) dmabuf 645 drivers/dma-buf/dma-buf.c fput(dmabuf->file); dmabuf 667 drivers/dma-buf/dma-buf.c struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf, dmabuf 673 drivers/dma-buf/dma-buf.c if (WARN_ON(!dmabuf || !dev)) dmabuf 681 drivers/dma-buf/dma-buf.c attach->dmabuf = dmabuf; dmabuf 683 drivers/dma-buf/dma-buf.c mutex_lock(&dmabuf->lock); dmabuf 685 drivers/dma-buf/dma-buf.c if (dmabuf->ops->attach) { dmabuf 686 drivers/dma-buf/dma-buf.c ret = dmabuf->ops->attach(dmabuf, attach); dmabuf 690 drivers/dma-buf/dma-buf.c list_add(&attach->node, &dmabuf->attachments); dmabuf 692 drivers/dma-buf/dma-buf.c mutex_unlock(&dmabuf->lock); dmabuf 698 drivers/dma-buf/dma-buf.c mutex_unlock(&dmabuf->lock); dmabuf 711 drivers/dma-buf/dma-buf.c void dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach) dmabuf 713 drivers/dma-buf/dma-buf.c if (WARN_ON(!dmabuf || !attach)) dmabuf 717 drivers/dma-buf/dma-buf.c dmabuf->ops->unmap_dma_buf(attach, attach->sgt, attach->dir); dmabuf 719 drivers/dma-buf/dma-buf.c mutex_lock(&dmabuf->lock); dmabuf 721 drivers/dma-buf/dma-buf.c if (dmabuf->ops->detach) dmabuf 722 drivers/dma-buf/dma-buf.c dmabuf->ops->detach(dmabuf, attach); dmabuf 724 drivers/dma-buf/dma-buf.c mutex_unlock(&dmabuf->lock); dmabuf 751 drivers/dma-buf/dma-buf.c if (WARN_ON(!attach || !attach->dmabuf)) dmabuf 766 drivers/dma-buf/dma-buf.c sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); dmabuf 770 drivers/dma-buf/dma-buf.c if (!IS_ERR(sg_table) && attach->dmabuf->ops->cache_sgt_mapping) { dmabuf 795 drivers/dma-buf/dma-buf.c if (WARN_ON(!attach || !attach->dmabuf || !sg_table)) dmabuf 801 drivers/dma-buf/dma-buf.c attach->dmabuf->ops->unmap_dma_buf(attach, sg_table, direction); dmabuf 909 drivers/dma-buf/dma-buf.c static int __dma_buf_begin_cpu_access(struct dma_buf *dmabuf, dmabuf 914 drivers/dma-buf/dma-buf.c struct dma_resv *resv = dmabuf->resv; dmabuf 940 drivers/dma-buf/dma-buf.c int dma_buf_begin_cpu_access(struct dma_buf *dmabuf, dmabuf 945 drivers/dma-buf/dma-buf.c if (WARN_ON(!dmabuf)) dmabuf 948 drivers/dma-buf/dma-buf.c if (dmabuf->ops->begin_cpu_access) dmabuf 949 drivers/dma-buf/dma-buf.c ret = dmabuf->ops->begin_cpu_access(dmabuf, direction); dmabuf 956 drivers/dma-buf/dma-buf.c ret = __dma_buf_begin_cpu_access(dmabuf, direction); dmabuf 974 drivers/dma-buf/dma-buf.c int dma_buf_end_cpu_access(struct dma_buf *dmabuf, dmabuf 979 drivers/dma-buf/dma-buf.c WARN_ON(!dmabuf); dmabuf 981 drivers/dma-buf/dma-buf.c if (dmabuf->ops->end_cpu_access) dmabuf 982 drivers/dma-buf/dma-buf.c ret = dmabuf->ops->end_cpu_access(dmabuf, direction); dmabuf 997 drivers/dma-buf/dma-buf.c void *dma_buf_kmap(struct dma_buf *dmabuf, unsigned long page_num) dmabuf 999 drivers/dma-buf/dma-buf.c WARN_ON(!dmabuf); dmabuf 1001 drivers/dma-buf/dma-buf.c if (!dmabuf->ops->map) dmabuf 1003 drivers/dma-buf/dma-buf.c return dmabuf->ops->map(dmabuf, page_num); dmabuf 1015 drivers/dma-buf/dma-buf.c void dma_buf_kunmap(struct dma_buf *dmabuf, unsigned long page_num, dmabuf 1018 drivers/dma-buf/dma-buf.c WARN_ON(!dmabuf); dmabuf 1020 drivers/dma-buf/dma-buf.c if (dmabuf->ops->unmap) dmabuf 1021 drivers/dma-buf/dma-buf.c dmabuf->ops->unmap(dmabuf, page_num, vaddr); dmabuf 1040 drivers/dma-buf/dma-buf.c int dma_buf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma, dmabuf 1046 drivers/dma-buf/dma-buf.c if (WARN_ON(!dmabuf || !vma)) dmabuf 1050 drivers/dma-buf/dma-buf.c if (!dmabuf->ops->mmap) dmabuf 1059 drivers/dma-buf/dma-buf.c dmabuf->size >> PAGE_SHIFT) dmabuf 1063 drivers/dma-buf/dma-buf.c get_file(dmabuf->file); dmabuf 1065 drivers/dma-buf/dma-buf.c vma->vm_file = dmabuf->file; dmabuf 1068 drivers/dma-buf/dma-buf.c ret = dmabuf->ops->mmap(dmabuf, vma); dmabuf 1072 drivers/dma-buf/dma-buf.c fput(dmabuf->file); dmabuf 1094 drivers/dma-buf/dma-buf.c void *dma_buf_vmap(struct dma_buf *dmabuf) dmabuf 1098 drivers/dma-buf/dma-buf.c if (WARN_ON(!dmabuf)) dmabuf 1101 drivers/dma-buf/dma-buf.c if (!dmabuf->ops->vmap) dmabuf 1104 drivers/dma-buf/dma-buf.c mutex_lock(&dmabuf->lock); dmabuf 1105 drivers/dma-buf/dma-buf.c if (dmabuf->vmapping_counter) { dmabuf 1106 drivers/dma-buf/dma-buf.c dmabuf->vmapping_counter++; dmabuf 1107 drivers/dma-buf/dma-buf.c BUG_ON(!dmabuf->vmap_ptr); dmabuf 1108 drivers/dma-buf/dma-buf.c ptr = dmabuf->vmap_ptr; dmabuf 1112 drivers/dma-buf/dma-buf.c BUG_ON(dmabuf->vmap_ptr); dmabuf 1114 drivers/dma-buf/dma-buf.c ptr = dmabuf->ops->vmap(dmabuf); dmabuf 1120 drivers/dma-buf/dma-buf.c dmabuf->vmap_ptr = ptr; dmabuf 1121 drivers/dma-buf/dma-buf.c dmabuf->vmapping_counter = 1; dmabuf 1124 drivers/dma-buf/dma-buf.c mutex_unlock(&dmabuf->lock); dmabuf 1134 drivers/dma-buf/dma-buf.c void dma_buf_vunmap(struct dma_buf *dmabuf, void *vaddr) dmabuf 1136 drivers/dma-buf/dma-buf.c if (WARN_ON(!dmabuf)) dmabuf 1139 drivers/dma-buf/dma-buf.c BUG_ON(!dmabuf->vmap_ptr); dmabuf 1140 drivers/dma-buf/dma-buf.c BUG_ON(dmabuf->vmapping_counter == 0); dmabuf 1141 drivers/dma-buf/dma-buf.c BUG_ON(dmabuf->vmap_ptr != vaddr); dmabuf 1143 drivers/dma-buf/dma-buf.c mutex_lock(&dmabuf->lock); dmabuf 1144 drivers/dma-buf/dma-buf.c if (--dmabuf->vmapping_counter == 0) { dmabuf 1145 drivers/dma-buf/dma-buf.c if (dmabuf->ops->vunmap) dmabuf 1146 drivers/dma-buf/dma-buf.c dmabuf->ops->vunmap(dmabuf, vaddr); dmabuf 1147 drivers/dma-buf/dma-buf.c dmabuf->vmap_ptr = NULL; dmabuf 1149 drivers/dma-buf/dma-buf.c mutex_unlock(&dmabuf->lock); dmabuf 52 drivers/dma-buf/udmabuf.c struct udmabuf *ubuf = at->dmabuf->priv; dmabuf 231 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h struct dma_buf *dmabuf, dmabuf 370 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c struct dma_resv *resv = attach->dmabuf->resv; dmabuf 377 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c bp.size = attach->dmabuf->size; dmabuf 392 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c if (attach->dmabuf->ops != &amdgpu_dmabuf_ops) dmabuf 1630 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct dma_buf *dmabuf; dmabuf 1641 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c dmabuf = dma_buf_get(args->dmabuf_fd); dmabuf 1642 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(dmabuf)) dmabuf 1643 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c return PTR_ERR(dmabuf); dmabuf 1653 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c r = amdgpu_amdkfd_gpuvm_import_dmabuf(dev->kgd, dmabuf, dmabuf 378 drivers/gpu/drm/armada/armada_gem.c struct drm_gem_object *obj = attach->dmabuf->priv; dmabuf 447 drivers/gpu/drm/armada/armada_gem.c struct drm_gem_object *obj = attach->dmabuf->priv; dmabuf 184 drivers/gpu/drm/drm_gem_cma_helper.c dma_buf_vunmap(gem_obj->import_attach->dmabuf, cma_obj->vaddr); dmabuf 496 drivers/gpu/drm/drm_gem_cma_helper.c cma_obj = __drm_gem_cma_create(dev, attach->dmabuf->size); dmabuf 503 drivers/gpu/drm/drm_gem_cma_helper.c DRM_DEBUG_PRIME("dma_addr = %pad, size = %zu\n", &cma_obj->paddr, attach->dmabuf->size); dmabuf 639 drivers/gpu/drm/drm_gem_cma_helper.c vaddr = dma_buf_vmap(attach->dmabuf); dmabuf 647 drivers/gpu/drm/drm_gem_cma_helper.c dma_buf_vunmap(attach->dmabuf, vaddr); dmabuf 258 drivers/gpu/drm/drm_gem_shmem_helper.c shmem->vaddr = dma_buf_vmap(obj->import_attach->dmabuf); dmabuf 316 drivers/gpu/drm/drm_gem_shmem_helper.c dma_buf_vunmap(obj->import_attach->dmabuf, shmem->vaddr); dmabuf 660 drivers/gpu/drm/drm_gem_shmem_helper.c size_t size = PAGE_ALIGN(attach->dmabuf->size); dmabuf 211 drivers/gpu/drm/drm_mipi_dbi.c ret = dma_buf_begin_cpu_access(import_attach->dmabuf, dmabuf 235 drivers/gpu/drm/drm_mipi_dbi.c ret = dma_buf_end_cpu_access(import_attach->dmabuf, dmabuf 377 drivers/gpu/drm/drm_prime.c struct dma_buf *dmabuf; dmabuf 381 drivers/gpu/drm/drm_prime.c dmabuf = ERR_PTR(-ENOENT); dmabuf 382 drivers/gpu/drm/drm_prime.c return dmabuf; dmabuf 386 drivers/gpu/drm/drm_prime.c dmabuf = obj->funcs->export(obj, flags); dmabuf 388 drivers/gpu/drm/drm_prime.c dmabuf = dev->driver->gem_prime_export(obj, flags); dmabuf 390 drivers/gpu/drm/drm_prime.c dmabuf = drm_gem_prime_export(obj, flags); dmabuf 391 drivers/gpu/drm/drm_prime.c if (IS_ERR(dmabuf)) { dmabuf 395 drivers/gpu/drm/drm_prime.c return dmabuf; dmabuf 403 drivers/gpu/drm/drm_prime.c obj->dma_buf = dmabuf; dmabuf 406 drivers/gpu/drm/drm_prime.c return dmabuf; dmabuf 429 drivers/gpu/drm/drm_prime.c struct dma_buf *dmabuf; dmabuf 438 drivers/gpu/drm/drm_prime.c dmabuf = drm_prime_lookup_buf_by_handle(&file_priv->prime, handle); dmabuf 439 drivers/gpu/drm/drm_prime.c if (dmabuf) { dmabuf 440 drivers/gpu/drm/drm_prime.c get_dma_buf(dmabuf); dmabuf 447 drivers/gpu/drm/drm_prime.c dmabuf = obj->import_attach->dmabuf; dmabuf 448 drivers/gpu/drm/drm_prime.c get_dma_buf(dmabuf); dmabuf 454 drivers/gpu/drm/drm_prime.c dmabuf = obj->dma_buf; dmabuf 458 drivers/gpu/drm/drm_prime.c dmabuf = export_and_register_object(dev, obj, flags); dmabuf 459 drivers/gpu/drm/drm_prime.c if (IS_ERR(dmabuf)) { dmabuf 463 drivers/gpu/drm/drm_prime.c ret = PTR_ERR(dmabuf); dmabuf 476 drivers/gpu/drm/drm_prime.c dmabuf, handle); dmabuf 482 drivers/gpu/drm/drm_prime.c ret = dma_buf_fd(dmabuf, flags); dmabuf 499 drivers/gpu/drm/drm_prime.c dma_buf_put(dmabuf); dmabuf 616 drivers/gpu/drm/drm_prime.c struct drm_gem_object *obj = attach->dmabuf->priv; dmabuf 995 drivers/gpu/drm/drm_prime.c dma_buf = attach->dmabuf; dmabuf 996 drivers/gpu/drm/drm_prime.c dma_buf_detach(attach->dmabuf, attach); dmabuf 74 drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c dma_buf_vunmap(etnaviv_obj->base.import_attach->dmabuf, dmabuf 90 drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c return dma_buf_vmap(etnaviv_obj->base.import_attach->dmabuf); dmabuf 110 drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c size_t size = PAGE_ALIGN(attach->dmabuf->size); dmabuf 481 drivers/gpu/drm/exynos/exynos_drm_gem.c exynos_gem = exynos_drm_gem_init(dev, attach->dmabuf->size); dmabuf 23 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); dmabuf 72 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); dmabuf 17 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c struct dma_buf *dmabuf; dmabuf 23 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dmabuf = i915_gem_prime_export(&obj->base, 0); dmabuf 25 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c if (IS_ERR(dmabuf)) { dmabuf 27 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c (int)PTR_ERR(dmabuf)); dmabuf 28 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c return PTR_ERR(dmabuf); dmabuf 31 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_put(dmabuf); dmabuf 40 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c struct dma_buf *dmabuf; dmabuf 47 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dmabuf = i915_gem_prime_export(&obj->base, 0); dmabuf 48 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c if (IS_ERR(dmabuf)) { dmabuf 50 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c (int)PTR_ERR(dmabuf)); dmabuf 51 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c err = PTR_ERR(dmabuf); dmabuf 55 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c import = i915_gem_prime_import(&i915->drm, dmabuf); dmabuf 73 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_put(dmabuf); dmabuf 83 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c struct dma_buf *dmabuf; dmabuf 88 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dmabuf = mock_dmabuf(1); dmabuf 89 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c if (IS_ERR(dmabuf)) dmabuf 90 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c return PTR_ERR(dmabuf); dmabuf 92 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c obj = to_intel_bo(i915_gem_prime_import(&i915->drm, dmabuf)); dmabuf 113 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_map = dma_buf_vmap(dmabuf); dmabuf 153 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_vunmap(dmabuf, dma_map); dmabuf 157 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_put(dmabuf); dmabuf 165 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c struct dma_buf *dmabuf; dmabuf 169 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dmabuf = mock_dmabuf(1); dmabuf 170 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c if (IS_ERR(dmabuf)) dmabuf 171 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c return PTR_ERR(dmabuf); dmabuf 173 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c ptr = dma_buf_vmap(dmabuf); dmabuf 181 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_vunmap(dmabuf, ptr); dmabuf 183 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c obj = to_intel_bo(i915_gem_prime_import(&i915->drm, dmabuf)); dmabuf 191 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_put(dmabuf); dmabuf 206 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_put(dmabuf); dmabuf 214 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c struct dma_buf *dmabuf; dmabuf 222 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dmabuf = i915_gem_prime_export(&obj->base, 0); dmabuf 223 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c if (IS_ERR(dmabuf)) { dmabuf 225 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c (int)PTR_ERR(dmabuf)); dmabuf 226 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c err = PTR_ERR(dmabuf); dmabuf 231 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c ptr = dma_buf_vmap(dmabuf); dmabuf 238 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c if (memchr_inv(ptr, 0, dmabuf->size)) { dmabuf 244 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c memset(ptr, 0xc5, dmabuf->size); dmabuf 247 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_vunmap(dmabuf, ptr); dmabuf 249 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_put(dmabuf); dmabuf 261 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c struct dma_buf *dmabuf; dmabuf 269 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dmabuf = i915_gem_prime_export(&obj->base, 0); dmabuf 271 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c if (IS_ERR(dmabuf)) { dmabuf 272 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c err = PTR_ERR(dmabuf); dmabuf 277 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c ptr = dma_buf_kmap(dmabuf, 0); dmabuf 285 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_kunmap(dmabuf, 0, ptr); dmabuf 292 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_kunmap(dmabuf, 0, ptr); dmabuf 304 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c ptr = dma_buf_kmap(dmabuf, 1); dmabuf 312 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_kunmap(dmabuf, 1, ptr); dmabuf 319 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_kunmap(dmabuf, 1, ptr); dmabuf 321 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c ptr = dma_buf_kmap(dmabuf, 0); dmabuf 328 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_kunmap(dmabuf, 0, ptr); dmabuf 333 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_kunmap(dmabuf, 0, ptr); dmabuf 335 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c ptr = dma_buf_kmap(dmabuf, 2); dmabuf 338 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_kunmap(dmabuf, 2, ptr); dmabuf 343 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c ptr = dma_buf_kmap(dmabuf, -1); dmabuf 346 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_kunmap(dmabuf, -1, ptr); dmabuf 353 drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c dma_buf_put(dmabuf); dmabuf 12 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c struct mock_dmabuf *mock = to_mock(attachment->dmabuf); dmabuf 113 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c struct dma_buf *dmabuf; dmabuf 133 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c dmabuf = dma_buf_export(&exp_info); dmabuf 134 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c if (IS_ERR(dmabuf)) dmabuf 137 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c return dmabuf; dmabuf 472 drivers/gpu/drm/i915/gvt/dmabuf.c struct dma_buf *dmabuf; dmabuf 494 drivers/gpu/drm/i915/gvt/dmabuf.c dmabuf = i915_gem_prime_export(&obj->base, DRM_CLOEXEC | DRM_RDWR); dmabuf 495 drivers/gpu/drm/i915/gvt/dmabuf.c if (IS_ERR(dmabuf)) { dmabuf 497 drivers/gpu/drm/i915/gvt/dmabuf.c ret = PTR_ERR(dmabuf); dmabuf 501 drivers/gpu/drm/i915/gvt/dmabuf.c ret = dma_buf_fd(dmabuf, DRM_CLOEXEC | DRM_RDWR); dmabuf 522 drivers/gpu/drm/i915/gvt/dmabuf.c file_count(dmabuf->file), dmabuf 530 drivers/gpu/drm/i915/gvt/dmabuf.c dma_buf_put(dmabuf); dmabuf 1522 drivers/gpu/drm/i915/gvt/kvmgt.c struct vfio_device_gfx_plane_info dmabuf; dmabuf 1527 drivers/gpu/drm/i915/gvt/kvmgt.c if (copy_from_user(&dmabuf, (void __user *)arg, minsz)) dmabuf 1529 drivers/gpu/drm/i915/gvt/kvmgt.c if (dmabuf.argsz < minsz) dmabuf 1532 drivers/gpu/drm/i915/gvt/kvmgt.c ret = intel_gvt_ops->vgpu_query_plane(vgpu, &dmabuf); dmabuf 1536 drivers/gpu/drm/i915/gvt/kvmgt.c return copy_to_user((void __user *)arg, &dmabuf, minsz) ? dmabuf 22 drivers/gpu/drm/i915/selftests/i915_live_selftests.h selftest(dmabuf, i915_gem_dmabuf_live_selftests) dmabuf 22 drivers/gpu/drm/i915/selftests/i915_mock_selftests.h selftest(dmabuf, i915_gem_dmabuf_mock_selftests) dmabuf 21 drivers/gpu/drm/lima/lima_gem_prime.c bo = lima_bo_create(ldev, attach->dmabuf->size, 0, sgt); dmabuf 220 drivers/gpu/drm/mediatek/mtk_drm_gem.c mtk_gem = mtk_drm_gem_init(dev, attach->dmabuf->size); dmabuf 323 drivers/gpu/drm/msm/msm_drv.h struct dma_buf *dmabuf, struct sg_table *sgt); dmabuf 911 drivers/gpu/drm/msm/msm_gem.c dma_buf_vunmap(obj->import_attach->dmabuf, msm_obj->vaddr); dmabuf 1109 drivers/gpu/drm/msm/msm_gem.c struct dma_buf *dmabuf, struct sg_table *sgt) dmabuf 1122 drivers/gpu/drm/msm/msm_gem.c size = PAGE_ALIGN(dmabuf->size); dmabuf 49 drivers/gpu/drm/msm/msm_gem_prime.c return msm_gem_import(dev, attach->dmabuf, sg); dmabuf 65 drivers/gpu/drm/nouveau/nouveau_prime.c struct dma_resv *robj = attach->dmabuf->resv; dmabuf 66 drivers/gpu/drm/nouveau/nouveau_prime.c u64 size = attach->dmabuf->size; dmabuf 22 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c struct drm_gem_object *obj = attachment->dmabuf->priv; dmabuf 59 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c struct drm_gem_object *obj = attachment->dmabuf->priv; dmabuf 66 drivers/gpu/drm/radeon/radeon_prime.c struct dma_resv *resv = attach->dmabuf->resv; dmabuf 72 drivers/gpu/drm/radeon/radeon_prime.c ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false, dmabuf 500 drivers/gpu/drm/rockchip/rockchip_drm_gem.c if (rockchip_sg_get_contiguous_size(sg, count) < attach->dmabuf->size) { dmabuf 521 drivers/gpu/drm/rockchip/rockchip_drm_gem.c rk_obj = rockchip_gem_alloc_object(drm, attach->dmabuf->size); dmabuf 287 drivers/gpu/drm/savage/savage_state.c const struct drm_buf * dmabuf) dmabuf 297 drivers/gpu/drm/savage/savage_state.c if (!dmabuf) { dmabuf 350 drivers/gpu/drm/savage/savage_state.c if (start + n > dmabuf->total / 32) { dmabuf 352 drivers/gpu/drm/savage/savage_state.c start, start + n - 1, dmabuf->total / 32); dmabuf 361 drivers/gpu/drm/savage/savage_state.c if (dmabuf->bus_address != dev_priv->state.common.vbaddr) { dmabuf 364 drivers/gpu/drm/savage/savage_state.c BCI_WRITE(dmabuf->bus_address | dev_priv->dma_type); dmabuf 365 drivers/gpu/drm/savage/savage_state.c dev_priv->state.common.vbaddr = dmabuf->bus_address; dmabuf 548 drivers/gpu/drm/savage/savage_state.c const struct drm_buf * dmabuf) dmabuf 557 drivers/gpu/drm/savage/savage_state.c if (!dmabuf) { dmabuf 613 drivers/gpu/drm/savage/savage_state.c if (dmabuf->bus_address != dev_priv->state.common.vbaddr) { dmabuf 616 drivers/gpu/drm/savage/savage_state.c BCI_WRITE(dmabuf->bus_address | dev_priv->dma_type); dmabuf 617 drivers/gpu/drm/savage/savage_state.c dev_priv->state.common.vbaddr = dmabuf->bus_address; dmabuf 638 drivers/gpu/drm/savage/savage_state.c if (idx[i] > dmabuf->total / 32) { dmabuf 640 drivers/gpu/drm/savage/savage_state.c i, idx[i], dmabuf->total / 32); dmabuf 906 drivers/gpu/drm/savage/savage_state.c const struct drm_buf * dmabuf, dmabuf 927 drivers/gpu/drm/savage/savage_state.c dev_priv, &cmd_header, dmabuf); dmabuf 939 drivers/gpu/drm/savage/savage_state.c dmabuf); dmabuf 971 drivers/gpu/drm/savage/savage_state.c struct drm_buf *dmabuf; dmabuf 991 drivers/gpu/drm/savage/savage_state.c dmabuf = dma->buflist[cmdbuf->dma_idx]; dmabuf 993 drivers/gpu/drm/savage/savage_state.c dmabuf = NULL; dmabuf 1082 drivers/gpu/drm/savage/savage_state.c dmabuf, cmdbuf->vb_addr, cmdbuf->vb_size, dmabuf 1143 drivers/gpu/drm/savage/savage_state.c dev_priv, first_draw_cmd, cmdbuf->cmd_addr, dmabuf, dmabuf 1154 drivers/gpu/drm/savage/savage_state.c if (dmabuf && cmdbuf->discard) { dmabuf 1155 drivers/gpu/drm/savage/savage_state.c drm_savage_buf_priv_t *buf_priv = dmabuf->dev_private; dmabuf 1159 drivers/gpu/drm/savage/savage_state.c savage_freelist_put(dev, dmabuf); dmabuf 50 drivers/gpu/drm/tegra/gem.c return dma_buf_vmap(obj->gem.import_attach->dmabuf); dmabuf 63 drivers/gpu/drm/tegra/gem.c dma_buf_vunmap(obj->gem.import_attach->dmabuf, addr); dmabuf 75 drivers/gpu/drm/tegra/gem.c return dma_buf_kmap(obj->gem.import_attach->dmabuf, page); dmabuf 89 drivers/gpu/drm/tegra/gem.c dma_buf_kunmap(obj->gem.import_attach->dmabuf, page, addr); dmabuf 502 drivers/gpu/drm/tegra/gem.c struct drm_gem_object *gem = attach->dmabuf->priv; dmabuf 542 drivers/gpu/drm/tegra/gem.c struct drm_gem_object *gem = attach->dmabuf->priv; dmabuf 289 drivers/gpu/drm/tiny/gm12u320.c fb->obj[0]->import_attach->dmabuf, DMA_FROM_DEVICE); dmabuf 331 drivers/gpu/drm/tiny/gm12u320.c ret = dma_buf_end_cpu_access(fb->obj[0]->import_attach->dmabuf, dmabuf 564 drivers/gpu/drm/tiny/repaper.c ret = dma_buf_begin_cpu_access(import_attach->dmabuf, dmabuf 573 drivers/gpu/drm/tiny/repaper.c ret = dma_buf_end_cpu_access(import_attach->dmabuf, dmabuf 100 drivers/gpu/drm/tiny/st7586.c ret = dma_buf_begin_cpu_access(import_attach->dmabuf, dmabuf 109 drivers/gpu/drm/tiny/st7586.c ret = dma_buf_end_cpu_access(import_attach->dmabuf, dmabuf 21 drivers/gpu/drm/udl/udl_dmabuf.c static int udl_attach_dma_buf(struct dma_buf *dmabuf, dmabuf 27 drivers/gpu/drm/udl/udl_dmabuf.c attach->dmabuf->size); dmabuf 39 drivers/gpu/drm/udl/udl_dmabuf.c static void udl_detach_dma_buf(struct dma_buf *dmabuf, dmabuf 49 drivers/gpu/drm/udl/udl_dmabuf.c attach->dmabuf->size); dmabuf 66 drivers/gpu/drm/udl/udl_dmabuf.c struct udl_gem_object *obj = to_udl_bo(attach->dmabuf->priv); dmabuf 76 drivers/gpu/drm/udl/udl_dmabuf.c attach->dmabuf->size, dir); dmabuf 140 drivers/gpu/drm/udl/udl_dmabuf.c attach->dmabuf->size, dir); dmabuf 293 drivers/gpu/drm/udl/udl_fb.c ret = dma_buf_begin_cpu_access(ufb->obj->base.import_attach->dmabuf, dmabuf 308 drivers/gpu/drm/udl/udl_fb.c ret = dma_buf_end_cpu_access(ufb->obj->base.import_attach->dmabuf, dmabuf 153 drivers/gpu/drm/udl/udl_gem.c obj->vmapping = dma_buf_vmap(obj->base.import_attach->dmabuf); dmabuf 172 drivers/gpu/drm/udl/udl_gem.c dma_buf_vunmap(obj->base.import_attach->dmabuf, obj->vmapping); dmabuf 661 drivers/gpu/drm/vc4/vc4_bo.c struct dma_buf *dmabuf; dmabuf 680 drivers/gpu/drm/vc4/vc4_bo.c dmabuf = drm_gem_prime_export(obj, flags); dmabuf 681 drivers/gpu/drm/vc4/vc4_bo.c if (IS_ERR(dmabuf)) dmabuf 684 drivers/gpu/drm/vc4/vc4_bo.c return dmabuf; dmabuf 366 drivers/gpu/drm/vgem/vgem_drv.c obj = __vgem_gem_create(dev, attach->dmabuf->size); dmabuf 370 drivers/gpu/drm/vgem/vgem_drv.c npages = PAGE_ALIGN(attach->dmabuf->size) / PAGE_SIZE; dmabuf 582 drivers/gpu/drm/vmwgfx/ttm_object.c static bool __must_check get_dma_buf_unless_doomed(struct dma_buf *dmabuf) dmabuf 584 drivers/gpu/drm/vmwgfx/ttm_object.c return atomic_long_inc_not_zero(&dmabuf->file->f_count) != 0L; dmabuf 195 drivers/gpu/drm/xen/xen_drm_front_gem.c size = attach->dmabuf->size; dmabuf 289 drivers/hid/hid-asus.c unsigned char *dmabuf; dmabuf 292 drivers/hid/hid-asus.c dmabuf = kmemdup(buf, buf_size, GFP_KERNEL); dmabuf 293 drivers/hid/hid-asus.c if (!dmabuf) dmabuf 296 drivers/hid/hid-asus.c ret = hid_hw_raw_request(hdev, FEATURE_KBD_REPORT_ID, dmabuf, dmabuf 299 drivers/hid/hid-asus.c kfree(dmabuf); dmabuf 794 drivers/hid/hid-asus.c unsigned char *dmabuf = kmemdup(buf, sizeof(buf), GFP_KERNEL); dmabuf 796 drivers/hid/hid-asus.c if (!dmabuf) { dmabuf 802 drivers/hid/hid-asus.c ret = hid_hw_raw_request(hdev, dmabuf[0], dmabuf, sizeof(buf), dmabuf 805 drivers/hid/hid-asus.c kfree(dmabuf); dmabuf 80 drivers/hid/hid-elan.c unsigned char *dmabuf, unsigned char param) dmabuf 84 drivers/hid/hid-elan.c dmabuf[0] = ELAN_FEATURE_REPORT; dmabuf 85 drivers/hid/hid-elan.c dmabuf[1] = 0x05; dmabuf 86 drivers/hid/hid-elan.c dmabuf[2] = 0x03; dmabuf 87 drivers/hid/hid-elan.c dmabuf[3] = param; dmabuf 88 drivers/hid/hid-elan.c dmabuf[4] = 0x01; dmabuf 90 drivers/hid/hid-elan.c ret = hid_hw_raw_request(hdev, ELAN_FEATURE_REPORT, dmabuf, dmabuf 98 drivers/hid/hid-elan.c ret = hid_hw_raw_request(hdev, ELAN_FEATURE_REPORT, dmabuf, dmabuf 121 drivers/hid/hid-elan.c unsigned char *dmabuf; dmabuf 124 drivers/hid/hid-elan.c dmabuf = kmalloc(ELAN_FEATURE_SIZE, GFP_KERNEL); dmabuf 125 drivers/hid/hid-elan.c if (!dmabuf) dmabuf 128 drivers/hid/hid-elan.c ret = elan_get_device_param(hdev, dmabuf, ELAN_PARAM_MAX_X); dmabuf 132 drivers/hid/hid-elan.c drvdata->max_x = (dmabuf[4] << 8) | dmabuf[3]; dmabuf 134 drivers/hid/hid-elan.c ret = elan_get_device_param(hdev, dmabuf, ELAN_PARAM_MAX_Y); dmabuf 138 drivers/hid/hid-elan.c drvdata->max_y = (dmabuf[4] << 8) | dmabuf[3]; dmabuf 140 drivers/hid/hid-elan.c ret = elan_get_device_param(hdev, dmabuf, ELAN_PARAM_RES); dmabuf 144 drivers/hid/hid-elan.c drvdata->res_x = elan_convert_res(dmabuf[3]); dmabuf 145 drivers/hid/hid-elan.c drvdata->res_y = elan_convert_res(dmabuf[4]); dmabuf 148 drivers/hid/hid-elan.c kfree(dmabuf); dmabuf 393 drivers/hid/hid-elan.c unsigned char *dmabuf = kmemdup(buf, sizeof(buf), GFP_KERNEL); dmabuf 395 drivers/hid/hid-elan.c if (!dmabuf) dmabuf 398 drivers/hid/hid-elan.c ret = hid_hw_raw_request(hdev, dmabuf[0], dmabuf, sizeof(buf), dmabuf 401 drivers/hid/hid-elan.c kfree(dmabuf); dmabuf 429 drivers/hid/hid-elan.c unsigned char *dmabuf = kzalloc(ELAN_LED_REPORT_SIZE, GFP_KERNEL); dmabuf 431 drivers/hid/hid-elan.c if (!dmabuf) dmabuf 436 drivers/hid/hid-elan.c dmabuf[0] = ELAN_MUTE_LED_REPORT; dmabuf 437 drivers/hid/hid-elan.c dmabuf[1] = 0x02; dmabuf 438 drivers/hid/hid-elan.c dmabuf[2] = led_state; dmabuf 440 drivers/hid/hid-elan.c ret = hid_hw_raw_request(hdev, dmabuf[0], dmabuf, ELAN_LED_REPORT_SIZE, dmabuf 443 drivers/hid/hid-elan.c kfree(dmabuf); dmabuf 1696 drivers/isdn/hardware/mISDN/hfcsusb.c void *dmabuf = kmalloc(sizeof(u_char), GFP_KERNEL); dmabuf 1703 drivers/isdn/hardware/mISDN/hfcsusb.c if (!dmabuf) dmabuf 1706 drivers/isdn/hardware/mISDN/hfcsusb.c ret = read_reg_atomic(hw, HFCUSB_CHIP_ID, dmabuf); dmabuf 1708 drivers/isdn/hardware/mISDN/hfcsusb.c memcpy(&b, dmabuf, sizeof(u_char)); dmabuf 1709 drivers/isdn/hardware/mISDN/hfcsusb.c kfree(dmabuf); dmabuf 81 drivers/media/common/videobuf2/videobuf2-dma-contig.c buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); dmabuf 288 drivers/media/common/videobuf2/videobuf2-dma-contig.c struct mutex *lock = &db_attach->dmabuf->lock; dmabuf 633 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_buf_vunmap(buf->db_attach->dmabuf, buf->vaddr); dmabuf 651 drivers/media/common/videobuf2/videobuf2-dma-contig.c dma_buf_detach(buf->db_attach->dmabuf, buf->db_attach); dmabuf 310 drivers/media/common/videobuf2/videobuf2-dma-sg.c buf->vaddr = dma_buf_vmap(buf->db_attach->dmabuf); dmabuf 426 drivers/media/common/videobuf2/videobuf2-dma-sg.c struct mutex *lock = &db_attach->dmabuf->lock; dmabuf 576 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_buf_vunmap(buf->db_attach->dmabuf, buf->vaddr); dmabuf 593 drivers/media/common/videobuf2/videobuf2-dma-sg.c dma_buf_detach(buf->db_attach->dmabuf, buf->db_attach); dmabuf 275 drivers/media/common/videobuf2/videobuf2-vmalloc.c struct mutex *lock = &db_attach->dmabuf->lock; dmabuf 118 drivers/misc/fastrpc.c struct dma_buf *dmabuf; dmabuf 508 drivers/misc/fastrpc.c static void fastrpc_release(struct dma_buf *dmabuf) dmabuf 510 drivers/misc/fastrpc.c struct fastrpc_buf *buffer = dmabuf->priv; dmabuf 515 drivers/misc/fastrpc.c static int fastrpc_dma_buf_attach(struct dma_buf *dmabuf, dmabuf 519 drivers/misc/fastrpc.c struct fastrpc_buf *buffer = dmabuf->priv; dmabuf 545 drivers/misc/fastrpc.c static void fastrpc_dma_buf_detatch(struct dma_buf *dmabuf, dmabuf 549 drivers/misc/fastrpc.c struct fastrpc_buf *buffer = dmabuf->priv; dmabuf 558 drivers/misc/fastrpc.c static void *fastrpc_kmap(struct dma_buf *dmabuf, unsigned long pgnum) dmabuf 560 drivers/misc/fastrpc.c struct fastrpc_buf *buf = dmabuf->priv; dmabuf 565 drivers/misc/fastrpc.c static void *fastrpc_vmap(struct dma_buf *dmabuf) dmabuf 567 drivers/misc/fastrpc.c struct fastrpc_buf *buf = dmabuf->priv; dmabuf 572 drivers/misc/fastrpc.c static int fastrpc_mmap(struct dma_buf *dmabuf, dmabuf 575 drivers/misc/fastrpc.c struct fastrpc_buf *buf = dmabuf->priv; dmabuf 1220 drivers/misc/fastrpc.c buf->dmabuf = dma_buf_export(&exp_info); dmabuf 1221 drivers/misc/fastrpc.c if (IS_ERR(buf->dmabuf)) { dmabuf 1222 drivers/misc/fastrpc.c err = PTR_ERR(buf->dmabuf); dmabuf 1227 drivers/misc/fastrpc.c bp.fd = dma_buf_fd(buf->dmabuf, O_ACCMODE); dmabuf 1229 drivers/misc/fastrpc.c dma_buf_put(buf->dmabuf); dmabuf 1234 drivers/misc/fastrpc.c dma_buf_put(buf->dmabuf); dmabuf 73 drivers/mtd/nand/raw/cafe_nand.c unsigned char *dmabuf; dmabuf 125 drivers/mtd/nand/raw/cafe_nand.c memcpy(cafe->dmabuf + cafe->datalen, buf, len); dmabuf 140 drivers/mtd/nand/raw/cafe_nand.c memcpy(buf, cafe->dmabuf + cafe->datalen, len); dmabuf 602 drivers/mtd/nand/raw/cafe_nand.c cafe->dmabuf = dma_alloc_coherent(&cafe->pdev->dev, 2112, dmabuf 604 drivers/mtd/nand/raw/cafe_nand.c if (!cafe->dmabuf) dmabuf 612 drivers/mtd/nand/raw/cafe_nand.c cafe_readl(cafe, NAND_DMA_ADDR0), cafe->dmabuf); dmabuf 649 drivers/mtd/nand/raw/cafe_nand.c dma_free_coherent(&cafe->pdev->dev, 2112, cafe->dmabuf, cafe->dmaaddr); dmabuf 658 drivers/mtd/nand/raw/cafe_nand.c dma_free_coherent(&cafe->pdev->dev, 2112, cafe->dmabuf, cafe->dmaaddr); dmabuf 824 drivers/mtd/nand/raw/cafe_nand.c dma_free_coherent(&cafe->pdev->dev, 2112, cafe->dmabuf, cafe->dmaaddr); dmabuf 667 drivers/net/ethernet/freescale/fec_main.c unsigned long dmabuf; dmabuf 676 drivers/net/ethernet/freescale/fec_main.c dmabuf = txq->tso_hdrs_dma + index * TSO_HEADER_SIZE; dmabuf 685 drivers/net/ethernet/freescale/fec_main.c dmabuf = dma_map_single(&fep->pdev->dev, bufaddr, dmabuf 687 drivers/net/ethernet/freescale/fec_main.c if (dma_mapping_error(&fep->pdev->dev, dmabuf)) { dmabuf 695 drivers/net/ethernet/freescale/fec_main.c bdp->cbd_bufaddr = cpu_to_fec32(dmabuf); dmabuf 301 drivers/net/ethernet/smsc/smc91x.h dma_addr_t dmabuf; dmabuf 307 drivers/net/ethernet/smsc/smc91x.h dmabuf = dma_map_single(lp->device, buf, len, DMA_FROM_DEVICE); dmabuf 308 drivers/net/ethernet/smsc/smc91x.h tx = dmaengine_prep_slave_single(lp->dma_chan, dmabuf, len, dmabuf 321 drivers/net/ethernet/smsc/smc91x.h dma_unmap_single(lp->device, dmabuf, len, DMA_FROM_DEVICE); dmabuf 920 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf = NULL; dmabuf 951 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = bdeBuf1; dmabuf 955 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = lpfc_sli_ringpostbuf_get(phba, pring, dma_addr); dmabuf 957 drivers/scsi/lpfc/lpfc_bsg.c if (dmabuf == NULL) dmabuf 959 drivers/scsi/lpfc/lpfc_bsg.c ct_req = (struct lpfc_sli_ct_request *)dmabuf->virt; dmabuf 963 drivers/scsi/lpfc/lpfc_bsg.c lpfc_sli_ringpostbuf_put(phba, pring, dmabuf); dmabuf 1021 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = bdeBuf1; dmabuf 1027 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = bdeBuf2; dmabuf 1037 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = lpfc_sli_ringpostbuf_get(phba, dmabuf 1040 drivers/scsi/lpfc/lpfc_bsg.c if (!dmabuf) { dmabuf 1055 drivers/scsi/lpfc/lpfc_bsg.c dmabuf->virt, size); dmabuf 1061 drivers/scsi/lpfc/lpfc_bsg.c dmabuf); dmabuf 1069 drivers/scsi/lpfc/lpfc_bsg.c *)dmabuf); dmabuf 1078 drivers/scsi/lpfc/lpfc_bsg.c dmabuf); dmabuf 1173 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_ct_unsol_abort(struct lpfc_hba *phba, struct hbq_dmabuf *dmabuf) dmabuf 1181 drivers/scsi/lpfc/lpfc_bsg.c memcpy(fc_hdr_ptr, dmabuf->hbuf.virt, sizeof(struct fc_frame_header)); dmabuf 2654 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf; dmabuf 2677 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); dmabuf 2678 drivers/scsi/lpfc/lpfc_bsg.c if (dmabuf) { dmabuf 2679 drivers/scsi/lpfc/lpfc_bsg.c dmabuf->virt = lpfc_mbuf_alloc(phba, 0, &dmabuf->phys); dmabuf 2680 drivers/scsi/lpfc/lpfc_bsg.c if (dmabuf->virt) { dmabuf 2681 drivers/scsi/lpfc/lpfc_bsg.c INIT_LIST_HEAD(&dmabuf->list); dmabuf 2682 drivers/scsi/lpfc/lpfc_bsg.c bpl = (struct ulp_bde64 *) dmabuf->virt; dmabuf 2686 drivers/scsi/lpfc/lpfc_bsg.c le32_to_cpu(putPaddrHigh(dmabuf->phys + dmabuf 2689 drivers/scsi/lpfc/lpfc_bsg.c le32_to_cpu(putPaddrLow(dmabuf->phys + dmabuf 2698 drivers/scsi/lpfc/lpfc_bsg.c dmabuf == NULL || bpl == NULL || ctreq == NULL || dmabuf 2699 drivers/scsi/lpfc/lpfc_bsg.c dmabuf->virt == NULL) { dmabuf 2717 drivers/scsi/lpfc/lpfc_bsg.c cmd->un.xseq64.bdl.addrHigh = putPaddrHigh(dmabuf->phys); dmabuf 2718 drivers/scsi/lpfc/lpfc_bsg.c cmd->un.xseq64.bdl.addrLow = putPaddrLow(dmabuf->phys); dmabuf 2771 drivers/scsi/lpfc/lpfc_bsg.c if (dmabuf) { dmabuf 2772 drivers/scsi/lpfc/lpfc_bsg.c if (dmabuf->virt) dmabuf 2773 drivers/scsi/lpfc/lpfc_bsg.c lpfc_mbuf_free(phba, dmabuf->virt, dmabuf->phys); dmabuf 2774 drivers/scsi/lpfc/lpfc_bsg.c kfree(dmabuf); dmabuf 2794 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf; dmabuf 2798 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); dmabuf 2799 drivers/scsi/lpfc/lpfc_bsg.c if (!dmabuf) dmabuf 2802 drivers/scsi/lpfc/lpfc_bsg.c INIT_LIST_HEAD(&dmabuf->list); dmabuf 2805 drivers/scsi/lpfc/lpfc_bsg.c dmabuf->virt = dma_alloc_coherent(&pcidev->dev, BSG_MBOX_SIZE, dmabuf 2806 drivers/scsi/lpfc/lpfc_bsg.c &(dmabuf->phys), GFP_KERNEL); dmabuf 2808 drivers/scsi/lpfc/lpfc_bsg.c if (!dmabuf->virt) { dmabuf 2809 drivers/scsi/lpfc/lpfc_bsg.c kfree(dmabuf); dmabuf 2813 drivers/scsi/lpfc/lpfc_bsg.c return dmabuf; dmabuf 2825 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_dma_page_free(struct lpfc_hba *phba, struct lpfc_dmabuf *dmabuf) dmabuf 2829 drivers/scsi/lpfc/lpfc_bsg.c if (!dmabuf) dmabuf 2832 drivers/scsi/lpfc/lpfc_bsg.c if (dmabuf->virt) dmabuf 2834 drivers/scsi/lpfc/lpfc_bsg.c dmabuf->virt, dmabuf->phys); dmabuf 2835 drivers/scsi/lpfc/lpfc_bsg.c kfree(dmabuf); dmabuf 2851 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf, *next_dmabuf; dmabuf 2856 drivers/scsi/lpfc/lpfc_bsg.c list_for_each_entry_safe(dmabuf, next_dmabuf, dmabuf_list, list) { dmabuf 2857 drivers/scsi/lpfc/lpfc_bsg.c list_del_init(&dmabuf->list); dmabuf 2858 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_dma_page_free(phba, dmabuf); dmabuf 3644 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf; dmabuf 3670 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = phba->mbox_ext_buf_ctx.mbx_dmabuf; dmabuf 3671 drivers/scsi/lpfc/lpfc_bsg.c sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; dmabuf 3674 drivers/scsi/lpfc/lpfc_bsg.c pmbx = (uint8_t *)dmabuf->virt; dmabuf 3903 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf) dmabuf 3921 drivers/scsi/lpfc/lpfc_bsg.c sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; dmabuf 3963 drivers/scsi/lpfc/lpfc_bsg.c sta_pre_addr, dmabuf, ext_buf_cnt); dmabuf 3998 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_sli_cfg_dma_desc_setup(phba, nemb_tp, 0, dmabuf, dmabuf); dmabuf 4006 drivers/scsi/lpfc/lpfc_bsg.c ext_buf_index, dmabuf, dmabuf 4014 drivers/scsi/lpfc/lpfc_bsg.c sta_pos_addr, dmabuf, ext_buf_cnt); dmabuf 4018 drivers/scsi/lpfc/lpfc_bsg.c pmbx = (uint8_t *)dmabuf->virt; dmabuf 4029 drivers/scsi/lpfc/lpfc_bsg.c phba->mbox_ext_buf_ctx.mbx_dmabuf = dmabuf; dmabuf 4091 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf) dmabuf 4108 drivers/scsi/lpfc/lpfc_bsg.c sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; dmabuf 4146 drivers/scsi/lpfc/lpfc_bsg.c sta_pre_addr, dmabuf, ext_buf_cnt); dmabuf 4152 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_sli_cfg_dma_desc_setup(phba, nemb_tp, 0, dmabuf, dmabuf); dmabuf 4156 drivers/scsi/lpfc/lpfc_bsg.c sta_pos_addr, dmabuf, ext_buf_cnt); dmabuf 4179 drivers/scsi/lpfc/lpfc_bsg.c phba->mbox_ext_buf_ctx.mbx_dmabuf = dmabuf; dmabuf 4197 drivers/scsi/lpfc/lpfc_bsg.c mbx = (uint8_t *)dmabuf->virt; dmabuf 4257 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf) dmabuf 4267 drivers/scsi/lpfc/lpfc_bsg.c sli_cfg_mbx = (struct lpfc_sli_config_mbox *)dmabuf->virt; dmabuf 4284 drivers/scsi/lpfc/lpfc_bsg.c nemb_mse, dmabuf); dmabuf 4294 drivers/scsi/lpfc/lpfc_bsg.c nemb_mse, dmabuf); dmabuf 4314 drivers/scsi/lpfc/lpfc_bsg.c nemb_mse, dmabuf); dmabuf 4345 drivers/scsi/lpfc/lpfc_bsg.c nemb_hbd, dmabuf); dmabuf 4353 drivers/scsi/lpfc/lpfc_bsg.c nemb_hbd, dmabuf); dmabuf 4409 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf; dmabuf 4435 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = list_first_entry(&phba->mbox_ext_buf_ctx.ext_dmabuf_list, dmabuf 4437 drivers/scsi/lpfc/lpfc_bsg.c list_del_init(&dmabuf->list); dmabuf 4442 drivers/scsi/lpfc/lpfc_bsg.c dmabuf, index); dmabuf 4444 drivers/scsi/lpfc/lpfc_bsg.c pbuf = (uint8_t *)dmabuf->virt; dmabuf 4450 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_dma_page_free(phba, dmabuf); dmabuf 4476 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf) dmabuf 4492 drivers/scsi/lpfc/lpfc_bsg.c pbuf = (uint8_t *)dmabuf->virt; dmabuf 4515 drivers/scsi/lpfc/lpfc_bsg.c dmabuf); dmabuf 4516 drivers/scsi/lpfc/lpfc_bsg.c list_add_tail(&dmabuf->list, &phba->mbox_ext_buf_ctx.ext_dmabuf_list); dmabuf 4521 drivers/scsi/lpfc/lpfc_bsg.c dmabuf, index); dmabuf 4585 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_dma_page_free(phba, dmabuf); dmabuf 4602 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf) dmabuf 4621 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_dma_page_free(phba, dmabuf); dmabuf 4631 drivers/scsi/lpfc/lpfc_bsg.c rc = lpfc_bsg_write_ebuf_set(phba, job, dmabuf); dmabuf 4647 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf) dmabuf 4667 drivers/scsi/lpfc/lpfc_bsg.c rc = lpfc_bsg_handle_sli_cfg_mbox(phba, job, dmabuf); dmabuf 4690 drivers/scsi/lpfc/lpfc_bsg.c rc = lpfc_bsg_handle_sli_cfg_ebuf(phba, job, dmabuf); dmabuf 4734 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf = NULL; dmabuf 4775 drivers/scsi/lpfc/lpfc_bsg.c dmabuf = lpfc_bsg_dma_page_alloc(phba); dmabuf 4776 drivers/scsi/lpfc/lpfc_bsg.c if (!dmabuf || !dmabuf->virt) { dmabuf 4782 drivers/scsi/lpfc/lpfc_bsg.c pmbx = (uint8_t *)dmabuf->virt; dmabuf 4789 drivers/scsi/lpfc/lpfc_bsg.c rc = lpfc_bsg_handle_sli_cfg_ext(phba, job, dmabuf); dmabuf 4863 drivers/scsi/lpfc/lpfc_bsg.c putPaddrHigh(dmabuf->phys + sizeof(MAILBOX_t)); dmabuf 4865 drivers/scsi/lpfc/lpfc_bsg.c putPaddrLow(dmabuf->phys + sizeof(MAILBOX_t)); dmabuf 4868 drivers/scsi/lpfc/lpfc_bsg.c putPaddrHigh(dmabuf->phys + sizeof(MAILBOX_t) dmabuf 4871 drivers/scsi/lpfc/lpfc_bsg.c putPaddrLow(dmabuf->phys + sizeof(MAILBOX_t) dmabuf 4888 drivers/scsi/lpfc/lpfc_bsg.c pmb->un.varWords[3] = putPaddrLow(dmabuf->phys dmabuf 4890 drivers/scsi/lpfc/lpfc_bsg.c pmb->un.varWords[4] = putPaddrHigh(dmabuf->phys dmabuf 4911 drivers/scsi/lpfc/lpfc_bsg.c pmb->un.varWords[3] = putPaddrLow(dmabuf->phys dmabuf 4913 drivers/scsi/lpfc/lpfc_bsg.c pmb->un.varWords[4] = putPaddrHigh(dmabuf->phys dmabuf 4925 drivers/scsi/lpfc/lpfc_bsg.c bde->addrHigh = putPaddrHigh(dmabuf->phys dmabuf 4927 drivers/scsi/lpfc/lpfc_bsg.c bde->addrLow = putPaddrLow(dmabuf->phys dmabuf 4952 drivers/scsi/lpfc/lpfc_bsg.c putPaddrHigh(dmabuf->phys dmabuf 4955 drivers/scsi/lpfc/lpfc_bsg.c putPaddrLow(dmabuf->phys dmabuf 4961 drivers/scsi/lpfc/lpfc_bsg.c dd_data->context_un.mbox.dmabuffers = dmabuf; dmabuf 5005 drivers/scsi/lpfc/lpfc_bsg.c lpfc_bsg_dma_page_free(phba, dmabuf); dmabuf 5622 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_dmabuf *dmabuf, *next; dmabuf 5661 drivers/scsi/lpfc/lpfc_bsg.c list_for_each_entry_safe(dmabuf, next, dmabuf 5664 drivers/scsi/lpfc/lpfc_bsg.c if (dmabuf->buffer_tag < rd_index) dmabuf 5667 drivers/scsi/lpfc/lpfc_bsg.c src = dmabuf->virt + offset; dmabuf 192 drivers/scsi/lpfc/lpfc_ct.c lpfc_ct_handle_unsol_abort(struct lpfc_hba *phba, struct hbq_dmabuf *dmabuf) dmabuf 197 drivers/scsi/lpfc/lpfc_ct.c handled = lpfc_bsg_ct_unsol_abort(phba, dmabuf); dmabuf 5474 drivers/scsi/lpfc/lpfc_debugfs.c struct lpfc_dmabuf *dmabuf, uint32_t ext_buf) dmabuf 5535 drivers/scsi/lpfc/lpfc_debugfs.c pword = (uint32_t *)dmabuf->virt; dmabuf 465 drivers/scsi/lpfc/lpfc_els.c struct lpfc_dmabuf *dmabuf = NULL; dmabuf 487 drivers/scsi/lpfc/lpfc_els.c dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); dmabuf 488 drivers/scsi/lpfc/lpfc_els.c if (!dmabuf) { dmabuf 492 drivers/scsi/lpfc/lpfc_els.c dmabuf->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &dmabuf->phys); dmabuf 493 drivers/scsi/lpfc/lpfc_els.c if (!dmabuf->virt) { dmabuf 497 drivers/scsi/lpfc/lpfc_els.c memcpy(dmabuf->virt, &phba->fc_fabparam, dmabuf 502 drivers/scsi/lpfc/lpfc_els.c if (dmabuf) dmabuf 503 drivers/scsi/lpfc/lpfc_els.c lpfc_reg_vfi(mboxq, vport, dmabuf->phys); dmabuf 509 drivers/scsi/lpfc/lpfc_els.c mboxq->ctx_buf = dmabuf; dmabuf 520 drivers/scsi/lpfc/lpfc_els.c if (dmabuf) { dmabuf 521 drivers/scsi/lpfc/lpfc_els.c if (dmabuf->virt) dmabuf 522 drivers/scsi/lpfc/lpfc_els.c lpfc_mbuf_free(phba, dmabuf->virt, dmabuf->phys); dmabuf 523 drivers/scsi/lpfc/lpfc_els.c kfree(dmabuf); dmabuf 2966 drivers/scsi/lpfc/lpfc_hbadisc.c struct lpfc_dmabuf *dmabuf = mboxq->ctx_buf; dmabuf 3048 drivers/scsi/lpfc/lpfc_hbadisc.c if (dmabuf) { dmabuf 3049 drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_mbuf_free(phba, dmabuf->virt, dmabuf->phys); dmabuf 3050 drivers/scsi/lpfc/lpfc_hbadisc.c kfree(dmabuf); dmabuf 879 drivers/scsi/lpfc/lpfc_init.c struct hbq_dmabuf *dmabuf; dmabuf 901 drivers/scsi/lpfc/lpfc_init.c dmabuf = container_of(cq_event, struct hbq_dmabuf, dmabuf 903 drivers/scsi/lpfc/lpfc_init.c lpfc_in_buf_free(phba, &dmabuf->dbuf); dmabuf 7352 drivers/scsi/lpfc/lpfc_init.c struct lpfc_dmabuf *dmabuf; dmabuf 7385 drivers/scsi/lpfc/lpfc_init.c dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); dmabuf 7386 drivers/scsi/lpfc/lpfc_init.c if (!dmabuf) dmabuf 7389 drivers/scsi/lpfc/lpfc_init.c dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, dmabuf 7391 drivers/scsi/lpfc/lpfc_init.c &dmabuf->phys, GFP_KERNEL); dmabuf 7392 drivers/scsi/lpfc/lpfc_init.c if (!dmabuf->virt) { dmabuf 7397 drivers/scsi/lpfc/lpfc_init.c if (!IS_ALIGNED(dmabuf->phys, LPFC_HDR_TEMPLATE_SIZE)) { dmabuf 7407 drivers/scsi/lpfc/lpfc_init.c rpi_hdr->dmabuf = dmabuf; dmabuf 7422 drivers/scsi/lpfc/lpfc_init.c dmabuf->virt, dmabuf->phys); dmabuf 7424 drivers/scsi/lpfc/lpfc_init.c kfree(dmabuf); dmabuf 7449 drivers/scsi/lpfc/lpfc_init.c rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys); dmabuf 7450 drivers/scsi/lpfc/lpfc_init.c kfree(rpi_hdr->dmabuf); dmabuf 8167 drivers/scsi/lpfc/lpfc_init.c struct lpfc_dmabuf *dmabuf; dmabuf 8172 drivers/scsi/lpfc/lpfc_init.c dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); dmabuf 8173 drivers/scsi/lpfc/lpfc_init.c if (!dmabuf) dmabuf 8181 drivers/scsi/lpfc/lpfc_init.c dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, bmbx_size, dmabuf 8182 drivers/scsi/lpfc/lpfc_init.c &dmabuf->phys, GFP_KERNEL); dmabuf 8183 drivers/scsi/lpfc/lpfc_init.c if (!dmabuf->virt) { dmabuf 8184 drivers/scsi/lpfc/lpfc_init.c kfree(dmabuf); dmabuf 8195 drivers/scsi/lpfc/lpfc_init.c phba->sli4_hba.bmbx.dmabuf = dmabuf; dmabuf 8198 drivers/scsi/lpfc/lpfc_init.c phba->sli4_hba.bmbx.avirt = PTR_ALIGN(dmabuf->virt, dmabuf 8200 drivers/scsi/lpfc/lpfc_init.c phba->sli4_hba.bmbx.aphys = ALIGN(dmabuf->phys, dmabuf 8239 drivers/scsi/lpfc/lpfc_init.c phba->sli4_hba.bmbx.dmabuf->virt, dmabuf 8240 drivers/scsi/lpfc/lpfc_init.c phba->sli4_hba.bmbx.dmabuf->phys); dmabuf 8242 drivers/scsi/lpfc/lpfc_init.c kfree(phba->sli4_hba.bmbx.dmabuf); dmabuf 12531 drivers/scsi/lpfc/lpfc_init.c struct lpfc_dmabuf *dmabuf, *next; dmabuf 12555 drivers/scsi/lpfc/lpfc_init.c dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), dmabuf 12557 drivers/scsi/lpfc/lpfc_init.c if (!dmabuf) { dmabuf 12561 drivers/scsi/lpfc/lpfc_init.c dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, dmabuf 12563 drivers/scsi/lpfc/lpfc_init.c &dmabuf->phys, dmabuf 12565 drivers/scsi/lpfc/lpfc_init.c if (!dmabuf->virt) { dmabuf 12566 drivers/scsi/lpfc/lpfc_init.c kfree(dmabuf); dmabuf 12570 drivers/scsi/lpfc/lpfc_init.c list_add_tail(&dmabuf->list, &dma_buffer_list); dmabuf 12574 drivers/scsi/lpfc/lpfc_init.c list_for_each_entry(dmabuf, &dma_buffer_list, list) { dmabuf 12576 drivers/scsi/lpfc/lpfc_init.c memcpy(dmabuf->virt, dmabuf 12582 drivers/scsi/lpfc/lpfc_init.c memcpy(dmabuf->virt, fw->data + temp_offset, dmabuf 12602 drivers/scsi/lpfc/lpfc_init.c list_for_each_entry_safe(dmabuf, next, &dma_buffer_list, list) { dmabuf 12603 drivers/scsi/lpfc/lpfc_init.c list_del(&dmabuf->list); dmabuf 12605 drivers/scsi/lpfc/lpfc_init.c dmabuf->virt, dmabuf->phys); dmabuf 12606 drivers/scsi/lpfc/lpfc_init.c kfree(dmabuf); dmabuf 850 drivers/scsi/lpfc/lpfc_nvmet.c struct lpfc_dmabuf dmabuf; dmabuf 890 drivers/scsi/lpfc/lpfc_nvmet.c nvmewqeq->context3 = &dmabuf; dmabuf 891 drivers/scsi/lpfc/lpfc_nvmet.c dmabuf.virt = &bpl; dmabuf 80 drivers/scsi/lpfc/lpfc_sli.c struct hbq_dmabuf *dmabuf); dmabuf 1978 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf, *next_dmabuf; dmabuf 1987 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry_safe(dmabuf, next_dmabuf, dmabuf 1989 drivers/scsi/lpfc/lpfc_sli.c hbq_buf = container_of(dmabuf, struct hbq_dmabuf, dbuf); dmabuf 3872 drivers/scsi/lpfc/lpfc_sli.c struct hbq_dmabuf *dmabuf; dmabuf 3901 drivers/scsi/lpfc/lpfc_sli.c dmabuf = container_of(cq_event, struct hbq_dmabuf, dmabuf 3903 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_handle_received_buffer(phba, dmabuf); dmabuf 5294 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 5297 drivers/scsi/lpfc/lpfc_sli.c dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); dmabuf 5298 drivers/scsi/lpfc/lpfc_sli.c if (!dmabuf) dmabuf 5306 drivers/scsi/lpfc/lpfc_sli.c dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, dma_size, dmabuf 5307 drivers/scsi/lpfc/lpfc_sli.c &dmabuf->phys, GFP_KERNEL); dmabuf 5308 drivers/scsi/lpfc/lpfc_sli.c if (!dmabuf->virt) { dmabuf 5309 drivers/scsi/lpfc/lpfc_sli.c kfree(dmabuf); dmabuf 5320 drivers/scsi/lpfc/lpfc_sli.c mqe->un.read_rev.vpd_paddr_high = putPaddrHigh(dmabuf->phys); dmabuf 5321 drivers/scsi/lpfc/lpfc_sli.c mqe->un.read_rev.vpd_paddr_low = putPaddrLow(dmabuf->phys); dmabuf 5329 drivers/scsi/lpfc/lpfc_sli.c dmabuf->virt, dmabuf->phys); dmabuf 5330 drivers/scsi/lpfc/lpfc_sli.c kfree(dmabuf); dmabuf 5342 drivers/scsi/lpfc/lpfc_sli.c memcpy(vpd, dmabuf->virt, *vpd_size); dmabuf 5345 drivers/scsi/lpfc/lpfc_sli.c dmabuf->virt, dmabuf->phys); dmabuf 5346 drivers/scsi/lpfc/lpfc_sli.c kfree(dmabuf); dmabuf 6215 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf, *next; dmabuf 6218 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry_safe(dmabuf, next, dmabuf 6221 drivers/scsi/lpfc/lpfc_sli.c list_del(&dmabuf->list); dmabuf 6224 drivers/scsi/lpfc/lpfc_sli.c dmabuf->virt, dmabuf->phys); dmabuf 6225 drivers/scsi/lpfc/lpfc_sli.c kfree(dmabuf); dmabuf 6256 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 6276 drivers/scsi/lpfc/lpfc_sli.c dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), dmabuf 6278 drivers/scsi/lpfc/lpfc_sli.c if (!dmabuf) { dmabuf 6285 drivers/scsi/lpfc/lpfc_sli.c dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, dmabuf 6287 drivers/scsi/lpfc/lpfc_sli.c &dmabuf->phys, GFP_KERNEL); dmabuf 6288 drivers/scsi/lpfc/lpfc_sli.c if (!dmabuf->virt) { dmabuf 6289 drivers/scsi/lpfc/lpfc_sli.c kfree(dmabuf); dmabuf 6295 drivers/scsi/lpfc/lpfc_sli.c dmabuf->buffer_tag = i; dmabuf 6296 drivers/scsi/lpfc/lpfc_sli.c list_add_tail(&dmabuf->list, &ras_fwlog->fwlog_buff_list); dmabuf 6366 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 6416 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &ras_fwlog->fwlog_buff_list, list) { dmabuf 6417 drivers/scsi/lpfc/lpfc_sli.c memset(dmabuf->virt, 0, LPFC_RAS_MAX_ENTRY_SIZE); dmabuf 6419 drivers/scsi/lpfc/lpfc_sli.c mbx_fwlog->u.request.buff_fwlog[dmabuf->buffer_tag].addr_lo = dmabuf 6420 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 6422 drivers/scsi/lpfc/lpfc_sli.c mbx_fwlog->u.request.buff_fwlog[dmabuf->buffer_tag].addr_hi = dmabuf 6423 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 9183 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 9205 drivers/scsi/lpfc/lpfc_sli.c dmabuf = (struct lpfc_dmabuf *)piocbq->context3; dmabuf 9209 drivers/scsi/lpfc/lpfc_sli.c bpl = (struct ulp_bde64 *)dmabuf->virt; dmabuf 12874 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 12894 drivers/scsi/lpfc/lpfc_sli.c dmabuf = (struct lpfc_dmabuf *)pIocbOut->context3; dmabuf 12895 drivers/scsi/lpfc/lpfc_sli.c bpl = (struct ulp_bde64 *)dmabuf->virt; dmabuf 12905 drivers/scsi/lpfc/lpfc_sli.c dmabuf = (struct lpfc_dmabuf *)pIocbOut->context3; dmabuf 12906 drivers/scsi/lpfc/lpfc_sli.c bpl = (struct ulp_bde64 *)dmabuf->virt; dmabuf 14473 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 14482 drivers/scsi/lpfc/lpfc_sli.c list_remove_head(&queue->page_list, dmabuf, struct lpfc_dmabuf, dmabuf 14485 drivers/scsi/lpfc/lpfc_sli.c dmabuf->virt, dmabuf->phys); dmabuf 14486 drivers/scsi/lpfc/lpfc_sli.c kfree(dmabuf); dmabuf 14517 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 14555 drivers/scsi/lpfc/lpfc_sli.c dmabuf = kzalloc_node(sizeof(*dmabuf), GFP_KERNEL, dmabuf 14557 drivers/scsi/lpfc/lpfc_sli.c if (!dmabuf) dmabuf 14559 drivers/scsi/lpfc/lpfc_sli.c dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, dmabuf 14560 drivers/scsi/lpfc/lpfc_sli.c hw_page_size, &dmabuf->phys, dmabuf 14562 drivers/scsi/lpfc/lpfc_sli.c if (!dmabuf->virt) { dmabuf 14563 drivers/scsi/lpfc/lpfc_sli.c kfree(dmabuf); dmabuf 14566 drivers/scsi/lpfc/lpfc_sli.c dmabuf->buffer_tag = x; dmabuf 14567 drivers/scsi/lpfc/lpfc_sli.c list_add_tail(&dmabuf->list, &queue->page_list); dmabuf 14569 drivers/scsi/lpfc/lpfc_sli.c queue->q_pgs[x] = dmabuf->virt; dmabuf 14754 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 14825 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &eq->page_list, list) { dmabuf 14826 drivers/scsi/lpfc/lpfc_sli.c memset(dmabuf->virt, 0, hw_page_size); dmabuf 14827 drivers/scsi/lpfc/lpfc_sli.c eq_create->u.request.page[dmabuf->buffer_tag].addr_lo = dmabuf 14828 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 14829 drivers/scsi/lpfc/lpfc_sli.c eq_create->u.request.page[dmabuf->buffer_tag].addr_hi = dmabuf 14830 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 14885 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 14959 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &cq->page_list, list) { dmabuf 14960 drivers/scsi/lpfc/lpfc_sli.c memset(dmabuf->virt, 0, cq->page_size); dmabuf 14961 drivers/scsi/lpfc/lpfc_sli.c cq_create->u.request.page[dmabuf->buffer_tag].addr_lo = dmabuf 14962 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 14963 drivers/scsi/lpfc/lpfc_sli.c cq_create->u.request.page[dmabuf->buffer_tag].addr_hi = dmabuf 14964 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 15033 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 15211 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &cq->page_list, list) { dmabuf 15212 drivers/scsi/lpfc/lpfc_sli.c memset(dmabuf->virt, 0, hw_page_size); dmabuf 15213 drivers/scsi/lpfc/lpfc_sli.c cnt = page_idx + dmabuf->buffer_tag; dmabuf 15215 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 15217 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 15273 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 15305 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &mq->page_list, list) { dmabuf 15306 drivers/scsi/lpfc/lpfc_sli.c mq_create->u.request.page[dmabuf->buffer_tag].addr_lo = dmabuf 15307 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 15308 drivers/scsi/lpfc/lpfc_sli.c mq_create->u.request.page[dmabuf->buffer_tag].addr_hi = dmabuf 15309 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 15340 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 15416 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &mq->page_list, list) { dmabuf 15417 drivers/scsi/lpfc/lpfc_sli.c memset(dmabuf->virt, 0, hw_page_size); dmabuf 15418 drivers/scsi/lpfc/lpfc_sli.c mq_create_ext->u.request.page[dmabuf->buffer_tag].addr_lo = dmabuf 15419 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 15420 drivers/scsi/lpfc/lpfc_sli.c mq_create_ext->u.request.page[dmabuf->buffer_tag].addr_hi = dmabuf 15421 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 15494 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 15578 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &wq->page_list, list) { dmabuf 15579 drivers/scsi/lpfc/lpfc_sli.c memset(dmabuf->virt, 0, hw_page_size); dmabuf 15580 drivers/scsi/lpfc/lpfc_sli.c page[dmabuf->buffer_tag].addr_lo = putPaddrLow(dmabuf->phys); dmabuf 15581 drivers/scsi/lpfc/lpfc_sli.c page[dmabuf->buffer_tag].addr_hi = putPaddrHigh(dmabuf->phys); dmabuf 15761 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 15841 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &hrq->page_list, list) { dmabuf 15842 drivers/scsi/lpfc/lpfc_sli.c memset(dmabuf->virt, 0, hw_page_size); dmabuf 15843 drivers/scsi/lpfc/lpfc_sli.c rq_create->u.request.page[dmabuf->buffer_tag].addr_lo = dmabuf 15844 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 15845 drivers/scsi/lpfc/lpfc_sli.c rq_create->u.request.page[dmabuf->buffer_tag].addr_hi = dmabuf 15846 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 15984 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &drq->page_list, list) { dmabuf 15985 drivers/scsi/lpfc/lpfc_sli.c rq_create->u.request.page[dmabuf->buffer_tag].addr_lo = dmabuf 15986 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 15987 drivers/scsi/lpfc/lpfc_sli.c rq_create->u.request.page[dmabuf->buffer_tag].addr_hi = dmabuf 15988 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 16052 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 16139 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &hrq->page_list, list) { dmabuf 16140 drivers/scsi/lpfc/lpfc_sli.c memset(dmabuf->virt, 0, hw_page_size); dmabuf 16141 drivers/scsi/lpfc/lpfc_sli.c cnt = page_idx + dmabuf->buffer_tag; dmabuf 16143 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 16145 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 16151 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, &drq->page_list, list) { dmabuf 16152 drivers/scsi/lpfc/lpfc_sli.c memset(dmabuf->virt, 0, hw_page_size); dmabuf 16153 drivers/scsi/lpfc/lpfc_sli.c cnt = page_idx + dmabuf->buffer_tag; dmabuf 16155 drivers/scsi/lpfc/lpfc_sli.c putPaddrLow(dmabuf->phys); dmabuf 16157 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 17187 drivers/scsi/lpfc/lpfc_sli.c struct hbq_dmabuf *dmabuf = NULL; dmabuf 17194 drivers/scsi/lpfc/lpfc_sli.c dmabuf = container_of(h_buf, struct hbq_dmabuf, hbuf); dmabuf 17195 drivers/scsi/lpfc/lpfc_sli.c vport->rcv_buffer_time_stamp = dmabuf->time_stamp; dmabuf 17211 drivers/scsi/lpfc/lpfc_sli.c struct hbq_dmabuf *dmabuf = NULL; dmabuf 17215 drivers/scsi/lpfc/lpfc_sli.c dmabuf = container_of(h_buf, struct hbq_dmabuf, hbuf); dmabuf 17216 drivers/scsi/lpfc/lpfc_sli.c list_del_init(&dmabuf->hbuf.list); dmabuf 17218 drivers/scsi/lpfc/lpfc_sli.c &dmabuf->dbuf.list, list) { dmabuf 17222 drivers/scsi/lpfc/lpfc_sli.c lpfc_in_buf_free(vport->phba, &dmabuf->dbuf); dmabuf 17243 drivers/scsi/lpfc/lpfc_sli.c struct hbq_dmabuf *dmabuf = NULL; dmabuf 17254 drivers/scsi/lpfc/lpfc_sli.c dmabuf = container_of(h_buf, struct hbq_dmabuf, hbuf); dmabuf 17256 drivers/scsi/lpfc/lpfc_sli.c dmabuf->time_stamp); dmabuf 17260 drivers/scsi/lpfc/lpfc_sli.c list_del_init(&dmabuf->hbuf.list); dmabuf 17262 drivers/scsi/lpfc/lpfc_sli.c &dmabuf->dbuf.list, list) { dmabuf 17266 drivers/scsi/lpfc/lpfc_sli.c lpfc_in_buf_free(vport->phba, &dmabuf->dbuf); dmabuf 17285 drivers/scsi/lpfc/lpfc_sli.c lpfc_fc_frame_add(struct lpfc_vport *vport, struct hbq_dmabuf *dmabuf) dmabuf 17295 drivers/scsi/lpfc/lpfc_sli.c INIT_LIST_HEAD(&dmabuf->dbuf.list); dmabuf 17296 drivers/scsi/lpfc/lpfc_sli.c dmabuf->time_stamp = jiffies; dmabuf 17297 drivers/scsi/lpfc/lpfc_sli.c new_hdr = (struct fc_frame_header *)dmabuf->hbuf.virt; dmabuf 17315 drivers/scsi/lpfc/lpfc_sli.c list_add_tail(&dmabuf->hbuf.list, &vport->rcv_buffer_list); dmabuf 17317 drivers/scsi/lpfc/lpfc_sli.c return dmabuf; dmabuf 17323 drivers/scsi/lpfc/lpfc_sli.c list_add_tail(&dmabuf->hbuf.list, &vport->rcv_buffer_list); dmabuf 17324 drivers/scsi/lpfc/lpfc_sli.c list_add_tail(&dmabuf->dbuf.list, &seq_dmabuf->dbuf.list); dmabuf 17326 drivers/scsi/lpfc/lpfc_sli.c return dmabuf; dmabuf 17333 drivers/scsi/lpfc/lpfc_sli.c temp_hdr = dmabuf->hbuf.virt; dmabuf 17334 drivers/scsi/lpfc/lpfc_sli.c list_add_tail(&dmabuf->dbuf.list, &seq_dmabuf->dbuf.list); dmabuf 17348 drivers/scsi/lpfc/lpfc_sli.c list_add(&dmabuf->dbuf.list, &temp_dmabuf->dbuf.list); dmabuf 17381 drivers/scsi/lpfc/lpfc_sli.c struct hbq_dmabuf *dmabuf) dmabuf 17389 drivers/scsi/lpfc/lpfc_sli.c INIT_LIST_HEAD(&dmabuf->dbuf.list); dmabuf 17390 drivers/scsi/lpfc/lpfc_sli.c INIT_LIST_HEAD(&dmabuf->hbuf.list); dmabuf 17391 drivers/scsi/lpfc/lpfc_sli.c new_hdr = (struct fc_frame_header *)dmabuf->hbuf.virt; dmabuf 17432 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_abort_ulp_seq(struct lpfc_vport *vport, struct hbq_dmabuf *dmabuf) dmabuf 17442 drivers/scsi/lpfc/lpfc_sli.c handled = lpfc_ct_handle_unsol_abort(phba, dmabuf); dmabuf 17663 drivers/scsi/lpfc/lpfc_sli.c struct hbq_dmabuf *dmabuf) dmabuf 17671 drivers/scsi/lpfc/lpfc_sli.c memcpy(&fc_hdr, dmabuf->hbuf.virt, sizeof(struct fc_frame_header)); dmabuf 17679 drivers/scsi/lpfc/lpfc_sli.c aborted = lpfc_sli4_abort_partial_seq(vport, dmabuf); dmabuf 17681 drivers/scsi/lpfc/lpfc_sli.c aborted = lpfc_sli4_abort_ulp_seq(vport, dmabuf); dmabuf 17683 drivers/scsi/lpfc/lpfc_sli.c lpfc_in_buf_free(phba, &dmabuf->dbuf); dmabuf 17707 drivers/scsi/lpfc/lpfc_sli.c lpfc_seq_complete(struct hbq_dmabuf *dmabuf) dmabuf 17715 drivers/scsi/lpfc/lpfc_sli.c hdr = (struct fc_frame_header *)dmabuf->hbuf.virt; dmabuf 17725 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(d_buf, &dmabuf->dbuf.list, list) { dmabuf 17924 drivers/scsi/lpfc/lpfc_sli.c struct hbq_dmabuf *dmabuf) dmabuf 17935 drivers/scsi/lpfc/lpfc_sli.c fc_hdr = (struct fc_frame_header *)dmabuf->hbuf.virt; dmabuf 17936 drivers/scsi/lpfc/lpfc_sli.c frame_len = bf_get(lpfc_rcqe_length, &dmabuf->cq_event.cqe.rcqe_cmpl); dmabuf 17943 drivers/scsi/lpfc/lpfc_sli.c list_add_tail(&dmabuf->cq_event.list, dmabuf 17962 drivers/scsi/lpfc/lpfc_sli.c memcpy(pcmd->virt, dmabuf->dbuf.virt, frame_len); dmabuf 17996 drivers/scsi/lpfc/lpfc_sli.c lpfc_in_buf_free(phba, &dmabuf->dbuf); dmabuf 18007 drivers/scsi/lpfc/lpfc_sli.c lpfc_in_buf_free(phba, &dmabuf->dbuf); dmabuf 18023 drivers/scsi/lpfc/lpfc_sli.c struct hbq_dmabuf *dmabuf) dmabuf 18032 drivers/scsi/lpfc/lpfc_sli.c fc_hdr = (struct fc_frame_header *)dmabuf->hbuf.virt; dmabuf 18038 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_handle_mds_loopback(vport, dmabuf); dmabuf 18044 drivers/scsi/lpfc/lpfc_sli.c lpfc_in_buf_free(phba, &dmabuf->dbuf); dmabuf 18049 drivers/scsi/lpfc/lpfc_sli.c &dmabuf->cq_event.cqe.rcqe_cmpl) == CQE_CODE_RECEIVE_V1)) dmabuf 18051 drivers/scsi/lpfc/lpfc_sli.c &dmabuf->cq_event.cqe.rcqe_cmpl); dmabuf 18054 drivers/scsi/lpfc/lpfc_sli.c &dmabuf->cq_event.cqe.rcqe_cmpl); dmabuf 18061 drivers/scsi/lpfc/lpfc_sli.c &dmabuf->cq_event.cqe.rcqe_cmpl)); dmabuf 18063 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_handle_mds_loopback(vport, dmabuf); dmabuf 18073 drivers/scsi/lpfc/lpfc_sli.c lpfc_in_buf_free(phba, &dmabuf->dbuf); dmabuf 18087 drivers/scsi/lpfc/lpfc_sli.c lpfc_in_buf_free(phba, &dmabuf->dbuf); dmabuf 18094 drivers/scsi/lpfc/lpfc_sli.c lpfc_sli4_handle_unsol_abort(vport, dmabuf); dmabuf 18099 drivers/scsi/lpfc/lpfc_sli.c seq_dmabuf = lpfc_fc_frame_add(vport, dmabuf); dmabuf 18102 drivers/scsi/lpfc/lpfc_sli.c lpfc_in_buf_free(phba, &dmabuf->dbuf); dmabuf 18226 drivers/scsi/lpfc/lpfc_sli.c hdr_tmpl->rpi_paddr_lo = putPaddrLow(rpi_page->dmabuf->phys); dmabuf 18227 drivers/scsi/lpfc/lpfc_sli.c hdr_tmpl->rpi_paddr_hi = putPaddrHigh(rpi_page->dmabuf->phys); dmabuf 19377 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 19396 drivers/scsi/lpfc/lpfc_sli.c list_for_each_entry(dmabuf, dmabuf_list, list) { dmabuf 19399 drivers/scsi/lpfc/lpfc_sli.c wr_object->u.request.bde[i].addrLow = putPaddrLow(dmabuf->phys); dmabuf 19401 drivers/scsi/lpfc/lpfc_sli.c putPaddrHigh(dmabuf->phys); dmabuf 19712 drivers/scsi/lpfc/lpfc_sli.c struct lpfc_dmabuf *dmabuf; dmabuf 19737 drivers/scsi/lpfc/lpfc_sli.c dmabuf = (struct lpfc_dmabuf *)pwqeq->context3; dmabuf 19741 drivers/scsi/lpfc/lpfc_sli.c bpl = (struct ulp_bde64 *)dmabuf->virt; dmabuf 403 drivers/scsi/lpfc/lpfc_sli4.h struct lpfc_dmabuf *dmabuf; dmabuf 968 drivers/scsi/lpfc/lpfc_sli4.h struct lpfc_dmabuf *dmabuf; dmabuf 178 drivers/staging/android/ion/ion.c static int ion_dma_buf_attach(struct dma_buf *dmabuf, dmabuf 183 drivers/staging/android/ion/ion.c struct ion_buffer *buffer = dmabuf->priv; dmabuf 208 drivers/staging/android/ion/ion.c static void ion_dma_buf_detatch(struct dma_buf *dmabuf, dmabuf 212 drivers/staging/android/ion/ion.c struct ion_buffer *buffer = dmabuf->priv; dmabuf 244 drivers/staging/android/ion/ion.c static int ion_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) dmabuf 246 drivers/staging/android/ion/ion.c struct ion_buffer *buffer = dmabuf->priv; dmabuf 270 drivers/staging/android/ion/ion.c static void ion_dma_buf_release(struct dma_buf *dmabuf) dmabuf 272 drivers/staging/android/ion/ion.c struct ion_buffer *buffer = dmabuf->priv; dmabuf 277 drivers/staging/android/ion/ion.c static void *ion_dma_buf_kmap(struct dma_buf *dmabuf, unsigned long offset) dmabuf 279 drivers/staging/android/ion/ion.c struct ion_buffer *buffer = dmabuf->priv; dmabuf 284 drivers/staging/android/ion/ion.c static void ion_dma_buf_kunmap(struct dma_buf *dmabuf, unsigned long offset, dmabuf 289 drivers/staging/android/ion/ion.c static int ion_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, dmabuf 292 drivers/staging/android/ion/ion.c struct ion_buffer *buffer = dmabuf->priv; dmabuf 321 drivers/staging/android/ion/ion.c static int ion_dma_buf_end_cpu_access(struct dma_buf *dmabuf, dmabuf 324 drivers/staging/android/ion/ion.c struct ion_buffer *buffer = dmabuf->priv; dmabuf 363 drivers/staging/android/ion/ion.c struct dma_buf *dmabuf; dmabuf 400 drivers/staging/android/ion/ion.c dmabuf = dma_buf_export(&exp_info); dmabuf 401 drivers/staging/android/ion/ion.c if (IS_ERR(dmabuf)) { dmabuf 403 drivers/staging/android/ion/ion.c return PTR_ERR(dmabuf); dmabuf 406 drivers/staging/android/ion/ion.c fd = dma_buf_fd(dmabuf, O_CLOEXEC); dmabuf 408 drivers/staging/android/ion/ion.c dma_buf_put(dmabuf); dmabuf 150 drivers/staging/comedi/drivers/addi_apci_3120.c struct apci3120_dmabuf dmabuf[2]; dmabuf 172 drivers/staging/comedi/drivers/addi_apci_3120.c struct apci3120_dmabuf *dmabuf) dmabuf 189 drivers/staging/comedi/drivers/addi_apci_3120.c apci3120_addon_write(dev, dmabuf->hw, AMCC_OP_REG_AMWAR); dmabuf 192 drivers/staging/comedi/drivers/addi_apci_3120.c apci3120_addon_write(dev, dmabuf->use_size, AMCC_OP_REG_AMWTC); dmabuf 208 drivers/staging/comedi/drivers/addi_apci_3120.c struct apci3120_dmabuf *dmabuf0 = &devpriv->dmabuf[0]; dmabuf 209 drivers/staging/comedi/drivers/addi_apci_3120.c struct apci3120_dmabuf *dmabuf1 = &devpriv->dmabuf[1]; dmabuf 430 drivers/staging/comedi/drivers/addi_apci_3120.c struct apci3120_dmabuf *dmabuf; dmabuf 434 drivers/staging/comedi/drivers/addi_apci_3120.c dmabuf = &devpriv->dmabuf[devpriv->cur_dmabuf]; dmabuf 436 drivers/staging/comedi/drivers/addi_apci_3120.c nbytes = dmabuf->use_size - inl(devpriv->amcc + AMCC_OP_REG_MWTC); dmabuf 438 drivers/staging/comedi/drivers/addi_apci_3120.c if (nbytes < dmabuf->use_size) dmabuf 448 drivers/staging/comedi/drivers/addi_apci_3120.c comedi_buf_write_samples(s, dmabuf->virt, nsamples); dmabuf 461 drivers/staging/comedi/drivers/addi_apci_3120.c dmabuf = &devpriv->dmabuf[devpriv->cur_dmabuf]; dmabuf 462 drivers/staging/comedi/drivers/addi_apci_3120.c apci3120_init_dma(dev, dmabuf); dmabuf 465 drivers/staging/comedi/drivers/addi_apci_3120.c apci3120_init_dma(dev, dmabuf); dmabuf 909 drivers/staging/comedi/drivers/addi_apci_3120.c struct apci3120_dmabuf *dmabuf; dmabuf 914 drivers/staging/comedi/drivers/addi_apci_3120.c dmabuf = &devpriv->dmabuf[i]; dmabuf 916 drivers/staging/comedi/drivers/addi_apci_3120.c dmabuf->virt = dma_alloc_coherent(dev->hw_dev, dmabuf 918 drivers/staging/comedi/drivers/addi_apci_3120.c &dmabuf->hw, dmabuf 920 drivers/staging/comedi/drivers/addi_apci_3120.c if (dmabuf->virt) dmabuf 923 drivers/staging/comedi/drivers/addi_apci_3120.c if (!dmabuf->virt) dmabuf 925 drivers/staging/comedi/drivers/addi_apci_3120.c dmabuf->size = PAGE_SIZE << order; dmabuf 937 drivers/staging/comedi/drivers/addi_apci_3120.c struct apci3120_dmabuf *dmabuf; dmabuf 944 drivers/staging/comedi/drivers/addi_apci_3120.c dmabuf = &devpriv->dmabuf[i]; dmabuf 945 drivers/staging/comedi/drivers/addi_apci_3120.c if (dmabuf->virt) { dmabuf 946 drivers/staging/comedi/drivers/addi_apci_3120.c dma_free_coherent(dev->hw_dev, dmabuf->size, dmabuf 947 drivers/staging/comedi/drivers/addi_apci_3120.c dmabuf->virt, dmabuf->hw); dmabuf 228 drivers/staging/comedi/drivers/adl_pci9118.c struct pci9118_dmabuf dmabuf[2]; dmabuf 247 drivers/staging/comedi/drivers/adl_pci9118.c struct pci9118_dmabuf *dmabuf = &devpriv->dmabuf[buf]; dmabuf 250 drivers/staging/comedi/drivers/adl_pci9118.c outl(dmabuf->hw, devpriv->iobase_a + AMCC_OP_REG_MWAR); dmabuf 251 drivers/staging/comedi/drivers/adl_pci9118.c outl(dmabuf->use_size, devpriv->iobase_a + AMCC_OP_REG_MWTC); dmabuf 394 drivers/staging/comedi/drivers/adl_pci9118.c struct pci9118_dmabuf *dmabuf = &devpriv->dmabuf[next_buf]; dmabuf 399 drivers/staging/comedi/drivers/adl_pci9118.c comedi_8254_load(dev->pacer, 0, dmabuf->hw >> 1, dmabuf 641 drivers/staging/comedi/drivers/adl_pci9118.c struct pci9118_dmabuf *dmabuf = &devpriv->dmabuf[devpriv->dma_actbuf]; dmabuf 642 drivers/staging/comedi/drivers/adl_pci9118.c unsigned int n_all = comedi_bytes_to_samples(s, dmabuf->use_size); dmabuf 659 drivers/staging/comedi/drivers/adl_pci9118.c pci9118_ai_dma_xfer(dev, s, dmabuf->virt, n_all); dmabuf 804 drivers/staging/comedi/drivers/adl_pci9118.c struct pci9118_dmabuf *dmabuf0 = &devpriv->dmabuf[0]; dmabuf 805 drivers/staging/comedi/drivers/adl_pci9118.c struct pci9118_dmabuf *dmabuf1 = &devpriv->dmabuf[1]; dmabuf 1054 drivers/staging/comedi/drivers/adl_pci9118.c struct pci9118_dmabuf *dmabuf = &devpriv->dmabuf[0]; dmabuf 1058 drivers/staging/comedi/drivers/adl_pci9118.c comedi_8254_load(pacer, 0, dmabuf->hw >> 1, dmabuf 1463 drivers/staging/comedi/drivers/adl_pci9118.c struct pci9118_dmabuf *dmabuf; dmabuf 1468 drivers/staging/comedi/drivers/adl_pci9118.c dmabuf = &devpriv->dmabuf[i]; dmabuf 1470 drivers/staging/comedi/drivers/adl_pci9118.c dmabuf->virt = dmabuf 1472 drivers/staging/comedi/drivers/adl_pci9118.c &dmabuf->hw, GFP_KERNEL); dmabuf 1473 drivers/staging/comedi/drivers/adl_pci9118.c if (dmabuf->virt) dmabuf 1476 drivers/staging/comedi/drivers/adl_pci9118.c if (!dmabuf->virt) dmabuf 1478 drivers/staging/comedi/drivers/adl_pci9118.c dmabuf->size = PAGE_SIZE << order; dmabuf 1490 drivers/staging/comedi/drivers/adl_pci9118.c struct pci9118_dmabuf *dmabuf; dmabuf 1497 drivers/staging/comedi/drivers/adl_pci9118.c dmabuf = &devpriv->dmabuf[i]; dmabuf 1498 drivers/staging/comedi/drivers/adl_pci9118.c if (dmabuf->virt) { dmabuf 1499 drivers/staging/comedi/drivers/adl_pci9118.c dma_free_coherent(dev->hw_dev, dmabuf->size, dmabuf 1500 drivers/staging/comedi/drivers/adl_pci9118.c dmabuf->virt, dmabuf->hw); dmabuf 48 drivers/staging/isdn/avm/avmcard.h u8 *dmabuf; dmabuf 726 drivers/staging/isdn/avm/b1.c p->recvbuf.dmabuf = buf; dmabuf 735 drivers/staging/isdn/avm/b1.c p->sendbuf.dmabuf = buf; dmabuf 742 drivers/staging/isdn/avm/b1.c p->recvbuf.dmabuf, p->recvbuf.dmaaddr); dmabuf 752 drivers/staging/isdn/avm/b1.c p->recvbuf.dmabuf, p->recvbuf.dmaaddr); dmabuf 754 drivers/staging/isdn/avm/b1.c p->sendbuf.dmabuf, p->sendbuf.dmaaddr); dmabuf 385 drivers/staging/isdn/avm/b1dma.c p = dma->sendbuf.dmabuf; dmabuf 396 drivers/staging/isdn/avm/b1dma.c txlen = (u8 *)p - (u8 *)dma->sendbuf.dmabuf; dmabuf 410 drivers/staging/isdn/avm/b1dma.c skb_copy_from_linear_data_offset(skb, 2, dma->sendbuf.dmabuf, dmabuf 453 drivers/staging/isdn/avm/b1dma.c void *p = dma->recvbuf.dmabuf + 4; dmabuf 608 drivers/staging/isdn/avm/b1dma.c dma->recvlen = *((u32 *)dma->recvbuf.dmabuf); dmabuf 438 drivers/staging/isdn/avm/c4.c p = dma->sendbuf.dmabuf; dmabuf 449 drivers/staging/isdn/avm/c4.c txlen = (u8 *)p - (u8 *)dma->sendbuf.dmabuf; dmabuf 463 drivers/staging/isdn/avm/c4.c skb_copy_from_linear_data_offset(skb, 2, dma->sendbuf.dmabuf, dmabuf 509 drivers/staging/isdn/avm/c4.c void *p = dma->recvbuf.dmabuf; dmabuf 31 drivers/staging/media/tegra-vde/dmabuf-cache.c struct dma_buf *dmabuf = entry->a->dmabuf; dmabuf 39 drivers/staging/media/tegra-vde/dmabuf-cache.c dma_buf_detach(dmabuf, entry->a); dmabuf 40 drivers/staging/media/tegra-vde/dmabuf-cache.c dma_buf_put(dmabuf); dmabuf 61 drivers/staging/media/tegra-vde/dmabuf-cache.c struct dma_buf *dmabuf, dmabuf 76 drivers/staging/media/tegra-vde/dmabuf-cache.c if (entry->a->dmabuf != dmabuf) dmabuf 85 drivers/staging/media/tegra-vde/dmabuf-cache.c dma_buf_put(dmabuf); dmabuf 95 drivers/staging/media/tegra-vde/dmabuf-cache.c attachment = dma_buf_attach(dmabuf, dev); dmabuf 122 drivers/staging/media/tegra-vde/dmabuf-cache.c err = tegra_vde_iommu_map(vde, sgt, &iova, dmabuf->size); dmabuf 154 drivers/staging/media/tegra-vde/dmabuf-cache.c dma_buf_detach(dmabuf, attachment); dmabuf 501 drivers/staging/media/tegra-vde/vde.c struct dma_buf *dmabuf; dmabuf 504 drivers/staging/media/tegra-vde/vde.c dmabuf = dma_buf_get(fd); dmabuf 505 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(dmabuf)) { dmabuf 507 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(dmabuf); dmabuf 510 drivers/staging/media/tegra-vde/vde.c if (dmabuf->size & (align_size - 1)) { dmabuf 512 drivers/staging/media/tegra-vde/vde.c dmabuf->size, align_size); dmabuf 516 drivers/staging/media/tegra-vde/vde.c if ((u64)offset + min_size > dmabuf->size) { dmabuf 518 drivers/staging/media/tegra-vde/vde.c dmabuf->size, offset, min_size); dmabuf 522 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_dmabuf_cache_map(vde, dmabuf, dma_dir, a, addrp); dmabuf 529 drivers/staging/media/tegra-vde/vde.c *size = dmabuf->size - offset; dmabuf 534 drivers/staging/media/tegra-vde/vde.c dma_buf_put(dmabuf); dmabuf 64 drivers/staging/media/tegra-vde/vde.h struct dma_buf *dmabuf, dmabuf 67 drivers/tee/tee_shm.c static void tee_shm_op_release(struct dma_buf *dmabuf) dmabuf 69 drivers/tee/tee_shm.c struct tee_shm *shm = dmabuf->priv; dmabuf 74 drivers/tee/tee_shm.c static void *tee_shm_op_map(struct dma_buf *dmabuf, unsigned long pgnum) dmabuf 79 drivers/tee/tee_shm.c static int tee_shm_op_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma) dmabuf 81 drivers/tee/tee_shm.c struct tee_shm *shm = dmabuf->priv; dmabuf 170 drivers/tee/tee_shm.c shm->dmabuf = dma_buf_export(&exp_info); dmabuf 171 drivers/tee/tee_shm.c if (IS_ERR(shm->dmabuf)) { dmabuf 172 drivers/tee/tee_shm.c ret = ERR_CAST(shm->dmabuf); dmabuf 302 drivers/tee/tee_shm.c shm->dmabuf = dma_buf_export(&exp_info); dmabuf 303 drivers/tee/tee_shm.c if (IS_ERR(shm->dmabuf)) { dmabuf 304 drivers/tee/tee_shm.c ret = ERR_CAST(shm->dmabuf); dmabuf 349 drivers/tee/tee_shm.c get_dma_buf(shm->dmabuf); dmabuf 350 drivers/tee/tee_shm.c fd = dma_buf_fd(shm->dmabuf, O_CLOEXEC); dmabuf 352 drivers/tee/tee_shm.c dma_buf_put(shm->dmabuf); dmabuf 370 drivers/tee/tee_shm.c dma_buf_put(shm->dmabuf); dmabuf 482 drivers/tee/tee_shm.c get_dma_buf(shm->dmabuf); dmabuf 495 drivers/tee/tee_shm.c dma_buf_put(shm->dmabuf); dmabuf 721 drivers/usb/class/usbtmc.c u8 *dmabuf = NULL; dmabuf 727 drivers/usb/class/usbtmc.c dmabuf = kmalloc(bufsize, GFP_KERNEL); dmabuf 728 drivers/usb/class/usbtmc.c if (!dmabuf) { dmabuf 733 drivers/usb/class/usbtmc.c urb->transfer_buffer = dmabuf; dmabuf 871 drivers/usb/class/usbtmc.c u8 *dmabuf = NULL; dmabuf 879 drivers/usb/class/usbtmc.c dmabuf = urb->transfer_buffer; dmabuf 883 drivers/usb/class/usbtmc.c dmabuf, bufsize, dmabuf 530 drivers/usb/serial/cp210x.c void *dmabuf; dmabuf 533 drivers/usb/serial/cp210x.c dmabuf = kmalloc(bufsize, GFP_KERNEL); dmabuf 534 drivers/usb/serial/cp210x.c if (!dmabuf) { dmabuf 545 drivers/usb/serial/cp210x.c port_priv->bInterfaceNumber, dmabuf, bufsize, dmabuf 548 drivers/usb/serial/cp210x.c memcpy(buf, dmabuf, bufsize); dmabuf 563 drivers/usb/serial/cp210x.c kfree(dmabuf); dmabuf 623 drivers/usb/serial/cp210x.c void *dmabuf; dmabuf 626 drivers/usb/serial/cp210x.c dmabuf = kmalloc(bufsize, GFP_KERNEL); dmabuf 627 drivers/usb/serial/cp210x.c if (!dmabuf) dmabuf 632 drivers/usb/serial/cp210x.c cp210x_interface_num(serial), dmabuf, bufsize, dmabuf 635 drivers/usb/serial/cp210x.c memcpy(buf, dmabuf, bufsize); dmabuf 645 drivers/usb/serial/cp210x.c kfree(dmabuf); dmabuf 681 drivers/usb/serial/cp210x.c void *dmabuf; dmabuf 684 drivers/usb/serial/cp210x.c dmabuf = kmemdup(buf, bufsize, GFP_KERNEL); dmabuf 685 drivers/usb/serial/cp210x.c if (!dmabuf) dmabuf 690 drivers/usb/serial/cp210x.c port_priv->bInterfaceNumber, dmabuf, bufsize, dmabuf 693 drivers/usb/serial/cp210x.c kfree(dmabuf); dmabuf 727 drivers/usb/serial/cp210x.c void *dmabuf; dmabuf 730 drivers/usb/serial/cp210x.c dmabuf = kmemdup(buf, bufsize, GFP_KERNEL); dmabuf 731 drivers/usb/serial/cp210x.c if (!dmabuf) dmabuf 736 drivers/usb/serial/cp210x.c cp210x_interface_num(serial), dmabuf, bufsize, dmabuf 739 drivers/usb/serial/cp210x.c kfree(dmabuf); dmabuf 35 drivers/xen/gntdev-dmabuf.c struct dma_buf *dmabuf; dmabuf 268 drivers/xen/gntdev-dmabuf.c struct gntdev_dmabuf *gntdev_dmabuf = attach->dmabuf->priv; dmabuf 414 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf->dmabuf = dma_buf_export(&exp_info); dmabuf 415 drivers/xen/gntdev-dmabuf.c if (IS_ERR(gntdev_dmabuf->dmabuf)) { dmabuf 416 drivers/xen/gntdev-dmabuf.c ret = PTR_ERR(gntdev_dmabuf->dmabuf); dmabuf 417 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf->dmabuf = NULL; dmabuf 421 drivers/xen/gntdev-dmabuf.c ret = dma_buf_fd(gntdev_dmabuf->dmabuf, O_CLOEXEC); dmabuf 437 drivers/xen/gntdev-dmabuf.c if (gntdev_dmabuf->dmabuf) dmabuf 438 drivers/xen/gntdev-dmabuf.c dma_buf_put(gntdev_dmabuf->dmabuf); dmabuf 645 drivers/xen/gntdev-dmabuf.c if (attach->dmabuf->size != gntdev_dmabuf->nr_pages << PAGE_SHIFT) { dmabuf 648 drivers/xen/gntdev-dmabuf.c attach->dmabuf->size, gntdev_dmabuf->nr_pages); dmabuf 740 drivers/xen/gntdev-dmabuf.c dma_buf = attach->dmabuf; dmabuf 741 drivers/xen/gntdev-dmabuf.c dma_buf_detach(attach->dmabuf, attach); dmabuf 341 include/linux/dma-buf.h struct dma_buf *dmabuf; dmabuf 392 include/linux/dma-buf.h static inline void get_dma_buf(struct dma_buf *dmabuf) dmabuf 394 include/linux/dma-buf.h get_file(dmabuf->file); dmabuf 397 include/linux/dma-buf.h struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf, dmabuf 399 include/linux/dma-buf.h void dma_buf_detach(struct dma_buf *dmabuf, dmabuf 404 include/linux/dma-buf.h int dma_buf_fd(struct dma_buf *dmabuf, int flags); dmabuf 406 include/linux/dma-buf.h void dma_buf_put(struct dma_buf *dmabuf); dmabuf 197 include/linux/tee_drv.h struct dma_buf *dmabuf; dmabuf 232 include/uapi/linux/fd.h char *dmabuf; dmabuf 789 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf = vma->vm_private_data; dmabuf 791 samples/vfio-mdev/mbochs.c if (WARN_ON(vmf->pgoff >= dmabuf->pagecount)) dmabuf 794 samples/vfio-mdev/mbochs.c vmf->page = dmabuf->pages[vmf->pgoff]; dmabuf 805 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf = buf->priv; dmabuf 806 samples/vfio-mdev/mbochs.c struct device *dev = mdev_dev(dmabuf->mdev_state->mdev); dmabuf 808 samples/vfio-mdev/mbochs.c dev_dbg(dev, "%s: %d\n", __func__, dmabuf->id); dmabuf 814 samples/vfio-mdev/mbochs.c vma->vm_private_data = dmabuf; dmabuf 818 samples/vfio-mdev/mbochs.c static void mbochs_print_dmabuf(struct mbochs_dmabuf *dmabuf, dmabuf 821 samples/vfio-mdev/mbochs.c struct device *dev = mdev_dev(dmabuf->mdev_state->mdev); dmabuf 822 samples/vfio-mdev/mbochs.c u32 fourcc = dmabuf->mode.drm_format; dmabuf 825 samples/vfio-mdev/mbochs.c prefix, dmabuf->id, dmabuf 830 samples/vfio-mdev/mbochs.c dmabuf->mode.width, dmabuf->mode.height, dmabuf->mode.stride, dmabuf 831 samples/vfio-mdev/mbochs.c dmabuf->mode.offset, dmabuf->mode.size, dmabuf->pagecount); dmabuf 837 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf = at->dmabuf->priv; dmabuf 838 samples/vfio-mdev/mbochs.c struct device *dev = mdev_dev(dmabuf->mdev_state->mdev); dmabuf 841 samples/vfio-mdev/mbochs.c dev_dbg(dev, "%s: %d\n", __func__, dmabuf->id); dmabuf 846 samples/vfio-mdev/mbochs.c if (sg_alloc_table_from_pages(sg, dmabuf->pages, dmabuf->pagecount, dmabuf 847 samples/vfio-mdev/mbochs.c 0, dmabuf->mode.size, GFP_KERNEL) < 0) dmabuf 866 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf = at->dmabuf->priv; dmabuf 867 samples/vfio-mdev/mbochs.c struct device *dev = mdev_dev(dmabuf->mdev_state->mdev); dmabuf 869 samples/vfio-mdev/mbochs.c dev_dbg(dev, "%s: %d\n", __func__, dmabuf->id); dmabuf 877 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf = buf->priv; dmabuf 878 samples/vfio-mdev/mbochs.c struct mdev_state *mdev_state = dmabuf->mdev_state; dmabuf 882 samples/vfio-mdev/mbochs.c dev_dbg(dev, "%s: %d\n", __func__, dmabuf->id); dmabuf 884 samples/vfio-mdev/mbochs.c for (pg = 0; pg < dmabuf->pagecount; pg++) dmabuf 885 samples/vfio-mdev/mbochs.c put_page(dmabuf->pages[pg]); dmabuf 888 samples/vfio-mdev/mbochs.c dmabuf->buf = NULL; dmabuf 889 samples/vfio-mdev/mbochs.c if (dmabuf->unlinked) dmabuf 890 samples/vfio-mdev/mbochs.c kfree(dmabuf); dmabuf 896 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf = buf->priv; dmabuf 897 samples/vfio-mdev/mbochs.c struct page *page = dmabuf->pages[page_num]; dmabuf 920 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf; dmabuf 925 samples/vfio-mdev/mbochs.c dmabuf = kzalloc(sizeof(struct mbochs_dmabuf), GFP_KERNEL); dmabuf 926 samples/vfio-mdev/mbochs.c if (!dmabuf) dmabuf 929 samples/vfio-mdev/mbochs.c dmabuf->mode = *mode; dmabuf 930 samples/vfio-mdev/mbochs.c dmabuf->id = mdev_state->next_id++; dmabuf 931 samples/vfio-mdev/mbochs.c dmabuf->pagecount = DIV_ROUND_UP(mode->size, PAGE_SIZE); dmabuf 932 samples/vfio-mdev/mbochs.c dmabuf->pages = kcalloc(dmabuf->pagecount, sizeof(struct page *), dmabuf 934 samples/vfio-mdev/mbochs.c if (!dmabuf->pages) dmabuf 937 samples/vfio-mdev/mbochs.c page_offset = dmabuf->mode.offset >> PAGE_SHIFT; dmabuf 938 samples/vfio-mdev/mbochs.c for (pg = 0; pg < dmabuf->pagecount; pg++) { dmabuf 939 samples/vfio-mdev/mbochs.c dmabuf->pages[pg] = __mbochs_get_page(mdev_state, dmabuf 941 samples/vfio-mdev/mbochs.c if (!dmabuf->pages[pg]) dmabuf 945 samples/vfio-mdev/mbochs.c dmabuf->mdev_state = mdev_state; dmabuf 946 samples/vfio-mdev/mbochs.c list_add(&dmabuf->next, &mdev_state->dmabufs); dmabuf 948 samples/vfio-mdev/mbochs.c mbochs_print_dmabuf(dmabuf, __func__); dmabuf 949 samples/vfio-mdev/mbochs.c return dmabuf; dmabuf 953 samples/vfio-mdev/mbochs.c put_page(dmabuf->pages[--pg]); dmabuf 954 samples/vfio-mdev/mbochs.c kfree(dmabuf->pages); dmabuf 956 samples/vfio-mdev/mbochs.c kfree(dmabuf); dmabuf 964 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf; dmabuf 968 samples/vfio-mdev/mbochs.c list_for_each_entry(dmabuf, &mdev_state->dmabufs, next) dmabuf 969 samples/vfio-mdev/mbochs.c if (mbochs_modes_equal(&dmabuf->mode, mode)) dmabuf 970 samples/vfio-mdev/mbochs.c return dmabuf; dmabuf 978 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf; dmabuf 982 samples/vfio-mdev/mbochs.c list_for_each_entry(dmabuf, &mdev_state->dmabufs, next) dmabuf 983 samples/vfio-mdev/mbochs.c if (dmabuf->id == id) dmabuf 984 samples/vfio-mdev/mbochs.c return dmabuf; dmabuf 989 samples/vfio-mdev/mbochs.c static int mbochs_dmabuf_export(struct mbochs_dmabuf *dmabuf) dmabuf 991 samples/vfio-mdev/mbochs.c struct mdev_state *mdev_state = dmabuf->mdev_state; dmabuf 998 samples/vfio-mdev/mbochs.c if (!IS_ALIGNED(dmabuf->mode.offset, PAGE_SIZE)) { dmabuf 1005 samples/vfio-mdev/mbochs.c exp_info.size = dmabuf->mode.size; dmabuf 1006 samples/vfio-mdev/mbochs.c exp_info.priv = dmabuf; dmabuf 1015 samples/vfio-mdev/mbochs.c dmabuf->buf = buf; dmabuf 1016 samples/vfio-mdev/mbochs.c dev_dbg(dev, "%s: %d\n", __func__, dmabuf->id); dmabuf 1097 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf; dmabuf 1132 samples/vfio-mdev/mbochs.c dmabuf = mbochs_dmabuf_find_by_mode(mdev_state, &mode); dmabuf 1133 samples/vfio-mdev/mbochs.c if (!dmabuf) dmabuf 1135 samples/vfio-mdev/mbochs.c if (!dmabuf) { dmabuf 1140 samples/vfio-mdev/mbochs.c plane->drm_format = dmabuf->mode.drm_format; dmabuf 1141 samples/vfio-mdev/mbochs.c plane->width = dmabuf->mode.width; dmabuf 1142 samples/vfio-mdev/mbochs.c plane->height = dmabuf->mode.height; dmabuf 1143 samples/vfio-mdev/mbochs.c plane->stride = dmabuf->mode.stride; dmabuf 1144 samples/vfio-mdev/mbochs.c plane->size = dmabuf->mode.size; dmabuf 1145 samples/vfio-mdev/mbochs.c plane->dmabuf_id = dmabuf->id; dmabuf 1162 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf; dmabuf 1166 samples/vfio-mdev/mbochs.c dmabuf = mbochs_dmabuf_find_by_id(mdev_state, id); dmabuf 1167 samples/vfio-mdev/mbochs.c if (!dmabuf) { dmabuf 1172 samples/vfio-mdev/mbochs.c if (!dmabuf->buf) dmabuf 1173 samples/vfio-mdev/mbochs.c mbochs_dmabuf_export(dmabuf); dmabuf 1177 samples/vfio-mdev/mbochs.c if (!dmabuf->buf) dmabuf 1180 samples/vfio-mdev/mbochs.c return dma_buf_fd(dmabuf->buf, 0); dmabuf 1312 samples/vfio-mdev/mbochs.c struct mbochs_dmabuf *dmabuf, *tmp; dmabuf 1316 samples/vfio-mdev/mbochs.c list_for_each_entry_safe(dmabuf, tmp, &mdev_state->dmabufs, next) { dmabuf 1317 samples/vfio-mdev/mbochs.c list_del(&dmabuf->next); dmabuf 1318 samples/vfio-mdev/mbochs.c if (dmabuf->buf) { dmabuf 1320 samples/vfio-mdev/mbochs.c dmabuf->unlinked = true; dmabuf 1322 samples/vfio-mdev/mbochs.c kfree(dmabuf); dmabuf 210 sound/ppc/beep.c void *dmabuf; dmabuf 216 sound/ppc/beep.c dmabuf = dma_alloc_coherent(&chip->pdev->dev, BEEP_BUFLEN * 4, dmabuf 219 sound/ppc/beep.c if (! dmabuf || ! input_dev) dmabuf 237 sound/ppc/beep.c beep->buf = dmabuf; dmabuf 256 sound/ppc/beep.c if (dmabuf) dmabuf 258 sound/ppc/beep.c dmabuf, beep->addr);