Searched refs:user_size (Results 1 – 12 of 12) sorted by relevance
/drivers/gpu/drm/etnaviv/ |
D | etnaviv_buffer.c | 29 BUG_ON(buffer->user_size >= buffer->size); in OUT() 31 vaddr[buffer->user_size / 4] = data; in OUT() 32 buffer->user_size += 4; in OUT() 40 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE() 51 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_END() 59 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_WAIT() 67 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LINK() 77 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_STALL() 155 if (buffer->user_size + cmd_dwords * sizeof(u64) > buffer->size) in etnaviv_buffer_reserve() 156 buffer->user_size = 0; in etnaviv_buffer_reserve() [all …]
|
D | etnaviv_drv.c | 178 size - buf->user_size); in etnaviv_buffer_dump() 381 if (offset_in_page(args->user_ptr | args->user_size) || in etnaviv_ioctl_gem_userptr() 383 (u32)args->user_size != args->user_size || in etnaviv_ioctl_gem_userptr() 388 args->user_size)) in etnaviv_ioctl_gem_userptr() 392 args->user_size, args->flags, in etnaviv_ioctl_gem_userptr()
|
D | etnaviv_cmdbuf.h | 24 u32 user_size; member
|
D | etnaviv_gpu.c | 1401 submit->cmdbuf.user_size = submit->cmdbuf.size - 8; in etnaviv_gpu_submit()
|
/drivers/gpu/drm/i915/gem/ |
D | i915_gem_userptr.c | 514 if (i915_gem_object_size_2big(args->user_size)) in i915_gem_userptr_ioctl() 517 if (!args->user_size) in i915_gem_userptr_ioctl() 520 if (offset_in_page(args->user_ptr | args->user_size)) in i915_gem_userptr_ioctl() 523 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl() 543 ret = probe_range(current->mm, args->user_ptr, args->user_size); in i915_gem_userptr_ioctl() 553 drm_gem_private_object_init(dev, &obj->base, args->user_size); in i915_gem_userptr_ioctl()
|
/drivers/misc/genwqe/ |
D | card_utils.c | 292 void __user *user_addr, size_t user_size, int write) in genwqe_alloc_sync_sgl() argument 298 sgl->fpage_size = min_t(size_t, PAGE_SIZE-sgl->fpage_offs, user_size); in genwqe_alloc_sync_sgl() 299 sgl->nr_pages = DIV_ROUND_UP(sgl->fpage_offs + user_size, PAGE_SIZE); in genwqe_alloc_sync_sgl() 300 sgl->lpage_size = (user_size - sgl->fpage_size) % PAGE_SIZE; in genwqe_alloc_sync_sgl() 303 __func__, user_addr, user_size, sgl->nr_pages, in genwqe_alloc_sync_sgl() 307 sgl->user_size = user_size; in genwqe_alloc_sync_sgl() 346 if (copy_from_user(sgl->lpage, user_addr + user_size - in genwqe_alloc_sync_sgl() 381 size_t size = sgl->user_size; in genwqe_setup_sgl() 498 offset = sgl->user_size - sgl->lpage_size; in genwqe_free_sync_sgl()
|
D | card_base.h | 352 size_t user_size; /* size of memory area */ member 369 void __user *user_addr, size_t user_size, int write);
|
/drivers/iommu/iommufd/ |
D | main.c | 383 ret = get_user(ucmd.user_size, (u32 __user *)ucmd.ubuffer); in iommufd_fops_ioctl() 390 if (ucmd.user_size < op->min_size) in iommufd_fops_ioctl() 395 ucmd.user_size); in iommufd_fops_ioctl()
|
D | iommufd_private.h | 95 u32 user_size; member 107 min_t(size_t, ucmd->user_size, cmd_len))) in iommufd_ucmd_respond()
|
/drivers/video/fbdev/ |
D | amba-clcd.c | 787 unsigned long off, user_size, kernel_size; in clcdfb_of_vram_mmap() local 791 user_size = vma->vm_end - vma->vm_start; in clcdfb_of_vram_mmap() 794 if (off >= kernel_size || user_size > (kernel_size - off)) in clcdfb_of_vram_mmap() 799 user_size, in clcdfb_of_vram_mmap()
|
/drivers/crypto/ccp/ |
D | sev-dev.c | 945 u64 data_size, user_size; in sev_ioctl_do_get_id() local 959 user_size = sizeof(struct sev_user_data_get_id); in sev_ioctl_do_get_id() 961 mem = kzalloc(data_size + user_size, GFP_KERNEL); in sev_ioctl_do_get_id() 969 data->len = user_size; in sev_ioctl_do_get_id()
|
/drivers/mtd/chips/ |
D | cfi_cmdset_0002.c | 1493 size_t user_size, factory_size, otpsize; in cfi_amdstd_otp_walk() local 1502 user_size = 0; in cfi_amdstd_otp_walk() 1529 user_size = 0x100; in cfi_amdstd_otp_walk() 1560 otpsize = user_regs ? user_size : factory_size; in cfi_amdstd_otp_walk()
|