Lines Matching defs:count
1252 module count. */
1482 static ssize_t rw_checks(struct scsi_tape *STp, struct file *filp, size_t count)
1520 if (count == 0)
1536 (count < STp->min_block || count > STp->max_block)) {
1551 size_t count, int is_read)
1564 count, (is_read ? READ : WRITE));
1587 bufsize = count;
1627 st_write(struct file *filp, const char __user *buf, size_t count, loff_t * ppos)
1645 retval = rw_checks(STp, filp, count);
1646 if (retval || count == 0)
1650 if (STp->block_size != 0 && (count % STp->block_size) != 0) {
1712 copy_from_user(&i, buf + count - 1, 1) != 0)) {
1717 retval = setup_buffering(STp, buf, count, 0);
1721 total = count;
1730 while (count > 0 && !retry_eot) {
1733 do_count = count;
1737 do_count = count;
1741 if (do_count > count)
1742 do_count = count;
1751 count -= do_count;
1762 if (!async_write && count == 0)
1814 count += undone;
1825 undone > 0 || count == 0)
1829 (int)count);
1851 count -= do_count;
1861 count += do_count;
1879 if (count < total)
1880 retval = total - count;
1889 retval = total - count;
1907 static long read_tape(struct scsi_tape *STp, long count,
1918 if (count == 0)
1928 blks = bytes = count;
1934 bytes = count;
1980 /* Compute the residual count */
2025 "%d.\n", count,
2104 st_read(struct file *filp, char __user *buf, size_t count, loff_t * ppos)
2119 retval = rw_checks(STp, filp, count);
2120 if (retval || count == 0)
2124 if (STp->block_size != 0 && (count % STp->block_size) != 0) {
2146 retval = setup_buffering(STp, buf, count, 1);
2167 copy_from_user(&i, buf + count - 1, 1) != 0 ||
2168 copy_to_user(buf + count - 1, &i, 1) != 0) {
2178 for (total = 0, special = 0; total < count && !special;) {
2182 special = read_tape(STp, count - total, &SRpnt);
2196 (int)(count - total));
2198 transfer = STbp->buffer_bytes < count - total ?
2199 STbp->buffer_bytes : count - total;
2215 total < count && !special; ) */
4099 int count, total;
4118 count = min(length - dst_offset, length - src_offset);
4120 page_address(spage) + src_offset, count);
4121 src_offset += count;
4126 dst_offset += count;
4131 total -= count;
4599 const char *buf, size_t count)
4605 if (count > 0) {
4608 return count;
4611 return count;
4718 * read_cnt_show - return read count - count of reads made from tape drive
4734 * read_byte_cnt_show - return read byte count - tape drives
4735 * may use blocks less than 512 bytes this gives the raw byte count of
4768 * write_cnt_show - write count - number of user calls
4785 * write_byte_cnt_show - write byte count - raw count of
4857 * other_cnt_show - other io count - this is the number of
4876 * resid_cnt_show - A count of the number of times we get a residual
4877 * count - this should indicate someone issuing reads larger than the
4934 size_t count, int rw)
4936 unsigned long end = (uaddr + count + PAGE_SIZE - 1) >> PAGE_SHIFT;
4944 if ((uaddr + count) < uaddr)
4952 if (count == 0)