Home
last modified time | relevance | path

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

/samples/tfm_integration/psa_crypto/src/
A Dutil_sformat.c37 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()
95 16 - fmt->addr % 16, '.'); in sf_hex_tabulate_16()
[all …]
A Dutil_sformat.h38 void sf_hex_tabulate_16(struct sf_hex_tbl_fmt *fmt, unsigned char *data,
A Dpsa_attestation.c124 struct sf_hex_tbl_fmt fmt = { in att_test() local
140 sf_hex_tabulate_16(&fmt, iat_buf, (size_t)iat_sz); in att_test()
A Dpsa_crypto.c861 struct sf_hex_tbl_fmt fmt = { in crp_test_rng() local
870 sf_hex_tabulate_16(&fmt, outbuf, 256); in crp_test_rng()
/samples/drivers/video/capture_to_lvgl/src/
A Dmain.c31 struct video_format fmt; in main() local
75 fmt.type = type; in main()
97 fmt.width = CONFIG_VIDEO_WIDTH; in main()
98 fmt.height = CONFIG_VIDEO_HEIGHT; in main()
112 if (err == 0 && (sel.rect.width != fmt.width || sel.rect.height != fmt.height)) { in main()
116 sel.rect.width = fmt.width; in main()
117 sel.rect.height = fmt.height; in main()
130 LOG_INF("- Format: %c%c%c%c %ux%u %u", (char)fmt.pixelformat, (char)(fmt.pixelformat >> 8), in main()
131 (char)(fmt.pixelformat >> 16), (char)(fmt.pixelformat >> 24), fmt.width, fmt.height, in main()
132 fmt.pitch); in main()
[all …]
/samples/subsys/logging/logger/src/
A Dext_log_system_adapter.c25 static void log_handler(enum ext_log_level level, const char *fmt, ...) in log_handler() argument
29 va_start(ap, fmt); in log_handler()
30 log_generic(log_level_lut[level], fmt, ap); in log_handler()
/samples/drivers/video/capture/src/
A Dmain.c83 .width = fmt.width, in video_display_frame()
85 .height = vbuf->bytesused / fmt.pitch, in video_display_frame()
96 struct video_format fmt; in main() local
145 fmt.type = type; in main()
172 fmt.width = CONFIG_VIDEO_FRAME_WIDTH; in main()
186 if (err == 0 && (sel.rect.width != fmt.width || sel.rect.height != fmt.height)) { in main()
190 sel.rect.width = fmt.width; in main()
191 sel.rect.height = fmt.height; in main()
205 VIDEO_FOURCC_TO_STR(fmt.pixelformat), fmt.width, fmt.height); in main()
219 fie.format = &fmt; in main()
[all …]
A Dcheck_test_pattern.h115 static inline bool is_colorbar_ok(const uint8_t *const buf, const struct video_format fmt) in is_colorbar_ok() argument
118 int bw = fmt.width / BARS_NUM; in is_colorbar_ok()
121 for (int h = 0; h < fmt.height; h++) { in is_colorbar_ok()
123 if (fmt.pixelformat == VIDEO_PIX_FMT_XRGB32) { in is_colorbar_ok()
125 (uint32_t *)&buf[4 * (h * fmt.width + bw / 2 + i * bw)]; in is_colorbar_ok()
130 } else if (fmt.pixelformat == VIDEO_PIX_FMT_RGB565) { in is_colorbar_ok()
132 (uint16_t *)&buf[2 * (h * fmt.width + bw / 2 + i * bw)]; in is_colorbar_ok()
138 printk("Format %d is not supported", fmt.pixelformat); in is_colorbar_ok()
145 average_lab(&colorbars[i], PIXELS_NUM * fmt.height); in is_colorbar_ok()
/samples/subsys/usb/uvc/src/
A Dmain.c27 struct video_format fmt = {0}; in main() local
64 fmt.type = VIDEO_BUF_TYPE_INPUT; in main()
66 ret = video_get_format(uvc_dev, &fmt); in main()
79 VIDEO_FOURCC_TO_STR(fmt.pixelformat), fmt.width, fmt.height, in main()
80 CONFIG_VIDEO_BUFFER_POOL_NUM_MAX, fmt.pitch * fmt.height); in main()
84 bsize = fmt.pitch * fmt.height; in main()
86 bsize = fmt.pitch * caps.min_line_count; in main()
/samples/drivers/video/tcpserversink/src/
A Dmain.c40 struct video_format fmt; in main() local
84 fmt.type = type; in main()
85 if (video_get_format(video_dev, &fmt)) { in main()
91 VIDEO_FOURCC_TO_STR(fmt.pixelformat), fmt.width, fmt.height); in main()
100 buffers[i] = video_buffer_alloc(fmt.pitch * fmt.height, K_FOREVER); in main()
/samples/subsys/llext/shell_loader/
A Dhello_world.c11 extern void printk(const char *fmt, ...);
/samples/net/sockets/tcp/src/
A Dmain.c20 #define perror(fmt, args...) \ argument
22 printf("Error: " fmt "(): %s\n" ## args, strerror(errno)); \
/samples/arch/mpu/mpu_test/src/
A Dmain.c15 #define PR_SHELL(sh, fmt, ...) \ argument
16 shell_fprintf(sh, SHELL_NORMAL, fmt, ##__VA_ARGS__)
17 #define PR_ERROR(sh, fmt, ...) \ argument
18 shell_fprintf(sh, SHELL_ERROR, fmt, ##__VA_ARGS__)
/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/
A Dmain.c98 static void print_phil_state(int id, const char *fmt, int32_t delay) in print_phil_state() argument
113 p += snprintk(state + p, STATE_LEN - p, fmt, in print_phil_state()
116 p += snprintk(state + p, STATE_LEN - p, fmt, ""); in print_phil_state()
/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/
A Dmain.c128 static void print_phil_state(int id, const char *fmt, int32_t delay) in print_phil_state() argument
140 printk(fmt, delay < 1000 ? " " : "", delay); in print_phil_state()
142 printk(fmt, ""); in print_phil_state()
/samples/philosophers/src/
A Dmain.c100 static void print_phil_state(int id, const char *fmt, int32_t delay) in print_phil_state() argument
112 printk(fmt, delay < 1000 ? " " : "", delay); in print_phil_state()
114 printk(fmt, ""); in print_phil_state()
/samples/posix/philosophers/src/
A Dmain.c86 static void print_phil_state(int id, const char *fmt, int32_t delay) in print_phil_state() argument
107 printk(fmt, delay < 1000 ? " " : "", delay); in print_phil_state()
109 printk(fmt, ""); in print_phil_state()

Completed in 70 milliseconds