Lines Matching refs:flash
33 } flash; variable
44 if (flash.read_base == flash.write_base) { in flash_mmap()
45 addr = flash.read_base; in flash_mmap()
46 size = flash.read_size; in flash_mmap()
54 addr = flash.read_base; in flash_mmap()
55 size = flash.read_size; in flash_mmap()
57 addr = flash.write_base; in flash_mmap()
58 size = flash.write_size; in flash_mmap()
91 if (file->f_pos > flash.read_size) in flash_llseek()
92 file->f_pos = flash.read_size; in flash_llseek()
95 file->f_pos = flash.read_size; in flash_llseek()
112 if (count > flash.read_size - p) in flash_read()
113 count = flash.read_size - p; in flash_read()
116 u8 data = upa_readb(flash.read_base + p + i); in flash_read()
130 if (test_and_set_bit(0, (void *)&flash.busy) != 0) { in flash_open()
143 flash.busy = 0; in flash_release()
176 flash.read_base = op->resource[0].start; in flash_probe()
177 flash.read_size = resource_size(&op->resource[0]); in flash_probe()
179 flash.write_base = op->resource[1].start; in flash_probe()
180 flash.write_size = resource_size(&op->resource[1]); in flash_probe()
182 flash.write_base = op->resource[0].start; in flash_probe()
183 flash.write_size = resource_size(&op->resource[0]); in flash_probe()
185 flash.busy = 0; in flash_probe()
189 flash.read_base, flash.read_size, in flash_probe()
190 flash.write_base, flash.write_size); in flash_probe()