Lines Matching refs:sh_mem
132 (ulong) (dev->writeptr - dev->sh_mem)); in log_state()
134 (ulong) (dev->readptr - (dev->sh_mem + BANK2))); in log_state()
174 if (dev->writeptr == dev->sh_mem + BANKLEN) in pcbit_writeb()
175 dev->writeptr = dev->sh_mem; in pcbit_writeb()
182 dist = BANKLEN - (dev->writeptr - dev->sh_mem); in pcbit_writew()
186 dev->writeptr = dev->sh_mem; in pcbit_writew()
190 dev->writeptr = dev->sh_mem; in pcbit_writew()
205 diff = len - (BANKLEN - (dev->writeptr - dev->sh_mem) ); in memcpy_topcbit()
210 memcpy_toio(dev->sh_mem, data + (len - diff), diff); in memcpy_topcbit()
211 dev->writeptr = dev->sh_mem + diff; in memcpy_topcbit()
219 dev->writeptr = dev->sh_mem; in memcpy_topcbit()
228 if (dev->readptr == dev->sh_mem + BANK2 + BANKLEN) in pcbit_readb()
229 dev->readptr = dev->sh_mem + BANK2; in pcbit_readb()
239 dist = BANKLEN - ( dev->readptr - (dev->sh_mem + BANK2 ) ); in pcbit_readw()
243 dev->readptr = dev->sh_mem + BANK2; in pcbit_readw()
247 dev->readptr = dev->sh_mem + BANK2; in pcbit_readw()
262 diff = len - (BANKLEN - (dev->readptr - (dev->sh_mem + BANK2) ) ); in memcpy_frompcbit()
266 memcpy_fromio(data + (len - diff), dev->sh_mem + BANK2 , diff); in memcpy_frompcbit()
267 dev->readptr = dev->sh_mem + BANK2 + diff; in memcpy_frompcbit()
274 dev->readptr = dev->sh_mem + BANK2; in memcpy_frompcbit()