Lines Matching refs:byte_count

3198 	unsigned long byte_count = 0;  in aac_build_sg()  local
3219 byte_count += sg_dma_len(sg); in aac_build_sg()
3222 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg()
3224 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg()
3226 byte_count = scsi_bufflen(scsicmd); in aac_build_sg()
3229 if(scsicmd->underflow && (byte_count < scsicmd->underflow)){ in aac_build_sg()
3231 byte_count, scsicmd->underflow); in aac_build_sg()
3234 return byte_count; in aac_build_sg()
3241 unsigned long byte_count = 0; in aac_build_sg64() local
3265 byte_count += count; in aac_build_sg64()
3269 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sg64()
3271 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sg64()
3273 byte_count = scsi_bufflen(scsicmd); in aac_build_sg64()
3276 if(scsicmd->underflow && (byte_count < scsicmd->underflow)){ in aac_build_sg64()
3278 byte_count, scsicmd->underflow); in aac_build_sg64()
3281 return byte_count; in aac_build_sg64()
3286 unsigned long byte_count = 0; in aac_build_sgraw() local
3314 byte_count += count; in aac_build_sgraw()
3318 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sgraw()
3320 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sgraw()
3322 byte_count = scsi_bufflen(scsicmd); in aac_build_sgraw()
3325 if(scsicmd->underflow && (byte_count < scsicmd->underflow)){ in aac_build_sgraw()
3327 byte_count, scsicmd->underflow); in aac_build_sgraw()
3330 return byte_count; in aac_build_sgraw()
3336 unsigned long byte_count = 0; in aac_build_sgraw2() local
3368 byte_count += count; in aac_build_sgraw2()
3372 if (byte_count > scsi_bufflen(scsicmd)) { in aac_build_sgraw2()
3374 (byte_count - scsi_bufflen(scsicmd)); in aac_build_sgraw2()
3376 byte_count = scsi_bufflen(scsicmd); in aac_build_sgraw2()
3403 if (scsicmd->underflow && (byte_count < scsicmd->underflow)) { in aac_build_sgraw2()
3405 byte_count, scsicmd->underflow); in aac_build_sgraw2()
3409 return byte_count; in aac_build_sgraw2()