Lines Matching refs:avail
442 unsigned int offset, avail; in ps3vram_read() local
446 avail = priv->cache.page_size - offset; in ps3vram_read()
453 (unsigned int)from, cached, offset, avail, count); in ps3vram_read()
455 if (avail > count) in ps3vram_read()
456 avail = count; in ps3vram_read()
457 memcpy(buf, priv->xdr_buf + cached, avail); in ps3vram_read()
459 buf += avail; in ps3vram_read()
460 count -= avail; in ps3vram_read()
461 from += avail; in ps3vram_read()
483 unsigned int offset, avail; in ps3vram_write() local
487 avail = priv->cache.page_size - offset; in ps3vram_write()
494 cached, offset, avail, count); in ps3vram_write()
496 if (avail > count) in ps3vram_write()
497 avail = count; in ps3vram_write()
498 memcpy(priv->xdr_buf + cached, buf, avail); in ps3vram_write()
502 buf += avail; in ps3vram_write()
503 count -= avail; in ps3vram_write()
504 to += avail; in ps3vram_write()