Lines Matching refs:nbytes
523 unsigned int nbytes = min_t(u64, len, wa->bytes_left); in ccp_update_sg_workarea() local
528 wa->sg_used += nbytes; in ccp_update_sg_workarea()
529 wa->bytes_left -= nbytes; in ccp_update_sg_workarea()
619 unsigned int nbytes, sg_offset, dm_offset, ksb_len, i; in ccp_reverse_set_dm_area() local
627 nbytes = len; in ccp_reverse_set_dm_area()
628 while (nbytes) { in ccp_reverse_set_dm_area()
629 ksb_len = min_t(unsigned int, nbytes, se_len); in ccp_reverse_set_dm_area()
637 nbytes -= ksb_len; in ccp_reverse_set_dm_area()
654 unsigned int nbytes, sg_offset, dm_offset, ksb_len, i; in ccp_reverse_get_dm_area() local
659 nbytes = len; in ccp_reverse_get_dm_area()
660 while (nbytes) { in ccp_reverse_get_dm_area()
661 ksb_len = min_t(unsigned int, nbytes, sizeof(buffer)); in ccp_reverse_get_dm_area()
669 nbytes -= ksb_len; in ccp_reverse_get_dm_area()
709 unsigned int buf_count, nbytes; in ccp_queue_buf() local
722 nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length); in ccp_queue_buf()
724 nbytes, from); in ccp_queue_buf()
729 nbytes = min(sg_wa->sg->length - sg_wa->sg_used, in ccp_queue_buf()
731 nbytes = min_t(u64, sg_wa->bytes_left, nbytes); in ccp_queue_buf()
733 buf_count += nbytes; in ccp_queue_buf()
734 ccp_update_sg_workarea(sg_wa, nbytes); in ccp_queue_buf()