/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/ftape/lowlevel/ |
H A D | ftape-ecc.h | 38 #define BAD_SET(entry,sector) ((entry)|=(1<<(sector))) 39 #define BAD_CHECK(entry,sector) ((entry)&(1<<(sector))) 52 * sectors that were marked bad during formatting. If the N-th sector 60 * is needed. DATA is the actual sector packed data from (or to) the
|
H A D | ftape-bsm.c | 24 * This file contains the bad-sector map handling code for 67 static inline void put_sector(SectorCount *ptr, unsigned int sector) argument 69 ptr->bytes[0] = sector & 0xff; 70 sector >>= 8; 71 ptr->bytes[1] = sector & 0xff; 72 sector >>= 8; 73 ptr->bytes[2] = sector & 0xff; 78 unsigned int sector; local 80 sector = ptr->bytes[0]; 81 sector 110 unsigned int sector; local 189 cvt2map(unsigned int sector) argument 194 cvt2segment(unsigned int sector) argument 203 unsigned int sector; local 238 unsigned int sector; local [all...] |
H A D | ftape-rw.c | 136 offset_mask >>= 1; /* don't count bad sector */ 150 TRACE(ft_t_noise, "segment: %d, bad sector map: %08lx", 159 TRACE(ft_t_flow, "sector offset = %d, count = %d", 167 * we fake one readable sector in the segment. This 170 * bad sector fails or not (the data is ignored). It is 177 TRACE(ft_t_flow, "empty segment %d, fake first sector good", 291 ft_location.sector = -1; 302 /* Read Id of first sector passing tape head. 334 ft_location.sector = ((fdc_sect - 1) 359 if (ft_location.sector [all...] |
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/ui/ |
H A D | ui_test_flash.c | 78 "-sectors;Display sector information"); 98 flash_sector_t sector; local 134 printf("Flash sector information:\n"); 138 sector.flash_sector_idx = idx; 139 res = cfe_ioctl(fd,IOCTL_FLASH_GETSECTORS,(uint8_t *) §or,sizeof(flash_sector_t),&retlen,0); 144 if (sector.flash_sector_status == FLASH_SECTOR_INVALID) break; 146 sector.flash_sector_idx, 147 sector.flash_sector_offset, 148 sector.flash_sector_size);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/block/ |
H A D | elevator.c | 52 return bh->b_rsector > rq->sector; 58 if (bh->b_rsector < next_rq->sector && bh->b_rsector > rq->sector) 64 if (next_rq->sector > rq->sector) 71 if (bh->b_rsector > rq->sector || bh->b_rsector < next_rq->sector) 106 if (__rq->sector + __rq->nr_sectors == bh->b_rsector) { 110 } else if (__rq->sector - count == bh->b_rsector) { 167 if (__rq->sector [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/ |
H A D | sr_vendor.c | 148 unsigned long sector; local 161 sector = 0; /* the multisession sector offset goes here */ 183 sector = buffer[11] + (buffer[10] << 8) + 186 /* ignore sector offsets from first track */ 187 sector = 0; 212 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; 238 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; 239 if (sector) 240 sector [all...] |
H A D | scsi_dma.c | 23 * PAGE_SIZE must be a multiple of the sector size (512). True 124 unsigned int page, sector, nbits, mask; local 145 sector = (((unsigned long) obj) - page_addr) >> 9; 150 if (sector + nbits > SECTORS_PER_PAGE) 154 (mask << sector)) != (mask << sector)) { 162 dma_malloc_freelist[page] &= ~(mask << sector); 242 * buffers for 2k sector size and 1k fs. 416 /* One bit per sector to indicate free/busy */
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/ |
H A D | elevator.h | 64 (s1)->sector < (s2)->sector)) || \ 69 (bh)->b_rsector < (rq)->sector)) || \
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/ |
H A D | elevator.h | 64 (s1)->sector < (s2)->sector)) || \ 69 (bh)->b_rsector < (rq)->sector)) || \
|
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/dev/ |
H A D | dev_flash.c | 8 * the flash - the top sector is reserved for that purpose. 164 static int flash_sector_query(flashdrv_t *softc,flash_sector_t *sector); 200 * Write a single byte to the flash. The sector that the flash 250 * Write a single byte to the flash. The sector that the flash 284 * Erase a single sector in the flash device 288 * offset - offset in flash of sector to erase 308 * Send the "erase sector" qualifier - don't use FLASHCMD 325 * Write a single byte to the flash. The sector that the flash 363 * Write a single word to the flash. The sector that the flash 402 * Write a single byte to the flash. The sector tha 492 flash_sector_t sector; local 610 flash_sector_query(flashdrv_t *softc,flash_sector_t *sector) argument 870 flash_sector_t sector; local [all...] |
H A D | dev_newflash.c | 70 * Get the address of the flash sector buffer from the 136 static int flash_sector_query(flashdev_t *softc,flash_sector_t *sector); 307 flash_sector_t sector; local 320 sector.flash_sector_idx = 0; 323 res = flash_sector_query(softc,§or); 325 if (sector.flash_sector_status == FLASH_SECTOR_INVALID) { 329 if ((sector.flash_sector_offset >= range->range_base) && 330 (sector.flash_sector_offset < 336 sector.flash_sector_offset, 342 sector 392 flash_range_intersection(flash_sector_t *sector, flash_range_t *inrange, flash_range_t *outrange) argument 448 flash_sector_query(flashdev_t *softc,flash_sector_t *sector) argument 1233 flash_sector_t sector; local [all...] |
H A D | dev_ide_common.c | 89 * Given a sector size, return log2(size). We cheat; this is 91 * Explicitly using shifts and masks in sector number calculations 96 * size - sector size 479 * Read sector(s) from the device. This version is for ATAPI devs. 531 * Write sector(s) to the device. This version is for ATAPI disks 575 * Read sector(s) from the device. 625 * Write sector(s) from the device. 841 * read/write routines and the sector size. 903 unsigned char sector[MAX_SECTORSIZE]; local 915 res = (*softc->idecommon_readfunc)(softc,lba,1,sector); 999 unsigned char sector[MAX_SECTORSIZE]; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/fat/ |
H A D | misc.c | 100 "Found signature1 0x%x signature2 0x%x sector=%ld.\n", 194 int nr, sector, last_sector; local 207 sector = MSDOS_SB(sb)->data_start + (nr - 2) * cluster_size; 208 last_sector = sector + cluster_size; 212 for ( ; sector < last_sector; sector++) { 214 printk("zeroing sector %d\n", sector); 216 if (!(bh = fat_getblk(sb, sector))) 317 int sector, offse local 397 raw_scan_sector(struct super_block *sb,int sector,const char *name, int *number,int *ino,struct buffer_head **res_bh, struct msdos_dir_entry **res_de) argument [all...] |
H A D | cache.c | 31 int fat_bmap(struct inode *inode,int sector) argument 33 return MSDOS_SB(inode->i_sb)->cvf_format->cvf_bmap(inode,sector); 289 int default_fat_bmap(struct inode *inode,int sector) argument 298 if (sector >= sbi->dir_entries >> sbi->dir_per_block_bits) 300 return sector + sbi->dir_start; 304 if (sector >= last_block) 307 cluster = sector / sbi->cluster_size; 308 offset = sector % sbi->cluster_size;
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/fat.orig/ |
H A D | misc.c | 100 "Found signature1 0x%x signature2 0x%x sector=%ld.\n", 194 int nr, sector, last_sector; local 207 sector = MSDOS_SB(sb)->data_start + (nr - 2) * cluster_size; 208 last_sector = sector + cluster_size; 212 for ( ; sector < last_sector; sector++) { 214 printk("zeroing sector %d\n", sector); 216 if (!(bh = fat_getblk(sb, sector))) 317 int sector, offse local 397 raw_scan_sector(struct super_block *sb,int sector,const char *name, int *number,int *ino,struct buffer_head **res_bh, struct msdos_dir_entry **res_de) argument [all...] |
H A D | cache.c | 31 int fat_bmap(struct inode *inode,int sector) argument 33 return MSDOS_SB(inode->i_sb)->cvf_format->cvf_bmap(inode,sector); 289 int default_fat_bmap(struct inode *inode,int sector) argument 298 if (sector >= sbi->dir_entries >> sbi->dir_per_block_bits) 300 return sector + sbi->dir_start; 304 if (sector >= last_block) 307 cluster = sector / sbi->cluster_size; 308 offset = sector % sbi->cluster_size;
|
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/usb/ |
H A D | usbmass.c | 269 * Reads a sector from the device. 273 * sectornum - sector number to read 274 * buffer - place to put sector we read 283 uint8_t *sector; local 293 sector = KMALLOC(64,32); 295 memset(sector,0,64); 336 memset(sector,0,18); 337 ur = usb_make_request(dev,softc->umass_inpipe,sector, 354 KFREE(sector); 363 * Reads a sector fro 381 uint8_t *sector; local 493 uint8_t *sector; local 585 uint8_t *sector; local 936 unsigned char sector[MAX_SECTORSIZE]; local 1040 unsigned char sector[MAX_SECTORSIZE]; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/usb/storage/ |
H A D | jumpshot.c | 260 u32 sector, 279 if (sector > 0x0FFFFFFF) 309 command[2] = sector & 0xFF; 310 command[3] = (sector >> 8) & 0xFF; 311 command[4] = (sector >> 16) & 0xFF; 313 command[5] |= (sector >> 24) & 0x0F; 337 sector += thistime; 375 u32 sector, 394 if (sector > 0x0FFFFFFF) 450 command[2] = sector 258 jumpshot_read_data(struct us_data *us, struct jumpshot_info *info, u32 sector, u32 sectors, unsigned char *dest, int use_sg) argument 373 jumpshot_write_data(struct us_data *us, struct jumpshot_info *info, u32 sector, u32 sectors, unsigned char *src, int use_sg) argument [all...] |
H A D | datafab.c | 175 u32 sector, 232 command[2] = sector & 0xFF; 233 command[3] = (sector >> 8) & 0xFF; 234 command[4] = (sector >> 16) & 0xFF; 236 command[5] |= (sector >> 24) & 0x0F; 261 sector += thistime; 299 u32 sector, 383 command[2] = sector & 0xFF; 384 command[3] = (sector >> 8) & 0xFF; 385 command[4] = (sector >> 1 173 datafab_read_data(struct us_data *us, struct datafab_info *info, u32 sector, u32 sectors, unsigned char *dest, int use_sg) argument 297 datafab_write_data(struct us_data *us, struct datafab_info *info, u32 sector, u32 sectors, unsigned char *src, int use_sg) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/x86_64/boot/ |
H A D | bootsect.S | 35 BOOTSEG = 0x07C0 /* original address of boot-sector */ 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 [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/i386/boot/ |
H A D | bootsect.S | 35 BOOTSEG = 0x07C0 /* original address of boot-sector */ 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 [all...] |
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/main/ |
H A D | cfe_fatfs.c | 300 * fat_readsector(fatfs,sector,numsec,buffer) 306 * sector - sector number 315 static int fat_readsector(fatfs_t *fatfs,int sector,int numsec,uint8_t *buffer) argument 319 res = cfe_readblk(fatfs->fat_fh,(sector+fatfs->fat_partstart)*SECTORSIZE, 343 xprintf("Bytes per sector %d\n",bpb->bpb_bytespersector); 376 fatfs->fat_partstart = 0; /* make sure we get real boot sector */ 392 * Check the seal at the end of th sector 419 * boot (BPB) sector. Get that and we'll use it for an 485 * and the nasty case where a 12-bit FAT entry crosses a sector 888 int sector; local 931 int sector; local 1746 int sector; local [all...] |
/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/lib/ext2fs/ |
H A D | dosio.h | 29 unsigned short sector; member in struct:__anon7546 30 unsigned short offset; /* Offset of byte within the sector */
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/raid/ |
H A D | raid5.h | 93 * table so that it can be found by sector number. Stripes that are 136 unsigned long sector; /* sector of this row */ member in struct:stripe_head
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/raid/ |
H A D | raid5.h | 93 * table so that it can be found by sector number. Stripes that are 136 unsigned long sector; /* sector of this row */ member in struct:stripe_head
|