Searched refs:avail (Results 1 – 1 of 1) sorted by relevance
333 size_t avail = ctx->partition->erase_size - ctx->consumed; in mtd_read_data() local334 size_t copy = len - read < avail ? len - read : avail; in mtd_read_data()484 size_t avail = ctx->partition->erase_size - ctx->stored; in mtd_write_data() local485 size_t copy = len - wrote < avail ? len - wrote : avail; in mtd_write_data()