Lines Matching refs:this_count
297 int this_count = scsi_bufflen(SCpnt); in sr_done() local
298 int good_bytes = (result == 0 ? this_count : 0); in sr_done()
332 if (good_bytes < 0 || good_bytes >= this_count) in sr_done()
348 good_bytes = this_count; in sr_done()
361 int block = 0, this_count, s_size; in sr_init_command() local
436 this_count = (scsi_bufflen(SCpnt) >> 9) / (s_size >> 9); in sr_init_command()
443 this_count, blk_rq_sectors(rq))); in sr_init_command()
448 if (this_count > 0xffff) { in sr_init_command()
449 this_count = 0xffff; in sr_init_command()
450 SCpnt->sdb.length = this_count * s_size; in sr_init_command()
455 put_unaligned_be16(this_count, &SCpnt->cmnd[7]); in sr_init_command()
463 SCpnt->underflow = this_count << 9; in sr_init_command()