Lines Matching refs:flash
31 } flash; variable
42 if (flash.read_base == flash.write_base) { in flash_mmap()
43 addr = flash.read_base; in flash_mmap()
44 size = flash.read_size; in flash_mmap()
52 addr = flash.read_base; in flash_mmap()
53 size = flash.read_size; in flash_mmap()
55 addr = flash.write_base; in flash_mmap()
56 size = flash.write_size; in flash_mmap()
89 if (file->f_pos > flash.read_size) in flash_llseek()
90 file->f_pos = flash.read_size; in flash_llseek()
93 file->f_pos = flash.read_size; in flash_llseek()
110 if (count > flash.read_size - p) in flash_read()
111 count = flash.read_size - p; in flash_read()
114 u8 data = upa_readb(flash.read_base + p + i); in flash_read()
128 if (test_and_set_bit(0, (void *)&flash.busy) != 0) { in flash_open()
141 flash.busy = 0; in flash_release()
173 flash.read_base = op->resource[0].start; in flash_probe()
174 flash.read_size = resource_size(&op->resource[0]); in flash_probe()
176 flash.write_base = op->resource[1].start; in flash_probe()
177 flash.write_size = resource_size(&op->resource[1]); in flash_probe()
179 flash.write_base = op->resource[0].start; in flash_probe()
180 flash.write_size = resource_size(&op->resource[0]); in flash_probe()
182 flash.busy = 0; in flash_probe()
186 flash.read_base, flash.read_size, in flash_probe()
187 flash.write_base, flash.write_size); in flash_probe()