/SCP-firmware-master/module/stdio/src/ |
A D | mod_stdio.c | 19 FILE *stream; member 81 element_idx = fwk_id_get_element_idx(stream->id); in mod_stdio_open() 83 cfg = fwk_module_get_data(stream->id); in mod_stdio_open() 88 if (ctx->stream == NULL) in mod_stdio_open() 91 ctx->stream = cfg->stream; in mod_stdio_open() 102 int ich = fgetc(ctx->stream); in mod_stdio_getc() 106 if (ferror(ctx->stream)) in mod_stdio_getc() 108 else if (feof(ctx->stream)) in mod_stdio_getc() 119 fputc(ch, ctx->stream); in mod_stdio_putc() 121 if (ferror(ctx->stream)) in mod_stdio_putc() [all …]
|
/SCP-firmware-master/framework/src/ |
A D | fwk_io.c | 118 if (stream == NULL) { in fwk_io_open() 151 status = stream->adapter->open(stream); in fwk_io_open() 163 if (stream == NULL) { in fwk_io_getch() 173 if (stream->adapter == NULL) { in fwk_io_getch() 184 status = stream->adapter->getch(stream, ch); in fwk_io_getch() 198 if (stream == NULL) { in fwk_io_putch() 202 if (stream->adapter == NULL) { in fwk_io_putch() 213 status = stream->adapter->putch(stream, ch); in fwk_io_putch() 289 if (stream == NULL) { in fwk_io_close() 293 if (stream->adapter == NULL) { in fwk_io_close() [all …]
|
A D | fwk_log.c | 50 static struct fwk_io_stream stream; in fwk_log_init() local 57 status = fwk_io_open(&stream, FMW_LOG_DRAIN_ID, FWK_IO_MODE_WRITE); in fwk_log_init() 59 fwk_log_stream = &stream; in fwk_log_init()
|
/SCP-firmware-master/framework/include/ |
A D | fwk_io.h | 146 int (*open)(const struct fwk_io_stream *stream); 181 int (*putch)(const struct fwk_io_stream *stream, char ch); 198 int (*close)(const struct fwk_io_stream *stream); 272 struct fwk_io_stream *restrict stream, 297 const struct fwk_io_stream *restrict stream, 350 const struct fwk_io_stream *restrict stream, 382 const struct fwk_io_stream *restrict stream, 407 const struct fwk_io_stream *restrict stream, 437 const struct fwk_io_stream *restrict stream, 468 const struct fwk_io_stream *restrict stream, [all …]
|
/SCP-firmware-master/unit_test/unity_mocks/mocks/ |
A D | Mockfwk_io.h | 33 #define fwk_io_open_ExpectAndReturn(stream, id, mode, cmock_retval) fwk_io_open_CMockExpectAndRetur… argument 41 #define fwk_io_open_ReturnThruPtr_stream(stream) fwk_io_open_CMockReturnMemThruPtr_stream(__LINE__,… argument 42 …turnArrayThruPtr_stream(stream, cmock_len) fwk_io_open_CMockReturnMemThruPtr_stream(__LINE__, stre… argument 43 …e fwk_io_open_ReturnMemThruPtr_stream(stream, cmock_size) fwk_io_open_CMockReturnMemThruPtr_stream… argument 57 #define fwk_io_getch_ExpectAndReturn(stream, ch, cmock_retval) fwk_io_getch_CMockExpectAndReturn(__… argument 79 #define fwk_io_putch_ExpectAndReturn(stream, ch, cmock_retval) fwk_io_putch_CMockExpectAndReturn(__… argument 157 #define fwk_io_puts_ExpectAndReturn(stream, str, cmock_retval) fwk_io_puts_CMockExpectAndReturn(__L… argument 213 #define fwk_io_close_ExpectAndReturn(stream, cmock_retval) fwk_io_close_CMockExpectAndReturn(__LINE… argument 221 #define fwk_io_close_ReturnThruPtr_stream(stream) fwk_io_close_CMockReturnMemThruPtr_stream(__LINE_… argument 222 …turnArrayThruPtr_stream(stream, cmock_len) fwk_io_close_CMockReturnMemThruPtr_stream(__LINE__, str… argument [all …]
|
A D | Mockfwk_io.c | 467 cmock_call_instance->Expected_stream = stream; in CMockExpectParameters_fwk_io_open() 561 cmock_call_instance->ReturnThruPtr_stream_Val = stream; in fwk_io_open_CMockReturnMemThruPtr_stream() 643 cmock_call_instance->Expected_stream = stream; in CMockExpectParameters_fwk_io_getch() 802 cmock_call_instance->Expected_stream = stream; in CMockExpectParameters_fwk_io_putch() 984 cmock_call_instance->Expected_stream = stream; in CMockExpectParameters_fwk_io_read() 1211 cmock_call_instance->Expected_stream = stream; in CMockExpectParameters_fwk_io_write() 1401 cmock_call_instance->Expected_stream = stream; in CMockExpectParameters_fwk_io_puts() 1555 cmock_call_instance->Expected_stream = stream; in CMockExpectParameters_fwk_io_vprintf() 1714 cmock_call_instance->Expected_stream = stream; in CMockExpectParameters_fwk_io_printf() 1812 int fwk_io_close(struct fwk_io_stream* stream) in fwk_io_close() argument [all …]
|
/SCP-firmware-master/product/rcar/module/rcar_scif/src/ |
A D | mod_rcar_scif.c | 195 static int mod_rcar_scif_io_open(const struct fwk_io_stream *stream) in mod_rcar_scif_io_open() argument 201 if (!fwk_id_is_type(stream->id, FWK_ID_TYPE_ELEMENT)) in mod_rcar_scif_io_open() 217 cfg = fwk_module_get_data(stream->id); in mod_rcar_scif_io_open() 224 const struct fwk_io_stream *restrict stream, in mod_rcar_scif_io_getch() argument 234 ok = mod_rcar_scif_getch(stream->id, ch); in mod_rcar_scif_io_getch() 248 if ((ch == '\n') && !(stream->mode & FWK_IO_MODE_BINARY)) in mod_rcar_scif_io_putch() 251 mod_rcar_scif_putch(stream->id, ch); in mod_rcar_scif_io_putch() 256 static int mod_rcar_scif_io_close(const struct fwk_io_stream *stream) in mod_rcar_scif_io_close() argument 260 fwk_assert(stream != NULL); /* Validated by the framework */ in mod_rcar_scif_io_close() 261 fwk_assert(fwk_module_is_valid_element_id(stream->id)); in mod_rcar_scif_io_close() [all …]
|
/SCP-firmware-master/product/synquacer/module/f_uart3/src/ |
A D | mod_f_uart3.c | 182 static int mod_f_uart3_io_open(const struct fwk_io_stream *stream) in mod_f_uart3_io_open() argument 188 if (!fwk_id_is_type(stream->id, FWK_ID_TYPE_ELEMENT)) in mod_f_uart3_io_open() 203 mod_f_uart3_enable(stream->id); /* Enable the device */ in mod_f_uart3_io_open() 208 int mod_f_uart3_io_putch(const struct fwk_io_stream *stream, char ch) in mod_f_uart3_io_putch() argument 211 &mod_f_uart3_ctx.elements[fwk_id_get_element_idx(stream->id)]; in mod_f_uart3_io_putch() 215 if ((ch == '\n') && !(stream->mode & FWK_IO_MODE_BINARY)) in mod_f_uart3_io_putch() 218 mod_f_uart3_putch(stream->id, ch); in mod_f_uart3_io_putch() 223 int mod_f_uart3_close(const struct fwk_io_stream *stream) in mod_f_uart3_close() argument 227 fwk_assert(stream != NULL); /* Validated by the framework */ in mod_f_uart3_close() 228 fwk_assert(fwk_module_is_valid_element_id(stream->id)); in mod_f_uart3_close() [all …]
|
/SCP-firmware-master/product/host/fw/ |
A D | config_stdio.c | 20 .stream = NULL, 25 .stream = NULL, 45 config_stdio_element_cfg[CONFIG_STDIO_ELEMENT_IDX_STDIN].stream = stdin; in config_stdio_init() 46 config_stdio_element_cfg[CONFIG_STDIO_ELEMENT_IDX_STDOUT].stream = stdout; in config_stdio_init()
|
/SCP-firmware-master/module/optee/console/src/ |
A D | mod_optee_console.c | 41 static int mod_console_io_open(const struct fwk_io_stream *stream) in mod_console_io_open() argument 47 const struct fwk_io_stream *restrict stream, in mod_console_io_getch() argument 55 static int mod_console_io_putch(const struct fwk_io_stream *stream, char ch) in mod_console_io_putch() argument 61 static int mod_console_close(const struct fwk_io_stream *stream) in mod_console_close() argument
|
/SCP-firmware-master/module/pl011/src/ |
A D | mod_pl011.c | 560 static int mod_pl011_io_open(const struct fwk_io_stream *stream) in mod_pl011_io_open() argument 566 if (!fwk_id_is_type(stream->id, FWK_ID_TYPE_ELEMENT)) { in mod_pl011_io_open() 592 const struct fwk_io_stream *restrict stream, in mod_pl011_io_getch() argument 596 &pl011_ctx.elements[fwk_id_get_element_idx(stream->id)]; in mod_pl011_io_getch() 606 ok = mod_pl011_getch(stream->id, ch); in mod_pl011_io_getch() 617 &pl011_ctx.elements[fwk_id_get_element_idx(stream->id)]; in mod_pl011_io_putch() 631 mod_pl011_putch(stream->id, ch); in mod_pl011_io_putch() 636 static int mod_pl011_close(const struct fwk_io_stream *stream) in mod_pl011_close() argument 640 fwk_assert(stream != NULL); /* Validated by the framework */ in mod_pl011_close() 641 fwk_assert(fwk_module_is_valid_element_id(stream->id)); in mod_pl011_close() [all …]
|
/SCP-firmware-master/module/stdio/include/ |
A D | mod_stdio.h | 102 FILE *stream; member
|
/SCP-firmware-master/tools/ |
A D | ci_cmake.py | 85 logs = container.attach(stdout=True, stderr=True, stream=True, logs=True)
|
/SCP-firmware-master/doc/ |
A D | cmake_readme.md | 298 default: Container is starting. Output will stream in below...
|