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 log_status(sh, sh->log_backend->backend, argc, argv); in cmd_log_self_status()
173 const struct log_backend *backend, in filters_set() argument
181 if (backend && !backend->cb->active) { in filters_set()
190 if (IS_ENABLED(CONFIG_LOG_FRONTEND) && !backend) { in filters_set()
193 set_lvl = log_filter_set(backend, Z_LOG_LOCAL_DOMAIN_ID, id, level); in filters_set()
224 const struct log_backend *backend, in log_enable() argument
238 filters_set(sh, backend, argc - 2, &argv[2], severity_level); in log_enable()
249 return log_enable(sh, sh->log_backend->backend, argc, argv); in cmd_log_self_enable()
259 const struct log_backend *backend, in log_disable() argument
263 filters_set(sh, backend, argc - 1, &argv[1], LOG_LEVEL_NONE); in log_disable()
274 return log_disable(sh, sh->log_backend->backend, argc, argv); in cmd_log_self_disable()
308 const struct log_backend *backend, in log_halt() argument
312 if (backend || !IS_ENABLED(CONFIG_LOG_FRONTEND)) { in log_halt()
313 log_backend_deactivate(backend); in log_halt()
330 return log_halt(sh, sh->log_backend->backend, argc, argv); in cmd_log_self_halt()
340 const struct log_backend *backend, in log_go() argument
344 if (backend || !IS_ENABLED(CONFIG_LOG_FRONTEND)) { in log_go()
345 log_backend_activate(backend, backend->cb->ctx); in log_go()
362 return log_go(sh, sh->log_backend->backend, argc, argv); in cmd_log_self_go()
375 STRUCT_SECTION_FOREACH(log_backend, backend) { in cmd_log_backends_list()
380 backend->name, in cmd_log_backends_list()
381 backend->cb->active ? "enabled" : "disabled", in cmd_log_backends_list()
382 backend->cb->id); in cmd_log_backends_list()
450 struct log_backend *backend = NULL; in backend_name_get() local
452 STRUCT_SECTION_GET(log_backend, idx, &backend); in backend_name_get()
453 __ASSERT_NO_MSG(backend != NULL); in backend_name_get()
454 entry->syntax = backend->name; in backend_name_get()
464 SHELL_CMD(backend, &dsub_backend_name_dynamic, "Logger backends commands.", NULL),