• Home
  • Raw
  • Download

Lines Matching refs:count

755 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count,  in cache_read()  argument
763 if (count == 0) in cache_read()
802 if (rp->offset + count > rq->len) in cache_read()
803 count = rq->len - rp->offset; in cache_read()
805 if (copy_to_user(buf, rq->buf + rp->offset, count)) in cache_read()
807 rp->offset += count; in cache_read()
834 return err ? err : count; in cache_read()
838 size_t count, struct cache_detail *cd) in cache_do_downcall() argument
842 if (count == 0) in cache_do_downcall()
844 if (copy_from_user(kaddr, buf, count)) in cache_do_downcall()
846 kaddr[count] = '\0'; in cache_do_downcall()
847 ret = cd->cache_parse(cd, kaddr, count); in cache_do_downcall()
849 ret = count; in cache_do_downcall()
854 size_t count, struct cache_detail *cd) in cache_slow_downcall() argument
859 if (count >= sizeof(write_buf)) in cache_slow_downcall()
862 ret = cache_do_downcall(write_buf, buf, count, cd); in cache_slow_downcall()
870 size_t count, struct cache_detail *cd) in cache_downcall() argument
876 if (count >= PAGE_CACHE_SIZE) in cache_downcall()
884 ret = cache_do_downcall(kaddr, buf, count, cd); in cache_downcall()
890 return cache_slow_downcall(buf, count, cd); in cache_downcall()
894 size_t count, loff_t *ppos, in cache_write() argument
905 ret = cache_downcall(mapping, buf, count, cd); in cache_write()
1426 size_t count, loff_t *ppos, in read_flush() argument
1438 if (len > count) in read_flush()
1439 len = count; in read_flush()
1447 size_t count, loff_t *ppos, in write_flush() argument
1453 if (*ppos || count > sizeof(tbuf)-1) in write_flush()
1455 if (copy_from_user(tbuf, buf, count)) in write_flush()
1457 tbuf[count] = 0; in write_flush()
1467 *ppos += count; in write_flush()
1468 return count; in write_flush()
1472 size_t count, loff_t *ppos) in cache_read_procfs() argument
1476 return cache_read(filp, buf, count, ppos, cd); in cache_read_procfs()
1480 size_t count, loff_t *ppos) in cache_write_procfs() argument
1484 return cache_write(filp, buf, count, ppos, cd); in cache_write_procfs()
1564 size_t count, loff_t *ppos) in read_flush_procfs() argument
1568 return read_flush(filp, buf, count, ppos, cd); in read_flush_procfs()
1573 size_t count, loff_t *ppos) in write_flush_procfs() argument
1577 return write_flush(filp, buf, count, ppos, cd); in write_flush_procfs()
1704 size_t count, loff_t *ppos) in cache_read_pipefs() argument
1708 return cache_read(filp, buf, count, ppos, cd); in cache_read_pipefs()
1712 size_t count, loff_t *ppos) in cache_write_pipefs() argument
1716 return cache_write(filp, buf, count, ppos, cd); in cache_write_pipefs()
1796 size_t count, loff_t *ppos) in read_flush_pipefs() argument
1800 return read_flush(filp, buf, count, ppos, cd); in read_flush_pipefs()
1805 size_t count, loff_t *ppos) in write_flush_pipefs() argument
1809 return write_flush(filp, buf, count, ppos, cd); in write_flush_pipefs()