Lines Matching refs:erase_mask
360 static u8 spi_nor_sort_erase_mask(struct spi_nor_erase_map *map, u8 erase_mask) in spi_nor_sort_erase_mask() argument
366 if (!erase_mask) in spi_nor_sort_erase_mask()
371 if (erase_type[i].size && erase_mask & BIT(erase_type[i].idx)) in spi_nor_sort_erase_mask()
397 spi_nor_sort_erase_mask(map, region[i].erase_mask); in spi_nor_regions_sort_erase_types()
400 region[i].erase_mask = sorted_erase_mask; in spi_nor_regions_sort_erase_types()
444 u8 erase_mask; in spi_nor_parse_bfpt() local
520 erase_mask = 0; in spi_nor_parse_bfpt()
536 erase_mask |= BIT(i); in spi_nor_parse_bfpt()
540 spi_nor_init_uniform_erase_map(map, erase_mask, params->size); in spi_nor_parse_bfpt()
866 region[i].erase_mask = erase_type; in spi_nor_init_non_uniform_erase_map()
885 save_uniform_erase_type = map->uniform_region.erase_mask; in spi_nor_init_non_uniform_erase_map()
886 map->uniform_region.erase_mask = in spi_nor_init_non_uniform_erase_map()
895 map->uniform_region.erase_mask = save_uniform_erase_type; in spi_nor_init_non_uniform_erase_map()
1003 u32 addr, discard_hwcaps, read_hwcaps, pp_hwcaps, erase_mask; in spi_nor_parse_4bait() local
1064 erase_mask = 0; in spi_nor_parse_4bait()
1069 erase_mask |= BIT(i); in spi_nor_parse_4bait()
1073 erase_mask = spi_nor_sort_erase_mask(map, erase_mask); in spi_nor_parse_4bait()
1080 if (!read_hwcaps || !pp_hwcaps || !erase_mask) in spi_nor_parse_4bait()
1118 if (erase_mask & BIT(i)) in spi_nor_parse_4bait()