Lines Matching refs:sys
137 void __iomem *sys, *end; in pcmcia_read_cis_mem() local
151 sys = set_cis_map(s, 0, MAP_ACTIVE | in pcmcia_read_cis_mem()
153 if (!sys) { in pcmcia_read_cis_mem()
159 writeb(flags, sys+CISREG_ICTRL0); in pcmcia_read_cis_mem()
160 writeb(addr & 0xff, sys+CISREG_IADDR0); in pcmcia_read_cis_mem()
161 writeb((addr>>8) & 0xff, sys+CISREG_IADDR1); in pcmcia_read_cis_mem()
162 writeb((addr>>16) & 0xff, sys+CISREG_IADDR2); in pcmcia_read_cis_mem()
163 writeb((addr>>24) & 0xff, sys+CISREG_IADDR3); in pcmcia_read_cis_mem()
165 *buf = readb(sys+CISREG_IDATA0); in pcmcia_read_cis_mem()
185 sys = set_cis_map(s, card_offset, flags); in pcmcia_read_cis_mem()
186 if (!sys) { in pcmcia_read_cis_mem()
191 end = sys + s->map_size; in pcmcia_read_cis_mem()
192 sys = sys + (addr & (s->map_size-1)); in pcmcia_read_cis_mem()
193 for ( ; len > 0; len--, buf++, sys += inc) { in pcmcia_read_cis_mem()
194 if (sys == end) in pcmcia_read_cis_mem()
196 *buf = readb(sys); in pcmcia_read_cis_mem()
218 void __iomem *sys, *end; in pcmcia_write_cis_mem() local
233 sys = set_cis_map(s, 0, MAP_ACTIVE | in pcmcia_write_cis_mem()
235 if (!sys) { in pcmcia_write_cis_mem()
240 writeb(flags, sys+CISREG_ICTRL0); in pcmcia_write_cis_mem()
241 writeb(addr & 0xff, sys+CISREG_IADDR0); in pcmcia_write_cis_mem()
242 writeb((addr>>8) & 0xff, sys+CISREG_IADDR1); in pcmcia_write_cis_mem()
243 writeb((addr>>16) & 0xff, sys+CISREG_IADDR2); in pcmcia_write_cis_mem()
244 writeb((addr>>24) & 0xff, sys+CISREG_IADDR3); in pcmcia_write_cis_mem()
246 writeb(*buf, sys+CISREG_IDATA0); in pcmcia_write_cis_mem()
259 sys = set_cis_map(s, card_offset, flags); in pcmcia_write_cis_mem()
260 if (!sys) { in pcmcia_write_cis_mem()
265 end = sys + s->map_size; in pcmcia_write_cis_mem()
266 sys = sys + (addr & (s->map_size-1)); in pcmcia_write_cis_mem()
267 for ( ; len > 0; len--, buf++, sys += inc) { in pcmcia_write_cis_mem()
268 if (sys == end) in pcmcia_write_cis_mem()
270 writeb(*buf, sys); in pcmcia_write_cis_mem()