Lines Matching refs:linkfail
118 struct linkfail_struct *linkfail; in ax25_linkfail_register() local
121 if ((linkfail = kmalloc(sizeof(*linkfail), GFP_ATOMIC)) == NULL) in ax25_linkfail_register()
124 linkfail->func = func; in ax25_linkfail_register()
129 linkfail->next = linkfail_list; in ax25_linkfail_register()
130 linkfail_list = linkfail; in ax25_linkfail_register()
139 struct linkfail_struct *s, *linkfail = linkfail_list; in ax25_linkfail_release() local
142 if (linkfail == NULL) in ax25_linkfail_release()
148 if (linkfail->func == func) { in ax25_linkfail_release()
149 linkfail_list = linkfail->next; in ax25_linkfail_release()
151 kfree(linkfail); in ax25_linkfail_release()
155 while (linkfail != NULL && linkfail->next != NULL) { in ax25_linkfail_release()
156 if (linkfail->next->func == func) { in ax25_linkfail_release()
157 s = linkfail->next; in ax25_linkfail_release()
158 linkfail->next = linkfail->next->next; in ax25_linkfail_release()
164 linkfail = linkfail->next; in ax25_linkfail_release()
252 struct linkfail_struct *linkfail; in ax25_link_failed() local
254 for (linkfail = linkfail_list; linkfail != NULL; linkfail = linkfail->next) in ax25_link_failed()
255 (linkfail->func)(ax25, reason); in ax25_link_failed()