Lines Matching defs:protocols
41 static struct pi_protocol *protocols[MAX_PROTOS];
215 if (protocols[k] && !strcmp(pr->name, protocols[k]->name)) {
221 while ((k < MAX_PROTOS) && (protocols[k]))
227 protocols[k] = pr;
239 if (protocols[pr->index] != pr) {
243 protocols[pr->index] = NULL;
360 if (!protocols[0])
367 (!protocols[s]) || (unit < 0) ||
368 (unit >= protocols[s]->max_units)) {
374 struct pi_protocol *proto = protocols[p];