• Home
  • Raw
  • Download

Lines Matching refs:key

40 	return (long)site->key + (long)&site->key;  in __static_call_key()
61 site->key = (__static_call_key(site) | STATIC_CALL_SITE_INIT) - in static_call_set_init()
62 (long)&site->key; in static_call_set_init()
89 a->key = b->key - delta; in static_call_site_swap()
92 b->key = tmp.key + delta; in static_call_site_swap()
102 static inline bool static_call_key_has_mods(struct static_call_key *key) in static_call_key_has_mods() argument
104 return !(key->type & 1); in static_call_key_has_mods()
107 static inline struct static_call_mod *static_call_key_next(struct static_call_key *key) in static_call_key_next() argument
109 if (!static_call_key_has_mods(key)) in static_call_key_next()
112 return key->mods; in static_call_key_next()
115 static inline struct static_call_site *static_call_key_sites(struct static_call_key *key) in static_call_key_sites() argument
117 if (static_call_key_has_mods(key)) in static_call_key_sites()
120 return (struct static_call_site *)(key->type & ~1); in static_call_key_sites()
123 void __static_call_update(struct static_call_key *key, void *tramp, void *func) in __static_call_update() argument
131 if (key->func == func) in __static_call_update()
134 key->func = func; in __static_call_update()
146 .next = static_call_key_next(key), in __static_call_update()
148 .sites = static_call_key_sites(key), in __static_call_update()
177 site < stop && static_call_key(site) == key; site++) { in __static_call_update()
214 struct static_call_key *key, *prev_key = NULL; in __static_call_init() local
229 key = static_call_key(site); in __static_call_init()
230 if (key != prev_key) { in __static_call_init()
231 prev_key = key; in __static_call_init()
242 key->sites = site; in __static_call_init()
243 key->type |= 1; in __static_call_init()
256 if (static_call_key_sites(key)) { in __static_call_init()
259 site_mod->sites = static_call_key_sites(key); in __static_call_init()
261 key->mods = site_mod; in __static_call_init()
270 site_mod->next = static_call_key_next(key); in __static_call_init()
271 key->mods = site_mod; in __static_call_init()
275 arch_static_call_transform(site_addr, NULL, key->func, in __static_call_init()
347 return (long)tramp_key->key + (long)&tramp_key->key; in tramp_key_lookup()
362 unsigned long key; in static_call_add_module() local
378 key = tramp_key_lookup(addr); in static_call_add_module()
379 if (!key) { in static_call_add_module()
385 key |= s_key & STATIC_CALL_SITE_FLAGS; in static_call_add_module()
386 site->key = key - (long)&site->key; in static_call_add_module()
397 struct static_call_key *key, *prev_key = NULL; in static_call_del_module() local
402 key = static_call_key(site); in static_call_del_module()
403 if (key == prev_key) in static_call_del_module()
406 prev_key = key; in static_call_del_module()
408 for (prev = &key->mods, site_mod = key->mods; in static_call_del_module()