Lines Matching refs:pkt
17 struct net_pkt *pkt) in canbus_recv() argument
19 net_pkt_lladdr_src(pkt)->addr = NULL; in canbus_recv()
20 net_pkt_lladdr_src(pkt)->len = 0U; in canbus_recv()
21 net_pkt_lladdr_src(pkt)->type = NET_LINK_CANBUS_RAW; in canbus_recv()
22 net_pkt_lladdr_dst(pkt)->addr = NULL; in canbus_recv()
23 net_pkt_lladdr_dst(pkt)->len = 0U; in canbus_recv()
24 net_pkt_lladdr_dst(pkt)->type = NET_LINK_CANBUS_RAW; in canbus_recv()
26 net_pkt_set_family(pkt, AF_CAN); in canbus_recv()
31 static inline int canbus_send(struct net_if *iface, struct net_pkt *pkt) in canbus_send() argument
40 ret = net_l2_send(api->send, net_if_get_device(iface), iface, pkt); in canbus_send()
42 ret = net_pkt_get_len(pkt); in canbus_send()
43 net_pkt_unref(pkt); in canbus_send()