Lines Matching refs:sh_mem
134 (ulong) (dev->writeptr - dev->sh_mem));
136 (ulong) (dev->readptr - (dev->sh_mem + BANK2)));
176 if (dev->writeptr == dev->sh_mem + BANKLEN)
177 dev->writeptr = dev->sh_mem;
184 dist = BANKLEN - (dev->writeptr - dev->sh_mem);
188 dev->writeptr = dev->sh_mem;
192 dev->writeptr = dev->sh_mem;
207 diff = len - (BANKLEN - (dev->writeptr - dev->sh_mem) );
212 memcpy_toio(dev->sh_mem, data + (len - diff), diff);
213 dev->writeptr = dev->sh_mem + diff;
221 dev->writeptr = dev->sh_mem;
230 if (dev->readptr == dev->sh_mem + BANK2 + BANKLEN)
231 dev->readptr = dev->sh_mem + BANK2;
241 dist = BANKLEN - ( dev->readptr - (dev->sh_mem + BANK2 ) );
245 dev->readptr = dev->sh_mem + BANK2;
249 dev->readptr = dev->sh_mem + BANK2;
264 diff = len - (BANKLEN - (dev->readptr - (dev->sh_mem + BANK2) ) );
268 memcpy_fromio(data + (len - diff), dev->sh_mem + BANK2 , diff);
269 dev->readptr = dev->sh_mem + BANK2 + diff;
276 dev->readptr = dev->sh_mem + BANK2;