Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/platform/stm32/
Dbl.c182 uint32_t i, code_length; in _blEraseSectors() local
185 blGetFlashEraseCode(&code_src, &code_length); in _blEraseSectors()
187 if (code_length < BL_MAX_FLASH_CODE) { in _blEraseSectors()
188 code = (uint16_t *)(((uint32_t)alloca(code_length + 1) + 1) & ~0x1); in _blEraseSectors()
191 for (i = 0; i < code_length / sizeof(uint16_t); i++) in _blEraseSectors()
287 uint32_t i, code_length; in blWriteBytes() local
290 blGetFlashWriteCode(&code_src, &code_length); in blWriteBytes()
292 if (code_length < BL_MAX_FLASH_CODE) { in blWriteBytes()
293 code = (uint16_t *)(((uint32_t)alloca(code_length+1) + 1) & ~0x1); in blWriteBytes()
296 for (i = 0; i < code_length / sizeof(uint16_t); i++) in blWriteBytes()