Lines Matching refs:num_protocols
1107 int num_protocols; in port100_in_set_framing() local
1116 num_protocols = 0; in port100_in_set_framing()
1117 while (protocols[num_protocols].number != PORT100_IN_PROT_END) in port100_in_set_framing()
1118 num_protocols++; in port100_in_set_framing()
1120 if (!num_protocols) in port100_in_set_framing()
1123 size = sizeof(struct port100_protocol) * num_protocols; in port100_in_set_framing()
1265 int num_protocols; in port100_tg_set_framing() local
1273 num_protocols = 0; in port100_tg_set_framing()
1274 while (protocols[num_protocols].number != PORT100_TG_PROT_END) in port100_tg_set_framing()
1275 num_protocols++; in port100_tg_set_framing()
1277 if (!num_protocols) in port100_tg_set_framing()
1280 size = sizeof(struct port100_protocol) * num_protocols; in port100_tg_set_framing()