tag | line | file | source code |
sector | 188 | drivers/block/aztcd.c | && CURRENT -> sector != -1) |
sector | 864 | drivers/block/aztcd.c | int bn = CURRENT -> sector / 4; |
sector | 869 | drivers/block/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 870 | drivers/block/aztcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 882 | drivers/block/aztcd.c | CURRENT -> sector += nr_sectors; |
sector | 896 | drivers/block/aztcd.c | printk(" do_aztcd_request(%ld+%ld) Time:%li\n", CURRENT -> sector, CURRENT -> nr_sectors,jiffies); |
sector | 1071 | drivers/block/aztcd.c | azt_next_bn = CURRENT -> sector / 4; |
sector | 1202 | drivers/block/aztcd.c | && (CURRENT -> sector / 4 < azt_next_bn || |
sector | 1203 | drivers/block/aztcd.c | CURRENT -> sector / 4 > azt_next_bn + AZT_BUF_SIZ)) { |
sector | 23 | drivers/block/blk.h | (s1)->sector < (s2)->sector))))) |
sector | 348 | drivers/block/blk.h | (unsigned long)req->dev, req->sector); |
sector | 351 | drivers/block/blk.h | req->sector += (BLOCK_SIZE / 512); |
sector | 352 | drivers/block/blk.h | req->sector &= ~SECTOR_MASK; |
sector | 1002 | drivers/block/cdu31a.c | start_request(unsigned int sector, |
sector | 1011 | drivers/block/cdu31a.c | log_to_msf(sector, params); |
sector | 1021 | drivers/block/cdu31a.c | else if ((sector + nsect) >= sony_toc->lead_out_start_lba) |
sector | 1023 | drivers/block/cdu31a.c | read_size = sony_toc->lead_out_start_lba - sector; |
sector | 1063 | drivers/block/cdu31a.c | sony_next_block = sector * 4; |
sector | 1464 | drivers/block/cdu31a.c | block = CURRENT->sector; |
sector | 165 | drivers/block/cm206.c | ush sector[READ_AHEAD*RAW_SECTOR_SIZE/2]; /* buffered cd-sector */ |
sector | 474 | drivers/block/cm206.c | insw(r_fifo_output_buffer, cd->sector, READ_AHEAD*RAW_SECTOR_SIZE/2); |
sector | 599 | drivers/block/cm206.c | insw(r_fifo_output_buffer, cd->sector + cd->fifo_overflowed, |
sector | 613 | drivers/block/cm206.c | int try_adapter(int sector) |
sector | 615 | drivers/block/cm206.c | if (cd->adapter_first <= sector && sector < cd->adapter_last) { |
sector | 617 | drivers/block/cm206.c | empty_buffer(sector - cd->adapter_first); |
sector | 620 | drivers/block/cm206.c | else if (cd->background==1 && cd->adapter_first <= sector |
sector | 621 | drivers/block/cm206.c | && sector < cd->adapter_first+cd->max_sectors) { |
sector | 624 | drivers/block/cm206.c | while (sector >= cd->adapter_last) { |
sector | 626 | drivers/block/cm206.c | debug(("Timed out during background wait: %d %d %d %d\n", sector, |
sector | 634 | drivers/block/cm206.c | empty_buffer(sector - cd->adapter_first); |
sector | 659 | drivers/block/cm206.c | cd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */ |
sector | 660 | drivers/block/cm206.c | quarter = (CURRENT->sector+i) % 4; |
sector | 664 | drivers/block/cm206.c | source = ((uch *) cd->sector) + 16 + |
sector | 669 | drivers/block/cm206.c | source = ((uch *) cd->sector)+16+quarter*512; |
sector | 2121 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
sector | 2132 | drivers/block/floppy.c | CURRENT->sector += CURRENT->current_nr_sectors; |
sector | 2140 | drivers/block/floppy.c | CURRENT->sector += current_count_sectors; |
sector | 2152 | drivers/block/floppy.c | DRWE->first_error_sector = CURRENT->sector; |
sector | 2155 | drivers/block/floppy.c | DRWE->last_error_sector = CURRENT->sector; |
sector | 2402 | drivers/block/floppy.c | TRACK = CURRENT->sector / max_sector; |
sector | 2403 | drivers/block/floppy.c | sector_t = CURRENT->sector % max_sector; |
sector | 252 | drivers/block/gscd.c | while (CURRENT -> nr_sectors > 0 && gscd_bn == CURRENT -> sector / 4) |
sector | 254 | drivers/block/gscd.c | offs = (CURRENT -> sector & 3) * 512; |
sector | 257 | drivers/block/gscd.c | CURRENT -> sector++; |
sector | 276 | drivers/block/gscd.c | block = CURRENT->sector; |
sector | 279 | drivers/block/gscd.c | if (CURRENT == NULL || CURRENT -> sector == -1) |
sector | 345 | drivers/block/gscd.c | block = CURRENT -> sector / 4; |
sector | 357 | drivers/block/gscd.c | gscd_bn = CURRENT -> sector / 4; |
sector | 165 | drivers/block/hd.c | printk(", sector=%ld", CURRENT->sector); |
sector | 502 | drivers/block/hd.c | CURRENT->sector += nsect; |
sector | 509 | drivers/block/hd.c | dev+'a', CURRENT->sector, CURRENT->sector+nsect, |
sector | 603 | drivers/block/hd.c | CURRENT->sector++; |
sector | 713 | drivers/block/hd.c | block = CURRENT->sector; |
sector | 455 | drivers/block/ide-cd.c | rq->sector -= n; |
sector | 501 | drivers/block/ide-cd.c | rq->sector = 0; |
sector | 531 | drivers/block/ide-cd.c | rq->sector += adj; |
sector | 740 | drivers/block/ide-cd.c | static void cdrom_buffer_sectors (ide_dev_t *dev, unsigned long sector, |
sector | 766 | drivers/block/ide-cd.c | info->sector_buffered = sector; |
sector | 913 | drivers/block/ide-cd.c | cdrom_buffer_sectors (dev, rq->sector, sectors_to_transfer); |
sector | 931 | drivers/block/ide-cd.c | ++rq->sector; |
sector | 959 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
sector | 960 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) |
sector | 967 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
sector | 972 | drivers/block/ide-cd.c | ++rq->sector; |
sector | 991 | drivers/block/ide-cd.c | (rq->sector % SECTORS_PER_FRAME) != 0) |
sector | 994 | drivers/block/ide-cd.c | dev->name, rq->sector); |
sector | 1015 | drivers/block/ide-cd.c | int nsect, sector, nframes, frame, nskip; |
sector | 1021 | drivers/block/ide-cd.c | sector = rq->sector; |
sector | 1029 | drivers/block/ide-cd.c | nskip = (sector % SECTORS_PER_FRAME); |
sector | 1042 | drivers/block/ide-cd.c | sector -= nskip; |
sector | 1050 | drivers/block/ide-cd.c | frame = sector / SECTORS_PER_FRAME; |
sector | 1300 | drivers/block/ide-cd.c | req.sector = 0; |
sector | 649 | drivers/block/ide.c | printk(", sector=%ld", ide_cur_rq[HWIF]->sector); |
sector | 734 | drivers/block/ide.c | dev->name, rq->sector, rq->sector+nsect-1, |
sector | 737 | drivers/block/ide.c | rq->sector += nsect; |
sector | 762 | drivers/block/ide.c | dev->name, rq->sector, (unsigned long) rq->buffer, |
sector | 766 | drivers/block/ide.c | rq->sector++; |
sector | 801 | drivers/block/ide.c | dev->name, rq->sector, (unsigned long) rq->buffer, |
sector | 1148 | drivers/block/ide.c | block = rq->sector; |
sector | 1455 | drivers/block/ide.c | rq.sector = 0; |
sector | 283 | drivers/block/ll_rw_blk.c | unsigned int sector, count; |
sector | 303 | drivers/block/ll_rw_blk.c | sector = bh->b_blocknr * count; |
sector | 305 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
sector | 350 | drivers/block/ll_rw_blk.c | req->sector + req->nr_sectors == sector && |
sector | 364 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
sector | 371 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 398 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 413 | drivers/block/ll_rw_blk.c | unsigned long sector = page * (PAGE_SIZE / 512); |
sector | 417 | drivers/block/ll_rw_blk.c | printk("Trying to read nonexistent block-device %04x (%ld)\n",dev,sector); |
sector | 430 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 560 | drivers/block/ll_rw_blk.c | req[j]->sector = (b[i] * buffersize) >> 9; |
sector | 143 | drivers/block/mcd.c | && CURRENT -> sector != -1) |
sector | 606 | drivers/block/mcd.c | int bn = CURRENT -> sector / 4; |
sector | 611 | drivers/block/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 612 | drivers/block/mcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 624 | drivers/block/mcd.c | CURRENT -> sector += nr_sectors; |
sector | 665 | drivers/block/mcd.c | printk(" do_mcd_request(%ld+%ld)\n", CURRENT -> sector, CURRENT -> nr_sectors); |
sector | 871 | drivers/block/mcd.c | mcd_next_bn = CURRENT -> sector / 4; |
sector | 945 | drivers/block/mcd.c | && (CURRENT -> sector / 4 < mcd_next_bn || |
sector | 946 | drivers/block/mcd.c | CURRENT -> sector / 4 > mcd_next_bn + 16)) { |
sector | 211 | drivers/block/mcdx.c | static int mcdx_transfer(struct s_drive_stuff*, char* buf, int sector, int nr_sectors); |
sector | 502 | drivers/block/mcdx.c | CURRENT->sector, |
sector | 506 | drivers/block/mcdx.c | CURRENT->sector += CURRENT->nr_sectors; |
sector | 512 | drivers/block/mcdx.c | CURRENT->sector += i; |
sector | 1082 | drivers/block/mcdx.c | char *p, int sector, int nr_sectors) |
sector | 1091 | drivers/block/mcdx.c | nr_sectors, sector)); |
sector | 1102 | drivers/block/mcdx.c | && (sector >= stuffp->pending) |
sector | 1103 | drivers/block/mcdx.c | && (sector < stuffp->off_direct)) { |
sector | 1106 | drivers/block/mcdx.c | off = stuffp->off_requested < (off = sector + nr_sectors) |
sector | 1171 | drivers/block/mcdx.c | if (stuffp->pending == sector) { |
sector | 1174 | drivers/block/mcdx.c | sector++; |
sector | 1193 | drivers/block/mcdx.c | stuffp->pending = sector & ~3; |
sector | 624 | drivers/block/optcd.c | int bn = CURRENT -> sector / 4; |
sector | 634 | drivers/block/optcd.c | offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 635 | drivers/block/optcd.c | nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 647 | drivers/block/optcd.c | CURRENT -> sector += nr_sectors; |
sector | 763 | drivers/block/optcd.c | opt_next_bn = CURRENT -> sector / 4; |
sector | 873 | drivers/block/optcd.c | && (CURRENT -> sector / 4 < opt_next_bn || |
sector | 874 | drivers/block/optcd.c | CURRENT -> sector / 4 > |
sector | 944 | drivers/block/optcd.c | CURRENT -> sector, CURRENT -> nr_sectors); |
sector | 40 | drivers/block/ramdisk.c | addr = rd_start + (CURRENT->sector << 9); |
sector | 4350 | drivers/block/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
sector | 4351 | drivers/block/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
sector | 4353 | drivers/block/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
sector | 4356 | drivers/block/sbpcd.c | CURRENT->sector++; |
sector | 4375 | drivers/block/sbpcd.c | if (CURRENT -> sector == -1) goto err_done; |
sector | 4393 | drivers/block/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
sector | 4461 | drivers/block/sbpcd.c | block=CURRENT->sector/4; |
sector | 4810 | drivers/block/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
sector | 912 | drivers/block/sjcd.c | CURRENT->cmd == READ && CURRENT->sector != -1 ) |
sector | 920 | drivers/block/sjcd.c | int i, bn = CURRENT->sector / 4; |
sector | 923 | drivers/block/sjcd.c | int offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512; |
sector | 924 | drivers/block/sjcd.c | int nr_sectors = 4 - ( CURRENT->sector & 3 ); |
sector | 939 | drivers/block/sjcd.c | CURRENT->sector += nr_sectors; |
sector | 1047 | drivers/block/sjcd.c | sjcd_next_bn = CURRENT->sector / 4; |
sector | 1154 | drivers/block/sjcd.c | ( CURRENT->sector / 4 < sjcd_next_bn || |
sector | 1155 | drivers/block/sjcd.c | CURRENT->sector / 4 > sjcd_next_bn + SJCD_BUF_SIZ ) ){ |
sector | 1232 | drivers/block/sjcd.c | CURRENT->sector, CURRENT->nr_sectors ); |
sector | 840 | drivers/block/sonycd535.c | block = CURRENT->sector; |
sector | 219 | drivers/block/xd.c | if (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) { |
sector | 220 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect; |
sector | 328 | drivers/block/xd.c | u_char head,sector,control,mode,temp; |
sector | 341 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
sector | 344 | drivers/block/xd.c | printk("xd_readwrite: drive = %d, head = %d, cylinder = %d, sector = %d, count = %d\n",drive,head,cylinder,sector,temp); |
sector | 348 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
sector | 422 | 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 | 426 | drivers/block/xd.c | cmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F); |
sector | 898 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 1042 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 2110 | drivers/scsi/scsi.c | int page, sector, nbits, mask; |
sector | 2129 | drivers/scsi/scsi.c | sector = offset >> 9; |
sector | 2130 | drivers/scsi/scsi.c | if(sector >= dma_sectors) panic ("Bad page"); |
sector | 2132 | drivers/scsi/scsi.c | sector = (offset >> 9) & (sizeof(*dma_malloc_freelist) * 8 - 1); |
sector | 2136 | drivers/scsi/scsi.c | if ((mask << sector) > 0xffff) panic ("Bad memory alignment"); |
sector | 2140 | drivers/scsi/scsi.c | if((dma_malloc_freelist[page] & (mask << sector)) != (mask<<sector)) |
sector | 2144 | drivers/scsi/scsi.c | dma_malloc_freelist[page] &= ~(mask << sector); |
sector | 2952 | drivers/scsi/scsi.c | SCpnt->request.sector, |
sector | 2979 | drivers/scsi/scsi.c | req->sector, |
sector | 574 | drivers/scsi/scsi.h | req->dev,req->sector); |
sector | 581 | drivers/scsi/scsi.h | req->sector += bh->b_size >> 9; |
sector | 105 | drivers/scsi/scsi_debug.c | if (SCpnt->request.sector + start != block) panic("Wrong block."); \ |
sector | 107 | drivers/scsi/scsicam.c | cyl = p->cyl + ((p->sector & 0xc0) << 2); |
sector | 277 | drivers/scsi/sd.c | SCpnt->request.sector, this_count); |
sector | 478 | drivers/scsi/sd.c | block = SCpnt->request.sector; |
sector | 167 | drivers/scsi/sr.c | offset = (SCpnt->request.sector % 4) << 9; |
sector | 201 | drivers/scsi/sr.c | if(SCpnt->request.sector % 4) this_count -= 2; |
sector | 216 | drivers/scsi/sr.c | SCpnt->request.sector, this_count); |
sector | 321 | drivers/scsi/sr.c | unsigned long sector,min,sec,frame; |
sector | 349 | drivers/scsi/sr.c | sector = 0; |
sector | 380 | drivers/scsi/sr.c | sector = min*CD_SECS*CD_FRAMES + sec*CD_FRAMES + frame; |
sector | 383 | drivers/scsi/sr.c | if (sector) { |
sector | 384 | drivers/scsi/sr.c | printk("sr_photocd: multisession CD detected. start: %lu\n",sector); |
sector | 423 | drivers/scsi/sr.c | sector = min*CD_SECS*CD_FRAMES + sec*CD_FRAMES + frame; |
sector | 424 | drivers/scsi/sr.c | if (sector) { |
sector | 425 | drivers/scsi/sr.c | sector -= CD_BLOCK_OFFSET; |
sector | 427 | drivers/scsi/sr.c | printk("sr_photocd: multisession CD detected: start: %lu\n",sector); |
sector | 490 | drivers/scsi/sr.c | sector = rec[11] + (rec[10] << 8) + (rec[9] << 16) + (rec[8] << 24); |
sector | 491 | drivers/scsi/sr.c | is_xa = !!sector; |
sector | 493 | drivers/scsi/sr.c | if (sector) |
sector | 494 | drivers/scsi/sr.c | printk ("sr_photocd: multisession CD detected. start: %lu\n",sector); |
sector | 501 | drivers/scsi/sr.c | sector = 0; |
sector | 505 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = sector; |
sector | 627 | drivers/scsi/sr.c | block = SCpnt->request.sector; |
sector | 704 | drivers/scsi/sr.c | this_count = SCpnt->request.sector % 4; |
sector | 737 | drivers/scsi/sr.c | if(SCpnt->request.sector % 4) { |
sector | 738 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
sector | 788 | drivers/scsi/sr.c | printk("SR: %d %d %d %d %d *** ",SCpnt->use_sg, SCpnt->request.sector, |
sector | 241 | fs/msdos/fat.c | int msdos_smap(struct inode *inode,int sector) |
sector | 249 | fs/msdos/fat.c | if (sector >= sb->dir_entries >> MSDOS_DPS_BITS) return 0; |
sector | 250 | fs/msdos/fat.c | return sector+sb->dir_start; |
sector | 252 | fs/msdos/fat.c | cluster = sector/sb->cluster_size; |
sector | 253 | 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 | 297 | fs/msdos/file.c | while (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS))) |
sector | 312 | fs/msdos/file.c | if (!(bh = getblk(inode->i_dev,sector,SECTOR_SIZE))){ |
sector | 316 | fs/msdos/file.c | }else if (!(bh = bread(inode->i_dev,sector,SECTOR_SIZE))) { |
sector | 121 | fs/msdos/misc.c | int count,nr,limit,last,current,sector,last_sector,file_cluster; |
sector | 190 | fs/msdos/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(nr-2)*cluster_size; |
sector | 191 | fs/msdos/misc.c | last_sector = sector + cluster_size; |
sector | 192 | fs/msdos/misc.c | for ( ; sector < last_sector; sector++) { |
sector | 194 | fs/msdos/misc.c | printk("zeroing sector %d\n",sector); |
sector | 196 | fs/msdos/misc.c | if (!(bh = getblk(inode->i_dev,sector,SECTOR_SIZE))) |
sector | 289 | fs/msdos/misc.c | int sector,offset; |
sector | 294 | fs/msdos/misc.c | if ((sector = msdos_smap(dir,offset >> SECTOR_BITS)) == -1) |
sector | 296 | fs/msdos/misc.c | PRINTK (("get_entry sector %d %p\n",sector,*bh)); |
sector | 297 | fs/msdos/misc.c | if (!sector) |
sector | 303 | fs/msdos/misc.c | if (!(*bh = bread(dir->i_dev,sector,SECTOR_SIZE))) { |
sector | 304 | fs/msdos/misc.c | printk("Directory sread (sector %d) failed\n",sector); |
sector | 310 | fs/msdos/misc.c | return (sector << MSDOS_DPS_BITS)+((offset & (SECTOR_SIZE-1)) >> |
sector | 352 | fs/msdos/misc.c | inode = iget(sb,sector*MSDOS_DPS+entry); \ |
sector | 368 | fs/msdos/misc.c | static int raw_scan_sector(struct super_block *sb,int sector,char *name, |
sector | 377 | fs/msdos/misc.c | if (!(bh = bread(sb->s_dev,sector,SECTOR_SIZE))) return -EIO; |
sector | 389 | fs/msdos/misc.c | if (ino) *ino = sector*MSDOS_DPS+entry; |
sector | 18 | include/linux/blkdev.h | unsigned long sector; |
sector | 26 | include/linux/genhd.h | unsigned char sector; /* starting sector */ |
sector | 134 | 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 | 123 | 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); |