Home
last modified time | relevance | path

Searched refs:ctxt (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/tests/subsys/mgmt/mcumgr/handler_demo/example_as_module/src/
Dexample_mgmt.c32 static int example_mgmt_test(struct smp_streamer *ctxt) in example_mgmt_test() argument
35 zcbor_state_t *zse = ctxt->writer->zs; in example_mgmt_test()
36 zcbor_state_t *zsd = ctxt->reader->zs; in example_mgmt_test()
75 static int example_mgmt_other(struct smp_streamer *ctxt) in example_mgmt_other() argument
78 zcbor_state_t *zse = ctxt->writer->zs; in example_mgmt_other()
79 zcbor_state_t *zsd = ctxt->reader->zs; in example_mgmt_other()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/enum_mgmt/src/
Denum_mgmt.c171 static int enum_mgmt_count(struct smp_streamer *ctxt) in enum_mgmt_count() argument
173 zcbor_state_t *zse = ctxt->writer->zs; in enum_mgmt_count()
185 static int enum_mgmt_list(struct smp_streamer *ctxt) in enum_mgmt_list() argument
187 zcbor_state_t *zse = ctxt->writer->zs; in enum_mgmt_list()
216 static int enum_mgmt_single(struct smp_streamer *ctxt) in enum_mgmt_single() argument
218 zcbor_state_t *zse = ctxt->writer->zs; in enum_mgmt_single()
219 zcbor_state_t *zsd = ctxt->reader->zs; in enum_mgmt_single()
302 static int enum_mgmt_details(struct smp_streamer *ctxt) in enum_mgmt_details() argument
304 zcbor_state_t *zse = ctxt->writer->zs; in enum_mgmt_details()
305 zcbor_state_t *zsd = ctxt->reader->zs; in enum_mgmt_details()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/settings_mgmt/src/
Dsettings_mgmt.c32 static int settings_mgmt_read(struct smp_streamer *ctxt) in settings_mgmt_read() argument
35 zcbor_state_t *zse = ctxt->writer->zs; in settings_mgmt_read()
36 zcbor_state_t *zsd = ctxt->reader->zs; in settings_mgmt_read()
156 static int settings_mgmt_write(struct smp_streamer *ctxt) in settings_mgmt_write() argument
159 zcbor_state_t *zse = ctxt->writer->zs; in settings_mgmt_write()
160 zcbor_state_t *zsd = ctxt->reader->zs; in settings_mgmt_write()
259 static int settings_mgmt_delete(struct smp_streamer *ctxt) in settings_mgmt_delete() argument
261 zcbor_state_t *zse = ctxt->writer->zs; in settings_mgmt_delete()
262 zcbor_state_t *zsd = ctxt->reader->zs; in settings_mgmt_delete()
358 static int settings_mgmt_commit(struct smp_streamer *ctxt) in settings_mgmt_commit() argument
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/src/
Dimg_mgmt.c128 static bool img_mgmt_reset_zse(struct smp_streamer *ctxt) in img_mgmt_reset_zse() argument
130 zcbor_state_t *zse = ctxt->writer->zs; in img_mgmt_reset_zse()
133 net_buf_reset(ctxt->writer->nb); in img_mgmt_reset_zse()
134 ctxt->writer->nb->len = sizeof(struct smp_hdr); in img_mgmt_reset_zse()
135 zcbor_new_encode_state(zse, ARRAY_SIZE(ctxt->writer->zs), in img_mgmt_reset_zse()
136 ctxt->writer->nb->data + sizeof(struct smp_hdr), in img_mgmt_reset_zse()
137 net_buf_tailroom(ctxt->writer->nb), 0); in img_mgmt_reset_zse()
409 img_mgmt_erase(struct smp_streamer *ctxt) in img_mgmt_erase() argument
413 zcbor_state_t *zse = ctxt->writer->zs; in img_mgmt_erase()
414 zcbor_state_t *zsd = ctxt->reader->zs; in img_mgmt_erase()
[all …]
Dimg_mgmt_state.c413 static bool img_mgmt_state_encode_slot(struct smp_streamer *ctxt, uint32_t slot, int state_flags) in img_mgmt_state_encode_slot() argument
415 zcbor_state_t *zse = ctxt->writer->zs; in img_mgmt_state_encode_slot()
487 img_mgmt_state_read(struct smp_streamer *ctxt) in img_mgmt_state_read() argument
489 zcbor_state_t *zse = ctxt->writer->zs; in img_mgmt_state_read()
523 ok = img_mgmt_state_encode_slot(ctxt, slot_a, flags_a) && in img_mgmt_state_read()
524 img_mgmt_state_encode_slot(ctxt, slot_o, flags_o); in img_mgmt_state_read()
526 ok = img_mgmt_state_encode_slot(ctxt, slot_o, flags_o) && in img_mgmt_state_read()
527 img_mgmt_state_encode_slot(ctxt, slot_a, flags_a); in img_mgmt_state_read()
686 img_mgmt_state_write(struct smp_streamer *ctxt) in img_mgmt_state_write() argument
700 zcbor_state_t *zse = ctxt->writer->zs; in img_mgmt_state_write()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt/src/
Dos_mgmt.c147 static int os_mgmt_echo(struct smp_streamer *ctxt) in os_mgmt_echo() argument
150 zcbor_state_t *zsd = ctxt->reader->zs; in os_mgmt_echo()
151 zcbor_state_t *zse = ctxt->writer->zs; in os_mgmt_echo()
325 static int os_mgmt_taskstat_read(struct smp_streamer *ctxt) in os_mgmt_taskstat_read() argument
327 zcbor_state_t *zse = ctxt->writer->zs; in os_mgmt_taskstat_read()
364 static int os_mgmt_reset(struct smp_streamer *ctxt) in os_mgmt_reset() argument
367 zcbor_state_t *zsd = ctxt->reader->zs; in os_mgmt_reset()
368 zcbor_state_t *zse = ctxt->writer->zs; in os_mgmt_reset()
410 os_mgmt_mcumgr_params(struct smp_streamer *ctxt) in os_mgmt_mcumgr_params() argument
412 zcbor_state_t *zse = ctxt->writer->zs; in os_mgmt_mcumgr_params()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/
Dfs_mgmt.c204 static int fs_mgmt_file_download(struct smp_streamer *ctxt) in fs_mgmt_file_download() argument
211 zcbor_state_t *zse = ctxt->writer->zs; in fs_mgmt_file_download()
212 zcbor_state_t *zsd = ctxt->reader->zs; in fs_mgmt_file_download()
248 if (ctxt->smpt != fs_mgmt_ctxt.transport || in fs_mgmt_file_download()
298 fs_mgmt_ctxt.transport = ctxt->smpt; in fs_mgmt_file_download()
350 static int fs_mgmt_file_upload(struct smp_streamer *ctxt) in fs_mgmt_file_upload() argument
357 zcbor_state_t *zse = ctxt->writer->zs; in fs_mgmt_file_upload()
358 zcbor_state_t *zsd = ctxt->reader->zs; in fs_mgmt_file_upload()
398 if (ctxt->smpt != fs_mgmt_ctxt.transport || in fs_mgmt_file_upload()
443 fs_mgmt_ctxt.transport = ctxt->smpt; in fs_mgmt_file_upload()
[all …]
/Zephyr-latest/drivers/xen/dom0/
Ddomctl.c64 int xen_domctl_getvcpucontext(int domid, int vcpu, vcpu_guest_context_t *ctxt) in xen_domctl_getvcpucontext() argument
72 set_xen_guest_handle(domctl.u.vcpucontext.ctxt, ctxt); in xen_domctl_getvcpucontext()
77 int xen_domctl_setvcpucontext(int domid, int vcpu, vcpu_guest_context_t *ctxt) in xen_domctl_setvcpucontext() argument
85 set_xen_guest_handle(domctl.u.vcpucontext.ctxt, ctxt); in xen_domctl_setvcpucontext()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/shell_mgmt/src/
Dshell_mgmt.c45 shell_mgmt_exec(struct smp_streamer *ctxt) in shell_mgmt_exec() argument
52 zcbor_state_t *zsd = ctxt->reader->zs; in shell_mgmt_exec()
53 zcbor_state_t *zse = ctxt->writer->zs; in shell_mgmt_exec()
/Zephyr-latest/include/zephyr/xen/dom0/
Ddomctl.h19 int xen_domctl_getvcpucontext(int domid, int vcpu, vcpu_guest_context_t *ctxt);
20 int xen_domctl_setvcpucontext(int domid, int vcpu, vcpu_guest_context_t *ctxt);
/Zephyr-latest/subsys/mgmt/mcumgr/grp/stat_mgmt/src/
Dstat_mgmt.c123 stat_mgmt_show(struct smp_streamer *ctxt) in stat_mgmt_show() argument
125 zcbor_state_t *zse = ctxt->writer->zs; in stat_mgmt_show()
126 zcbor_state_t *zsd = ctxt->reader->zs; in stat_mgmt_show()
189 stat_mgmt_list(struct smp_streamer *ctxt) in stat_mgmt_list() argument
192 zcbor_state_t *zse = ctxt->writer->zs; in stat_mgmt_list()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/zephyr_basic/src/
Dbasic_mgmt.c48 static int storage_erase_handler(struct smp_streamer *ctxt) in storage_erase_handler() argument
50 zcbor_state_t *zse = ctxt->writer->zs; in storage_erase_handler()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/include/mgmt/mcumgr/grp/img_mgmt/
Dimg_mgmt_priv.h209 int img_mgmt_state_read(struct smp_streamer *ctxt);
/Zephyr-latest/include/zephyr/mgmt/mcumgr/mgmt/
Dmgmt.h68 typedef int (*mgmt_handler_fn)(struct smp_streamer *ctxt);
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/img_mgmt/
Dimg_mgmt.h361 int img_mgmt_error_rsp(struct smp_streamer *ctxt, int rc, const char *rsn);
/Zephyr-latest/include/zephyr/xen/public/
Ddomctl.h195 XEN_GUEST_HANDLE_64(vcpu_guest_context_t) ctxt; /* IN/OUT */
/Zephyr-latest/doc/services/device_mgmt/
Dmcumgr_callbacks.rst236 static int test_command(struct mgmt_ctxt *ctxt)
241 zcbor_state_t *zse = ctxt->cnbe->zs;
/Zephyr-latest/doc/develop/tools/
Dcoccinelle.rst100 - ``rep+ctxt`` runs successively the report mode and the context mode.