Lines Matching refs:key

70 		struct key *key = rb_entry(n, struct key, serial_node);  in key_serial_next()  local
71 if (kuid_has_mapping(user_ns, key->user->uid)) in key_serial_next()
78 static struct key *find_ge_key(struct seq_file *p, key_serial_t id) in find_ge_key()
82 struct key *minkey = NULL; in find_ge_key()
85 struct key *key = rb_entry(n, struct key, serial_node); in find_ge_key() local
86 if (id < key->serial) { in find_ge_key()
87 if (!minkey || minkey->serial > key->serial) in find_ge_key()
88 minkey = key; in find_ge_key()
90 } else if (id > key->serial) { in find_ge_key()
93 minkey = key; in find_ge_key()
96 key = NULL; in find_ge_key()
108 minkey = rb_entry(n, struct key, serial_node); in find_ge_key()
116 struct key *key; in proc_keys_start() local
122 key = find_ge_key(p, pos); in proc_keys_start()
123 if (!key) in proc_keys_start()
125 *_pos = key->serial; in proc_keys_start()
126 return &key->serial_node; in proc_keys_start()
131 struct key *key = rb_entry(n, struct key, serial_node); in key_node_serial() local
132 return key->serial; in key_node_serial()
156 struct key *key = rb_entry(_p, struct key, serial_node); in proc_keys_show() local
166 .index_key = key->index_key, in proc_keys_show()
169 .match_data.raw_data = key, in proc_keys_show()
175 key_ref = make_key_ref(key, 0); in proc_keys_show()
180 if (key->perm & KEY_POS_VIEW) { in proc_keys_show()
186 key_ref = make_key_ref(key, 1); in proc_keys_show()
200 expiry = READ_ONCE(key->expiry); in proc_keys_show()
220 state = key_read_state(key); in proc_keys_show()
225 flags = READ_ONCE(key->flags); in proc_keys_show()
227 key->serial, in proc_keys_show()
235 refcount_read(&key->usage), in proc_keys_show()
237 key->perm, in proc_keys_show()
238 from_kuid_munged(seq_user_ns(m), key->uid), in proc_keys_show()
239 from_kgid_munged(seq_user_ns(m), key->gid), in proc_keys_show()
240 key->type->name); in proc_keys_show()
244 if (key->type->describe) in proc_keys_show()
245 key->type->describe(key, m); in proc_keys_show()