tag | line | file | source code |
sector | 2092 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
sector | 2102 | drivers/block/floppy.c | CURRENT->sector += CURRENT->current_nr_sectors; |
sector | 2110 | drivers/block/floppy.c | CURRENT->sector += current_count_sectors; |
sector | 2122 | drivers/block/floppy.c | DRWE->first_error_sector = CURRENT->sector; |
sector | 2125 | drivers/block/floppy.c | DRWE->last_error_sector = CURRENT->sector; |
sector | 2367 | drivers/block/floppy.c | TRACK = CURRENT->sector / max_sector; |
sector | 2368 | 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 | 832 | drivers/block/ide.c | printk(", sector=%ld", HWGROUP(drive)->rq->sector); |
sector | 945 | drivers/block/ide.c | drive->name, rq->sector, rq->sector+nsect-1, |
sector | 948 | drivers/block/ide.c | rq->sector += nsect; |
sector | 975 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
sector | 979 | drivers/block/ide.c | rq->sector++; |
sector | 1018 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
sector | 1341 | drivers/block/ide.c | block = rq->sector; |
sector | 1633 | drivers/block/ide.c | rq.sector = 0; |
sector | 288 | drivers/block/ll_rw_blk.c | unsigned int sector, count; |
sector | 308 | drivers/block/ll_rw_blk.c | sector = bh->b_blocknr * count; |
sector | 310 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
sector | 358 | drivers/block/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
sector | 372 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
sector | 379 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 406 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 421 | drivers/block/ll_rw_blk.c | unsigned long sector = page * (PAGE_SIZE / 512); |
sector | 426 | drivers/block/ll_rw_blk.c | kdevname(dev), sector); |
sector | 440 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 572 | 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 | 143 | drivers/cdrom/mcd.c | && CURRENT -> sector != -1) |
sector | 648 | drivers/cdrom/mcd.c | int bn = CURRENT -> sector / 4; |
sector | 653 | drivers/cdrom/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 654 | drivers/cdrom/mcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 666 | drivers/cdrom/mcd.c | CURRENT -> sector += nr_sectors; |
sector | 707 | drivers/cdrom/mcd.c | printk(" do_mcd_request(%ld+%ld)\n", CURRENT -> sector, CURRENT -> nr_sectors); |
sector | 913 | drivers/cdrom/mcd.c | mcd_next_bn = CURRENT -> sector / 4; |
sector | 987 | drivers/cdrom/mcd.c | && (CURRENT -> sector / 4 < mcd_next_bn || |
sector | 988 | drivers/cdrom/mcd.c | CURRENT -> sector / 4 > mcd_next_bn + 16)) { |
sector | 215 | drivers/cdrom/mcdx.c | static int mcdx_transfer(struct s_drive_stuff*, char* buf, int sector, int nr_sectors); |
sector | 570 | drivers/cdrom/mcdx.c | CURRENT->sector, |
sector | 574 | drivers/cdrom/mcdx.c | CURRENT->sector += CURRENT->nr_sectors; |
sector | 580 | drivers/cdrom/mcdx.c | CURRENT->sector += i; |
sector | 1173 | drivers/cdrom/mcdx.c | char *p, int sector, int nr_sectors) |
sector | 1182 | drivers/cdrom/mcdx.c | nr_sectors, sector)); |
sector | 1196 | drivers/cdrom/mcdx.c | && (sector >= stuffp->pending) |
sector | 1197 | drivers/cdrom/mcdx.c | && (sector < stuffp->off_direct)) { |
sector | 1200 | drivers/cdrom/mcdx.c | off = stuffp->off_requested < (off = sector + nr_sectors) |
sector | 1265 | drivers/cdrom/mcdx.c | if (stuffp->pending == sector) { |
sector | 1268 | drivers/cdrom/mcdx.c | sector++; |
sector | 1287 | 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 | 4351 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
sector | 4352 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
sector | 4354 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
sector | 4357 | drivers/cdrom/sbpcd.c | CURRENT->sector++; |
sector | 4377 | drivers/cdrom/sbpcd.c | if (CURRENT -> sector == -1) |
sector | 4397 | drivers/cdrom/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
sector | 4465 | drivers/cdrom/sbpcd.c | block=CURRENT->sector/4; |
sector | 4814 | 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 | 887 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 1037 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 2157 | drivers/scsi/scsi.c | int page, sector, nbits, mask; |
sector | 2176 | drivers/scsi/scsi.c | sector = offset >> 9; |
sector | 2177 | drivers/scsi/scsi.c | if(sector >= dma_sectors) panic ("Bad page"); |
sector | 2179 | drivers/scsi/scsi.c | sector = (offset >> 9) & (sizeof(*dma_malloc_freelist) * 8 - 1); |
sector | 2183 | drivers/scsi/scsi.c | if ((mask << sector) > 0xffff) panic ("Bad memory alignment"); |
sector | 2187 | drivers/scsi/scsi.c | if((dma_malloc_freelist[page] & (mask << sector)) != (mask<<sector)) |
sector | 2191 | drivers/scsi/scsi.c | dma_malloc_freelist[page] &= ~(mask << sector); |
sector | 3026 | drivers/scsi/scsi.c | SCpnt->request.sector, |
sector | 3053 | drivers/scsi/scsi.c | req->sector, |
sector | 465 | drivers/scsi/scsi.h | kdevname(req->rq_dev), req->sector); |
sector | 472 | 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); |