Lines Matching refs:byte_count

3794 	unsigned long byte_count = 0;  in aac_build_sg()  local
3813 byte_count += sg_dma_len(sg); in aac_build_sg()
3816 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg()
3818 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg()
3820 byte_count = scsi_bufflen(scsicmd); in aac_build_sg()
3823 if (scsicmd->underflow && (byte_count < scsicmd->underflow)) { in aac_build_sg()
3825 byte_count, scsicmd->underflow); in aac_build_sg()
3828 return byte_count; in aac_build_sg()
3834 unsigned long byte_count = 0; in aac_build_sg64() local
3856 byte_count += count; in aac_build_sg64()
3860 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg64()
3862 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg64()
3864 byte_count = scsi_bufflen(scsicmd); in aac_build_sg64()
3867 if (scsicmd->underflow && (byte_count < scsicmd->underflow)) { in aac_build_sg64()
3869 byte_count, scsicmd->underflow); in aac_build_sg64()
3872 return byte_count; in aac_build_sg64()
3877 unsigned long byte_count = 0; in aac_build_sgraw() local
3904 byte_count += count; in aac_build_sgraw()
3908 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sgraw()
3910 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sgraw()
3912 byte_count = scsi_bufflen(scsicmd); in aac_build_sgraw()
3915 if (scsicmd->underflow && (byte_count < scsicmd->underflow)) { in aac_build_sgraw()
3917 byte_count, scsicmd->underflow); in aac_build_sgraw()
3920 return byte_count; in aac_build_sgraw()
3926 unsigned long byte_count = 0; in aac_build_sgraw2() local
3957 byte_count += count; in aac_build_sgraw2()
3961 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sgraw2()
3963 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sgraw2()
3965 byte_count = scsi_bufflen(scsicmd); in aac_build_sgraw2()
3996 if (scsicmd->underflow && (byte_count < scsicmd->underflow)) { in aac_build_sgraw2()
3998 byte_count, scsicmd->underflow); in aac_build_sgraw2()
4001 return byte_count; in aac_build_sgraw2()
4044 unsigned long byte_count = 0; in aac_build_sghba() local
4053 byte_count = nseg; in aac_build_sghba()
4072 byte_count += count; in aac_build_sghba()
4078 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sghba()
4081 temp = le32_to_cpu(sge->len) - byte_count in aac_build_sghba()
4084 byte_count = scsi_bufflen(scsicmd); in aac_build_sghba()
4100 if (scsicmd->underflow && (byte_count < scsicmd->underflow)) { in aac_build_sghba()
4102 byte_count, scsicmd->underflow); in aac_build_sghba()
4105 return byte_count; in aac_build_sghba()