Lines Matching refs:sector

956 static void cdrom_buffer_sectors (ide_drive_t *drive, unsigned long sector,  in cdrom_buffer_sectors()  argument
974 info->sector_buffered = sector; in cdrom_buffer_sectors()
1139 cdrom_buffer_sectors(drive, rq->sector, sectors_to_transfer); in cdrom_read_intr()
1155 ++rq->sector; in cdrom_read_intr()
1182 rq->sector >= info->sector_buffered && in cdrom_read_from_buffer()
1183 rq->sector < info->sector_buffered + info->nsectors_buffered) { in cdrom_read_from_buffer()
1189 (rq->sector - info->sector_buffered) * SECTOR_SIZE, in cdrom_read_from_buffer()
1194 ++rq->sector; in cdrom_read_from_buffer()
1213 (rq->sector % SECTORS_PER_FRAME) != 0) { in cdrom_read_from_buffer()
1215 drive->name, rq->sector); in cdrom_read_from_buffer()
1233 int nsect, sector, nframes, frame, nskip; in cdrom_start_read_continuation() local
1239 sector = rq->sector; in cdrom_start_read_continuation()
1248 nskip = (sector % SECTORS_PER_FRAME); in cdrom_start_read_continuation()
1252 (rq->sector % CD_FRAMESIZE != 0)) { in cdrom_start_read_continuation()
1258 sector -= nskip; in cdrom_start_read_continuation()
1266 frame = sector / SECTORS_PER_FRAME; in cdrom_start_read_continuation()
1320 int sector, frame, nskip; in cdrom_start_seek_continuation() local
1322 sector = rq->sector; in cdrom_start_seek_continuation()
1323 nskip = (sector % SECTORS_PER_FRAME); in cdrom_start_seek_continuation()
1325 sector -= nskip; in cdrom_start_seek_continuation()
1326 frame = sector / SECTORS_PER_FRAME; in cdrom_start_seek_continuation()
1383 if (rq->sector + rq->nr_sectors != nxt->sector) in cdrom_attempt_remerge()
1403 rq->sector -= n; in restore_request()
1407 rq->hard_sector = rq->sector; in restore_request()
1422 rq->sector = block; in cdrom_start_read()
1441 if (drive->using_dma && (rq->sector % SECTORS_PER_FRAME == 0) && in cdrom_start_read()
1773 ++rq->sector; in cdrom_write_intr()
1797 frame = rq->sector >> 2; in cdrom_start_write_cont()
1823 if ((rq->nr_sectors & 3) || (rq->sector & 3)) { in cdrom_start_write()