Lines Matching refs:domain_id

49 	uint8_t domain_id;  member
69 (s0.id.domain_id == s1.id.domain_id); in source_id_cmp()
84 static const struct log_link *get_link_domain(uint8_t domain_id, uint8_t *rel_domain_id) in get_link_domain() argument
91 if (domain_id < domain_max) { in get_link_domain()
93 *rel_domain_id = domain_id - link->ctrl_blk->domain_offset; in get_link_domain()
121 uint32_t *z_log_link_get_dynamic_filter(uint8_t domain_id, uint32_t source_id) in z_log_link_get_dynamic_filter() argument
124 const struct log_link *link = get_link_domain(domain_id, &rel_domain_id); in z_log_link_get_dynamic_filter()
188 static uint16_t link_source_count(uint8_t domain_id) in link_source_count() argument
191 const struct log_link *link = get_link_domain(domain_id, &rel_domain_id); in link_source_count()
198 uint32_t log_src_cnt_get(uint32_t domain_id) in log_src_cnt_get() argument
200 if (z_log_is_local_domain(domain_id)) { in log_src_cnt_get()
204 return link_source_count(domain_id); in log_src_cnt_get()
212 static const char *link_source_name_get(uint8_t domain_id, uint32_t source_id) in link_source_name_get() argument
218 .domain_id = domain_id, in link_source_name_get()
226 const struct log_link *link = get_link_domain(domain_id, &rel_domain_id); in link_source_name_get()
243 const char *log_source_name_get(uint32_t domain_id, uint32_t source_id) in log_source_name_get() argument
245 if (z_log_is_local_domain(domain_id)) { in log_source_name_get()
249 if (source_id < log_src_cnt_get(domain_id)) { in log_source_name_get()
256 return link_source_name_get(domain_id, source_id); in log_source_name_get()
264 static const char *link_domain_name_get(uint8_t domain_id) in link_domain_name_get() argument
268 uintptr_t id = (uintptr_t)domain_id; in link_domain_name_get()
274 const struct log_link *link = get_link_domain(domain_id, &rel_domain_id); in link_domain_name_get()
291 const char *log_domain_name_get(uint32_t domain_id) in log_domain_name_get() argument
293 if (z_log_is_local_domain(domain_id)) { in log_domain_name_get()
297 return link_domain_name_get(domain_id); in log_domain_name_get()
300 static uint8_t link_compiled_level_get(uint8_t domain_id, uint32_t source_id) in link_compiled_level_get() argument
303 const struct log_link *link = get_link_domain(domain_id, &rel_domain_id); in link_compiled_level_get()
312 uint8_t log_compiled_level_get(uint8_t domain_id, uint32_t source_id) in log_compiled_level_get() argument
314 if (z_log_is_local_domain(domain_id)) { in log_compiled_level_get()
315 if (source_id < log_src_cnt_get(domain_id)) { in log_compiled_level_get()
322 return link_compiled_level_get(domain_id, source_id); in log_compiled_level_get()
325 int z_log_link_set_runtime_level(uint8_t domain_id, uint16_t source_id, uint8_t level) in z_log_link_set_runtime_level() argument
328 const struct log_link *link = get_link_domain(domain_id, &rel_domain_id); in z_log_link_set_runtime_level()
335 static uint32_t *get_dynamic_filter(uint8_t domain_id, uint32_t source_id) in get_dynamic_filter() argument
337 if (z_log_is_local_domain(domain_id)) { in get_dynamic_filter()
341 return z_log_link_get_dynamic_filter(domain_id, source_id); in get_dynamic_filter()
399 static void set_runtime_filter(uint8_t backend_id, uint8_t domain_id, in set_runtime_filter() argument
404 uint32_t *filters = get_dynamic_filter(domain_id, source_id); in set_runtime_filter()
417 if (!z_log_is_local_domain(domain_id) && (new_max != prev_max)) { in set_runtime_filter()
418 (void)z_log_link_set_runtime_level(domain_id, source_id, level); in set_runtime_filter()
422 static uint32_t filter_get(uint8_t id, uint32_t domain_id, int16_t source_id, bool runtime) in filter_get() argument
424 __ASSERT_NO_MSG(source_id < log_src_cnt_get(domain_id)); in filter_get()
431 return LOG_FILTER_SLOT_GET(get_dynamic_filter(domain_id, source_id), id); in filter_get()
434 return log_compiled_level_get(domain_id, source_id); in filter_get()
438 uint32_t filter_set(int id, uint32_t domain_id, int16_t source_id, uint32_t level) in filter_set() argument
441 return log_compiled_level_get(domain_id, source_id); in filter_set()
444 __ASSERT_NO_MSG(source_id < log_src_cnt_get(domain_id)); in filter_set()
452 max = filter_set(LOG_FRONTEND_SLOT_ID, domain_id, source_id, level); in filter_set()
461 domain_id, source_id, level); in filter_set()
469 level = MIN(level, MAX(filter_get(id, domain_id, source_id, false), in filter_set()
471 set_runtime_filter(id, domain_id, source_id, level); in filter_set()
477 uint32_t domain_id, int16_t source_id, in z_impl_log_filter_set() argument
482 return filter_set(id, domain_id, source_id, level); in z_impl_log_filter_set()
492 uint32_t domain_id, in z_vrfy_log_filter_set() argument
498 K_OOPS(K_SYSCALL_VERIFY_MSG(domain_id == Z_LOG_LOCAL_DOMAIN_ID, in z_vrfy_log_filter_set()
500 K_OOPS(K_SYSCALL_VERIFY_MSG(src_id < (int16_t)log_src_cnt_get(domain_id), in z_vrfy_log_filter_set()
506 return z_impl_log_filter_set(NULL, domain_id, src_id, level); in z_vrfy_log_filter_set()
586 uint32_t domain_id, int16_t source_id, bool runtime) in log_filter_get() argument
590 return filter_get(id, domain_id, source_id, runtime); in log_filter_get()