Lines Matching refs:do_count
1651 ssize_t i, do_count, blks, transfer; in st_write() local
1754 do_count = count; in st_write()
1758 do_count = count; in st_write()
1760 do_count = STbp->buffer_blocks * STp->block_size - in st_write()
1762 if (do_count > count) in st_write()
1763 do_count = count; in st_write()
1766 i = append_to_buffer(b_point, STbp, do_count); in st_write()
1772 count -= do_count; in st_write()
1773 b_point += do_count; in st_write()
1789 blks = transfer = do_count; in st_write()
1794 blks = do_count; in st_write()
1833 if (undone <= do_count) { in st_write()
1837 do_count -= undone; in st_write()
1872 count -= do_count; in st_write()
1873 blks = do_count = 0; in st_write()
1882 count += do_count; in st_write()
1891 STps->drv_block += (do_count > 0); in st_write()
4087 static int append_to_buffer(const char __user *ubp, struct st_buffer * st_bp, int do_count) in append_to_buffer() argument
4099 for (; i < st_bp->frp_segs && do_count > 0; i++) { in append_to_buffer()
4101 cnt = length - offset < do_count ? length - offset : do_count; in append_to_buffer()
4105 do_count -= cnt; in append_to_buffer()
4110 if (do_count) /* Should never happen */ in append_to_buffer()
4119 static int from_buffer(struct st_buffer * st_bp, char __user *ubp, int do_count) in from_buffer() argument
4131 for (; i < st_bp->frp_segs && do_count > 0; i++) { in from_buffer()
4133 cnt = length - offset < do_count ? length - offset : do_count; in from_buffer()
4137 do_count -= cnt; in from_buffer()
4143 if (do_count) /* Should never happen */ in from_buffer()