Lines Matching refs:smpt
71 struct smp_transport *smpt = arg; in smp_alloc_rsp() local
80 if (smpt->functions.ud_copy) { in smp_alloc_rsp()
81 smpt->functions.ud_copy(rsp_nb, req_nb); in smp_alloc_rsp()
93 struct smp_transport *smpt = arg; in smp_free_buf() local
99 if (smpt->functions.ud_free) { in smp_free_buf()
100 smpt->functions.ud_free(net_buf_user_data((struct net_buf *)buf)); in smp_free_buf()
110 smp_process_packet(struct smp_transport *smpt, struct net_buf *nb) in smp_process_packet() argument
120 .smpt = smpt, in smp_process_packet()
133 struct smp_transport *smpt; in smp_handle_reqs() local
136 smpt = (void *)work; in smp_handle_reqs()
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()
144 int smp_transport_init(struct smp_transport *smpt) in smp_transport_init() argument
146 __ASSERT((smpt->functions.output != NULL), in smp_transport_init()
149 if (smpt->functions.output == NULL) { in smp_transport_init()
154 smp_reassembly_init(smpt); in smp_transport_init()
157 k_work_init(&smpt->work, smp_handle_reqs); in smp_transport_init()
158 k_fifo_init(&smpt->fifo); in smp_transport_init()
170 return entry->smpt; in smp_client_transport_get()
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()
203 k_work_submit_to_queue(&smp_work_queue, &smpt->work); in smp_rx_req()