Lines Matching refs:smp_client

30 	struct smp_client_object *smp_client;  member
54 struct smp_client_object *smp_client; in smp_client_handle_reqs() local
58 smp_client = (void *)work; in smp_client_handle_reqs()
59 smpt = smp_client->smpt; in smp_client_handle_reqs()
61 while ((nb = k_fifo_get(&smp_client->tx_fifo, K_NO_WAIT)) != NULL) { in smp_client_handle_reqs()
114 k_fifo_put(&entry->smp_client->tx_fifo, entry->nb); in smp_client_transport_work_fn()
115 k_work_submit_to_queue(smp_get_wq(), &entry->smp_client->work); in smp_client_transport_work_fn()
213 int smp_client_object_init(struct smp_client_object *smp_client, int smp_type) in smp_client_object_init() argument
215 smp_client->smpt = smp_client_transport_get(smp_type); in smp_client_object_init()
216 if (!smp_client->smpt) { in smp_client_object_init()
221 k_work_init(&smp_client->work, smp_client_handle_reqs); in smp_client_object_init()
222 k_fifo_init(&smp_client->tx_fifo); in smp_client_object_init()
252 struct net_buf *smp_client_buf_allocation(struct smp_client_object *smp_client, uint16_t group, in smp_client_buf_allocation() argument
263 smp_header_init(&smp_header, group, command_id, op, 0, smp_client->smp_seq++, in smp_client_buf_allocation()
283 int smp_client_send_cmd(struct smp_client_object *smp_client, struct net_buf *nb, in smp_client_send_cmd() argument
317 cmd_req->smp_client = smp_client; in smp_client_send_cmd()
324 k_fifo_put(&smp_client->tx_fifo, nb); in smp_client_send_cmd()
325 k_work_submit_to_queue(smp_get_wq(), &smp_client->work); in smp_client_send_cmd()