Lines Matching refs:udp_access
22 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in net_udp_create()
25 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in net_udp_create()
35 return net_pkt_set_data(pkt, &udp_access); in net_udp_create()
40 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in net_udp_finalize()
46 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in net_udp_finalize()
61 return net_pkt_set_data(pkt, &udp_access); in net_udp_finalize()
67 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(udp_access, struct net_udp_hdr); in net_udp_get_hdr()
72 udp_access.data = hdr; in net_udp_get_hdr()
86 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in net_udp_get_hdr()
98 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in net_udp_set_hdr()
115 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in net_udp_set_hdr()
122 net_pkt_set_data(pkt, &udp_access); in net_udp_set_hdr()
151 struct net_pkt_data_access *udp_access) in net_udp_input() argument
157 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, udp_access); in net_udp_input()
158 if (!udp_hdr || net_pkt_set_data(pkt, udp_access)) { in net_udp_input()