Lines Matching refs:protocol
118 static const struct can_proto *can_get_proto(int protocol) in can_get_proto() argument
123 cp = rcu_dereference(proto_tab[protocol]); in can_get_proto()
136 static int can_create(struct net *net, struct socket *sock, int protocol, in can_create() argument
145 if (protocol < 0 || protocol >= CAN_NPROTO) in can_create()
151 cp = can_get_proto(protocol); in can_create()
157 err = request_module("can-proto-%d", protocol); in can_create()
166 "(can-proto-%d) failed.\n", protocol); in can_create()
168 cp = can_get_proto(protocol); in can_create()
234 skb->protocol = htons(ETH_P_CAN); in can_send()
238 skb->protocol = htons(ETH_P_CANFD); in can_send()
773 int proto = cp->protocol; in can_proto_register()
808 int proto = cp->protocol; in can_proto_unregister()