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 | 491 | drivers/block/ide-cd.c | rq->sector -= n; |
sector | 553 | drivers/block/ide-cd.c | rq->sector = 0; |
sector | 583 | drivers/block/ide-cd.c | rq->sector += adj; |
sector | 843 | drivers/block/ide-cd.c | static void cdrom_buffer_sectors (ide_drive_t *drive, unsigned long sector, |
sector | 869 | drivers/block/ide-cd.c | info->sector_buffered = sector; |
sector | 1016 | drivers/block/ide-cd.c | cdrom_buffer_sectors (drive, rq->sector, sectors_to_transfer); |
sector | 1034 | drivers/block/ide-cd.c | ++rq->sector; |
sector | 1062 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
sector | 1063 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) |
sector | 1070 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
sector | 1075 | drivers/block/ide-cd.c | ++rq->sector; |
sector | 1094 | drivers/block/ide-cd.c | (rq->sector % SECTORS_PER_FRAME) != 0) |
sector | 1097 | drivers/block/ide-cd.c | drive->name, rq->sector); |
sector | 1118 | drivers/block/ide-cd.c | int nsect, sector, nframes, frame, nskip; |
sector | 1124 | drivers/block/ide-cd.c | sector = rq->sector; |
sector | 1132 | drivers/block/ide-cd.c | nskip = (sector % SECTORS_PER_FRAME); |
sector | 1145 | drivers/block/ide-cd.c | sector -= nskip; |
sector | 1153 | drivers/block/ide-cd.c | frame = sector / SECTORS_PER_FRAME; |
sector | 1420 | drivers/block/ide-cd.c | req.sector = 0; |
sector | 840 | drivers/block/ide.c | printk(", sector=%ld", HWGROUP(drive)->rq->sector); |
sector | 953 | drivers/block/ide.c | drive->name, rq->sector, rq->sector+nsect-1, |
sector | 956 | drivers/block/ide.c | rq->sector += nsect; |
sector | 983 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
sector | 987 | drivers/block/ide.c | rq->sector++; |
sector | 1026 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
sector | 1349 | drivers/block/ide.c | block = rq->sector; |
sector | 1641 | drivers/block/ide.c | rq.sector = 0; |
sector | 301 | drivers/block/ll_rw_blk.c | unsigned int sector, count; |
sector | 321 | drivers/block/ll_rw_blk.c | sector = bh->b_blocknr * count; |
sector | 323 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
sector | 371 | drivers/block/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
sector | 385 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
sector | 392 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 419 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 434 | drivers/block/ll_rw_blk.c | unsigned long sector = page * (PAGE_SIZE / 512); |
sector | 439 | drivers/block/ll_rw_blk.c | kdevname(dev), sector); |
sector | 453 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 585 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
sector | 40 | drivers/block/ramdisk.c | addr = rd_start + (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 | 189 | drivers/cdrom/aztcd.c | && CURRENT -> sector != -1) |
sector | 961 | drivers/cdrom/aztcd.c | int bn = CURRENT -> sector / 4; |
sector | 966 | drivers/cdrom/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 967 | drivers/cdrom/aztcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 979 | drivers/cdrom/aztcd.c | CURRENT -> sector += nr_sectors; |
sector | 993 | drivers/cdrom/aztcd.c | printk(" do_aztcd_request(%ld+%ld) Time:%li\n", CURRENT -> sector, CURRENT -> nr_sectors,jiffies); |
sector | 1178 | drivers/cdrom/aztcd.c | azt_next_bn = CURRENT -> sector / 4; |
sector | 1315 | drivers/cdrom/aztcd.c | && (CURRENT -> sector / 4 < azt_next_bn || |
sector | 1316 | drivers/cdrom/aztcd.c | CURRENT -> sector / 4 > azt_next_bn + AZT_BUF_SIZ)) { |
sector | 1079 | drivers/cdrom/cdu31a.c | start_request(unsigned int sector, |
sector | 1088 | drivers/cdrom/cdu31a.c | log_to_msf(sector, params); |
sector | 1098 | drivers/cdrom/cdu31a.c | else if ((sector + nsect) >= sony_toc.lead_out_start_lba) |
sector | 1100 | drivers/cdrom/cdu31a.c | read_size = sony_toc.lead_out_start_lba - sector; |
sector | 1140 | drivers/cdrom/cdu31a.c | sony_next_block = sector * 4; |
sector | 1560 | 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 | 4283 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
sector | 4284 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
sector | 4286 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
sector | 4289 | drivers/cdrom/sbpcd.c | CURRENT->sector++; |
sector | 4309 | drivers/cdrom/sbpcd.c | if (CURRENT -> sector == -1) |
sector | 4329 | drivers/cdrom/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
sector | 4397 | drivers/cdrom/sbpcd.c | block=CURRENT->sector/4; |
sector | 4746 | 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 | 806 | drivers/cdrom/sonycd535.c | block = CURRENT->sector; |
sector | 886 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 1036 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 2175 | drivers/scsi/scsi.c | int page, sector, nbits, mask; |
sector | 2194 | drivers/scsi/scsi.c | sector = offset >> 9; |
sector | 2195 | drivers/scsi/scsi.c | if(sector >= dma_sectors) panic ("Bad page"); |
sector | 2197 | drivers/scsi/scsi.c | sector = (offset >> 9) & (sizeof(*dma_malloc_freelist) * 8 - 1); |
sector | 2201 | drivers/scsi/scsi.c | if ((mask << sector) > 0xffff) panic ("Bad memory alignment"); |
sector | 2205 | drivers/scsi/scsi.c | if((dma_malloc_freelist[page] & (mask << sector)) != (mask<<sector)) |
sector | 2209 | drivers/scsi/scsi.c | dma_malloc_freelist[page] &= ~(mask << sector); |
sector | 3044 | drivers/scsi/scsi.c | SCpnt->request.sector, |
sector | 3071 | drivers/scsi/scsi.c | req->sector, |
sector | 466 | drivers/scsi/scsi.h | kdevname(req->rq_dev), req->sector); |
sector | 473 | 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 | 129 | fs/msdos/file.c | int sector = msdos_smap(inode,pre->file_sector); |
sector | 130 | fs/msdos/file.c | if (sector != 0){ |
sector | 132 | fs/msdos/file.c | PRINTK (("fsector2 %d -> %d\n",pre->file_sector-1,sector)); |
sector | 134 | fs/msdos/file.c | bh = getblk(inode->i_dev,sector,SECTOR_SIZE); |
sector | 270 | fs/msdos/file.c | int sector,offset,size,left,written; |
sector | 296 | fs/msdos/file.c | while (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS))) |
sector | 311 | fs/msdos/file.c | if (!(bh = getblk(inode->i_dev,sector,SECTOR_SIZE))){ |
sector | 315 | 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 | 355 | include/linux/blk.h | kdevname(req->rq_dev), req->sector); |
sector | 358 | include/linux/blk.h | req->sector += (BLOCK_SIZE / 512); |
sector | 359 | 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); |