Lines Matching refs:ax25_uid
52 ax25_uid_assoc *ax25_uid, *res = NULL; in ax25_findbyuid() local
55 ax25_uid_for_each(ax25_uid, &ax25_uid_list) { in ax25_findbyuid()
56 if (uid_eq(ax25_uid->uid, uid)) { in ax25_findbyuid()
57 ax25_uid_hold(ax25_uid); in ax25_findbyuid()
58 res = ax25_uid; in ax25_findbyuid()
71 ax25_uid_assoc *ax25_uid; in ax25_uid_ioctl() local
79 ax25_uid_for_each(ax25_uid, &ax25_uid_list) { in ax25_uid_ioctl()
80 if (ax25cmp(&sax->sax25_call, &ax25_uid->call) == 0) { in ax25_uid_ioctl()
81 res = from_kuid_munged(current_user_ns(), ax25_uid->uid); in ax25_uid_ioctl()
104 if ((ax25_uid = kmalloc(sizeof(*ax25_uid), GFP_KERNEL)) == NULL) in ax25_uid_ioctl()
107 refcount_set(&ax25_uid->refcount, 1); in ax25_uid_ioctl()
108 ax25_uid->uid = sax25_kuid; in ax25_uid_ioctl()
109 ax25_uid->call = sax->sax25_call; in ax25_uid_ioctl()
112 hlist_add_head(&ax25_uid->uid_node, &ax25_uid_list); in ax25_uid_ioctl()
121 ax25_uid = NULL; in ax25_uid_ioctl()
123 ax25_uid_for_each(ax25_uid, &ax25_uid_list) { in ax25_uid_ioctl()
124 if (ax25cmp(&sax->sax25_call, &ax25_uid->call) == 0) in ax25_uid_ioctl()
127 if (ax25_uid == NULL) { in ax25_uid_ioctl()
131 hlist_del_init(&ax25_uid->uid_node); in ax25_uid_ioctl()
132 ax25_uid_put(ax25_uid); in ax25_uid_ioctl()
194 ax25_uid_assoc *ax25_uid; in ax25_uid_free() local
198 ax25_uid_for_each(ax25_uid, &ax25_uid_list) { in ax25_uid_free()
199 hlist_del_init(&ax25_uid->uid_node); in ax25_uid_free()
200 ax25_uid_put(ax25_uid); in ax25_uid_free()