/samples/tfm_integration/psa_crypto/src/ |
A D | util_sformat.c | 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() 95 16 - fmt->addr % 16, '.'); in sf_hex_tabulate_16() [all …]
|
A D | util_sformat.h | 38 void sf_hex_tabulate_16(struct sf_hex_tbl_fmt *fmt, unsigned char *data,
|
A D | psa_attestation.c | 124 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 D | psa_crypto.c | 861 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 D | main.c | 31 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 D | ext_log_system_adapter.c | 25 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 D | main.c | 83 .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 D | check_test_pattern.h | 115 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 D | main.c | 27 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 D | main.c | 40 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 D | hello_world.c | 11 extern void printk(const char *fmt, ...);
|
/samples/net/sockets/tcp/src/ |
A D | main.c | 20 #define perror(fmt, args...) \ argument 22 printf("Error: " fmt "(): %s\n" ## args, strerror(errno)); \
|
/samples/arch/mpu/mpu_test/src/ |
A D | main.c | 15 #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 D | main.c | 98 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 D | main.c | 128 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 D | main.c | 100 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 D | main.c | 86 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()
|