Lines Matching refs:nb
51 void smp_packet_free(struct net_buf *nb) in smp_packet_free() argument
53 net_buf_unref(nb); in smp_packet_free()
110 smp_process_packet(struct smp_transport *smpt, struct net_buf *nb) in smp_process_packet() argument
123 rc = smp_process_request_packet(&streamer, nb); in smp_process_packet()
134 struct net_buf *nb; in smp_handle_reqs() local
139 while ((nb = k_fifo_get(&smpt->fifo, K_NO_WAIT)) != NULL) { in smp_handle_reqs()
140 smp_process_packet(smpt, nb); in smp_handle_reqs()
200 smp_rx_req(struct smp_transport *smpt, struct net_buf *nb) in smp_rx_req() argument
202 k_fifo_put(&smpt->fifo, nb); in smp_rx_req()
215 struct net_buf *nb; in smp_rx_remove_invalid() local
233 while ((nb = k_fifo_get(&zst->fifo, K_NO_WAIT)) != NULL) { in smp_rx_remove_invalid()
234 if (!zst->functions.query_valid_check(nb, arg)) { in smp_rx_remove_invalid()
235 smp_free_buf(nb, zst); in smp_rx_remove_invalid()
237 k_fifo_put(&temp_fifo, nb); in smp_rx_remove_invalid()
242 while ((nb = k_fifo_get(&temp_fifo, K_NO_WAIT)) != NULL) { in smp_rx_remove_invalid()
243 k_fifo_put(&zst->fifo, nb); in smp_rx_remove_invalid()
254 struct net_buf *nb; in smp_rx_clear() local
262 while ((nb = k_fifo_get(&zst->fifo, K_NO_WAIT)) != NULL) { in smp_rx_clear()
263 smp_free_buf(nb, zst); in smp_rx_clear()