Lines Matching full:nor

86  * struct spi_nor_erase_type - Structure to describe a SPI NOR erase type
125 * struct spi_nor_erase_region - Structure to describe a SPI NOR erase region
129 * the last in the SPI NOR flash memory and to indicate
150 * struct spi_nor_erase_map - Structure to describe the SPI NOR erase map
154 * @uniform_region: a pre-allocated erase region for SPI NOR with a uniform
162 * uniform and non-uniform SPI NOR flash memories if they
174 * struct spi_nor_locking_ops - SPI NOR locking methods
175 * @lock: lock a region of the SPI NOR.
176 * @unlock: unlock a region of the SPI NOR.
177 * @is_locked: check if a region of the SPI NOR is completely locked
180 int (*lock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
181 int (*unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len);
182 int (*is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len);
186 * struct spi_nor_flash_parameter - SPI NOR flash parameters and settings.
192 * @page_size: the page size of the SPI NOR flash memory.
201 * @quad_enable: enables SPI NOR quad mode.
202 * @set_4byte_addr_mode: puts the SPI NOR in 4 byte addressing mode.
206 * @setup: configures the SPI NOR memory. Useful for SPI NOR
207 * flashes that have peculiarities to the SPI NOR standard
210 * @locking_ops: SPI NOR locking methods.
222 int (*quad_enable)(struct spi_nor *nor);
223 int (*set_4byte_addr_mode)(struct spi_nor *nor, bool enable);
224 u32 (*convert_addr)(struct spi_nor *nor, u32 addr);
225 int (*setup)(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps);
231 * struct spi_nor_fixups - SPI NOR fixup hooks
242 * Those hooks can be used to tweak the SPI NOR configuration when the SFDP
246 void (*default_init)(struct spi_nor *nor);
247 int (*post_bfpt)(struct spi_nor *nor,
251 void (*post_sfdp)(struct spi_nor *nor);
370 * struct spi_nor_manufacturer - SPI NOR manufacturer object
402 int spi_nor_write_enable(struct spi_nor *nor);
403 int spi_nor_write_disable(struct spi_nor *nor);
404 int spi_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable);
405 int spi_nor_write_ear(struct spi_nor *nor, u8 ear);
406 int spi_nor_wait_till_ready(struct spi_nor *nor);
407 int spi_nor_lock_and_prep(struct spi_nor *nor);
408 void spi_nor_unlock_and_unprep(struct spi_nor *nor);
409 int spi_nor_sr1_bit6_quad_enable(struct spi_nor *nor);
410 int spi_nor_sr2_bit1_quad_enable(struct spi_nor *nor);
411 int spi_nor_sr2_bit7_quad_enable(struct spi_nor *nor);
413 int spi_nor_xread_sr(struct spi_nor *nor, u8 *sr);
414 ssize_t spi_nor_read_data(struct spi_nor *nor, loff_t from, size_t len,
416 ssize_t spi_nor_write_data(struct spi_nor *nor, loff_t to, size_t len,
431 int spi_nor_post_bfpt_fixups(struct spi_nor *nor,