Searched refs:num_erase_regions (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/mtd/chips/
H A Dcfi_probe.c159 int num_erase_regions = cfi_read_query(map, base + (0x10 + 28)*ofs_factor); cfi_chip_setup() local
165 printk("Number of erase regions: %d\n", num_erase_regions); cfi_chip_setup()
167 if (!num_erase_regions) cfi_chip_setup()
170 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); cfi_chip_setup()
182 for (i=0; i<(sizeof(struct cfi_ident) + num_erase_regions * 4); i++) cfi_chip_setup()
H A Djedec_probe.c1940 int i,num_erase_regions; cfi_jedec_setup() local
1951 num_erase_regions = jedec_table[index].nr_regions; cfi_jedec_setup()
1953 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); cfi_jedec_setup()
1967 for (i=0; i<num_erase_regions; i++){ cfi_jedec_setup()

Completed in 128 milliseconds