Lines Matching refs:this_count
294 int this_count = scsi_bufflen(SCpnt); in sr_done() local
295 int good_bytes = (result == 0 ? this_count : 0); in sr_done()
329 if (good_bytes < 0 || good_bytes >= this_count) in sr_done()
345 good_bytes = this_count; in sr_done()
358 int block = 0, this_count, s_size; in sr_init_command() local
433 this_count = (scsi_bufflen(SCpnt) >> 9) / (s_size >> 9); in sr_init_command()
440 this_count, blk_rq_sectors(rq))); in sr_init_command()
445 if (this_count > 0xffff) { in sr_init_command()
446 this_count = 0xffff; in sr_init_command()
447 SCpnt->sdb.length = this_count * s_size; in sr_init_command()
452 put_unaligned_be16(this_count, &SCpnt->cmnd[7]); in sr_init_command()
460 SCpnt->underflow = this_count << 9; in sr_init_command()