| /drivers/video/fbdev/mmp/ |
| A D | core.c | 164 mutex_init(&path->access_ok); in mmp_register_path() 198 mutex_init(&path->overlays[i].access_ok); in mmp_register_path() 229 mutex_destroy(&path->overlays[i].access_ok); in mmp_unregister_path() 231 mutex_destroy(&path->access_ok); in mmp_unregister_path()
|
| /drivers/video/fbdev/mmp/hw/ |
| A D | mmp_ctrl.c | 136 mutex_lock(&overlay->access_ok); in overlay_set_win() 162 mutex_unlock(&overlay->access_ok); in overlay_set_win() 173 mutex_lock(&overlay->access_ok); in dmafetch_onoff() 178 mutex_unlock(&overlay->access_ok); in dmafetch_onoff() 184 mutex_lock(&path->access_ok); in path_enabledisable() 191 mutex_unlock(&path->access_ok); in path_enabledisable() 262 mutex_lock(&path->access_ok); in path_set_mode() 313 mutex_unlock(&path->access_ok); in path_set_mode() 485 mutex_init(&ctrl->access_ok); in mmphw_probe()
|
| /drivers/video/fbdev/mmp/fb/ |
| A D | mmpfb.h | 34 struct mutex access_ok; member
|
| A D | mmpfb.c | 562 mutex_init(&fbi->access_ok); in mmpfb_probe() 639 mutex_destroy(&fbi->access_ok); in mmpfb_probe()
|
| /drivers/accel/habanalabs/common/ |
| A D | memory_mgr.c | 263 if (!access_ok(VERIFY_WRITE, (void __user *)(uintptr_t)vma->vm_start, 266 if (!access_ok((void __user *)(uintptr_t)vma->vm_start,
|
| /drivers/pnp/isapnp/ |
| A D | proc.c | 37 if (!access_ok(buf, cnt)) in isapnp_proc_bus_read()
|
| /drivers/pci/ |
| A D | proc.c | 56 if (!access_ok(buf, cnt)) in proc_bus_pci_read() 132 if (!access_ok(buf, cnt)) in proc_bus_pci_write()
|
| /drivers/macintosh/ |
| A D | ans-lcd.c | 67 if (!access_ok(buf, count)) in anslcd_write()
|
| /drivers/perf/ |
| A D | arm_brbe.c | 716 bool from_user = access_ok((void __user *)(unsigned long)entry->from, 4); in filter_branch_privilege() 717 bool to_user = access_ok((void __user *)(unsigned long)entry->to, 4); in filter_branch_privilege()
|
| /drivers/char/ |
| A D | mem.c | 375 if (!access_ok(buf, count)) in read_port() 393 if (!access_ok(buf, count)) in write_port()
|
| A D | nwflash.c | 171 if (!access_ok(buf, count)) in flash_write()
|
| /drivers/acpi/ |
| A D | acpi_dbg.c | 607 if (!access_ok(buf, count)) in acpi_aml_read() 677 if (!access_ok(buf, count)) in acpi_aml_write()
|
| /drivers/vhost/ |
| A D | vhost.c | 1240 return access_ok(log_base + a, in log_access_ok() 1272 if (!access_ok((void __user *)a, map->size)) in vq_memory_access_ok() 1617 !access_ok((void __user *)a, size)) in umem_access_ok() 1620 !access_ok((void __user *)a, size)) in umem_access_ok() 1859 return access_ok(desc, vhost_get_desc_size(vq, num)) && in vq_access_ok() 1860 access_ok(avail, vhost_get_avail_size(vq, num)) && in vq_access_ok() 1861 access_ok(used, vhost_get_used_size(vq, num)); in vq_access_ok() 2622 !access_ok(&vq->used->idx, sizeof vq->used->idx)) { in vhost_vq_init_access()
|
| /drivers/xen/ |
| A D | privcmd.c | 473 if (!access_ok(m.arr, m.num * sizeof(*m.arr))) in privcmd_ioctl_mmap_batch() 480 if (!access_ok(m.err, m.num * (sizeof(*m.err)))) in privcmd_ioctl_mmap_batch() 672 if (!access_ok(kbufs[i].uptr, in privcmd_ioctl_dm_op()
|
| /drivers/gpu/drm/amd/amdkfd/ |
| A D | kfd_chardev.c | 203 (!access_ok((const void __user *) args->ring_base_address, in set_queue_properties_from_user() 219 if (!access_ok((const void __user *) args->read_pointer_address, in set_queue_properties_from_user() 225 if (!access_ok((const void __user *) args->write_pointer_address, in set_queue_properties_from_user() 232 !access_ok((const void __user *) args->eop_buffer_address, in set_queue_properties_from_user() 239 !access_ok((const void __user *) args->ctx_save_restore_address, in set_queue_properties_from_user() 457 (!access_ok((const void __user *) args->ring_base_address, in kfd_ioctl_update_queue()
|
| A D | kfd_smi_events.c | 132 if (!access_ok(user, size) || size < sizeof(events)) in kfd_smi_ev_write()
|
| /drivers/gpu/drm/i915/gem/ |
| A D | i915_gem_userptr.c | 492 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl()
|
| A D | i915_gem_execbuffer.c | 1541 if (unlikely(!access_ok(urelocs, remain * sizeof(*urelocs)))) in eb_relocate_vma() 1646 if (!access_ok(addr, size)) in check_relocations() 2820 if (!access_ok(user_fences, nfences * sizeof(*user_fences))) in add_timeline_fence_array() 2824 if (!access_ok(user_values, nfences * sizeof(*user_values))) in add_timeline_fence_array() 2953 if (!access_ok(user, num_fences * sizeof(*user))) in add_fence_array()
|
| A D | i915_gem_shmem.c | 411 GEM_BUG_ON(!access_ok(user_data, arg->size)); in shmem_pwrite()
|
| /drivers/gpu/drm/qxl/ |
| A D | qxl_ioctl.c | 165 if (!access_ok(u64_to_user_ptr(cmd->command), in qxl_process_single_command()
|
| /drivers/gpu/drm/i915/ |
| A D | i915_gem.c | 472 if (!access_ok(u64_to_user_ptr(args->data_ptr), in i915_gem_pread_ioctl() 754 if (!access_ok(u64_to_user_ptr(args->data_ptr), args->size)) in i915_gem_pwrite_ioctl()
|
| /drivers/gpu/drm/armada/ |
| A D | armada_gem.c | 351 if (!access_ok(ptr, args->size)) in armada_gem_pwrite_ioctl()
|
| /drivers/tee/ |
| A D | tee_shm.c | 377 if (!access_ok((void __user *)addr, length)) in tee_shm_register_user_buf()
|
| /drivers/staging/gpib/common/ |
| A D | gpib_os.c | 904 if (!access_ok(userbuf, remain)) in read_ioctl() 980 if (!access_ok(userbuf, remain)) in command_ioctl() 1060 if (!access_ok(userbuf, remain)) in write_ioctl()
|
| /drivers/virt/coco/sev-guest/ |
| A D | sev-guest.c | 203 if (!access_ok(certs_address.user, report_req->certs_len)) in get_ext_report()
|