Lines Matching refs:sh_fprintf
13 const struct shell_fprintf *sh_fprintf; in out_func() local
16 sh_fprintf = (const struct shell_fprintf *)ctx; in out_func()
17 sh = (const struct shell *)sh_fprintf->user_ctx; in out_func()
23 sh_fprintf->buffer[sh_fprintf->ctrl_blk->buffer_cnt] = (uint8_t)c; in out_func()
24 sh_fprintf->ctrl_blk->buffer_cnt++; in out_func()
26 if (sh_fprintf->ctrl_blk->buffer_cnt == sh_fprintf->buffer_size) { in out_func()
27 z_shell_fprintf_buffer_flush(sh_fprintf); in out_func()
33 void z_shell_fprintf_fmt(const struct shell_fprintf *sh_fprintf, in z_shell_fprintf_fmt() argument
36 (void)cbvprintf(out_func, (void *)sh_fprintf, fmt, args); in z_shell_fprintf_fmt()
38 if (sh_fprintf->ctrl_blk->autoflush) { in z_shell_fprintf_fmt()
39 z_shell_fprintf_buffer_flush(sh_fprintf); in z_shell_fprintf_fmt()
44 void z_shell_fprintf_buffer_flush(const struct shell_fprintf *sh_fprintf) in z_shell_fprintf_buffer_flush() argument
46 sh_fprintf->fwrite(sh_fprintf->user_ctx, sh_fprintf->buffer, in z_shell_fprintf_buffer_flush()
47 sh_fprintf->ctrl_blk->buffer_cnt); in z_shell_fprintf_buffer_flush()
48 sh_fprintf->ctrl_blk->buffer_cnt = 0; in z_shell_fprintf_buffer_flush()