Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/etnaviv/
Detnaviv_buffer.c29 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 …]
Detnaviv_drv.c189 size - buf->user_size); in etnaviv_buffer_dump()
392 if (offset_in_page(args->user_ptr | args->user_size) || in etnaviv_ioctl_gem_userptr()
394 (u32)args->user_size != args->user_size || in etnaviv_ioctl_gem_userptr()
399 args->user_size)) in etnaviv_ioctl_gem_userptr()
403 args->user_size, args->flags, in etnaviv_ioctl_gem_userptr()
Detnaviv_cmdbuf.h24 u32 user_size; member
Detnaviv_gpu.c1423 submit->cmdbuf.user_size = submit->cmdbuf.size - 8; in etnaviv_gpu_submit()
/linux-6.12.1/scripts/
Dfaddr2line182 local user_size=
183 [[ $func_addr =~ "/" ]] && user_size=${func_addr#*/}
285 if [[ -n $user_size ]] && [[ $user_size -ne $sym_size ]]; then
287 echo "skipping $sym_name address at $addr due to size mismatch ($user_size != $sym_size)"
/linux-6.12.1/arch/x86/kernel/fpu/
Dsignal.c41 fx_sw->xstate_size > current->thread.fpu.fpstate->user_size || in check_xstate_in_sigframe()
119 sw_bytes->extended_size = fpstate->user_size + FP_XSTATE_MAGIC2_SIZE; in save_sw_bytes()
121 sw_bytes->xstate_size = fpstate->user_size; in save_sw_bytes()
143 (__u32 __user *)(buf + fpstate->user_size)); in save_xstate_epilog()
253 if (!__clear_user(buf_fx, fpstate->user_size)) in copy_fpstate_to_sigframe()
330 if (!fault_in_readable(buf, fpu->fpstate->user_size)) in restore_fpregs_from_user()
466 unsigned int size = fpstate->user_size; in xstate_sigframe_size()
Dxstate.c684 unsigned int user_size, kernel_size, kernel_default_size; in init_xstate_size() local
688 user_size = get_xsave_size_user(); in init_xstate_size()
701 kernel_size = user_size; in init_xstate_size()
710 fpu_user_cfg.max_size = user_size; in init_xstate_size()
1533 newfps->user_size = usize; in fpstate_realloc()
Dcore.c523 fpstate->user_size = fpu_user_cfg.default_size; in __fpstate_reset()
/linux-6.12.1/drivers/accel/ivpu/
Divpu_ms.c104 void __user *user_ptr, u64 user_size, u64 *user_bytes_copied) in copy_leftover_bytes() argument
109 copy_bytes = min(user_size - *user_bytes_copied, ms->leftover_bytes); in copy_leftover_bytes()
123 void __user *user_ptr, u64 user_size, u64 *user_bytes_copied) in copy_samples_to_user() argument
130 ret = copy_leftover_bytes(ms, user_ptr, user_size, user_bytes_copied); in copy_samples_to_user()
134 if (*user_bytes_copied == user_size) in copy_samples_to_user()
148 return copy_leftover_bytes(ms, user_ptr, user_size, user_bytes_copied); in copy_samples_to_user()
/linux-6.12.1/drivers/gpu/drm/i915/gem/
Di915_gem_userptr.c484 if (i915_gem_object_size_2big(args->user_size)) in i915_gem_userptr_ioctl()
487 if (!args->user_size) in i915_gem_userptr_ioctl()
490 if (offset_in_page(args->user_ptr | args->user_size)) in i915_gem_userptr_ioctl()
493 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl()
513 ret = probe_range(current->mm, args->user_ptr, args->user_size); in i915_gem_userptr_ioctl()
523 drm_gem_private_object_init(dev, &obj->base, args->user_size); in i915_gem_userptr_ioctl()
/linux-6.12.1/drivers/misc/genwqe/
Dcard_utils.c292 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()
Dcard_base.h352 size_t user_size; /* size of memory area */ member
369 void __user *user_addr, size_t user_size, int write);
/linux-6.12.1/drivers/iommu/iommufd/
Dmain.c409 ret = get_user(ucmd.user_size, (u32 __user *)ucmd.ubuffer); in iommufd_fops_ioctl()
416 if (ucmd.user_size < op->min_size) in iommufd_fops_ioctl()
421 ucmd.user_size); in iommufd_fops_ioctl()
Diommufd_private.h108 u32 user_size; member
120 min_t(size_t, ucmd->user_size, cmd_len))) in iommufd_ucmd_respond()
/linux-6.12.1/include/uapi/drm/
Detnaviv_drm.h234 __u64 user_size; /* in, page aligned user size */ member
Di915_drm.h2717 __u64 user_size; member
/linux-6.12.1/net/ethtool/
Dioctl.c1093 u32 user_size; in ethtool_get_rxfh_indir() local
1103 if (copy_from_user(&user_size, in ethtool_get_rxfh_indir()
1105 sizeof(user_size))) in ethtool_get_rxfh_indir()
1116 if (user_size < rxfh.indir_size) in ethtool_get_rxfh_indir()
1117 return user_size == 0 ? 0 : -EINVAL; in ethtool_get_rxfh_indir()
1143 u32 user_size, i; in ethtool_set_rxfh_indir() local
1155 if (copy_from_user(&user_size, in ethtool_set_rxfh_indir()
1157 sizeof(user_size))) in ethtool_set_rxfh_indir()
1160 if (user_size != 0 && user_size != rxfh_dev.indir_size) in ethtool_set_rxfh_indir()
1173 if (user_size == 0) { in ethtool_set_rxfh_indir()
[all …]
/linux-6.12.1/arch/x86/include/asm/fpu/
Dtypes.h363 unsigned int user_size; member
/linux-6.12.1/drivers/crypto/ccp/
Dsev-dev.c1838 u64 data_size, user_size; in sev_ioctl_do_get_id() local
1852 user_size = sizeof(struct sev_user_data_get_id); in sev_ioctl_do_get_id()
1854 mem = kzalloc(data_size + user_size, GFP_KERNEL); in sev_ioctl_do_get_id()
1862 data->len = user_size; in sev_ioctl_do_get_id()
/linux-6.12.1/net/netfilter/
Dnft_compat.c318 unsigned int size, unsigned int user_size) in nft_extension_dump_info() argument
327 info_size = user_size ? : size; in nft_extension_dump_info()
/linux-6.12.1/net/bpf/
Dtest_run.c657 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS()
666 if (user_size > size) in BTF_ID_FLAGS()
674 if (copy_from_user(data + headroom, data_in, user_size)) { in BTF_ID_FLAGS()
/linux-6.12.1/kernel/
Dptrace.c968 ptrace_get_syscall_info(struct task_struct *child, unsigned long user_size, in ptrace_get_syscall_info() argument
1006 write_size = min(actual_size, user_size); in ptrace_get_syscall_info()
/linux-6.12.1/drivers/mtd/chips/
Dcfi_cmdset_0002.c1493 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()
/linux-6.12.1/tools/include/uapi/drm/
Di915_drm.h2717 __u64 user_size; member