Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 172) sorted by relevance

1234567

/Zephyr-latest/include/zephyr/sys/
Dcbprintf_internal.h215 #define Z_CBPRINTF_P_COUNT(fmt, ...) \ argument
216 ((sizeof(fmt) >= 2 && fmt[0] == '%' && fmt[1] == 'p') ? 1 : 0) + \
217 ((sizeof(fmt) >= 3 && fmt[0] != '%' && fmt[1] == '%' && fmt[2] == 'p') ? 1 : 0) + \
218 ((sizeof(fmt) >= 4 && fmt[1] != '%' && fmt[2] == '%' && fmt[3] == 'p') ? 1 : 0) + \
219 ((sizeof(fmt) >= 5 && fmt[2] != '%' && fmt[3] == '%' && fmt[4] == 'p') ? 1 : 0) + \
220 ((sizeof(fmt) >= 6 && fmt[3] != '%' && fmt[4] == '%' && fmt[5] == 'p') ? 1 : 0) + \
221 ((sizeof(fmt) >= 7 && fmt[4] != '%' && fmt[5] == '%' && fmt[6] == 'p') ? 1 : 0) + \
222 ((sizeof(fmt) >= 8 && fmt[5] != '%' && fmt[6] == '%' && fmt[7] == 'p') ? 1 : 0) + \
223 ((sizeof(fmt) >= 9 && fmt[6] != '%' && fmt[7] == '%' && fmt[8] == 'p') ? 1 : 0) + \
224 ((sizeof(fmt) >= 10 && fmt[7] != '%' && fmt[8] == '%' && fmt[9] == 'p') ? 1 : 0) + \
[all …]
Dprintk.h47 __printf_like(1, 2) void printk(const char *fmt, ...);
48 __printf_like(1, 0) void vprintk(const char *fmt, va_list ap);
51 static inline __printf_like(1, 2) void printk(const char *fmt, ...)
53 ARG_UNUSED(fmt);
56 static inline __printf_like(1, 0) void vprintk(const char *fmt, va_list ap)
58 ARG_UNUSED(fmt);
68 #define vsnprintk(str, size, fmt, ap) vsnprintf(str, size, fmt, ap) argument
73 const char *fmt, ...);
75 const char *fmt, va_list ap);
D__assert.h35 void __printf_like(1, 2) assert_print(const char *fmt, ...);
42 #define __ASSERT_PRINT(fmt, ...) assert_print(fmt, ##__VA_ARGS__) argument
44 #define __ASSERT_PRINT(fmt, ...) argument
48 #define __ASSERT_MSG_INFO(fmt, ...) argument
50 #define __ASSERT_MSG_INFO(fmt, ...) __ASSERT_PRINT("\t" fmt "\n", ##__VA_ARGS__) argument
120 #define __ASSERT(test, fmt, ...) \ argument
124 __ASSERT_MSG_INFO(fmt, ##__VA_ARGS__); \
130 #define __ASSERT_EVAL(expr1, expr2, test, fmt, ...) \ argument
133 __ASSERT(test, fmt, ##__VA_ARGS__); \
140 #define __ASSERT(test, fmt, ...) { } argument
[all …]
/Zephyr-latest/tests/drivers/video/api/src/
Dvideo_common.c31 struct video_format fmt = {0}; in ZTEST() local
35 fmt.pixelformat = VIDEO_PIX_FMT_YUYV; in ZTEST()
37 fmt.width = 100; in ZTEST()
38 fmt.height = 100; in ZTEST()
39 fmt.pitch = 100 * 2; in ZTEST()
40 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
44 fmt.width = 1000; in ZTEST()
45 fmt.height = 1000; in ZTEST()
46 fmt.pitch = 1000 * 2; in ZTEST()
47 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
[all …]
Dvideo_emul.c29 struct video_format fmt = {0}; in ZTEST() local
35 fmt.pixelformat = caps.format_caps[i].pixelformat; in ZTEST()
37 fmt.height = caps.format_caps[i].height_min; in ZTEST()
38 fmt.width = caps.format_caps[i].width_min; in ZTEST()
39 zexpect_ok(video_set_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
40 zexpect_ok(video_get_format(imager_dev, VIDEO_EP_OUT, &fmt)); in ZTEST()
41 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST()
42 zexpect_equal(fmt.width, caps.format_caps[i].width_min); in ZTEST()
43 zexpect_equal(fmt.height, caps.format_caps[i].height_min); in ZTEST()
45 fmt.height = caps.format_caps[i].height_max; in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/host/shell/
Dbt_shell_private.c17 static void wall_vfprintf(enum shell_vt100_color color, const char *fmt, va_list args) in wall_vfprintf() argument
28 shell_vfprintf(sh, color, fmt, args_copy); in wall_vfprintf()
46 const char *fmt, ...) in bt_shell_fprintf() argument
50 va_start(args, fmt); in bt_shell_fprintf()
51 wall_vfprintf(color, fmt, args); in bt_shell_fprintf()
55 void bt_shell_fprintf_info(const char *fmt, ...) in bt_shell_fprintf_info() argument
59 va_start(args, fmt); in bt_shell_fprintf_info()
60 wall_vfprintf(SHELL_INFO, fmt, args); in bt_shell_fprintf_info()
64 void bt_shell_fprintf_print(const char *fmt, ...) in bt_shell_fprintf_print() argument
68 va_start(args, fmt); in bt_shell_fprintf_print()
[all …]
Dbt_shell_private.h24 const char *fmt, ...);
36 __printf_like(1, 2) void bt_shell_fprintf_info(const char *fmt, ...);
37 __printf_like(1, 2) void bt_shell_fprintf_print(const char *fmt, ...);
38 __printf_like(1, 2) void bt_shell_fprintf_warn(const char *fmt, ...);
39 __printf_like(1, 2) void bt_shell_fprintf_error(const char *fmt, ...);
/Zephyr-latest/subsys/net/lib/shell/
Dnet_shell_private.h11 #define PR(fmt, ...) \ argument
14 shell_fprintf_normal(sh, fmt, ##__VA_ARGS__); \
16 printk(fmt, ##__VA_ARGS__); \
20 #define PR_SHELL(sh, fmt, ...) \ argument
23 shell_fprintf_normal(sh, fmt, ##__VA_ARGS__); \
25 printk(fmt, ##__VA_ARGS__); \
29 #define PR_ERROR(fmt, ...) \ argument
32 shell_fprintf_error(sh, fmt, ##__VA_ARGS__); \
34 printk(fmt, ##__VA_ARGS__); \
38 #define PR_INFO(fmt, ...) \ argument
[all …]
/Zephyr-latest/samples/tfm_integration/psa_crypto/src/
Dutil_sformat.c24 void sf_hex_tabulate_16(struct sf_hex_tbl_fmt *fmt, unsigned char *data, in sf_hex_tabulate_16() argument
37 ea = fmt->addr + len; in sf_hex_tabulate_16()
40 if (fmt->addr_label) { in sf_hex_tabulate_16()
46 printf("%08X ", fmt->addr - (fmt->addr % 16)); in sf_hex_tabulate_16()
50 cpos = fmt->addr % 16; in sf_hex_tabulate_16()
59 ca = fmt->addr; in sf_hex_tabulate_16()
69 if (fmt->ascii) { in sf_hex_tabulate_16()
81 ca - fmt->addr < 16 ? in sf_hex_tabulate_16()
90 } else if (ca < fmt->addr + 15) { in sf_hex_tabulate_16()
92 printf("%.*s", fmt->addr % 16, in sf_hex_tabulate_16()
[all …]
/Zephyr-latest/lib/os/
Dcbprintf_nano.c28 #define ALPHA(fmt) (((fmt) & 0x60) - '0' - 10 + 1) argument
76 int z_cbvprintf_impl(cbprintf_cb __out, void *ctx, const char *fmt, in z_cbvprintf_impl() argument
90 fmt--; in z_cbvprintf_impl()
93 while (*++fmt != '%') { in z_cbvprintf_impl()
94 if (*fmt == '\0') { in z_cbvprintf_impl()
97 OUTC(*fmt); in z_cbvprintf_impl()
107 for (fmt++ ; ; fmt++) { in z_cbvprintf_impl()
108 switch (*fmt) { in z_cbvprintf_impl()
142 precision = 10 * precision + *fmt - '0'; in z_cbvprintf_impl()
147 min_width = 10 * min_width + *fmt - '0'; in z_cbvprintf_impl()
[all …]
Dprintk.c101 void vprintk(const char *fmt, va_list ap) in vprintk() argument
104 z_log_vprintk(fmt, ap); in vprintk()
119 (void) vfprintf(&ctx.file, fmt, ap); in vprintk()
121 cbvprintf(buf_char_out, &ctx, fmt, ap); in vprintk()
134 (void) vfprintf(&console, fmt, ap); in vprintk()
136 cbvprintf(char_out, NULL, fmt, ap); in vprintk()
192 void printk(const char *fmt, ...) in printk() argument
196 va_start(ap, fmt); in printk()
198 vprintk(fmt, ap); in printk()
230 int snprintk(char *str, size_t size, const char *fmt, ...) in snprintk() argument
[all …]
/Zephyr-latest/subsys/testsuite/include/zephyr/
Dtc_util.h25 #define PRINT_DATA(fmt, ...) printk(fmt, ##__VA_ARGS__) argument
117 #define TC_ERROR(fmt, ...) \ argument
120 PRINT_DATA(fmt, ##__VA_ARGS__); \
124 static inline void print_nothing(const char *fmt, ...) in print_nothing() argument
126 ARG_UNUSED(fmt); in print_nothing()
131 #define TC_PRINT(fmt, ...) PRINT_DATA(fmt, ##__VA_ARGS__) argument
133 #define TC_PRINT(fmt, ...) print_nothing(fmt, ##__VA_ARGS__) argument
138 #define TC_SUMMARY_PRINT(fmt, ...) PRINT_DATA(fmt, ##__VA_ARGS__) argument
157 #define TC_END(result, fmt, ...) PRINT_DATA(fmt, ##__VA_ARGS__) argument
162 #define TC_END_PRINT(result, fmt, ...) PRINT_DATA(fmt, ##__VA_ARGS__); PRINT_LINE argument
[all …]
/Zephyr-latest/drivers/video/
Dvideo_emul_imager.c70 struct video_format fmt; member
229 *(int64_t *)value = (int64_t)data->fmt.width * data->fmt.pitch * data->mode->fps; in emul_imager_get_ctrl()
267 struct video_frmival_enum fie = {.format = &data->fmt, .discrete = *frmival}; in emul_imager_set_frmival()
325 static void emul_imager_fill_framebuffer(const struct device *const dev, struct video_format *fmt) in emul_imager_fill_framebuffer() argument
332 switch (fmt->pixelformat) { in emul_imager_fill_framebuffer()
334 for (size_t i = 0; i < fmt->width; i++) { in emul_imager_fill_framebuffer()
335 y = pattern_8bars_yuv[i * 8 / fmt->width][0]; in emul_imager_fill_framebuffer()
336 uv = pattern_8bars_yuv[i * 8 / fmt->width][1 + i % 2]; in emul_imager_fill_framebuffer()
341 for (size_t i = 0; i < fmt->width; i++) { in emul_imager_fill_framebuffer()
342 r = pattern_8bars_rgb[i * 8 / fmt->width][0] >> (8 - 5); in emul_imager_fill_framebuffer()
[all …]
Dvideo_emul_rx.c26 struct video_format fmt; member
85 struct video_format *fmt) in emul_rx_set_fmt() argument
97 ret = video_set_format(cfg->source_dev, VIDEO_EP_OUT, fmt); in emul_rx_set_fmt()
100 fmt->pixelformat, fmt->width, fmt->height); in emul_rx_set_fmt()
105 data->fmt = *fmt; in emul_rx_set_fmt()
110 struct video_format *fmt) in emul_rx_get_fmt() argument
118 *fmt = data->fmt; in emul_rx_get_fmt()
155 struct video_format *fmt = &data->fmt; in emul_rx_worker() local
158 LOG_DBG("Queueing a frame of %u bytes in format %x %ux%u", fmt->pitch * fmt->height, in emul_rx_worker()
159 fmt->pixelformat, fmt->width, fmt->height); in emul_rx_worker()
[all …]
Dov7670.c33 struct video_format fmt; member
352 struct video_format *fmt) in ov7670_set_fmt() argument
360 if (fmt->pixelformat != VIDEO_PIX_FMT_RGB565 && fmt->pixelformat != VIDEO_PIX_FMT_YUYV) { in ov7670_set_fmt()
365 if (!memcmp(&data->fmt, fmt, sizeof(data->fmt))) { in ov7670_set_fmt()
370 memcpy(&data->fmt, fmt, sizeof(data->fmt)); in ov7670_set_fmt()
374 if (fmts[i].width_min == fmt->width && fmts[i].height_min == fmt->height && in ov7670_set_fmt()
375 fmts[i].pixelformat == fmt->pixelformat) { in ov7670_set_fmt()
438 struct video_format *fmt) in ov7670_get_fmt() argument
442 if (fmt == NULL) { in ov7670_get_fmt()
445 memcpy(fmt, &data->fmt, sizeof(data->fmt)); in ov7670_get_fmt()
[all …]
Dvideo_sw_generator.c29 struct video_format fmt; member
61 struct video_format *fmt) in video_sw_generator_set_fmt() argument
71 if (fmt->pixelformat == fmts[i].pixelformat && fmt->width >= fmts[i].width_min && in video_sw_generator_set_fmt()
72 fmt->width <= fmts[i].width_max && fmt->height >= fmts[i].height_min && in video_sw_generator_set_fmt()
73 fmt->height <= fmts[i].height_max) { in video_sw_generator_set_fmt()
83 data->fmt = *fmt; in video_sw_generator_set_fmt()
89 struct video_format *fmt) in video_sw_generator_get_fmt() argument
97 *fmt = data->fmt; in video_sw_generator_get_fmt()
128 int bw = data->fmt.width / 8; in __fill_buffer_colorbar()
131 for (h = 0; h < data->fmt.height; h++) { in __fill_buffer_colorbar()
[all …]
Dmt9m114.c67 struct video_format fmt; member
392 struct video_format *fmt) in mt9m114_set_fmt() argument
399 if (fmt->pixelformat == fmts[i].pixelformat && fmt->width >= fmts[i].width_min && in mt9m114_set_fmt()
400 fmt->width <= fmts[i].width_max && fmt->height >= fmts[i].height_min && in mt9m114_set_fmt()
401 fmt->height <= fmts[i].height_max) { in mt9m114_set_fmt()
412 if (!memcmp(&drv_data->fmt, fmt, sizeof(drv_data->fmt))) { in mt9m114_set_fmt()
417 drv_data->fmt = *fmt; in mt9m114_set_fmt()
420 ret = mt9m114_set_output_format(dev, fmt->pixelformat); in mt9m114_set_fmt()
428 if (fmt->width == resolutionConfigs[i].width && in mt9m114_set_fmt()
429 fmt->height == resolutionConfigs[i].height) { in mt9m114_set_fmt()
[all …]
/Zephyr-latest/samples/drivers/video/capture_to_lvgl/src/
Dmain.c24 struct video_format fmt; in main() local
71 if (video_get_format(video_dev, VIDEO_EP_OUT, &fmt)) { in main()
77 fmt.width = CONFIG_VIDEO_WIDTH; in main()
78 fmt.height = CONFIG_VIDEO_HEIGHT; in main()
79 fmt.pitch = fmt.width * 2; in main()
80 fmt.pixelformat = VIDEO_PIX_FMT_RGB565; in main()
82 if (video_set_format(video_dev, VIDEO_EP_OUT, &fmt)) { in main()
87 LOG_INF("- Format: %c%c%c%c %ux%u %u", (char)fmt.pixelformat, (char)(fmt.pixelformat >> 8), in main()
88 (char)(fmt.pixelformat >> 16), (char)(fmt.pixelformat >> 24), fmt.width, fmt.height, in main()
89 fmt.pitch); in main()
[all …]
/Zephyr-latest/samples/drivers/video/capture/src/
Dmain.c70 const struct video_format fmt) in video_display_frame() argument
74 .width = fmt.width, in video_display_frame()
76 .height = vbuf->bytesused / fmt.pitch, in video_display_frame()
86 struct video_format fmt; in main() local
132 if (video_get_format(video_dev, VIDEO_EP_OUT, &fmt)) { in main()
138 fmt.height = CONFIG_VIDEO_FRAME_HEIGHT; in main()
142 fmt.width = CONFIG_VIDEO_FRAME_WIDTH; in main()
143 fmt.pitch = fmt.width * 2; in main()
147 fmt.pixelformat = in main()
152 LOG_INF("- Video format: %c%c%c%c %ux%u", (char)fmt.pixelformat, in main()
[all …]
/Zephyr-latest/subsys/net/lib/http/headers/
Dmlog.h14 #define LOG_INF(fmt, args...) printf("I: " fmt "\n", ##args) argument
15 #define LOG_ERR(fmt, args...) printf("E: " fmt "\n", ##args) argument
16 #define LOG_DBG(fmt, args...) printf("D: " fmt "\n", ##args) argument
/Zephyr-latest/include/zephyr/net/
Dnet_core.h52 #define NET_DBG(fmt, ...) LOG_DBG("(%s): " fmt, \ argument
56 #define NET_DBG(fmt, ...) LOG_DBG("(%p): " fmt, k_current_get(), \
59 #define NET_ERR(fmt, ...) LOG_ERR(fmt, ##__VA_ARGS__) argument
60 #define NET_WARN(fmt, ...) LOG_WRN(fmt, ##__VA_ARGS__) argument
61 #define NET_INFO(fmt, ...) LOG_INF(fmt, ##__VA_ARGS__) argument
/Zephyr-latest/subsys/bluetooth/common/
Dassert.h9 #define BT_ASSERT_PRINT_MSG(fmt, ...) __ASSERT_MSG_INFO(fmt, ##__VA_ARGS__) argument
12 #define BT_ASSERT_PRINT_MSG(fmt, ...) argument
30 #define BT_ASSERT_MSG(cond, fmt, ...) \ argument
34 BT_ASSERT_PRINT_MSG(fmt, ##__VA_ARGS__); \
/Zephyr-latest/subsys/net/ip/
Dtp_priv.h19 #define tp_dbg(fmt, args...) printk("%s: " fmt "\n", __func__, ## args) argument
20 #define tp_err(fmt, args...) do { \ argument
21 printk("%s: Error: " fmt "\n", __func__, ## args); \
25 #define tp_assert(cond, fmt, args...) do { \ argument
27 printk("%s: Assertion failed: %s, " fmt "\n", \
/Zephyr-latest/samples/drivers/video/tcpserversink/src/
Dmain.c43 struct video_format fmt; in main() local
92 if (video_get_format(video, VIDEO_EP_OUT, &fmt)) { in main()
97 printk("Video device detected, format: %c%c%c%c %ux%u\n", (char)fmt.pixelformat, in main()
98 (char)(fmt.pixelformat >> 8), (char)(fmt.pixelformat >> 16), in main()
99 (char)(fmt.pixelformat >> 24), fmt.width, fmt.height); in main()
108 buffers[i] = video_buffer_alloc(fmt.pitch * fmt.height, K_FOREVER); in main()
/Zephyr-latest/subsys/logging/
Dlog_minimal.c15 void z_log_minimal_printk(const char *fmt, ...) in z_log_minimal_printk() argument
19 va_start(ap, fmt); in z_log_minimal_printk()
20 vprintk(fmt, ap); in z_log_minimal_printk()
25 void z_log_minimal_vprintk(const char *fmt, va_list ap) in z_log_minimal_vprintk() argument
27 vprintk(fmt, ap); in z_log_minimal_vprintk()

1234567