Lines Matching refs:npi
587 struct npioctl npi; in ppp_ioctl() local
735 if (copy_from_user(&npi, argp, sizeof(npi))) in ppp_ioctl()
737 err = proto_to_npindex(npi.protocol); in ppp_ioctl()
743 npi.mode = ppp->npmode[i]; in ppp_ioctl()
744 if (copy_to_user(argp, &npi, sizeof(npi))) in ppp_ioctl()
747 ppp->npmode[i] = npi.mode; in ppp_ioctl()
1218 int npi, proto; in ppp_start_xmit() local
1221 npi = ethertype_to_npindex(ntohs(skb->protocol)); in ppp_start_xmit()
1222 if (npi < 0) in ppp_start_xmit()
1226 switch (ppp->npmode[npi]) { in ppp_start_xmit()
1244 proto = npindex_to_proto[npi]; in ppp_start_xmit()
2099 int proto, len, npi; in ppp_receive_nonmp_frame() local
2178 npi = proto_to_npindex(proto); in ppp_receive_nonmp_frame()
2179 if (npi < 0) { in ppp_receive_nonmp_frame()
2219 ppp->npmode[npi] != NPMODE_PASS) { in ppp_receive_nonmp_frame()
2225 skb->protocol = htons(npindex_to_ethertype[npi]); in ppp_receive_nonmp_frame()