Lines Matching refs:subtotal
2022 unsigned int remainder, subtotal; in lpfc_bg_setup_bpl_prot() local
2144 subtotal = 0; /* total bytes processed for current prot grp */ in lpfc_bg_setup_bpl_prot()
2163 if ((subtotal + remainder) <= protgrp_bytes) { in lpfc_bg_setup_bpl_prot()
2168 if ((subtotal + remainder) == protgrp_bytes) in lpfc_bg_setup_bpl_prot()
2172 bpl->tus.f.bdeSize = protgrp_bytes - subtotal; in lpfc_bg_setup_bpl_prot()
2176 subtotal += bpl->tus.f.bdeSize; in lpfc_bg_setup_bpl_prot()
2400 unsigned int remainder, subtotal; in lpfc_bg_setup_sgl_prot() local
2528 subtotal = 0; /* total bytes processed for current prot grp */ in lpfc_bg_setup_sgl_prot()
2545 if ((subtotal + remainder) <= protgrp_bytes) { in lpfc_bg_setup_sgl_prot()
2550 if ((subtotal + remainder) == protgrp_bytes) in lpfc_bg_setup_sgl_prot()
2554 dma_len = protgrp_bytes - subtotal; in lpfc_bg_setup_sgl_prot()
2558 subtotal += dma_len; in lpfc_bg_setup_sgl_prot()