Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/mtd/spi-nor/
Dsfdp.c362 struct spi_nor_erase_type *erase_type = map->erase_type; in spi_nor_sort_erase_mask() local
371 if (erase_type[i].size && erase_mask & BIT(erase_type[i].idx)) in spi_nor_sort_erase_mask()
437 struct spi_nor_erase_type *erase_type = map->erase_type; in spi_nor_parse_bfpt() local
537 spi_nor_set_erase_settings_from_bfpt(&erase_type[i], erasesize, in spi_nor_parse_bfpt()
545 sort(erase_type, SNOR_ERASE_TYPE_MAX, sizeof(erase_type[0]), in spi_nor_parse_bfpt()
812 const u8 erase_type) in spi_nor_region_check_overlay() argument
817 if (!(erase[i].size && erase_type & BIT(erase[i].idx))) in spi_nor_region_check_overlay()
837 struct spi_nor_erase_type *erase = map->erase_type; in spi_nor_init_non_uniform_erase_map()
843 u8 erase_type, regions_erase_type; in spi_nor_init_non_uniform_erase_map() local
865 erase_type = SMPT_MAP_REGION_ERASE_TYPE(smpt[j]); in spi_nor_init_non_uniform_erase_map()
[all …]
Dissi.c39 if (map->erase_type[i].size == 4096) in pm25lv_nor_late_init()
40 map->erase_type[i].opcode = SPINOR_OP_BE_4K_PMC; in pm25lv_nor_late_init()
Dspansion.c606 struct spi_nor_erase_type *erase_type = params->erase_map.erase_type; in s25hx_t_post_sfdp_fixup() local
624 switch (erase_type[i].opcode) { in s25hx_t_post_sfdp_fixup()
626 erase_type[i].opcode = SPINOR_OP_SE_4B; in s25hx_t_post_sfdp_fixup()
629 erase_type[i].opcode = SPINOR_OP_BE_4K_4B; in s25hx_t_post_sfdp_fixup()
Dcore.c1176 erase = &map->erase_type[i]; in spi_nor_set_4byte_opcodes()
1545 erase = &map->erase_type[i]; in spi_nor_find_best_erase_type()
2482 tested_erase = &map->erase_type[i]; in spi_nor_select_uniform_erase()
2511 map->uniform_region.erase_mask = BIT(erase - map->erase_type); in spi_nor_select_uniform_erase()
2544 if (map->erase_type[i].size) { in spi_nor_select_erase()
2545 erase = &map->erase_type[i]; in spi_nor_select_erase()
2739 spi_nor_set_erase_type(&map->erase_type[i], 4096u, in spi_nor_no_sfdp_init_params()
2744 spi_nor_set_erase_type(&map->erase_type[i], in spi_nor_no_sfdp_init_params()
3331 const struct spi_nor_erase_type *erase_type) in spi_nor_get_region_erasesize() argument
3340 return erase_type[i].size; in spi_nor_get_region_erasesize()
[all …]
Ddebugfs.c130 struct spi_nor_erase_type *et = &erase_map->erase_type[i]; in spi_nor_params_show()
Dcore.h275 struct spi_nor_erase_type erase_type[SNOR_ERASE_TYPE_MAX]; member