Lines Matching defs:erase

202  * struct spi_nor_erase_type - Structure to describe a SPI NOR erase type
203 * @size: the size of the sector/block erased by the erase type.
204 * JEDEC JESD216B imposes erase sizes to be a power of 2.
208 * @opcode: the SPI command op code to erase the sector/block.
224 * The structure is used to describe a list of erase commands to be executed
225 * once we validate that the erase can be performed. The elements in the list
227 * @list: for inclusion into the list of erase commands.
228 * @count: how many times the same erase command should be
231 * @opcode: the SPI command op code to erase the sector/block.
241 * struct spi_nor_erase_region - Structure to describe a SPI NOR erase region
242 * @offset: the offset in the data array of erase region start.
244 * @erase_mask: bitmask to indicate all the supported erase commands
245 * inside this region. The erase types are sorted in
260 * struct spi_nor_erase_map - Structure to describe the SPI NOR erase map
261 * @regions: array of erase regions. The regions are consecutive in
264 * @uniform_region: a pre-allocated erase region for SPI NOR with a uniform
266 * @erase_type: an array of erase types shared by all the regions.
267 * The erase types are sorted in ascending order, with the
270 * @n_regions: number of erase regions.
311 * @erase: erase an OTP region.
319 int (*erase)(struct spi_nor *nor, loff_t addr);
355 * @die_erase_opcode: die erase opcode. Defaults to SPINOR_OP_CHIP_ERASE.
363 * @erase_map: the erase map parsed from the SFDP Sector Map Parameter
481 * SPI_NOR_NO_ERASE: no erase command needed.
665 void spi_nor_set_erase_type(struct spi_nor_erase_type *erase, u32 size,
667 void spi_nor_mask_erase_type(struct spi_nor_erase_type *erase);