Lines Matching refs:do_count
1625 ssize_t i, do_count, blks, transfer; in st_write() local
1728 do_count = count; in st_write()
1732 do_count = count; in st_write()
1734 do_count = STbp->buffer_blocks * STp->block_size - in st_write()
1736 if (do_count > count) in st_write()
1737 do_count = count; in st_write()
1740 i = append_to_buffer(b_point, STbp, do_count); in st_write()
1746 count -= do_count; in st_write()
1747 b_point += do_count; in st_write()
1763 blks = transfer = do_count; in st_write()
1768 blks = do_count; in st_write()
1807 if (undone <= do_count) { in st_write()
1811 do_count -= undone; in st_write()
1846 count -= do_count; in st_write()
1847 blks = do_count = 0; in st_write()
1856 count += do_count; in st_write()
1865 STps->drv_block += (do_count > 0); in st_write()
3987 static int append_to_buffer(const char __user *ubp, struct st_buffer * st_bp, int do_count) in append_to_buffer() argument
3999 for (; i < st_bp->frp_segs && do_count > 0; i++) { in append_to_buffer()
4001 cnt = length - offset < do_count ? length - offset : do_count; in append_to_buffer()
4005 do_count -= cnt; in append_to_buffer()
4010 if (do_count) /* Should never happen */ in append_to_buffer()
4019 static int from_buffer(struct st_buffer * st_bp, char __user *ubp, int do_count) in from_buffer() argument
4031 for (; i < st_bp->frp_segs && do_count > 0; i++) { in from_buffer()
4033 cnt = length - offset < do_count ? length - offset : do_count; in from_buffer()
4037 do_count -= cnt; in from_buffer()
4043 if (do_count) /* Should never happen */ in from_buffer()