Lines Matching refs:do_count
1569 ssize_t i, do_count, blks, transfer; in st_write() local
1672 do_count = count; in st_write()
1676 do_count = count; in st_write()
1678 do_count = STbp->buffer_blocks * STp->block_size - in st_write()
1680 if (do_count > count) in st_write()
1681 do_count = count; in st_write()
1684 i = append_to_buffer(b_point, STbp, do_count); in st_write()
1690 count -= do_count; in st_write()
1691 b_point += do_count; in st_write()
1707 blks = transfer = do_count; in st_write()
1712 blks = do_count; in st_write()
1751 if (undone <= do_count) { in st_write()
1755 do_count -= undone; in st_write()
1790 count -= do_count; in st_write()
1791 blks = do_count = 0; in st_write()
1800 count += do_count; in st_write()
1809 STps->drv_block += (do_count > 0); in st_write()
3838 static int append_to_buffer(const char __user *ubp, struct st_buffer * st_bp, int do_count) in append_to_buffer() argument
3850 for (; i < st_bp->frp_segs && do_count > 0; i++) { in append_to_buffer()
3852 cnt = length - offset < do_count ? length - offset : do_count; in append_to_buffer()
3856 do_count -= cnt; in append_to_buffer()
3861 if (do_count) /* Should never happen */ in append_to_buffer()
3870 static int from_buffer(struct st_buffer * st_bp, char __user *ubp, int do_count) in from_buffer() argument
3882 for (; i < st_bp->frp_segs && do_count > 0; i++) { in from_buffer()
3884 cnt = length - offset < do_count ? length - offset : do_count; in from_buffer()
3888 do_count -= cnt; in from_buffer()
3894 if (do_count) /* Should never happen */ in from_buffer()