Lines Matching refs:this_count
297 int dev, block, this_count; in sd_init_command() local
308 this_count = SCpnt->request_bufflen >> 9; in sd_init_command()
352 this_count = this_count >> 1; in sd_init_command()
361 this_count = this_count >> 2; in sd_init_command()
370 this_count = this_count >> 3; in sd_init_command()
392 this_count, SCpnt->request.nr_sectors)); in sd_init_command()
397 if (((this_count > 0xff) || (block > 0x1fffff)) || SCpnt->device->ten) { in sd_init_command()
398 if (this_count > 0xffff) in sd_init_command()
399 this_count = 0xffff; in sd_init_command()
407 SCpnt->cmnd[7] = (unsigned char) (this_count >> 8) & 0xff; in sd_init_command()
408 SCpnt->cmnd[8] = (unsigned char) this_count & 0xff; in sd_init_command()
410 if (this_count > 0xff) in sd_init_command()
411 this_count = 0xff; in sd_init_command()
416 SCpnt->cmnd[4] = (unsigned char) this_count; in sd_init_command()
426 SCpnt->underflow = this_count << 9; in sd_init_command()
603 int this_count = SCpnt->bufflen >> 9; in rw_intr() local
604 int good_sectors = (result == 0 ? this_count : 0); in rw_intr()
662 if (good_sectors < 0 || good_sectors >= this_count) in rw_intr()
675 good_sectors = this_count; in rw_intr()