Lines Matching refs:nb
98 static int smp_udp4_tx(struct net_buf *nb) in smp_udp4_tx() argument
101 struct sockaddr *addr = net_buf_user_data(nb); in smp_udp4_tx()
103 ret = zsock_sendto(smp_udp_configs.ipv4.sock, nb->data, nb->len, 0, addr, sizeof(*addr)); in smp_udp4_tx()
115 smp_packet_free(nb); in smp_udp4_tx()
122 static int smp_udp6_tx(struct net_buf *nb) in smp_udp6_tx() argument
125 struct sockaddr *addr = net_buf_user_data(nb); in smp_udp6_tx()
127 ret = zsock_sendto(smp_udp_configs.ipv6.sock, nb->data, nb->len, 0, addr, sizeof(*addr)); in smp_udp6_tx()
139 smp_packet_free(nb); in smp_udp6_tx()
145 static uint16_t smp_udp_get_mtu(const struct net_buf *nb) in smp_udp_get_mtu() argument
147 ARG_UNUSED(nb); in smp_udp_get_mtu()
250 struct net_buf *nb; in smp_udp_receive_thread() local
253 nb = smp_packet_alloc(); in smp_udp_receive_thread()
254 if (!nb) { in smp_udp_receive_thread()
259 net_buf_add_mem(nb, conf->recv_buffer, len); in smp_udp_receive_thread()
260 ud = net_buf_user_data(nb); in smp_udp_receive_thread()
263 smp_rx_req(&conf->smp_transport, nb); in smp_udp_receive_thread()