Lines Matching full:flash
45 /* Open Flash Device */ in init_flash_dev()
55 /* Read the Flash Info */ in init_flash_dev()
70 * context->flash_size, and not the size of the flash device. in init_flash_dev()
72 * However, the test cases specify the flash size via special in init_flash_dev()
73 * test APIs (controlling flash behaviour) which don't have in init_flash_dev()
83 …MSG_ERR("Flash size MUST be supplied on the commandline. However, continuing by assuming flash is … in init_flash_dev()
93 MSG_DBG("Flash erase size: 0x%.8x\n", context->mtd_info.erasesize); in init_flash_dev()
106 /* Flash Functions */
109 * flash_is_erased() - Check if an offset into flash is erased
111 * @offset: The flash offset to check (bytes)
123 * set_flash_bytemap() - Set the flash erased bytemap
125 * @offset: The flash offset to set (bytes)
129 * The flash bytemap only tracks the erased status at the erase block level so
141 MSG_DBG("Set flash bytemap @ 0x%.8x for 0x%.8x to %s\n", in set_flash_bytemap()
152 * erase_flash() - Erase the flash
154 * @offset: The flash offset to erase (bytes)
165 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", offset, count); in erase_flash()
168 * We have an erased_bytemap for the flash so we want to avoid erasing in erase_flash()
182 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", in erase_flash()
187 MSG_ERR("Couldn't erase flash at 0x%.8x\n", in erase_flash()
203 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", in erase_flash()
207 MSG_ERR("Couldn't erase flash at 0x%.8x\n", in erase_flash()
222 * copy_flash() - Copy data from the flash device into a provided buffer
224 * @offset: The flash offset to copy from (bytes)
237 MSG_DBG("Copy flash to %p for size 0x%.8x from offset 0x%.8x\n", in copy_flash()
240 MSG_ERR("Couldn't seek flash at pos: %u %s\n", offset, in copy_flash()
262 * write_flash() - Write the flash from a provided buffer
264 * @offset: The flash offset to write to (bytes)
276 MSG_DBG("Write flash @ 0x%.8x for 0x%.8x from %p\n", offset, count, buf); in write_flash()
279 MSG_ERR("Couldn't seek flash at pos: %u %s\n", offset, in write_flash()
287 MSG_ERR("Couldn't write to flash, write lost: %s\n", in write_flash()