Home
last modified time | relevance | path

Searched refs:inflated_addr (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/
Ddrm_file.c898 unsigned long inflated_addr; in drm_addr_inflate() local
913 inflated_addr = current->mm->get_unmapped_area(NULL, 0, inflated_len, in drm_addr_inflate()
915 if (IS_ERR_VALUE(inflated_addr)) in drm_addr_inflate()
917 if (inflated_addr & ~PAGE_MASK) in drm_addr_inflate()
920 inflated_offset = inflated_addr & (huge_size - 1); in drm_addr_inflate()
921 inflated_addr += offset - inflated_offset; in drm_addr_inflate()
923 inflated_addr += huge_size; in drm_addr_inflate()
925 if (inflated_addr > TASK_SIZE - len) in drm_addr_inflate()
928 return inflated_addr; in drm_addr_inflate()
959 unsigned long inflated_addr; in drm_get_unmapped_area() local
[all …]
/Linux-v5.10/mm/
Dshmem.c2130 unsigned long inflated_addr; in shmem_get_unmapped_area() local
2194 inflated_addr = get_area(NULL, uaddr, inflated_len, 0, flags); in shmem_get_unmapped_area()
2195 if (IS_ERR_VALUE(inflated_addr)) in shmem_get_unmapped_area()
2197 if (inflated_addr & ~PAGE_MASK) in shmem_get_unmapped_area()
2200 inflated_offset = inflated_addr & (HPAGE_PMD_SIZE-1); in shmem_get_unmapped_area()
2201 inflated_addr += offset - inflated_offset; in shmem_get_unmapped_area()
2203 inflated_addr += HPAGE_PMD_SIZE; in shmem_get_unmapped_area()
2205 if (inflated_addr > TASK_SIZE - len) in shmem_get_unmapped_area()
2207 return inflated_addr; in shmem_get_unmapped_area()