Lines Matching refs:ptr
2483 static void io_mem_free(void *ptr) in io_mem_free() argument
2487 if (!ptr) in io_mem_free()
2490 page = virt_to_head_page(ptr); in io_mem_free()
3081 void *ptr; in io_uring_validate_mmap_request() local
3086 ptr = ctx->rings; in io_uring_validate_mmap_request()
3089 ptr = ctx->sq_sqes; in io_uring_validate_mmap_request()
3095 page = virt_to_head_page(ptr); in io_uring_validate_mmap_request()
3099 return ptr; in io_uring_validate_mmap_request()
3108 void *ptr; in io_uring_mmap() local
3110 ptr = io_uring_validate_mmap_request(file, vma->vm_pgoff, sz); in io_uring_mmap()
3111 if (IS_ERR(ptr)) in io_uring_mmap()
3112 return PTR_ERR(ptr); in io_uring_mmap()
3114 pfn = virt_to_phys(ptr) >> PAGE_SHIFT; in io_uring_mmap()
3122 void *ptr; in io_uring_mmu_get_unmapped_area() local
3132 ptr = io_uring_validate_mmap_request(filp, pgoff, len); in io_uring_mmu_get_unmapped_area()
3133 if (IS_ERR(ptr)) in io_uring_mmu_get_unmapped_area()
3153 addr = (uintptr_t) ptr; in io_uring_mmu_get_unmapped_area()
3177 void *ptr; in io_uring_nommu_get_unmapped_area() local
3179 ptr = io_uring_validate_mmap_request(file, pgoff, len); in io_uring_nommu_get_unmapped_area()
3180 if (IS_ERR(ptr)) in io_uring_nommu_get_unmapped_area()
3181 return PTR_ERR(ptr); in io_uring_nommu_get_unmapped_area()
3183 return (unsigned long) ptr; in io_uring_nommu_get_unmapped_area()