Lines Matching refs:base

197 uint32_t cfi_send_gen_cmd(u_char cmd, uint32_t cmd_addr, uint32_t base,  in cfi_send_gen_cmd()  argument
202 uint32_t addr = base + cfi_build_cmd_addr(cmd_addr, map, cfi); in cfi_send_gen_cmd()
210 return addr - base; in cfi_send_gen_cmd()
214 int __xipram cfi_qry_present(struct map_info *map, __u32 base, in cfi_qry_present() argument
225 val[0] = map_read(map, base + osf*0x10); in cfi_qry_present()
226 val[1] = map_read(map, base + osf*0x11); in cfi_qry_present()
227 val[2] = map_read(map, base + osf*0x12); in cfi_qry_present()
242 int __xipram cfi_qry_mode_on(uint32_t base, struct map_info *map, in cfi_qry_mode_on() argument
245 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
246 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
247 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
251 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
252 cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
253 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
254 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
257 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
258 cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
259 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
262 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
263 cfi_send_gen_cmd(0xAA, 0x5555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
264 cfi_send_gen_cmd(0x55, 0x2AAA, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
265 cfi_send_gen_cmd(0x98, 0x5555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
266 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
269 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
270 cfi_send_gen_cmd(0xAA, 0x555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
271 cfi_send_gen_cmd(0x55, 0x2AA, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
272 cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
273 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
280 void __xipram cfi_qry_mode_off(uint32_t base, struct map_info *map, in cfi_qry_mode_off() argument
283 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_off()
284 cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_off()
288 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_off()
296 __u32 base = 0; // cfi->chips[0].start; in cfi_read_pri() local
315 cfi_qry_mode_on(base, map, cfi); in cfi_read_pri()
319 cfi_read_query(map, base+((adr+i)*ofs_factor)); in cfi_read_pri()
323 cfi_qry_mode_off(base, map, cfi); in cfi_read_pri()
326 (void) map_read(map, base); in cfi_read_pri()