• Home
  • Raw
  • Download

Lines Matching refs:adr

97 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
98 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
99 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
391 read_pri_intelext(struct map_info *map, __u16 adr) in read_pri_intelext() argument
399 extp = (struct cfi_pri_intelext *)cfi_read_pri(map, adr, extp_size, "Intel/Sharp"); in read_pri_intelext()
514 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001() local
517 extp = read_pri_intelext(map, adr); in cfi_cmdset_0001()
806 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode) in chip_ready() argument
822 status = map_read(map, adr); in chip_ready()
851 if ((adr & chip->in_progress_block_mask) == in chip_ready()
880 put_chip(map, chip, adr); in chip_ready()
923 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) in get_chip() argument
1012 ret = chip_ready(map, chip, adr, mode); in get_chip()
1019 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr) in put_chip() argument
1104 unsigned long adr) in xip_disable() argument
1107 (void) map_read(map, adr); /* ensure mmu mapping is up to date */ in xip_disable()
1112 unsigned long adr) in xip_enable() argument
1116 map_write(map, CMD(0xff), adr); in xip_enable()
1119 (void) map_read(map, adr); in xip_enable()
1139 unsigned long adr, unsigned int chip_op_time_max) in xip_wait_for_operation() argument
1170 map_write(map, CMD(0xb0), adr); in xip_wait_for_operation()
1171 map_write(map, CMD(0x70), adr); in xip_wait_for_operation()
1183 status = map_read(map, adr); in xip_wait_for_operation()
1200 map_write(map, CMD(0xff), adr); in xip_wait_for_operation()
1201 (void) map_read(map, adr); in xip_wait_for_operation()
1228 map_write(map, CMD(0xd0), adr); in xip_wait_for_operation()
1229 map_write(map, CMD(0x70), adr); in xip_wait_for_operation()
1240 status = map_read(map, adr); in xip_wait_for_operation()
1263 #define xip_disable(map, chip, adr) argument
1264 #define xip_enable(map, chip, adr) argument
1348 #define WAIT_TIMEOUT(map, chip, adr, udelay, udelay_max) \ argument
1349 INVAL_CACHE_AND_WAIT(map, chip, adr, 0, 0, udelay, udelay_max);
1352 static int do_point_onechip (struct map_info *map, struct flchip *chip, loff_t adr, size_t len) in do_point_onechip() argument
1358 adr += chip->start; in do_point_onechip()
1361 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_point_onechip()
1479 static inline int do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len… in do_read_onechip() argument
1485 adr += chip->start; in do_read_onechip()
1488 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
1503 map_copy_from(map, buf, adr, len); in do_read_onechip()
1549 unsigned long adr, map_word datum, int mode) in do_write_oneword() argument
1555 adr += chip->start; in do_write_oneword()
1569 ret = get_chip(map, chip, adr, mode); in do_write_oneword()
1575 XIP_INVAL_CACHED_RANGE(map, adr, map_bankwidth(map)); in do_write_oneword()
1577 xip_disable(map, chip, adr); in do_write_oneword()
1578 map_write(map, write_cmd, adr); in do_write_oneword()
1579 map_write(map, datum, adr); in do_write_oneword()
1582 ret = INVAL_CACHE_AND_WAIT(map, chip, adr, in do_write_oneword()
1583 adr, map_bankwidth(map), in do_write_oneword()
1587 xip_enable(map, chip, adr); in do_write_oneword()
1593 status = map_read(map, adr); in do_write_oneword()
1598 map_write(map, CMD(0x50), adr); in do_write_oneword()
1599 map_write(map, CMD(0x70), adr); in do_write_oneword()
1600 xip_enable(map, chip, adr); in do_write_oneword()
1615 xip_enable(map, chip, adr); in do_write_oneword()
1617 put_chip(map, chip, adr); in do_write_oneword()
1703 unsigned long adr, const struct kvec **pvec, in do_write_buffer() argument
1716 adr += chip->start; in do_write_buffer()
1717 initial_adr = adr; in do_write_buffer()
1718 cmd_adr = adr & ~(wbufsize-1); in do_write_buffer()
1724 cmd_adr = adr; in do_write_buffer()
1775 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer()
1781 adr -= word_gap; in do_write_buffer()
1808 map_write(map, datum, adr); in do_write_buffer()
1809 adr += map_bankwidth(map); in do_write_buffer()
1932 unsigned long adr, int len, void *thunk) in do_erase_oneblock() argument
1939 adr += chip->start; in do_erase_oneblock()
1943 ret = get_chip(map, chip, adr, FL_ERASING); in do_erase_oneblock()
1949 XIP_INVAL_CACHED_RANGE(map, adr, len); in do_erase_oneblock()
1951 xip_disable(map, chip, adr); in do_erase_oneblock()
1954 map_write(map, CMD(0x50), adr); in do_erase_oneblock()
1957 map_write(map, CMD(0x20), adr); in do_erase_oneblock()
1958 map_write(map, CMD(0xD0), adr); in do_erase_oneblock()
1961 chip->in_progress_block_addr = adr; in do_erase_oneblock()
1964 ret = INVAL_CACHE_AND_WAIT(map, chip, adr, in do_erase_oneblock()
1965 adr, len, in do_erase_oneblock()
1969 map_write(map, CMD(0x70), adr); in do_erase_oneblock()
1971 xip_enable(map, chip, adr); in do_erase_oneblock()
1977 map_write(map, CMD(0x70), adr); in do_erase_oneblock()
1979 status = map_read(map, adr); in do_erase_oneblock()
1986 map_write(map, CMD(0x50), adr); in do_erase_oneblock()
1987 map_write(map, CMD(0x70), adr); in do_erase_oneblock()
1988 xip_enable(map, chip, adr); in do_erase_oneblock()
2001 printk(KERN_DEBUG "block erase failed at 0x%08lx: status 0x%lx. Retrying...\n", adr, chipstatus); in do_erase_oneblock()
2003 put_chip(map, chip, adr); in do_erase_oneblock()
2007 … printk(KERN_ERR "%s: block erase failed at 0x%08lx (status 0x%lx)\n", map->name, adr, chipstatus); in do_erase_oneblock()
2014 xip_enable(map, chip, adr); in do_erase_oneblock()
2016 put_chip(map, chip, adr); in do_erase_oneblock()
2070 unsigned long adr, in do_getlockstatus_oneblock() argument
2076 adr += chip->start; in do_getlockstatus_oneblock()
2077 xip_disable(map, chip, adr+(2*ofs_factor)); in do_getlockstatus_oneblock()
2078 map_write(map, CMD(0x90), adr+(2*ofs_factor)); in do_getlockstatus_oneblock()
2080 status = cfi_read_query(map, adr+(2*ofs_factor)); in do_getlockstatus_oneblock()
2088 unsigned long adr, in do_printlockstatus_oneblock() argument
2092 adr, do_getlockstatus_oneblock(map, chip, adr, len, thunk)); in do_printlockstatus_oneblock()
2101 unsigned long adr, int len, void *thunk) in do_xxlock_oneblock() argument
2108 adr += chip->start; in do_xxlock_oneblock()
2111 ret = get_chip(map, chip, adr, FL_LOCKING); in do_xxlock_oneblock()
2118 xip_disable(map, chip, adr); in do_xxlock_oneblock()
2120 map_write(map, CMD(0x60), adr); in do_xxlock_oneblock()
2122 map_write(map, CMD(0x01), adr); in do_xxlock_oneblock()
2125 map_write(map, CMD(0xD0), adr); in do_xxlock_oneblock()
2144 ret = WAIT_TIMEOUT(map, chip, adr, mdelay, mdelay * 1000); in do_xxlock_oneblock()
2146 map_write(map, CMD(0x70), adr); in do_xxlock_oneblock()
2148 xip_enable(map, chip, adr); in do_xxlock_oneblock()
2153 xip_enable(map, chip, adr); in do_xxlock_oneblock()
2155 put_chip(map, chip, adr); in do_xxlock_oneblock()
2482 unsigned long adr; in cfi_intelext_save_locks() local
2492 adr = region->offset + block * len; in cfi_intelext_save_locks()
2495 do_getlockstatus_oneblock, adr, len, NULL); in cfi_intelext_save_locks()
2582 unsigned long adr; in cfi_intelext_restore_locks() local
2592 adr = region->offset + block * len; in cfi_intelext_restore_locks()
2593 cfi_intelext_unlock(mtd, adr, len); in cfi_intelext_restore_locks()