/linux-2.4.37.9/drivers/char/ftape/lowlevel/ |
D | ftape-bsm.c | 59 unsigned int sector = 1; 68 *(SectorMap *) dst_ptr = 0x800000 + sector; 70 sector += SECTORS_PER_SEGMENT; 74 *(SewctorMap *) dst_ptr = sector; 78 ++sector; 114 static inline void put_sector(SectorCount *ptr, unsigned int sector) in put_sector() argument 116 ptr->bytes[0] = sector & 0xff; in put_sector() 117 sector >>= 8; in put_sector() 118 ptr->bytes[1] = sector & 0xff; in put_sector() 119 sector >>= 8; in put_sector() [all …]
|
D | ftape-ecc.h | 38 #define BAD_SET(entry,sector) ((entry)|=(1<<(sector))) argument 39 #define BAD_CHECK(entry,sector) ((entry)&(1<<(sector))) argument
|
D | ftape-rw.c | 291 ft_location.sector = -1; in check_bot_eot() 334 ft_location.sector = ((fdc_sect - 1) in ftape_read_id() 359 if (ft_location.sector == 0) { in ftape_read_id() 361 ft_location.segment, ft_location.sector); in ftape_read_id() 364 ft_location.segment, ft_location.sector); in ftape_read_id() 645 ft_location.segment, ft_location.sector,segment_id,margin); in seek_forward() 678 ft_location.segment, ft_location.sector, in seek_forward() 720 ft_location.segment, ft_location.sector); in seek_forward() 748 ft_location.segment, ft_location.sector, in skip_reverse() 792 ft_location.segment, ft_location.sector, in skip_reverse() [all …]
|
/linux-2.4.37.9/drivers/block/ |
D | elevator.c | 52 return bh->b_rsector > rq->sector; in bh_rq_in_between() 58 if (bh->b_rsector < next_rq->sector && bh->b_rsector > rq->sector) in bh_rq_in_between() 64 if (next_rq->sector > rq->sector) in bh_rq_in_between() 71 if (bh->b_rsector > rq->sector || bh->b_rsector < next_rq->sector) in bh_rq_in_between() 107 if (__rq->sector + __rq->nr_sectors == bh->b_rsector) { in elevator_linus_merge() 111 } else if (__rq->sector - count == bh->b_rsector && !backmerge_only) { in elevator_linus_merge() 168 if (__rq->sector + __rq->nr_sectors == bh->b_rsector) { in elevator_noop_merge() 171 } else if (__rq->sector - count == bh->b_rsector) { in elevator_noop_merge()
|
D | ps2esdi.c | 81 u_short cyl, u_short head, u_short sector, u_short length, u_char drive); 474 CURRENT->cmd, CURRENT->sector, in do_ps2esdi_request() 487 (CURRENT->sector + CURRENT->current_nr_sectors <= in do_ps2esdi_request() 493 CURRENT->cmd, CURRENT->sector, in do_ps2esdi_request() 498 block = CURRENT->sector + ps2esdi[MINOR(CURRENT->rq_dev)].start_sect; in do_ps2esdi_request() 520 CURRENT->sector, ps2esdi[MINOR(CURRENT->rq_dev)].nr_sects); in do_ps2esdi_request() 563 u_short track, head, cylinder, sector; in ps2esdi_readwrite() local 571 sector = block % ps2esdi_info[drive].sect; in ps2esdi_readwrite() 574 printk("%s: cyl=%d head=%d sect=%d\n", DEVICE_NAME, cylinder, head, sector); in ps2esdi_readwrite() 580 cylinder, head, sector, in ps2esdi_readwrite() [all …]
|
D | ll_rw_blk.c | 929 if (req->sector + req->nr_sectors != next->sector) in attempt_merge() 994 unsigned int sector, count, sync; in __make_request() local 1004 sector = bh->b_rsector; in __make_request() 1092 req->sector = req->hard_sector = sector; in __make_request() 1152 req->hard_sector = req->sector = sector; in __make_request() 1229 unsigned long sector = bh->b_rsector; in generic_make_request() local 1232 if (maxsector < count || maxsector - count < sector) { in generic_make_request() 1243 (sector + count)>>1, minorsize); in generic_make_request() 1464 kdevname(req->rq_dev), name, req->sector); in end_that_request_first() 1476 req->sector = req->hard_sector; in end_that_request_first()
|
D | swim3.c | 76 REG(sector); /* sector # to read or write */ 323 CURRENT->sector, CURRENT->nr_sectors, CURRENT->buffer); in start_request() 328 if (CURRENT->sector < 0 || CURRENT->sector >= fs->total_secs) { in start_request() 350 fs->req_cyl = CURRENT->sector / fs->secpercyl; in start_request() 351 x = CURRENT->sector % fs->secpercyl; in start_request() 440 out_8(&sw->sector, fs->req_sector); in setup_transfer() 614 CURRENT->sector += s; in xfer_timeout() 617 (CURRENT->cmd==WRITE? "writ": "read"), CURRENT->sector); in xfer_timeout() 722 CURRENT->sector += n; in swim3_interrupt() 733 CURRENT->sector, err); in swim3_interrupt() [all …]
|
/linux-2.4.37.9/drivers/scsi/ |
D | sr_vendor.c | 156 unsigned long sector; in sr_cd_check() local 169 sector = 0; /* the multisession sector offset goes here */ in sr_cd_check() 191 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check() 195 sector = 0; in sr_cd_check() 220 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check() 246 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check() 247 if (sector) in sr_cd_check() 248 sector -= CD_MSF_OFFSET; in sr_cd_check() 279 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check() 289 sector = 0; in sr_cd_check() [all …]
|
D | cpqfc.Readme | 189 SCSI device sdb: hdwr sector= 512 bytes. Sectors= 35843670 [17501 MB] [17.5 GB] 191 SCSI device sdc: hdwr sector= 512 bytes. Sectors= 144410880 [70513 MB] [70.5 GB] 193 SCSI device sdd: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB] 195 SCSI device sde: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB] 197 SCSI device sdf: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB] 199 SCSI device sdg: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB] 201 SCSI device sdh: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB] 203 SCSI device sdi: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB] 205 SCSI device sdj: hdwr sector= 512 bytes. Sectors= 2056160 [1003 MB] [1.0 GB] 207 SCSI device sdk: hdwr sector= 512 bytes. Sectors= 2052736 [1002 MB] [1.0 GB] [all …]
|
D | scsi_dma.c | 124 unsigned int page, sector, nbits, mask; in scsi_free() local 145 sector = (((unsigned long) obj) - page_addr) >> 9; in scsi_free() 150 if (sector + nbits > SECTORS_PER_PAGE) in scsi_free() 154 (mask << sector)) != (mask << sector)) { in scsi_free() 162 dma_malloc_freelist[page] &= ~(mask << sector); in scsi_free()
|
/linux-2.4.37.9/fs/fat/ |
D | misc.c | 200 int nr, sector, last_sector; in fat_extend_dir() local 213 sector = MSDOS_SB(sb)->data_start + (nr - 2) * cluster_size; in fat_extend_dir() 214 last_sector = sector + cluster_size; in fat_extend_dir() 218 for ( ; sector < last_sector; sector++) { in fat_extend_dir() 220 printk("zeroing sector %d\n", sector); in fat_extend_dir() 222 if (!(bh = fat_getblk(sb, sector))) in fat_extend_dir() 323 int sector; in fat__get_entry() local 332 if ((sector = fat_bmap(dir,offset >> sb->s_blocksize_bits)) == -1) in fat__get_entry() 334 PRINTK (("get_entry sector %d %p\n",sector,*bh)); in fat__get_entry() 336 if (!sector) in fat__get_entry() [all …]
|
D | cache.c | 35 int fat_bmap(struct inode *inode,int sector) in fat_bmap() argument 37 return MSDOS_SB(inode->i_sb)->cvf_format->cvf_bmap(inode,sector); in fat_bmap() 293 int default_fat_bmap(struct inode *inode,int sector) in default_fat_bmap() argument 302 if (sector >= sbi->dir_entries >> sbi->dir_per_block_bits) in default_fat_bmap() 304 return sector + sbi->dir_start; in default_fat_bmap() 308 if (sector >= last_block) in default_fat_bmap() 311 cluster = sector / sbi->cluster_size; in default_fat_bmap() 312 offset = sector % sbi->cluster_size; in default_fat_bmap()
|
/linux-2.4.37.9/drivers/usb/storage/ |
D | jumpshot.c | 260 u32 sector, in jumpshot_read_data() argument 279 if (sector > 0x0FFFFFFF) in jumpshot_read_data() 309 command[2] = sector & 0xFF; in jumpshot_read_data() 310 command[3] = (sector >> 8) & 0xFF; in jumpshot_read_data() 311 command[4] = (sector >> 16) & 0xFF; in jumpshot_read_data() 313 command[5] |= (sector >> 24) & 0x0F; in jumpshot_read_data() 337 sector += thistime; in jumpshot_read_data() 375 u32 sector, in jumpshot_write_data() argument 394 if (sector > 0x0FFFFFFF) in jumpshot_write_data() 450 command[2] = sector & 0xFF; in jumpshot_write_data() [all …]
|
D | datafab.c | 175 u32 sector, in datafab_read_data() argument 232 command[2] = sector & 0xFF; in datafab_read_data() 233 command[3] = (sector >> 8) & 0xFF; in datafab_read_data() 234 command[4] = (sector >> 16) & 0xFF; in datafab_read_data() 236 command[5] |= (sector >> 24) & 0x0F; in datafab_read_data() 261 sector += thistime; in datafab_read_data() 299 u32 sector, in datafab_write_data() argument 383 command[2] = sector & 0xFF; in datafab_write_data() 384 command[3] = (sector >> 8) & 0xFF; in datafab_write_data() 385 command[4] = (sector >> 16) & 0xFF; in datafab_write_data() [all …]
|
D | shuttle_usbat.c | 648 unsigned int sector; in usbat_handle_read10() local 696 sector = short_pack(data[7+3], data[7+2]); in usbat_handle_read10() 697 sector <<= 16; in usbat_handle_read10() 698 sector |= short_pack(data[7+5], data[7+4]); in usbat_handle_read10() 717 data[7+2] = MSB_of(sector>>16); // SCSI command sector in usbat_handle_read10() 718 data[7+3] = LSB_of(sector>>16); in usbat_handle_read10() 719 data[7+4] = MSB_of(sector&0xFFFF); in usbat_handle_read10() 720 data[7+5] = LSB_of(sector&0xFFFF); in usbat_handle_read10() 765 sector += len / srb->transfersize; in usbat_handle_read10()
|
/linux-2.4.37.9/drivers/md/ |
D | raid5.c | 101 PRINTK("remove_hash(), stripe %lu\n", sh->sector); in remove_hash() 113 struct stripe_head **shp = &stripe_hash(conf, sh->sector); in insert_hash() 115 PRINTK("insert_hash(), stripe %lu\n",sh->sector); in insert_hash() 186 static inline void init_stripe(struct stripe_head *sh, unsigned long sector) in init_stripe() argument 197 PRINTK("init_stripe called, stripe %lu\n", sh->sector); in init_stripe() 201 sh->sector = sector; in init_stripe() 209 sh->sector, i, sh->bh_read[i], in init_stripe() 236 static struct stripe_head *__find_stripe(raid5_conf_t *conf, unsigned long sector) in __find_stripe() argument 241 PRINTK("__find_stripe, sector %lu\n", sector); in __find_stripe() 242 for (sh = stripe_hash(conf, sector); sh; sh = sh->hash_next) in __find_stripe() [all …]
|
/linux-2.4.37.9/arch/x86_64/boot/ |
D | bootsect.S | 91 # multi-sector reads beyond the maximum sector number specified 95 # Since single sector reads are slow and out of the question, 97 # (for the first disk) in RAM. We will set the maximum sector 115 movb $36, 0x4(%di) # patch sector count 122 # Guess 36 sectors if sector 36 can be read, 18 sectors if sector 18 123 # can be read, 15 if sector 15 can be read. Otherwise guess 9. 134 xchgw %cx, %ax # %cx = track and sector 137 movw $0x0201, %ax # service 2, 1 sector 155 # cylinder (for 9-sector 360K and 720K floppies). 157 movw $0x0001, %ax # set sread (sector-to-read) to 1 as [all …]
|
/linux-2.4.37.9/arch/i386/boot/ |
D | bootsect.S | 91 # multi-sector reads beyond the maximum sector number specified 95 # Since single sector reads are slow and out of the question, 97 # (for the first disk) in RAM. We will set the maximum sector 115 movb $36, 0x4(%di) # patch sector count 122 # Guess 36 sectors if sector 36 can be read, 18 sectors if sector 18 123 # can be read, 15 if sector 15 can be read. Otherwise guess 9. 134 xchgw %cx, %ax # %cx = track and sector 137 movw $0x0201, %ax # service 2, 1 sector 155 # cylinder (for 9-sector 360K and 720K floppies). 157 movw $0x0001, %ax # set sread (sector-to-read) to 1 as [all …]
|
/linux-2.4.37.9/drivers/mtd/ |
D | mtdblock_ro.c | 140 if (current_request->sector << 9 > mtd->size || in mtdblock_request() 141 (current_request->sector + current_request->current_nr_sectors) << 9 > mtd->size) in mtdblock_request() 145 current_request->sector, current_request->current_nr_sectors); in mtdblock_request() 165 if (MTD_READ(mtd,current_request->sector<<9, in mtdblock_request() 187 if (MTD_WRITE(mtd,current_request->sector<<9, in mtdblock_request()
|
D | ftl.c | 960 u_long sector, u_long nblocks) in ftl_read() argument 968 part, sector, nblocks); in ftl_read() 976 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { in ftl_read() 980 log_addr = part->VirtualBlockMap[sector+i]; in ftl_read() 1074 u_long sector, u_long nblocks) in ftl_write() argument 1082 part, sector, nblocks); in ftl_write() 1096 virt_addr = sector * SECTOR_SIZE | BLOCK_DATA; in ftl_write() 1134 old_addr = part->VirtualBlockMap[sector+i]; in ftl_write() 1136 part->VirtualBlockMap[sector+i] = 0xffffffff; in ftl_write() 1145 part->VirtualBlockMap[sector+i] = log_addr; in ftl_write() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | elevator.h | 64 (s1)->sector < (s2)->sector)) || \ 69 (bh)->b_rsector < (rq)->sector)) || \
|
/linux-2.4.37.9/drivers/cdrom/ |
D | cm206.c | 274 ush sector[READ_AHEAD * RAW_SECTOR_SIZE / 2]; /* buffered cd-sector */ member 683 transport_data(r_fifo_output_buffer, cd->sector, in read_sector() 811 cd->sector + cd->fifo_overflowed, in empty_buffer() 825 int try_adapter(int sector) in try_adapter() argument 827 if (cd->adapter_first <= sector && sector < cd->adapter_last) { in try_adapter() 829 empty_buffer(sector - cd->adapter_first); in try_adapter() 831 } else if (cd->background == 1 && cd->adapter_first <= sector in try_adapter() 832 && sector < cd->adapter_first + cd->max_sectors) { in try_adapter() 835 while (sector >= cd->adapter_last) { in try_adapter() 837 …debug(("Timed out during background wait: %d %d %d %d\n", sector, cd->adapter_last, cd->adapter_fi… in try_adapter() [all …]
|
D | gscd.c | 258 while (CURRENT->nr_sectors > 0 && gscd_bn == CURRENT->sector / 4) { in gscd_transfer() 259 offs = (CURRENT->sector & 3) * 512; in gscd_transfer() 262 CURRENT->sector++; in gscd_transfer() 287 block = CURRENT->sector; in __do_gscd_request() 290 if (QUEUE_EMPTY || CURRENT->sector == -1) in __do_gscd_request() 347 block = CURRENT->sector / 4; in gscd_read_cmd() 361 gscd_bn = CURRENT->sector / 4; in gscd_read_cmd()
|
D | mcdx.c | 256 static int mcdx_transfer(struct s_drive_stuff *, char *buf, int sector, 258 static int mcdx_xfer(struct s_drive_stuff *, char *buf, int sector, 599 CURRENT->sector, CURRENT->nr_sectors); in do_mcdx_request() 615 CURRENT->sector, in do_mcdx_request() 622 CURRENT->sector += i; in do_mcdx_request() 1276 char *p, int sector, int nr_sectors) in mcdx_transfer() argument 1285 ans = mcdx_xfer(stuffp, p, sector, nr_sectors); in mcdx_transfer() 1301 return mcdx_transfer(stuffp, p, sector, nr_sectors); in mcdx_transfer() 1308 char *p, int sector, int nr_sectors) in mcdx_xfer() argument 1331 if (stuffp->valid && (sector >= stuffp->pending) in mcdx_xfer() [all …]
|
/linux-2.4.37.9/drivers/ide/ |
D | ide-cd.c | 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() [all …]
|