Lines Matching refs:protocol
96 static const struct can_proto *can_get_proto(int protocol) in can_get_proto() argument
101 cp = rcu_dereference(proto_tab[protocol]); in can_get_proto()
114 static int can_create(struct net *net, struct socket *sock, int protocol, in can_create() argument
123 if (protocol < 0 || protocol >= CAN_NPROTO) in can_create()
126 cp = can_get_proto(protocol); in can_create()
132 err = request_module("can-proto-%d", protocol); in can_create()
140 protocol); in can_create()
142 cp = can_get_proto(protocol); in can_create()
209 skb->protocol = htons(ETH_P_CANXL); in can_send()
211 skb->protocol = htons(ETH_P_CAN); in can_send()
215 skb->protocol = htons(ETH_P_CANFD); in can_send()
738 int proto = cp->protocol; in can_proto_register()
774 int proto = cp->protocol; in can_proto_unregister()