Lines Matching refs:nbytes
522 unsigned int nbytes = min_t(u64, len, wa->bytes_left); in ccp_update_sg_workarea() local
527 wa->sg_used += nbytes; in ccp_update_sg_workarea()
528 wa->bytes_left -= nbytes; in ccp_update_sg_workarea()
618 unsigned int nbytes, sg_offset, dm_offset, ksb_len, i; in ccp_reverse_set_dm_area() local
625 nbytes = len; in ccp_reverse_set_dm_area()
626 while (nbytes) { in ccp_reverse_set_dm_area()
627 ksb_len = min_t(unsigned int, nbytes, se_len); in ccp_reverse_set_dm_area()
635 nbytes -= ksb_len; in ccp_reverse_set_dm_area()
650 unsigned int nbytes, sg_offset, dm_offset, ksb_len, i; in ccp_reverse_get_dm_area() local
655 nbytes = len; in ccp_reverse_get_dm_area()
656 while (nbytes) { in ccp_reverse_get_dm_area()
657 ksb_len = min_t(unsigned int, nbytes, sizeof(buffer)); in ccp_reverse_get_dm_area()
665 nbytes -= ksb_len; in ccp_reverse_get_dm_area()
705 unsigned int buf_count, nbytes; in ccp_queue_buf() local
718 nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length); in ccp_queue_buf()
720 nbytes, from); in ccp_queue_buf()
725 nbytes = min(sg_wa->sg->length - sg_wa->sg_used, in ccp_queue_buf()
727 nbytes = min_t(u64, sg_wa->bytes_left, nbytes); in ccp_queue_buf()
729 buf_count += nbytes; in ccp_queue_buf()
730 ccp_update_sg_workarea(sg_wa, nbytes); in ccp_queue_buf()