Home
last modified time | relevance | path

Searched refs:user_size (Results 1 – 10 of 10) sorted by relevance

/drivers/gpu/drm/etnaviv/
Detnaviv_buffer.c28 BUG_ON(buffer->user_size >= buffer->size); in OUT()
30 vaddr[buffer->user_size / 4] = data; in OUT()
31 buffer->user_size += 4; in OUT()
39 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE()
50 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_END()
57 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_WAIT()
65 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LINK()
75 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_STALL()
153 if (buffer->user_size + cmd_dwords * sizeof(u64) > buffer->size) in etnaviv_buffer_reserve()
154 buffer->user_size = 0; in etnaviv_buffer_reserve()
[all …]
Detnaviv_drv.c168 size - buf->user_size); in etnaviv_buffer_dump()
386 if (offset_in_page(args->user_ptr | args->user_size) || in etnaviv_ioctl_gem_userptr()
388 (u32)args->user_size != args->user_size || in etnaviv_ioctl_gem_userptr()
393 args->user_size)) in etnaviv_ioctl_gem_userptr()
397 args->user_size, args->flags, in etnaviv_ioctl_gem_userptr()
Detnaviv_cmdbuf.h24 u32 user_size; member
Detnaviv_gpu.c1320 submit->cmdbuf.user_size = submit->cmdbuf.size - 8; in etnaviv_gpu_submit()
/drivers/misc/genwqe/
Dcard_utils.c289 void __user *user_addr, size_t user_size, int write) in genwqe_alloc_sync_sgl() argument
295 sgl->fpage_size = min_t(size_t, PAGE_SIZE-sgl->fpage_offs, user_size); in genwqe_alloc_sync_sgl()
296 sgl->nr_pages = DIV_ROUND_UP(sgl->fpage_offs + user_size, PAGE_SIZE); in genwqe_alloc_sync_sgl()
297 sgl->lpage_size = (user_size - sgl->fpage_size) % PAGE_SIZE; in genwqe_alloc_sync_sgl()
300 __func__, user_addr, user_size, sgl->nr_pages, in genwqe_alloc_sync_sgl()
304 sgl->user_size = user_size; in genwqe_alloc_sync_sgl()
343 if (copy_from_user(sgl->lpage, user_addr + user_size - in genwqe_alloc_sync_sgl()
378 size_t size = sgl->user_size; in genwqe_setup_sgl()
493 offset = sgl->user_size - sgl->lpage_size; in genwqe_free_sync_sgl()
Dcard_base.h352 size_t user_size; /* size of memory area */ member
369 void __user *user_addr, size_t user_size, int write);
/drivers/gpu/drm/i915/gem/
Di915_gem_userptr.c791 if (!args->user_size) in i915_gem_userptr_ioctl()
794 if (offset_in_page(args->user_ptr | args->user_size)) in i915_gem_userptr_ioctl()
797 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl()
816 drm_gem_private_object_init(dev, &obj->base, args->user_size); in i915_gem_userptr_ioctl()
/drivers/crypto/ccp/
Dpsp-dev.c654 u64 data_size, user_size; in sev_ioctl_do_get_id() local
668 user_size = sizeof(struct sev_user_data_get_id); in sev_ioctl_do_get_id()
670 mem = kzalloc(data_size + user_size, GFP_KERNEL); in sev_ioctl_do_get_id()
678 data->len = user_size; in sev_ioctl_do_get_id()
/drivers/video/fbdev/
Damba-clcd.c789 unsigned long off, user_size, kernel_size; in clcdfb_of_vram_mmap() local
793 user_size = vma->vm_end - vma->vm_start; in clcdfb_of_vram_mmap()
796 if (off >= kernel_size || user_size > (kernel_size - off)) in clcdfb_of_vram_mmap()
801 user_size, in clcdfb_of_vram_mmap()
/drivers/mtd/chips/
Dcfi_cmdset_0002.c1498 size_t user_size, factory_size, otpsize; in cfi_amdstd_otp_walk() local
1507 user_size = 0; in cfi_amdstd_otp_walk()
1534 user_size = 0x100; in cfi_amdstd_otp_walk()
1565 otpsize = user_regs ? user_size : factory_size; in cfi_amdstd_otp_walk()