Lines Matching refs:length
227 unsigned int off, const unsigned char *from, unsigned int length) in mon_copy_to_buff() argument
233 while (length) { in mon_copy_to_buff()
237 step_len = length; in mon_copy_to_buff()
249 length -= step_len; in mon_copy_to_buff()
259 char __user *to, int length) in copy_from_buf() argument
265 while (length) { in copy_from_buf()
269 step_len = length; in copy_from_buf()
282 length -= step_len; in copy_from_buf()
401 unsigned int offset, struct urb *urb, unsigned int length, in mon_bin_get_data() argument
412 return length; in mon_bin_get_data()
414 mon_copy_to_buff(rp, offset, urb->transfer_buffer, length); in mon_bin_get_data()
415 length = 0; in mon_bin_get_data()
421 return length; in mon_bin_get_data()
426 if (length == 0 || PageHighMem(sg_page(sg))) in mon_bin_get_data()
428 this_len = min_t(unsigned int, sg->length, length); in mon_bin_get_data()
431 length -= this_len; in mon_bin_get_data()
437 return length; in mon_bin_get_data()
448 unsigned int length; in mon_bin_collate_isodesc() local
450 length = 0; in mon_bin_collate_isodesc()
454 if (fp->offset + fp->actual_length > length) in mon_bin_collate_isodesc()
455 length = fp->offset + fp->actual_length; in mon_bin_collate_isodesc()
459 return length; in mon_bin_collate_isodesc()
474 dp->iso_len = (ev_type == 'S') ? fp->length : fp->actual_length; in mon_bin_get_isodesc()
490 unsigned int length; in mon_bin_event() local
506 length = urb_length; in mon_bin_event()
517 length = mon_bin_collate_isodesc(rp, urb, ndesc); in mon_bin_event()
524 if (length >= urb->transfer_buffer_length) in mon_bin_event()
525 length = urb->transfer_buffer_length; in mon_bin_event()
527 if (length >= rp->b_size/5) in mon_bin_event()
528 length = rp->b_size/5; in mon_bin_event()
532 length = 0; in mon_bin_event()
539 length = 0; in mon_bin_event()
547 length + PKT_SIZE + lendesc); in mon_bin_event()
549 offset = mon_buff_area_alloc(rp, length + PKT_SIZE + lendesc); in mon_bin_event()
574 ep->len_cap = length + lendesc; in mon_bin_event()
599 if (length != 0) { in mon_bin_event()
600 length = mon_bin_get_data(rp, offset, urb, length, in mon_bin_event()
602 if (length > 0) { in mon_bin_event()
604 ep->len_cap -= length; in mon_bin_event()