Home
last modified time | relevance | path

Searched refs:ofs_factor (Results 1 – 4 of 4) sorted by relevance

/drivers/mtd/chips/
Dcfi_probe.c157 int ofs_factor = cfi->interleave*cfi->device_type; in cfi_chip_setup() local
159 int num_erase_regions = cfi_read_query(map, base + (0x10 + 28)*ofs_factor); in cfi_chip_setup()
185 ((unsigned char *)cfi->cfiq)[i] = cfi_read_query(map,base + (0x10 + i)*ofs_factor); in cfi_chip_setup()
229 cfi->id = cfi_read_query16(map, base + ofs_factor); in cfi_chip_setup()
233 cfi->id = cfi_read_query(map, base + 0xe * ofs_factor) << 8 | in cfi_chip_setup()
234 cfi_read_query(map, base + 0xf * ofs_factor); in cfi_chip_setup()
Dcfi_util.c109 int ofs_factor = cfi->interleave * cfi->device_type; in cfi_read_pri() local
133 cfi_read_query(map, base+((adr+i)*ofs_factor)); in cfi_read_pri()
Dcfi_cmdset_0020.c1137 int ofs_factor = cfi->interleave * cfi->device_type; in cfi_staa_lock() local
1153 printk("before lock: block status register is %x\n",cfi_read_query(map, adr+(2*ofs_factor))); in cfi_staa_lock()
1161 printk("after lock: block status register is %x\n",cfi_read_query(map, adr+(2*ofs_factor))); in cfi_staa_lock()
1283 int ofs_factor = cfi->interleave * cfi->device_type; in cfi_staa_unlock() local
1296 …e unlock %x: block status register is %x\n",temp_adr,cfi_read_query(map, temp_adr+(2*ofs_factor))); in cfi_staa_unlock()
1308 printk("after unlock: block status register is %x\n",cfi_read_query(map, adr+(2*ofs_factor))); in cfi_staa_unlock()
Dcfi_cmdset_0001.c2015 int status, ofs_factor = cfi->interleave * cfi->device_type; in do_getlockstatus_oneblock() local
2018 xip_disable(map, chip, adr+(2*ofs_factor)); in do_getlockstatus_oneblock()
2019 map_write(map, CMD(0x90), adr+(2*ofs_factor)); in do_getlockstatus_oneblock()
2021 status = cfi_read_query(map, adr+(2*ofs_factor)); in do_getlockstatus_oneblock()