• Home
  • Raw
  • Download

Lines Matching refs:index

64 	unsigned long index;  in ptr_to_shadow()  local
70 index = page - s->r.min_page; in ptr_to_shadow()
72 if (index >= SHADOW_SIZE) in ptr_to_shadow()
75 return (int)index; in ptr_to_shadow()
79 int index) in shadow_to_ptr() argument
81 if (unlikely(index < 0 || index >= SHADOW_SIZE)) in shadow_to_ptr()
84 if (unlikely(s->shadow[index] == SHADOW_INVALID)) in shadow_to_ptr()
87 return (s->r.min_page + s->shadow[index]) << PAGE_SHIFT; in shadow_to_ptr()
91 int index) in shadow_to_page() argument
93 if (unlikely(index < 0 || index >= SHADOW_SIZE)) in shadow_to_page()
96 return (s->r.min_page + index) << PAGE_SHIFT; in shadow_to_page()
102 int i, index, check; in prepare_next_shadow() local
121 index = ptr_to_shadow(next, shadow_to_page(prev, i)); in prepare_next_shadow()
122 if (index < 0) in prepare_next_shadow()
130 next->shadow[index] = (u16)check; in prepare_next_shadow()
155 int index = ptr_to_shadow(s, ptr); in add_module_to_shadow() local
157 if (index >= 0) { in add_module_to_shadow()
159 WARN_ON(s->shadow[index] != SHADOW_INVALID); in add_module_to_shadow()
160 s->shadow[index] = (u16)check_index; in add_module_to_shadow()
177 int index = ptr_to_shadow(s, ptr); in remove_module_from_shadow() local
179 if (index >= 0) in remove_module_from_shadow()
180 s->shadow[index] = SHADOW_INVALID; in remove_module_from_shadow()
232 int index; in ptr_to_check_fn() local
240 index = ptr_to_shadow(s, ptr); in ptr_to_check_fn()
241 if (index < 0) in ptr_to_check_fn()
244 return (cfi_check_fn)shadow_to_ptr(s, index); in ptr_to_check_fn()