Lines Matching refs:hash_cur
74 struct hashtable_entry *hash_cur; in __get_appid() local
79 hash_for_each_possible_rcu(package_to_appid, hash_cur, hlist, hash) { in __get_appid()
80 if (qstr_case_eq(key, &hash_cur->key)) { in __get_appid()
81 ret_id = atomic_read(&hash_cur->value); in __get_appid()
100 struct hashtable_entry *hash_cur; in __get_ext_gid() local
105 hash_for_each_possible_rcu(ext_to_groupid, hash_cur, hlist, hash) { in __get_ext_gid()
106 if (qstr_case_eq(key, &hash_cur->key)) { in __get_ext_gid()
107 ret_id = atomic_read(&hash_cur->value); in __get_ext_gid()
126 struct hashtable_entry *hash_cur; in __is_excluded() local
130 hash_for_each_possible_rcu(package_to_userid, hash_cur, hlist, hash) { in __is_excluded()
131 if (atomic_read(&hash_cur->value) == user && in __is_excluded()
132 qstr_case_eq(app_name, &hash_cur->key)) { in __is_excluded()
198 struct hashtable_entry *hash_cur; in insert_packagelist_appid_entry_locked() local
202 hash_for_each_possible_rcu(package_to_appid, hash_cur, hlist, hash) { in insert_packagelist_appid_entry_locked()
203 if (qstr_case_eq(key, &hash_cur->key)) { in insert_packagelist_appid_entry_locked()
204 atomic_set(&hash_cur->value, value); in insert_packagelist_appid_entry_locked()
217 struct hashtable_entry *hash_cur; in insert_ext_gid_entry_locked() local
222 hash_for_each_possible_rcu(ext_to_groupid, hash_cur, hlist, hash) { in insert_ext_gid_entry_locked()
223 if (qstr_case_eq(key, &hash_cur->key)) in insert_ext_gid_entry_locked()
235 struct hashtable_entry *hash_cur; in insert_userid_exclude_entry_locked() local
240 hash_for_each_possible_rcu(package_to_userid, hash_cur, hlist, hash) { in insert_userid_exclude_entry_locked()
241 if (atomic_read(&hash_cur->value) == value && in insert_userid_exclude_entry_locked()
242 qstr_case_eq(key, &hash_cur->key)) in insert_userid_exclude_entry_locked()
337 struct hashtable_entry *hash_cur; in remove_packagelist_entry_locked() local
342 hash_for_each_possible_rcu(package_to_userid, hash_cur, hlist, hash) { in remove_packagelist_entry_locked()
343 if (qstr_case_eq(key, &hash_cur->key)) { in remove_packagelist_entry_locked()
344 hash_del_rcu(&hash_cur->hlist); in remove_packagelist_entry_locked()
345 hlist_add_head(&hash_cur->dlist, &free_list); in remove_packagelist_entry_locked()
348 hash_for_each_possible_rcu(package_to_appid, hash_cur, hlist, hash) { in remove_packagelist_entry_locked()
349 if (qstr_case_eq(key, &hash_cur->key)) { in remove_packagelist_entry_locked()
350 hash_del_rcu(&hash_cur->hlist); in remove_packagelist_entry_locked()
351 hlist_add_head(&hash_cur->dlist, &free_list); in remove_packagelist_entry_locked()
356 hlist_for_each_entry_safe(hash_cur, h_t, &free_list, dlist) in remove_packagelist_entry_locked()
357 free_hashtable_entry(hash_cur); in remove_packagelist_entry_locked()
370 struct hashtable_entry *hash_cur; in remove_ext_gid_entry_locked() local
373 hash_for_each_possible_rcu(ext_to_groupid, hash_cur, hlist, hash) { in remove_ext_gid_entry_locked()
374 if (qstr_case_eq(key, &hash_cur->key) && atomic_read(&hash_cur->value) == group) { in remove_ext_gid_entry_locked()
375 hash_del_rcu(&hash_cur->hlist); in remove_ext_gid_entry_locked()
377 free_hashtable_entry(hash_cur); in remove_ext_gid_entry_locked()
392 struct hashtable_entry *hash_cur; in remove_userid_all_entry_locked() local
397 hash_for_each_rcu(package_to_userid, i, hash_cur, hlist) { in remove_userid_all_entry_locked()
398 if (atomic_read(&hash_cur->value) == userid) { in remove_userid_all_entry_locked()
399 hash_del_rcu(&hash_cur->hlist); in remove_userid_all_entry_locked()
400 hlist_add_head(&hash_cur->dlist, &free_list); in remove_userid_all_entry_locked()
404 hlist_for_each_entry_safe(hash_cur, h_t, &free_list, dlist) { in remove_userid_all_entry_locked()
405 free_hashtable_entry(hash_cur); in remove_userid_all_entry_locked()
419 struct hashtable_entry *hash_cur; in remove_userid_exclude_entry_locked() local
422 hash_for_each_possible_rcu(package_to_userid, hash_cur, hlist, hash) { in remove_userid_exclude_entry_locked()
423 if (qstr_case_eq(key, &hash_cur->key) && in remove_userid_exclude_entry_locked()
424 atomic_read(&hash_cur->value) == userid) { in remove_userid_exclude_entry_locked()
425 hash_del_rcu(&hash_cur->hlist); in remove_userid_exclude_entry_locked()
427 free_hashtable_entry(hash_cur); in remove_userid_exclude_entry_locked()
443 struct hashtable_entry *hash_cur; in packagelist_destroy() local
449 hash_for_each_rcu(package_to_appid, i, hash_cur, hlist) { in packagelist_destroy()
450 hash_del_rcu(&hash_cur->hlist); in packagelist_destroy()
451 hlist_add_head(&hash_cur->dlist, &free_list); in packagelist_destroy()
453 hash_for_each_rcu(package_to_userid, i, hash_cur, hlist) { in packagelist_destroy()
454 hash_del_rcu(&hash_cur->hlist); in packagelist_destroy()
455 hlist_add_head(&hash_cur->dlist, &free_list); in packagelist_destroy()
458 hlist_for_each_entry_safe(hash_cur, h_t, &free_list, dlist) in packagelist_destroy()
459 free_hashtable_entry(hash_cur); in packagelist_destroy()
526 struct hashtable_entry *hash_cur; in package_details_excluded_userids_show() local
531 hash_for_each_possible_rcu(package_to_userid, hash_cur, hlist, hash) { in package_details_excluded_userids_show()
532 if (qstr_case_eq(&package_details->name, &hash_cur->key)) in package_details_excluded_userids_show()
534 "%d ", atomic_read(&hash_cur->value)); in package_details_excluded_userids_show()