Lines Matching refs:subtotal
1741 unsigned int remainder, subtotal; in lpfc_bg_setup_bpl_prot() local
1865 subtotal = 0; /* total bytes processed for current prot grp */ in lpfc_bg_setup_bpl_prot()
1884 if ((subtotal + remainder) <= protgrp_bytes) { in lpfc_bg_setup_bpl_prot()
1889 if ((subtotal + remainder) == protgrp_bytes) in lpfc_bg_setup_bpl_prot()
1893 bpl->tus.f.bdeSize = protgrp_bytes - subtotal; in lpfc_bg_setup_bpl_prot()
1897 subtotal += bpl->tus.f.bdeSize; in lpfc_bg_setup_bpl_prot()
2171 unsigned int remainder, subtotal; in lpfc_bg_setup_sgl_prot() local
2332 subtotal = 0; /* total bytes processed for current prot grp */ in lpfc_bg_setup_sgl_prot()
2380 if ((subtotal + remainder) <= protgrp_bytes) { in lpfc_bg_setup_sgl_prot()
2385 if ((subtotal + remainder) == in lpfc_bg_setup_sgl_prot()
2392 dma_len = protgrp_bytes - subtotal; in lpfc_bg_setup_sgl_prot()
2396 subtotal += dma_len; in lpfc_bg_setup_sgl_prot()