Lines Matching refs:smp_hdr
63 cnw->nb->len = sizeof(struct smp_hdr); in cbor_nb_writer_init()
64 zcbor_new_encode_state(cnw->zs, ARRAY_SIZE(cnw->zs), nb->data + sizeof(struct smp_hdr), in cbor_nb_writer_init()
80 static void smp_make_rsp_hdr(const struct smp_hdr *req_hdr, struct smp_hdr *rsp_hdr, size_t len) in smp_make_rsp_hdr()
82 *rsp_hdr = (struct smp_hdr) { in smp_make_rsp_hdr()
94 static int smp_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr) in smp_read_hdr()
107 static inline int smp_write_hdr(struct smp_streamer *streamer, const struct smp_hdr *src_hdr) in smp_write_hdr()
113 static int smp_build_err_rsp(struct smp_streamer *streamer, const struct smp_hdr *req_hdr, in smp_build_err_rsp()
116 struct smp_hdr rsp_hdr; in smp_build_err_rsp()
159 static int smp_handle_single_payload(struct smp_streamer *cbuf, const struct smp_hdr *req_hdr) in smp_handle_single_payload()
274 static int smp_handle_single_req(struct smp_streamer *streamer, const struct smp_hdr *req_hdr, in smp_handle_single_req()
277 struct smp_hdr rsp_hdr; in smp_handle_single_req()
333 static void smp_on_err(struct smp_streamer *streamer, const struct smp_hdr *req_hdr, in smp_on_err()
383 struct smp_hdr req_hdr = { 0 }; in smp_process_request_packet()
412 net_buf_pull(req, sizeof(struct smp_hdr)); in smp_process_request_packet()