Lines Matching refs:sector_len

76     uint32_t sector_len[PFLASH_MAX_ERASE_REGIONS];  member
284 uint64_t region_size = (uint64_t)pfl->nb_blocs[i] * pfl->sector_len[i]; in pflash_sector_info()
287 .len = pfl->sector_len[i], in pflash_sector_info()
288 .num = sector_num + (offset - addr) / pfl->sector_len[i], in pflash_sector_info()
415 uint64_t sector_len = sector_info.len; in pflash_sector_erase() local
416 offset &= ~(sector_len - 1); in pflash_sector_erase()
418 pfl->width * 2, offset + sector_len - 1); in pflash_sector_erase()
421 memset(p + offset, 0xff, sector_len); in pflash_sector_erase()
422 pflash_update(pfl, offset, sector_len); in pflash_sector_erase()
777 uint32_t sector_len_per_device = pfl->sector_len[i]; in pflash_cfi02_fill_cfi_table()
821 if (pfl->uniform_sector_len == 0 && pfl->sector_len[0] == 0) { in pflash_cfi02_realize()
842 uint64_t sector_len_per_device = pfl->sector_len[nb_regions]; in pflash_cfi02_realize()
864 pfl->chip_len += (uint64_t)pfl->sector_len[nb_regions] * in pflash_cfi02_realize()
873 pfl->sector_len[0] = pfl->uniform_sector_len; in pflash_cfi02_realize()
945 DEFINE_PROP_UINT32("sector-length0", PFlashCFI02, sector_len[0], 0),
947 DEFINE_PROP_UINT32("sector-length1", PFlashCFI02, sector_len[1], 0),
949 DEFINE_PROP_UINT32("sector-length2", PFlashCFI02, sector_len[2], 0),
951 DEFINE_PROP_UINT32("sector-length3", PFlashCFI02, sector_len[3], 0),
1001 uint32_t sector_len, in type_init()
1014 assert(QEMU_IS_ALIGNED(size, sector_len)); in type_init()
1015 qdev_prop_set_uint32(dev, "num-blocks", size / sector_len); in type_init()
1016 qdev_prop_set_uint32(dev, "sector-length", sector_len); in type_init()