Lines Matching refs:do_count

1652 	ssize_t i, do_count, blks, transfer;  in st_write()  local
1755 do_count = count; in st_write()
1759 do_count = count; in st_write()
1761 do_count = STbp->buffer_blocks * STp->block_size - in st_write()
1763 if (do_count > count) in st_write()
1764 do_count = count; in st_write()
1767 i = append_to_buffer(b_point, STbp, do_count); in st_write()
1773 count -= do_count; in st_write()
1774 b_point += do_count; in st_write()
1790 blks = transfer = do_count; in st_write()
1795 blks = do_count; in st_write()
1834 if (undone <= do_count) { in st_write()
1838 do_count -= undone; in st_write()
1873 count -= do_count; in st_write()
1874 blks = do_count = 0; in st_write()
1883 count += do_count; in st_write()
1892 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()