tag | line | file | source code |
sector | 2090 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
sector | 2100 | drivers/block/floppy.c | CURRENT->sector += CURRENT->current_nr_sectors; |
sector | 2108 | drivers/block/floppy.c | CURRENT->sector += current_count_sectors; |
sector | 2120 | drivers/block/floppy.c | DRWE->first_error_sector = CURRENT->sector; |
sector | 2123 | drivers/block/floppy.c | DRWE->last_error_sector = CURRENT->sector; |
sector | 2365 | drivers/block/floppy.c | TRACK = CURRENT->sector / max_sector; |
sector | 2366 | drivers/block/floppy.c | sector_t = CURRENT->sector % max_sector; |
sector | 163 | drivers/block/hd.c | printk(", sector=%ld", CURRENT->sector); |
sector | 500 | drivers/block/hd.c | CURRENT->sector += nsect; |
sector | 507 | drivers/block/hd.c | dev+'a', CURRENT->sector, CURRENT->sector+nsect, |
sector | 601 | drivers/block/hd.c | CURRENT->sector++; |
sector | 711 | drivers/block/hd.c | block = CURRENT->sector; |
sector | 517 | drivers/block/ide-cd.c | rq->sector -= n; |
sector | 576 | drivers/block/ide-cd.c | rq->sector += adj; |
sector | 835 | drivers/block/ide-cd.c | static void cdrom_buffer_sectors (ide_drive_t *drive, unsigned long sector, |
sector | 861 | drivers/block/ide-cd.c | info->sector_buffered = sector; |
sector | 1005 | drivers/block/ide-cd.c | cdrom_buffer_sectors (drive, rq->sector, sectors_to_transfer); |
sector | 1023 | drivers/block/ide-cd.c | ++rq->sector; |
sector | 1051 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
sector | 1052 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) |
sector | 1059 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
sector | 1064 | drivers/block/ide-cd.c | ++rq->sector; |
sector | 1083 | drivers/block/ide-cd.c | (rq->sector % SECTORS_PER_FRAME) != 0) |
sector | 1086 | drivers/block/ide-cd.c | drive->name, rq->sector); |
sector | 1107 | drivers/block/ide-cd.c | int nsect, sector, nframes, frame, nskip; |
sector | 1113 | drivers/block/ide-cd.c | sector = rq->sector; |
sector | 1121 | drivers/block/ide-cd.c | nskip = (sector % SECTORS_PER_FRAME); |
sector | 1133 | drivers/block/ide-cd.c | sector -= nskip; |
sector | 1141 | drivers/block/ide-cd.c | frame = sector / SECTORS_PER_FRAME; |
sector | 1170 | drivers/block/ide-cd.c | rq->sector = block; |
sector | 2076 | drivers/block/ide-tape.c | rq->sector+=rq->current_nr_sectors; |
sector | 2109 | drivers/block/ide-tape.c | rq->sector+=rq->current_nr_sectors; |
sector | 2832 | drivers/block/ide-tape.c | printk ("sector: %ld, nr_sectors: %ld, current_nr_sectors: %ld\n",rq->sector,rq->nr_sectors,rq->current_nr_sectors); |
sector | 3100 | drivers/block/ide-tape.c | rq.sector = tape->block_address; |
sector | 3127 | drivers/block/ide-tape.c | rq.sector = tape->block_address; |
sector | 3225 | drivers/block/ide-tape.c | rq->sector = tape->block_address; /* Doesn't actually matter - We always assume sequential access */ |
sector | 844 | drivers/block/ide.c | printk(", sector=%ld", HWGROUP(drive)->rq->sector); |
sector | 952 | drivers/block/ide.c | drive->name, rq->sector, rq->sector+nsect-1, |
sector | 955 | drivers/block/ide.c | rq->sector += nsect; |
sector | 981 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
sector | 985 | drivers/block/ide.c | rq->sector++; |
sector | 1020 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
sector | 1338 | drivers/block/ide.c | block = rq->sector; |
sector | 1629 | drivers/block/ide.c | rq->sector = 0; |
sector | 305 | drivers/block/ll_rw_blk.c | unsigned int sector, count; |
sector | 310 | drivers/block/ll_rw_blk.c | sector = bh->b_blocknr * count; |
sector | 312 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
sector | 380 | drivers/block/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
sector | 394 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
sector | 401 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 428 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 443 | drivers/block/ll_rw_blk.c | unsigned long sector = page * (PAGE_SIZE / 512); |
sector | 448 | drivers/block/ll_rw_blk.c | kdevname(dev), sector); |
sector | 468 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 600 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
sector | 111 | drivers/block/rd.c | offset = CURRENT->sector << 9; |
sector | 220 | drivers/block/xd.c | && CURRENT->sector + CURRENT->nr_sectors |
sector | 222 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->rq_dev)].start_sect; |
sector | 338 | drivers/block/xd.c | u_char head,sector,control,mode,temp; |
sector | 351 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
sector | 354 | drivers/block/xd.c | printk("xd_readwrite: drive = %d, head = %d, cylinder = %d, sector = %d, count = %d\n",drive,head,cylinder,sector,temp); |
sector | 358 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
sector | 432 | drivers/block/xd.c | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control) |
sector | 436 | drivers/block/xd.c | cmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F); |
sector | 196 | drivers/cdrom/aztcd.c | && CURRENT -> sector != -1) |
sector | 965 | drivers/cdrom/aztcd.c | int bn = CURRENT -> sector / 4; |
sector | 970 | drivers/cdrom/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 971 | drivers/cdrom/aztcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 983 | drivers/cdrom/aztcd.c | CURRENT -> sector += nr_sectors; |
sector | 997 | drivers/cdrom/aztcd.c | printk(" do_aztcd_request(%ld+%ld) Time:%li\n", CURRENT -> sector, CURRENT -> nr_sectors,jiffies); |
sector | 1183 | drivers/cdrom/aztcd.c | azt_next_bn = CURRENT -> sector / 4; |
sector | 1336 | drivers/cdrom/aztcd.c | && (CURRENT -> sector / 4 < azt_next_bn || |
sector | 1337 | drivers/cdrom/aztcd.c | CURRENT -> sector / 4 > azt_next_bn + AZT_BUF_SIZ)) { |
sector | 1078 | drivers/cdrom/cdu31a.c | start_request(unsigned int sector, |
sector | 1087 | drivers/cdrom/cdu31a.c | log_to_msf(sector, params); |
sector | 1097 | drivers/cdrom/cdu31a.c | else if ((sector + nsect) >= sony_toc.lead_out_start_lba) |
sector | 1099 | drivers/cdrom/cdu31a.c | read_size = sony_toc.lead_out_start_lba - sector; |
sector | 1139 | drivers/cdrom/cdu31a.c | sony_next_block = sector * 4; |
sector | 1559 | drivers/cdrom/cdu31a.c | block = CURRENT->sector; |
sector | 156 | drivers/cdrom/cm206.c | ush sector[READ_AHEAD*RAW_SECTOR_SIZE/2]; /* buffered cd-sector */ |
sector | 465 | drivers/cdrom/cm206.c | insw(r_fifo_output_buffer, cd->sector, READ_AHEAD*RAW_SECTOR_SIZE/2); |
sector | 590 | drivers/cdrom/cm206.c | insw(r_fifo_output_buffer, cd->sector + cd->fifo_overflowed, |
sector | 604 | drivers/cdrom/cm206.c | int try_adapter(int sector) |
sector | 606 | drivers/cdrom/cm206.c | if (cd->adapter_first <= sector && sector < cd->adapter_last) { |
sector | 608 | drivers/cdrom/cm206.c | empty_buffer(sector - cd->adapter_first); |
sector | 611 | drivers/cdrom/cm206.c | else if (cd->background==1 && cd->adapter_first <= sector |
sector | 612 | drivers/cdrom/cm206.c | && sector < cd->adapter_first+cd->max_sectors) { |
sector | 615 | drivers/cdrom/cm206.c | while (sector >= cd->adapter_last) { |
sector | 617 | drivers/cdrom/cm206.c | debug(("Timed out during background wait: %d %d %d %d\n", sector, |
sector | 625 | drivers/cdrom/cm206.c | empty_buffer(sector - cd->adapter_first); |
sector | 651 | drivers/cdrom/cm206.c | cd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */ |
sector | 652 | drivers/cdrom/cm206.c | quarter = (CURRENT->sector+i) % 4; |
sector | 656 | drivers/cdrom/cm206.c | source = ((uch *) cd->sector) + 16 + |
sector | 661 | drivers/cdrom/cm206.c | source = ((uch *) cd->sector)+16+quarter*512; |
sector | 244 | drivers/cdrom/gscd.c | while (CURRENT -> nr_sectors > 0 && gscd_bn == CURRENT -> sector / 4) |
sector | 246 | drivers/cdrom/gscd.c | offs = (CURRENT -> sector & 3) * 512; |
sector | 249 | drivers/cdrom/gscd.c | CURRENT -> sector++; |
sector | 268 | drivers/cdrom/gscd.c | block = CURRENT->sector; |
sector | 271 | drivers/cdrom/gscd.c | if (CURRENT == NULL || CURRENT -> sector == -1) |
sector | 337 | drivers/cdrom/gscd.c | block = CURRENT -> sector / 4; |
sector | 349 | drivers/cdrom/gscd.c | gscd_bn = CURRENT -> sector / 4; |
sector | 133 | drivers/cdrom/mcd.c | && CURRENT -> sector != -1) |
sector | 596 | drivers/cdrom/mcd.c | int bn = CURRENT -> sector / 4; |
sector | 601 | drivers/cdrom/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 602 | drivers/cdrom/mcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 614 | drivers/cdrom/mcd.c | CURRENT -> sector += nr_sectors; |
sector | 655 | drivers/cdrom/mcd.c | printk(" do_mcd_request(%ld+%ld)\n", CURRENT -> sector, CURRENT -> nr_sectors); |
sector | 861 | drivers/cdrom/mcd.c | mcd_next_bn = CURRENT -> sector / 4; |
sector | 935 | drivers/cdrom/mcd.c | && (CURRENT -> sector / 4 < mcd_next_bn || |
sector | 936 | drivers/cdrom/mcd.c | CURRENT -> sector / 4 > mcd_next_bn + 16)) { |
sector | 213 | drivers/cdrom/mcdx.c | static int mcdx_transfer(struct s_drive_stuff*, char* buf, int sector, int nr_sectors); |
sector | 581 | drivers/cdrom/mcdx.c | CURRENT->sector, |
sector | 585 | drivers/cdrom/mcdx.c | CURRENT->sector += CURRENT->nr_sectors; |
sector | 591 | drivers/cdrom/mcdx.c | CURRENT->sector += i; |
sector | 1215 | drivers/cdrom/mcdx.c | char *p, int sector, int nr_sectors) |
sector | 1224 | drivers/cdrom/mcdx.c | nr_sectors, sector)); |
sector | 1238 | drivers/cdrom/mcdx.c | && (sector >= stuffp->pending) |
sector | 1239 | drivers/cdrom/mcdx.c | && (sector < stuffp->off_direct)) { |
sector | 1242 | drivers/cdrom/mcdx.c | off = stuffp->off_requested < (off = sector + nr_sectors) |
sector | 1299 | drivers/cdrom/mcdx.c | if (stuffp->pending == sector) { |
sector | 1302 | drivers/cdrom/mcdx.c | sector++; |
sector | 1321 | drivers/cdrom/mcdx.c | stuffp->pending = sector & ~3; |
sector | 676 | drivers/cdrom/optcd.c | int bn = CURRENT -> sector / 4; |
sector | 686 | drivers/cdrom/optcd.c | offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 687 | drivers/cdrom/optcd.c | nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 699 | drivers/cdrom/optcd.c | CURRENT -> sector += nr_sectors; |
sector | 815 | drivers/cdrom/optcd.c | opt_next_bn = CURRENT -> sector / 4; |
sector | 925 | drivers/cdrom/optcd.c | && (CURRENT -> sector / 4 < opt_next_bn || |
sector | 926 | drivers/cdrom/optcd.c | CURRENT -> sector / 4 > |
sector | 996 | drivers/cdrom/optcd.c | CURRENT -> sector, CURRENT -> nr_sectors); |
sector | 4284 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
sector | 4285 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
sector | 4287 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
sector | 4290 | drivers/cdrom/sbpcd.c | CURRENT->sector++; |
sector | 4310 | drivers/cdrom/sbpcd.c | if (CURRENT -> sector == -1) |
sector | 4330 | drivers/cdrom/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
sector | 4398 | drivers/cdrom/sbpcd.c | block=CURRENT->sector/4; |
sector | 4747 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
sector | 981 | drivers/cdrom/sjcd.c | CURRENT->cmd == READ && CURRENT->sector != -1 ) |
sector | 989 | drivers/cdrom/sjcd.c | int i, bn = CURRENT->sector / 4; |
sector | 992 | drivers/cdrom/sjcd.c | int offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512; |
sector | 993 | drivers/cdrom/sjcd.c | int nr_sectors = 4 - ( CURRENT->sector & 3 ); |
sector | 1008 | drivers/cdrom/sjcd.c | CURRENT->sector += nr_sectors; |
sector | 1125 | drivers/cdrom/sjcd.c | sjcd_next_bn = CURRENT->sector / 4; |
sector | 1241 | drivers/cdrom/sjcd.c | ( CURRENT->sector / 4 < sjcd_next_bn || |
sector | 1242 | drivers/cdrom/sjcd.c | CURRENT->sector / 4 > sjcd_next_bn + SJCD_BUF_SIZ ) ){ |
sector | 1330 | drivers/cdrom/sjcd.c | CURRENT->sector, CURRENT->nr_sectors ); |
sector | 808 | drivers/cdrom/sonycd535.c | block = CURRENT->sector; |
sector | 906 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 1056 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 2199 | drivers/scsi/scsi.c | unsigned int page, sector, nbits, mask; |
sector | 2211 | drivers/scsi/scsi.c | sector = (((unsigned long) obj) - page_addr) >> 9; |
sector | 2216 | drivers/scsi/scsi.c | if ((mask << sector) >= (1 << SECTORS_PER_PAGE)) |
sector | 2221 | drivers/scsi/scsi.c | if((dma_malloc_freelist[page] & (mask << sector)) != (mask<<sector)) |
sector | 2225 | drivers/scsi/scsi.c | dma_malloc_freelist[page] &= ~(mask << sector); |
sector | 3081 | drivers/scsi/scsi.c | SCpnt->request.sector, |
sector | 3108 | drivers/scsi/scsi.c | req->sector, |
sector | 467 | drivers/scsi/scsi.h | kdevname(req->rq_dev), req->sector); |
sector | 474 | drivers/scsi/scsi.h | req->sector += bh->b_size >> 9; |
sector | 104 | drivers/scsi/scsi_debug.c | if (SCpnt->request.sector + start != block) panic("Wrong block."); \ |
sector | 102 | drivers/scsi/scsicam.c | cyl = p->cyl + ((p->sector & 0xc0) << 2); |
sector | 290 | drivers/scsi/sd.c | SCpnt->request.sector, this_count); |
sector | 525 | drivers/scsi/sd.c | block = SCpnt->request.sector; |
sector | 163 | drivers/scsi/sr.c | offset = (SCpnt->request.sector % 4) << 9; |
sector | 197 | drivers/scsi/sr.c | if(SCpnt->request.sector % 4) this_count -= 2; |
sector | 212 | drivers/scsi/sr.c | SCpnt->request.sector, this_count); |
sector | 319 | drivers/scsi/sr.c | unsigned long sector,min,sec,frame; |
sector | 347 | drivers/scsi/sr.c | sector = 0; |
sector | 378 | drivers/scsi/sr.c | sector = min*CD_SECS*CD_FRAMES + sec*CD_FRAMES + frame; |
sector | 381 | drivers/scsi/sr.c | if (sector) { |
sector | 382 | drivers/scsi/sr.c | printk("sr_photocd: multisession CD detected. start: %lu\n",sector); |
sector | 421 | drivers/scsi/sr.c | sector = min*CD_SECS*CD_FRAMES + sec*CD_FRAMES + frame; |
sector | 422 | drivers/scsi/sr.c | if (sector) { |
sector | 423 | drivers/scsi/sr.c | sector -= CD_BLOCK_OFFSET; |
sector | 425 | drivers/scsi/sr.c | printk("sr_photocd: multisession CD detected: start: %lu\n",sector); |
sector | 494 | drivers/scsi/sr.c | sector = rec[11] + (rec[10] << 8) + (rec[9] << 16) + (rec[8] << 24); |
sector | 495 | drivers/scsi/sr.c | is_xa = !!sector; |
sector | 497 | drivers/scsi/sr.c | if (sector) |
sector | 498 | drivers/scsi/sr.c | printk ("sr_photocd: multisession CD detected. start: %lu\n",sector); |
sector | 505 | drivers/scsi/sr.c | sector = 0; |
sector | 509 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = sector; |
sector | 655 | drivers/scsi/sr.c | block = SCpnt->request.sector; |
sector | 730 | drivers/scsi/sr.c | this_count = SCpnt->request.sector % 4; |
sector | 763 | drivers/scsi/sr.c | if(SCpnt->request.sector % 4) { |
sector | 764 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
sector | 814 | drivers/scsi/sr.c | printk("SR: %d %d %d %d %d *** ",SCpnt->use_sg, SCpnt->request.sector, |
sector | 242 | fs/msdos/fat.c | int msdos_smap(struct inode *inode,int sector) |
sector | 250 | fs/msdos/fat.c | if (sector >= sb->dir_entries >> MSDOS_DPS_BITS) return 0; |
sector | 251 | fs/msdos/fat.c | return sector+sb->dir_start; |
sector | 253 | fs/msdos/fat.c | cluster = sector/sb->cluster_size; |
sector | 254 | fs/msdos/fat.c | offset = sector % sb->cluster_size; |
sector | 133 | fs/msdos/file.c | int sector = msdos_smap(inode,pre->file_sector); |
sector | 134 | fs/msdos/file.c | if (sector != 0){ |
sector | 136 | fs/msdos/file.c | PRINTK (("fsector2 %d -> %d\n",pre->file_sector-1,sector)); |
sector | 138 | fs/msdos/file.c | bh = getblk(inode->i_dev,sector,SECTOR_SIZE); |
sector | 274 | fs/msdos/file.c | int sector,offset,size,left,written; |
sector | 300 | fs/msdos/file.c | while (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS))) |
sector | 315 | fs/msdos/file.c | if (!(bh = getblk(inode->i_dev,sector,SECTOR_SIZE))){ |
sector | 319 | fs/msdos/file.c | }else if (!(bh = bread(inode->i_dev,sector,SECTOR_SIZE))) { |
sector | 119 | fs/msdos/misc.c | int count,nr,limit,last,curr,sector,last_sector,file_cluster; |
sector | 188 | fs/msdos/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(nr-2)*cluster_size; |
sector | 189 | fs/msdos/misc.c | last_sector = sector + cluster_size; |
sector | 190 | fs/msdos/misc.c | for ( ; sector < last_sector; sector++) { |
sector | 192 | fs/msdos/misc.c | printk("zeroing sector %d\n",sector); |
sector | 194 | fs/msdos/misc.c | if (!(bh = getblk(inode->i_dev,sector,SECTOR_SIZE))) |
sector | 287 | fs/msdos/misc.c | int sector,offset; |
sector | 292 | fs/msdos/misc.c | if ((sector = msdos_smap(dir,offset >> SECTOR_BITS)) == -1) |
sector | 294 | fs/msdos/misc.c | PRINTK (("get_entry sector %d %p\n",sector,*bh)); |
sector | 295 | fs/msdos/misc.c | if (!sector) |
sector | 301 | fs/msdos/misc.c | if (!(*bh = bread(dir->i_dev,sector,SECTOR_SIZE))) { |
sector | 302 | fs/msdos/misc.c | printk("Directory sread (sector %d) failed\n",sector); |
sector | 308 | fs/msdos/misc.c | return (sector << MSDOS_DPS_BITS)+((offset & (SECTOR_SIZE-1)) >> |
sector | 350 | fs/msdos/misc.c | inode = iget(sb,sector*MSDOS_DPS+entry); \ |
sector | 366 | fs/msdos/misc.c | static int raw_scan_sector(struct super_block *sb,int sector,const char *name, |
sector | 375 | fs/msdos/misc.c | if (!(bh = bread(sb->s_dev,sector,SECTOR_SIZE))) return -EIO; |
sector | 394 | fs/msdos/misc.c | if (ino) *ino = sector*MSDOS_DPS+entry; |
sector | 23 | include/linux/blk.h | (s1)->sector < (s2)->sector))))) |
sector | 359 | include/linux/blk.h | kdevname(req->rq_dev), req->sector); |
sector | 362 | include/linux/blk.h | req->sector += (BLOCK_SIZE / 512); |
sector | 363 | include/linux/blk.h | req->sector &= ~SECTOR_MASK; |
sector | 25 | include/linux/blkdev.h | unsigned long sector; |
sector | 35 | include/linux/genhd.h | unsigned char sector; /* starting sector */ |
sector | 139 | include/linux/msdos_fs.h | extern int msdos_smap(struct inode *inode,int sector); |
sector | 174 | include/linux/optcd.h | && CURRENT -> cmd == READ && CURRENT -> sector != -1) |
sector | 122 | include/linux/xd.h | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control); |