Lines Matching refs:backend

18 				 const struct log_backend *backend,
50 STRUCT_SECTION_FOREACH(log_backend, backend) { in backend_find()
51 if (strncmp(name, backend->name, slen) == 0) { in backend_find()
52 return backend; in backend_find()
90 const struct log_backend *backend = backend_find(name); in shell_backend_cmd_execute() local
92 if (backend != NULL) { in shell_backend_cmd_execute()
93 func(sh, backend, argc, argv); in shell_backend_cmd_execute()
104 const struct log_backend *backend, in log_status() argument
111 if (backend && !log_backend_is_active(backend)) { in log_status()
121 if (IS_ENABLED(CONFIG_LOG_FRONTEND) && !backend) { in log_status()
125 dynamic_lvl = log_filter_get(backend, Z_LOG_LOCAL_DOMAIN_ID, i, true); in log_status()
126 compiled_lvl = log_filter_get(backend, Z_LOG_LOCAL_DOMAIN_ID, i, false); in log_status()
145 return log_status(sh, sh->log_backend ? sh->log_backend->backend : NULL, argc, argv); in cmd_log_self_status()
172 const struct log_backend *backend, in filters_set() argument
180 if (backend && !backend->cb->active) { in filters_set()
189 if (IS_ENABLED(CONFIG_LOG_FRONTEND) && !backend) { in filters_set()
192 set_lvl = log_filter_set(backend, Z_LOG_LOCAL_DOMAIN_ID, id, level); in filters_set()
223 const struct log_backend *backend, in log_enable() argument
237 filters_set(sh, backend, argc - 2, &argv[2], severity_level); in log_enable()
248 return log_enable(sh, sh->log_backend ? sh->log_backend->backend : NULL, argc, argv); in cmd_log_self_enable()
258 const struct log_backend *backend, in log_disable() argument
262 filters_set(sh, backend, argc - 1, &argv[1], LOG_LEVEL_NONE); in log_disable()
273 return log_disable(sh, sh->log_backend ? sh->log_backend->backend : NULL, argc, argv); in cmd_log_self_disable()
307 const struct log_backend *backend, in log_halt() argument
311 if (backend || !IS_ENABLED(CONFIG_LOG_FRONTEND)) { in log_halt()
312 log_backend_deactivate(backend); in log_halt()
329 return log_halt(sh, sh->log_backend ? sh->log_backend->backend : NULL, argc, argv); in cmd_log_self_halt()
339 const struct log_backend *backend, in log_go() argument
343 if (backend || !IS_ENABLED(CONFIG_LOG_FRONTEND)) { in log_go()
344 log_backend_activate(backend, backend->cb->ctx); in log_go()
361 return log_go(sh, sh->log_backend ? sh->log_backend->backend : NULL, argc, argv); in cmd_log_self_go()
374 STRUCT_SECTION_FOREACH(log_backend, backend) { in cmd_log_backends_list()
379 backend->name, in cmd_log_backends_list()
380 backend->cb->active ? "enabled" : "disabled", in cmd_log_backends_list()
381 backend->cb->id); in cmd_log_backends_list()
449 struct log_backend *backend = NULL; in backend_name_get() local
451 STRUCT_SECTION_GET(log_backend, idx, &backend); in backend_name_get()
452 __ASSERT_NO_MSG(backend != NULL); in backend_name_get()
453 entry->syntax = backend->name; in backend_name_get()
463 SHELL_CMD(backend, &dsub_backend_name_dynamic, "Logger backends commands.", NULL),