Lines Matching refs:virt
85 * with virt == phys kernel mapping, for code that wants to check if an address
101 * @virt: virtual address of the memory object
104 * Returns: true if the object specified by @virt and @size is entirely
108 static inline bool memory_contains(void *begin, void *end, void *virt,
111 return virt >= begin && virt + size <= end;
119 * @virt: virtual address of the memory object
122 * Returns: true if an object's memory region, specified by @virt and @size,
125 static inline bool memory_intersects(void *begin, void *end, void *virt,
128 void *vend = virt + size;
130 if (virt < end && vend > begin)
139 * @virt: virtual address of the memory object
142 * Returns: true if the object specified by @virt and @size is entirely
145 static inline bool init_section_contains(void *virt, size_t size)
147 return memory_contains(__init_begin, __init_end, virt, size);
153 * @virt: virtual address of the memory object
156 * Returns: true if an object's memory region, specified by @virt and @size,
159 static inline bool init_section_intersects(void *virt, size_t size)
161 return memory_intersects(__init_begin, __init_end, virt, size);