Lines Matching defs:protocols
40 static struct pi_protocol *protocols[MAX_PROTOS];
214 if (protocols[k] && !strcmp(pr->name, protocols[k]->name)) {
220 while ((k < MAX_PROTOS) && (protocols[k]))
226 protocols[k] = pr;
238 if (protocols[pr->index] != pr) {
242 protocols[pr->index] = NULL;
357 if (!protocols[0])
364 (!protocols[s]) || (unit < 0) ||
365 (unit >= protocols[s]->max_units)) {
371 struct pi_protocol *proto = protocols[p];