Lines Matching refs:stm_esp
216 static inline void write_data(const void *data, size_t len, STMESP_Type *const stm_esp) in write_data() argument
236 STM_D8(stm_esp, *p8++, false, false); in write_data()
237 STM_D16(stm_esp, *(uint16_t *)p8, false, false); in write_data()
242 STM_D16(stm_esp, *(uint16_t *)p8, false, false); in write_data()
249 STM_D8(stm_esp, *p8++, false, false); in write_data()
250 STM_D8(stm_esp, *p8++, false, false); in write_data()
255 STM_D8(stm_esp, *p8++, false, false); in write_data()
263 STM_D32(stm_esp, *p32++, false, false); in write_data()
272 STM_D16(stm_esp, *(uint16_t *)p8, false, false); in write_data()
276 STM_D16(stm_esp, *(uint16_t *)p8, false, false); in write_data()
281 STM_D8(stm_esp, *p8++, false, false); in write_data()
313 static void packet_end(STMESP_Type *stm_esp) in packet_end() argument
316 STM_D8(stm_esp, 0, true, true); in packet_end()
318 STM_FLAG(stm_esp); in packet_end()
362 STMESP_Type *stm_esp; in log_frontend_msg() local
365 err = stmesp_get_port(get_channel(), &stm_esp); in log_frontend_msg()
371 STM_D32(stm_esp, hdr.raw, false, false); in log_frontend_msg()
373 STM_D32(stm_esp, hdr.raw, use_timestamp, true); in log_frontend_msg()
375 (void)cbprintf_package_convert(package, desc.package_len, package_cb, stm_esp, in log_frontend_msg()
377 write_data(sname, sname_len, stm_esp); in log_frontend_msg()
379 write_data(data, desc.data_len, stm_esp); in log_frontend_msg()
381 packet_end(stm_esp); in log_frontend_msg()
415 STMESP_Type *stm_esp; in log_frontend_msg() local
418 err = stmesp_get_port(get_channel(), &stm_esp); in log_frontend_msg()
424 STM_D32(stm_esp, dict_desc.raw, false, false); in log_frontend_msg()
426 STM_D32(stm_esp, dict_desc.raw, true, true); in log_frontend_msg()
428 (void)cbprintf_package_convert(package, desc.package_len, package_cb, stm_esp, in log_frontend_msg()
431 package_cb(data, desc.data_len, stm_esp); in log_frontend_msg()
433 packet_end(stm_esp); in log_frontend_msg()
469 static inline void msg_start(STMESP_Type *stm_esp, uint32_t level, const void *source, in msg_start() argument
476 STM_D32(stm_esp, dict_desc.raw, false, false); in msg_start()
478 STM_D32(stm_esp, dict_desc.raw, true, true); in msg_start()
480 STM_D32(stm_esp, package_hdr, false, false); in msg_start()
481 STM_D32(stm_esp, (uint32_t)fmt, false, false); in msg_start()
489 STMESP_Type *stm_esp; in log_frontend_simple_0() local
492 err = stmesp_get_port(get_channel(), &stm_esp); in log_frontend_simple_0()
497 msg_start(stm_esp, level, source, (uint32_t)package_hdr.raw, fmt); in log_frontend_simple_0()
498 packet_end(stm_esp); in log_frontend_simple_0()
516 STMESP_Type *stm_esp; in log_frontend_simple_1() local
519 err = stmesp_get_port(get_channel(), &stm_esp); in log_frontend_simple_1()
524 msg_start(stm_esp, level, source, (uint32_t)package_hdr.raw, fmt); in log_frontend_simple_1()
525 STM_D32(stm_esp, arg, false, false); in log_frontend_simple_1()
526 packet_end(stm_esp); in log_frontend_simple_1()
546 STMESP_Type *stm_esp; in log_frontend_simple_2() local
549 err = stmesp_get_port(get_channel(), &stm_esp); in log_frontend_simple_2()
554 msg_start(stm_esp, level, source, (uint32_t)package_hdr.raw, fmt); in log_frontend_simple_2()
555 STM_D32(stm_esp, arg0, false, false); in log_frontend_simple_2()
556 STM_D32(stm_esp, arg1, false, false); in log_frontend_simple_2()
557 packet_end(stm_esp); in log_frontend_simple_2()
590 STMESP_Type *stm_esp; in log_frontend_init() local
593 (void)stmesp_get_port(CONFIG_LOG_FRONTEND_STPESP_TURBO_SOURCE_PORT_ID, &stm_esp); in log_frontend_init()
595 STM_D32(stm_esp, log_const_start, false, true); in log_frontend_init()
603 STMESP_Type *stm_esp; in log_frontend_stmesp_dummy_write() local
605 (void)stmesp_get_port(CONFIG_LOG_FRONTEND_STMESP_FLUSH_PORT_ID, &stm_esp); in log_frontend_stmesp_dummy_write()
606 STM_D32(stm_esp, STMESP_DUMMY_WORD, false, false); in log_frontend_stmesp_dummy_write()
627 STMESP_Type *stm_esp; in log_frontend_stmesp_etr_ready() local
632 err = stmesp_get_port(get_channel(), &stm_esp); in log_frontend_stmesp_etr_ready()
641 STM_D32(stm_esp, *buf, false, false); in log_frontend_stmesp_etr_ready()
644 STM_D32(stm_esp, *buf, true, true); in log_frontend_stmesp_etr_ready()
650 write_data(buf, len, stm_esp); in log_frontend_stmesp_etr_ready()
653 packet_end(stm_esp); in log_frontend_stmesp_etr_ready()