Lines Matching refs:step_len

232 	unsigned int step_len;  in mon_copy_to_buff()  local
240 step_len = length; in mon_copy_to_buff()
242 if (in_page < step_len) in mon_copy_to_buff()
243 step_len = in_page; in mon_copy_to_buff()
249 memcpy(buf, from, step_len); in mon_copy_to_buff()
250 if ((off += step_len) >= this->b_size) off = 0; in mon_copy_to_buff()
251 from += step_len; in mon_copy_to_buff()
252 length -= step_len; in mon_copy_to_buff()
264 unsigned int step_len; in copy_from_buf() local
272 step_len = length; in copy_from_buf()
274 if (in_page < step_len) in copy_from_buf()
275 step_len = in_page; in copy_from_buf()
281 if (copy_to_user(to, buf, step_len)) in copy_from_buf()
283 if ((off += step_len) >= this->b_size) off = 0; in copy_from_buf()
284 to += step_len; in copy_from_buf()
285 length -= step_len; in copy_from_buf()
743 size_t step_len; in mon_bin_get_event() local
761 step_len = min(ep->len_cap, nbytes); in mon_bin_get_event()
764 if (copy_from_buf(rp, offset, data, step_len)) { in mon_bin_get_event()
808 size_t step_len; in mon_bin_read() local
823 step_len = min(nbytes, (size_t)(hdrbytes - rp->b_read)); in mon_bin_read()
825 if (step_len && copy_to_user(buf, ptr, step_len)) { in mon_bin_read()
829 nbytes -= step_len; in mon_bin_read()
830 buf += step_len; in mon_bin_read()
831 rp->b_read += step_len; in mon_bin_read()
832 done += step_len; in mon_bin_read()
836 step_len = ep->len_cap; in mon_bin_read()
837 step_len -= rp->b_read - hdrbytes; in mon_bin_read()
838 if (step_len > nbytes) in mon_bin_read()
839 step_len = nbytes; in mon_bin_read()
844 if (copy_from_buf(rp, offset, buf, step_len)) { in mon_bin_read()
848 nbytes -= step_len; in mon_bin_read()
849 buf += step_len; in mon_bin_read()
850 rp->b_read += step_len; in mon_bin_read()
851 done += step_len; in mon_bin_read()