Lines Matching refs:byte_count
3213 unsigned long byte_count = 0; in aac_build_sg() local
3234 byte_count += sg_dma_len(sg); in aac_build_sg()
3237 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg()
3239 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg()
3241 byte_count = scsi_bufflen(scsicmd); in aac_build_sg()
3244 if(scsicmd->underflow && (byte_count < scsicmd->underflow)){ in aac_build_sg()
3246 byte_count, scsicmd->underflow); in aac_build_sg()
3249 return byte_count; in aac_build_sg()
3256 unsigned long byte_count = 0; in aac_build_sg64() local
3280 byte_count += count; in aac_build_sg64()
3284 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg64()
3286 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg64()
3288 byte_count = scsi_bufflen(scsicmd); in aac_build_sg64()
3291 if(scsicmd->underflow && (byte_count < scsicmd->underflow)){ in aac_build_sg64()
3293 byte_count, scsicmd->underflow); in aac_build_sg64()
3296 return byte_count; in aac_build_sg64()
3301 unsigned long byte_count = 0; in aac_build_sgraw() local
3329 byte_count += count; in aac_build_sgraw()
3333 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sgraw()
3335 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sgraw()
3337 byte_count = scsi_bufflen(scsicmd); in aac_build_sgraw()
3340 if(scsicmd->underflow && (byte_count < scsicmd->underflow)){ in aac_build_sgraw()
3342 byte_count, scsicmd->underflow); in aac_build_sgraw()
3345 return byte_count; in aac_build_sgraw()
3351 unsigned long byte_count = 0; in aac_build_sgraw2() local
3383 byte_count += count; in aac_build_sgraw2()
3387 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sgraw2()
3389 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sgraw2()
3391 byte_count = scsi_bufflen(scsicmd); in aac_build_sgraw2()
3418 if (scsicmd->underflow && (byte_count < scsicmd->underflow)) { in aac_build_sgraw2()
3420 byte_count, scsicmd->underflow); in aac_build_sgraw2()
3424 return byte_count; in aac_build_sgraw2()