Lines Matching refs:protocol
60 struct ax25_protocol *protocol; in ax25_protocol_release() local
63 protocol = protocol_list; in ax25_protocol_release()
64 if (protocol == NULL) in ax25_protocol_release()
67 if (protocol->pid == pid) { in ax25_protocol_release()
68 protocol_list = protocol->next; in ax25_protocol_release()
72 while (protocol != NULL && protocol->next != NULL) { in ax25_protocol_release()
73 if (protocol->next->pid == pid) { in ax25_protocol_release()
74 protocol->next = protocol->next->next; in ax25_protocol_release()
78 protocol = protocol->next; in ax25_protocol_release()
164 struct ax25_protocol *protocol; in ax25_protocol_function() local
167 for (protocol = protocol_list; protocol != NULL; protocol = protocol->next) in ax25_protocol_function()
168 if (protocol->pid == pid) { in ax25_protocol_function()
169 res = protocol->func; in ax25_protocol_function()
205 struct ax25_protocol *protocol; in ax25_protocol_is_registered() local
209 for (protocol = protocol_list; protocol != NULL; protocol = protocol->next) in ax25_protocol_is_registered()
210 if (protocol->pid == pid) { in ax25_protocol_is_registered()