Lines Matching refs:do_count

1623 	ssize_t i, do_count, blks, transfer;  in st_write()  local
1726 do_count = count; in st_write()
1730 do_count = count; in st_write()
1732 do_count = STbp->buffer_blocks * STp->block_size - in st_write()
1734 if (do_count > count) in st_write()
1735 do_count = count; in st_write()
1738 i = append_to_buffer(b_point, STbp, do_count); in st_write()
1744 count -= do_count; in st_write()
1745 b_point += do_count; in st_write()
1761 blks = transfer = do_count; in st_write()
1766 blks = do_count; in st_write()
1805 if (undone <= do_count) { in st_write()
1809 do_count -= undone; in st_write()
1844 count -= do_count; in st_write()
1845 blks = do_count = 0; in st_write()
1854 count += do_count; in st_write()
1863 STps->drv_block += (do_count > 0); in st_write()
3997 static int append_to_buffer(const char __user *ubp, struct st_buffer * st_bp, int do_count) in append_to_buffer() argument
4009 for (; i < st_bp->frp_segs && do_count > 0; i++) { in append_to_buffer()
4011 cnt = length - offset < do_count ? length - offset : do_count; in append_to_buffer()
4015 do_count -= cnt; in append_to_buffer()
4020 if (do_count) /* Should never happen */ in append_to_buffer()
4029 static int from_buffer(struct st_buffer * st_bp, char __user *ubp, int do_count) in from_buffer() argument
4041 for (; i < st_bp->frp_segs && do_count > 0; i++) { in from_buffer()
4043 cnt = length - offset < do_count ? length - offset : do_count; in from_buffer()
4047 do_count -= cnt; in from_buffer()
4053 if (do_count) /* Should never happen */ in from_buffer()