Lines Matching refs:rest
430 unsigned int rest = hwreq->req.length; in prepare_td_for_non_sg() local
434 if (rest == 0) { in prepare_td_for_non_sg()
447 while (rest > 0) { in prepare_td_for_non_sg()
455 rest -= count; in prepare_td_for_non_sg()
471 unsigned int rest = sg_dma_len(s); in prepare_td_per_sg() local
475 while (rest > 0) { in prepare_td_per_sg()
476 unsigned int count = min_t(unsigned int, rest, in prepare_td_per_sg()
483 rest -= count; in prepare_td_per_sg()
592 unsigned int rest, rounded; in sglist_do_bounce() local
602 rest = hwreq->req.length; in sglist_do_bounce()
607 rest -= src->length; in sglist_do_bounce()
613 rounded = round_up(rest, CI_HDRC_PAGE_SIZE); in sglist_do_bounce()
628 sg_copy_to_buffer(src, num_sgs - index, buf, rest); in sglist_do_bounce()
630 *bounced = rest; in sglist_do_bounce()