Home
last modified time | relevance | path

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

/mcuboot-2.7.6/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.c64 console_write(const char *str, int cnt) in console_write() argument
68 for (i = 0; i < cnt; i++) { in console_write()
/mcuboot-2.7.6/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-2.7.6/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-2.7.6/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-2.7.6/boot/zephyr/include/serial_adapter/
Dserial_adapter.h24 console_write(const char *str, int cnt);
/mcuboot-2.7.6/boot/cypress/cy_flash_pal/include/flash_map_backend/
Dflash_map_backend.h142 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *ret);
151 int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret);
/mcuboot-2.7.6/boot/mynewt/src/
Dmain.c59 static int boot_read(char *str, int cnt, int *newline);
66 boot_read(char *str, int cnt, int *newline) in boot_read() argument
87 return boot_uart_read(str, cnt, newline); in boot_read()
/mcuboot-2.7.6/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()
489 int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret) in flash_area_get_sectors() argument
532 assert(sectors_n <= *cnt); in flash_area_get_sectors()
542 *cnt = sectors_n; in flash_area_get_sectors()
/mcuboot-2.7.6/sim/mcuboot-sys/csupport/storage/
Dflash_map.h144 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *ret);
/mcuboot-2.7.6/boot/bootutil/include/bootutil/
Dfault_injection_hardening.h288 #define FIH_LABEL(str, lin, cnt) __asm volatile ("FIH_LABEL_" str "_" #lin "_" #cnt "::" ::); argument
/mcuboot-2.7.6/sim/mcuboot-sys/csupport/
Drun.c349 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *ret) in flash_area_to_sectors() argument
367 if (slot->num_areas > (uint32_t)*cnt) { in flash_area_to_sectors()
372 *cnt = slot->num_areas; in flash_area_to_sectors()