Searched refs:num_erase_regions (Results 1 – 2 of 2) sorted by relevance
199 int num_erase_regions = cfi_read_query(map, base + (0x10 + 28)*ofs_factor); in cfi_chip_setup() local205 printk("Number of erase regions: %d\n", num_erase_regions); in cfi_chip_setup()207 if (!num_erase_regions) in cfi_chip_setup()210 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); in cfi_chip_setup()222 for (i=0; i<(sizeof(struct cfi_ident) + num_erase_regions * 4); i++) in cfi_chip_setup()
1974 int i,num_erase_regions; in cfi_jedec_setup() local1985 num_erase_regions = jedec_table[index].nr_regions; in cfi_jedec_setup()1987 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); in cfi_jedec_setup()2001 for (i=0; i<num_erase_regions; i++){ in cfi_jedec_setup()