Lines Matching refs:base

27 static int cfi_probe_chip(struct map_info *map, __u32 base,
38 #define xip_allowed(base, map) \
40 (void) map_read(map, base); \
45 #define xip_enable(base, map, cfi) \
47 cfi_qry_mode_off(base, map, cfi); \
48 xip_allowed(base, map); \
51 #define xip_disable_qry(base, map, cfi) \
54 cfi_qry_mode_on(base, map, cfi); \
60 #define xip_allowed(base, map) do { } while (0)
61 #define xip_enable(base, map, cfi) do { } while (0)
62 #define xip_disable_qry(base, map, cfi) do { } while (0)
71 static int __xipram cfi_probe_chip(struct map_info *map, __u32 base,
76 if ((base + 0) >= map->size) {
78 "Probe at base[0x00](0x%08lx) past the end of the map(0x%08lx)\n",
79 (unsigned long)base, map->size -1);
82 if ((base + 0xff) >= map->size) {
84 "Probe at base[0x55](0x%08lx) past the end of the map(0x%08lx)\n",
85 (unsigned long)base + 0x55, map->size -1);
90 if (!cfi_qry_mode_on(base, map, cfi)) {
91 xip_enable(base, map, cfi);
102 for (i=0; i < (base >> cfi->chipshift); i++) {
118 xip_allowed(base, map);
120 map->name, base, start);
127 cfi_qry_mode_off(base, map, cfi);
129 if (cfi_qry_present(map, base, cfi)) {
130 xip_allowed(base, map);
132 map->name, base, start);
140 set_bit((base >> cfi->chipshift), chip_map); /* Update chip map */
144 cfi_qry_mode_off(base, map, cfi);
145 xip_allowed(base, map);
148 map->name, cfi->interleave, cfi->device_type*8, base,
158 __u32 base = 0;
159 int num_erase_regions = cfi_read_query(map, base + (0x10 + 28)*ofs_factor);
163 xip_enable(base, map, cfi);
183 xip_disable_qry(base, map, cfi);
185 ((unsigned char *)cfi->cfiq)[i] = cfi_read_query(map,base + (0x10 + i)*ofs_factor);
224 cfi_send_gen_cmd(0xf0, 0, base, map, cfi, cfi->device_type, NULL);
225 cfi_send_gen_cmd(0xaa, addr_unlock1, base, map, cfi, cfi->device_type, NULL);
226 cfi_send_gen_cmd(0x55, addr_unlock2, base, map, cfi, cfi->device_type, NULL);
227 cfi_send_gen_cmd(0x90, addr_unlock1, base, map, cfi, cfi->device_type, NULL);
228 cfi->mfr = cfi_read_query16(map, base);
229 cfi->id = cfi_read_query16(map, base + ofs_factor);
233 cfi->id = cfi_read_query(map, base + 0xe * ofs_factor) << 8 |
234 cfi_read_query(map, base + 0xf * ofs_factor);
237 cfi_qry_mode_off(base, map, cfi);
238 xip_allowed(base, map);
241 map->name, cfi->interleave, cfi->device_type*8, base,