Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 22 of 22) sorted by relevance

/mcuboot-latest/boot/zephyr/
Dflash_map_legacy.c60 int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret) in flash_area_get_sectors() argument
63 uint32_t max_cnt = *cnt; in flash_area_get_sectors()
74 if (*cnt < 1) { in flash_area_get_sectors()
79 *cnt = 0; in flash_area_get_sectors()
80 while (rem_len > 0 && *cnt < max_cnt) { in flash_area_get_sectors()
87 ret[*cnt].fs_off = FLASH_AREA_IMAGE_SECTOR_SIZE * (*cnt); in flash_area_get_sectors()
88 ret[*cnt].fs_size = FLASH_AREA_IMAGE_SECTOR_SIZE; in flash_area_get_sectors()
89 *cnt = *cnt + 1; in flash_area_get_sectors()
93 if (*cnt >= max_cnt) { in flash_area_get_sectors()
Dserial_adapter.c78 console_write(const char *str, int cnt) in console_write() argument
82 for (i = 0; i < cnt; i++) { in console_write()
/mcuboot-latest/boot/mynewt/boot_uart/src/
Dboot_uart.c40 int cnt; member
75 bs_uart_tx.cnt = 0; in boot_uart_close()
103 boot_uart_read(char *str, int cnt, int *newline) in boot_uart_read() argument
111 for (i = 0; i < cnt; i++) { in boot_uart_read()
141 if (!bs_uart_tx.cnt) { in bs_tx_char()
145 bs_uart_tx.cnt--; in bs_tx_char()
158 boot_uart_write(const char *ptr, int cnt) in boot_uart_write() argument
165 boot_uart_write(const char *ptr, int cnt) in boot_uart_write() argument
171 bs_uart_tx.cnt = cnt; in boot_uart_write()
175 while (bs_uart_tx.cnt); in boot_uart_write()
/mcuboot-latest/boot/espressif/port/esp32s3/
Dserial_adapter.c78 void console_write(const char *str, int cnt) in console_write() argument
85 usb_serial_jtag_ll_write_txfifo((const uint8_t *)str, cnt); in console_write()
94 write_len = tx_len < cnt ? tx_len : cnt; in console_write()
96 cnt -= write_len; in console_write()
100 } while (cnt > 0); in console_write()
104 int console_read(char *str, int cnt, int *newline) in console_read() argument
118 } while (!(read_len == cnt || str[read_len - 1] == '\n')); in console_read()
135 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
/mcuboot-latest/boot/espressif/port/esp32c3/
Dserial_adapter.c75 void console_write(const char *str, int cnt) in console_write() argument
82 usb_serial_jtag_ll_write_txfifo((const uint8_t *)str, cnt); in console_write()
91 write_len = tx_len < cnt ? tx_len : cnt; in console_write()
93 cnt -= write_len; in console_write()
97 } while (cnt > 0); in console_write()
101 int console_read(char *str, int cnt, int *newline) in console_read() argument
114 } while (!(read_len == cnt || str[read_len - 1] == '\n')); in console_read()
131 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
/mcuboot-latest/boot/espressif/port/esp32c6/
Dserial_adapter.c75 void console_write(const char *str, int cnt) in console_write() argument
82 usb_serial_jtag_ll_write_txfifo((const uint8_t *)str, cnt); in console_write()
91 write_len = tx_len < cnt ? tx_len : cnt; in console_write()
93 cnt -= write_len; in console_write()
97 } while (cnt > 0); in console_write()
101 int console_read(char *str, int cnt, int *newline) in console_read() argument
114 } while (!(read_len == cnt || str[read_len - 1] == '\n')); in console_read()
131 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
/mcuboot-latest/boot/espressif/port/esp32h2/
Dserial_adapter.c75 void console_write(const char *str, int cnt) in console_write() argument
82 usb_serial_jtag_ll_write_txfifo((const uint8_t *)str, cnt); in console_write()
91 write_len = tx_len < cnt ? tx_len : cnt; in console_write()
93 cnt -= write_len; in console_write()
97 } while (cnt > 0); in console_write()
101 int console_read(char *str, int cnt, int *newline) in console_read() argument
114 } while (!(read_len == cnt || str[read_len - 1] == '\n')); in console_read()
131 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
/mcuboot-latest/boot/espressif/port/esp32c2/
Dserial_adapter.c70 void console_write(const char *str, int cnt) in console_write() argument
78 write_len = tx_len < cnt ? tx_len : cnt; in console_write()
80 cnt -= write_len; in console_write()
84 } while (cnt > 0); in console_write()
87 int console_read(char *str, int cnt, int *newline) in console_read() argument
101 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
/mcuboot-latest/boot/espressif/port/esp32s2/
Dserial_adapter.c73 void console_write(const char *str, int cnt) in console_write() argument
81 write_len = tx_len < cnt ? tx_len : cnt; in console_write()
83 cnt -= write_len; in console_write()
87 } while (cnt > 0); in console_write()
90 int console_read(char *str, int cnt, int *newline) in console_read() argument
104 if (read_len == cnt - 1|| str[read_len - 1] == '\n') { in console_read()
/mcuboot-latest/boot/mynewt/boot_uart/include/boot_uart/
Dboot_uart.h25 int boot_uart_read(char *str, int cnt, int *newline);
26 void boot_uart_write(const char *ptr, int cnt);
/mcuboot-latest/boot/boot_serial/include/boot_serial/
Dboot_serial.h36 int (*read)(char *str, int cnt, int *newline);
37 void (*write)(const char *ptr, int cnt);
/mcuboot-latest/boot/espressif/port/esp32/
Dserial_adapter.c68 void console_write(const char *str, int cnt) in console_write() argument
74 } while (tx_len < cnt); in console_write()
76 uart_ll_write_txfifo(serial_boot_uart_dev, (const uint8_t *)str, cnt); in console_write()
79 int console_read(char *str, int cnt, int *newline) in console_read() argument
92 if (read_len == cnt || str[read_len - 1] == '\n') { in console_read()
/mcuboot-latest/boot/espressif/include/serial_adapter/
Dserial_adapter.h13 void console_write(const char *str, int cnt);
/mcuboot-latest/boot/zephyr/include/serial_adapter/
Dserial_adapter.h24 console_write(const char *str, int cnt);
/mcuboot-latest/boot/mynewt/src/
Dmain.c63 static int boot_read(char *str, int cnt, int *newline);
70 boot_read(char *str, int cnt, int *newline) in boot_read() argument
91 return boot_uart_read(str, cnt, newline); in boot_read()
/mcuboot-latest/boot/cypress/cy_flash_pal/
Dcy_flash_map.c381 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *fa) in flash_area_to_sectors() argument
388 (void)cnt; in flash_area_to_sectors()
395 (void)cnt; in flash_area_to_sectors()
484 int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret) in flash_area_get_sectors() argument
527 assert(sectors_n <= *cnt); in flash_area_get_sectors()
537 *cnt = sectors_n; in flash_area_get_sectors()
/mcuboot-latest/boot/cypress/cy_flash_pal/include/flash_map_backend/
Dflash_map_backend.h172 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *ret);
179 int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret);
/mcuboot-latest/sim/mcuboot-sys/csupport/storage/
Dflash_map.h161 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *ret);
/mcuboot-latest/boot/bootutil/include/bootutil/
Dfault_injection_hardening.h280 #define FIH_LABEL(str, lin, cnt) __asm volatile ("FIH_LABEL_" str "_" #lin "_" #cnt "::" ::); argument
/mcuboot-latest/boot/espressif/include/flash_map_backend/
Dflash_map_backend.h93 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *fa);
/mcuboot-latest/sim/mcuboot-sys/csupport/
Drun.c370 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *ret) in flash_area_to_sectors() argument
388 if (slot->num_areas > (uint32_t)*cnt) { in flash_area_to_sectors()
393 *cnt = slot->num_areas; in flash_area_to_sectors()
/mcuboot-latest/boot/espressif/port/
Desp_mcuboot.c411 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *fa) in flash_area_to_sectors() argument