Home
last modified time | relevance | path

Searched refs:proto_num (Results 1 – 3 of 3) sorted by relevance

/drivers/net/ppp/
Dpppox.c41 int register_pppox_proto(int proto_num, const struct pppox_proto *pp) in register_pppox_proto() argument
43 if (proto_num < 0 || proto_num > PX_MAX_PROTO) in register_pppox_proto()
45 if (pppox_protos[proto_num]) in register_pppox_proto()
47 pppox_protos[proto_num] = pp; in register_pppox_proto()
51 void unregister_pppox_proto(int proto_num) in unregister_pppox_proto() argument
53 if (proto_num >= 0 && proto_num <= PX_MAX_PROTO) in unregister_pppox_proto()
54 pppox_protos[proto_num] = NULL; in unregister_pppox_proto()
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c81 u16 proto_num = 0; in set_av_attr() local
94 proto_num = ocrdma_hdr_type_to_proto_num(dev->id, ah->hdr_type); in set_av_attr()
95 if (!proto_num) in set_av_attr()
97 nxthdr = (proto_num == 0x8915) ? 0x1b : 0x11; in set_av_attr()
109 eth.roce_eth_type = cpu_to_be16(proto_num); in set_av_attr()
115 eth.eth_type = cpu_to_be16(proto_num); in set_av_attr()
/drivers/net/arcnet/
Darcnet.c548 uint8_t _daddr, proto_num; in arcnet_header() local
582 proto_num = lp->default_proto[_daddr]; in arcnet_header()
583 proto = arc_proto_map[proto_num]; in arcnet_header()
585 proto_num, proto->suffix); in arcnet_header()