Lines Matching refs:base

202 uint32_t cfi_send_gen_cmd(u_char cmd, uint32_t cmd_addr, uint32_t base,
207 uint32_t addr = base + cfi_build_cmd_addr(cmd_addr, map, cfi);
215 return addr - base;
219 int __xipram cfi_qry_present(struct map_info *map, __u32 base,
230 val[0] = map_read(map, base + osf*0x10);
231 val[1] = map_read(map, base + osf*0x11);
232 val[2] = map_read(map, base + osf*0x12);
247 int __xipram cfi_qry_mode_on(uint32_t base, struct map_info *map,
250 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
251 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL);
252 if (cfi_qry_present(map, base, cfi))
256 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
257 cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL);
258 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL);
259 if (cfi_qry_present(map, base, cfi))
262 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
263 cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL);
264 if (cfi_qry_present(map, base, cfi))
267 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
268 cfi_send_gen_cmd(0xAA, 0x5555, base, map, cfi, cfi->device_type, NULL);
269 cfi_send_gen_cmd(0x55, 0x2AAA, base, map, cfi, cfi->device_type, NULL);
270 cfi_send_gen_cmd(0x98, 0x5555, base, map, cfi, cfi->device_type, NULL);
271 if (cfi_qry_present(map, base, cfi))
274 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
275 cfi_send_gen_cmd(0xAA, 0x555, base, map, cfi, cfi->device_type, NULL);
276 cfi_send_gen_cmd(0x55, 0x2AA, base, map, cfi, cfi->device_type, NULL);
277 cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL);
278 if (cfi_qry_present(map, base, cfi))
285 void __xipram cfi_qry_mode_off(uint32_t base, struct map_info *map,
288 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
289 cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL);
293 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
301 __u32 base = 0; // cfi->chips[0].start;
320 cfi_qry_mode_on(base, map, cfi);
324 cfi_read_query(map, base+((adr+i)*ofs_factor));
328 cfi_qry_mode_off(base, map, cfi);
331 (void) map_read(map, base);