Lines Matching refs:base
26 int __xipram cfi_qry_present(struct map_info *map, __u32 base, in cfi_qry_present() argument
37 val[0] = map_read(map, base + osf*0x10); in cfi_qry_present()
38 val[1] = map_read(map, base + osf*0x11); in cfi_qry_present()
39 val[2] = map_read(map, base + osf*0x12); in cfi_qry_present()
54 int __xipram cfi_qry_mode_on(uint32_t base, struct map_info *map, in cfi_qry_mode_on() argument
57 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
58 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
59 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
63 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
64 cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
65 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
66 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
69 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
70 cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
71 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
74 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
75 cfi_send_gen_cmd(0xAA, 0x5555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
76 cfi_send_gen_cmd(0x55, 0x2AAA, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
77 cfi_send_gen_cmd(0x98, 0x5555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
78 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
81 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
82 cfi_send_gen_cmd(0xAA, 0x555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
83 cfi_send_gen_cmd(0x55, 0x2AA, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
84 cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
85 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
92 void __xipram cfi_qry_mode_off(uint32_t base, struct map_info *map, in cfi_qry_mode_off() argument
95 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_off()
96 cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_off()
100 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_off()
108 __u32 base = 0; // cfi->chips[0].start; in cfi_read_pri() local
127 cfi_qry_mode_on(base, map, cfi); in cfi_read_pri()
131 cfi_read_query(map, base+((adr+i)*ofs_factor)); in cfi_read_pri()
135 cfi_qry_mode_off(base, map, cfi); in cfi_read_pri()
138 (void) map_read(map, base); in cfi_read_pri()