Searched refs:sector (Results 1 - 25 of 89) sorted by relevance

1234

/external/syslinux/com32/include/syslinux/
H A Dio.h37 int syslinux_read_disk(void *buf, uint32_t sector, uint16_t count);
/external/syslinux/gpxe/src/include/
H A Dfs.h10 int ide_read(int drive, sector_t sector, void *buffer);
15 int usb_read(int drive, sector_t sector, void *buffer);
23 int devread(unsigned long sector, unsigned long byte_offset,
/external/f2fs-tools/lib/
H A Dlibf2fs_zoned.c114 u_int64_t sector; local
125 sector = 0;
128 while (sector < total_sectors) {
132 rep->sector = sector;
147 for (i = 0; i < rep->nr_zones && sector < total_sectors; i++) {
162 "Zone %05u: Conventional, cond 0x%x (%s), sector %llu, %llu sectors\n",
171 "non_seq %d, sector %llu, %llu sectors, wp sector %llu\n",
184 sector
222 u_int64_t sector; local
[all...]
/external/vboot_reference/firmware/stub/
H A Dvboot_api_stub_stream.c17 /* Internal struct to simulate a stream for sector-based disks */
22 /* Next sector to read */
23 uint64_t sector; member in struct:disk_stream
41 s->sector = lba_start;
67 rv = VbExDiskRead(s->handle, s->sector, sectors, buffer);
71 s->sector += sectors;
/external/kernel-headers/original/uapi/linux/
H A Dblkzoned.h79 * @start: Zone start in 512 B sector units
80 * @len: Zone length in 512 B sector units
81 * @wp: Zone write pointer location in 512 B sector units
89 * start, len and wp use the regular 512 B sector unit, regardless of the
95 __u64 start; /* Zone start sector */
108 * @sector: starting sector of report
116 __u64 sector; member in struct:blk_zone_report
124 * @sector: starting sector o
128 __u64 sector; member in struct:blk_zone_range
[all...]
/external/stressapptest/src/
H A Ddisk_blocks.cc196 int64 sector = 0; local
201 "for sector data for disk %s.\n", device_name_.c_str());
206 // Align the first sector with the beginning of a write block
211 // sector in the block from.
213 sector = (Random64() & 0x7FFFFFFFFFFFFFFFLL) % (
215 sector *= num_sectors;
217 sector = (Random64() & 0x7FFFFFFFFFFFFFFFLL) % (
219 sector *= num_sectors;
220 sector += segment * segment_size_;
222 if (sector
[all...]
/external/autotest/client/tests/disktest/src/
H A Ddisktest.c21 unsigned int sector; member in struct:pattern
51 * Fill a block with it's own sector number
56 unsigned int i, sec_offset, sector; local
61 sector = (block * sectors_per_block) + sec_offset;
65 sector_buffer[i].sector = sector;
79 * Verify a block contains the correct signature and sector numbers for
80 * each sector within that block. We check every copy within the sector
87 unsigned int sec_offset, sector; local
[all...]
/external/blktrace/btt/
H A Dtrace_im.c29 q_iop = dip_find_sec(g_iop->dip, IOP_Q, g_iop->t.sector);
40 struct io *q_iop = dip_find_sec(s_iop->dip, IOP_Q, s_iop->t.sector);
48 struct io *q_iop = dip_find_sec(i_iop->dip, IOP_Q, i_iop->t.sector);
63 q_iop = dip_find_sec(m_iop->dip, IOP_Q, m_iop->t.sector);
H A Dtrace_complete.c38 __out(ofp, iop->t.time, IOP_Q, iop->t.sector, t_sec(&iop->t), 0);
41 __out(ofp, iop->g_time, IOP_G, iop->t.sector, t_sec(&iop->t),1);
43 __out(ofp, iop->i_time, IOP_I, iop->t.sector, t_sec(&iop->t),1);
45 __out(ofp, iop->m_time, IOP_M, iop->t.sector, t_sec(&iop->t),1);
88 q_iop->c_sec = c_iop->t.sector;
H A Dmmap.c62 tp->sector = be64_to_cpu(t->sector);
/external/syslinux/libfat/
H A Dlibfat.h33 libfat_sector_t sector; member in struct:libfat_direntry
56 * sector number. Return -1 on failure.
62 * Get the next sector of either the root directory or a FAT chain.
74 * Get a pointer to a specific sector.
H A Dsearchdir.c46 direntry->sector = s;
/external/syslinux/win/
H A Dsyslinux.c111 unsigned char sector[SECTOR_SIZE]; local
122 if (ReadFile(drive, sector, sizeof(sector), &howMany, NULL) == 0) {
125 } else if (howMany != sizeof(sector)) {
128 (int)howMany, sizeof(sector));
139 memcpy(sector, syslinux_mbr, syslinux_mbr_len);
145 if (sector[PART_TABLE + (PART_SIZE * (partitionNum - 1))] != 0x80) {
148 sector[PART_TABLE + (PART_SIZE * p)] =
156 if (WriteFile(drive, sector, sizeof(sector),
219 libfat_readfile(intptr_t pp, void *buf, size_t secsize, libfat_sector_t sector) argument
[all...]
/external/syslinux/bios/dosutil/
H A Dcopybs.com6 $Boot sector read failed
/external/syslinux/core/fs/fat/
H A Dfat.c25 * Check for a particular sector in the FAT cache
27 static const void *get_fat_sector(struct fs_info *fs, sector_t sector) argument
29 return get_cache(fs->fs_dev, FAT_SB(fs)->fat + sector);
48 * we got the end of the one fat sector,
51 * sector, read the high part, then combine it.
148 static sector_t get_next_sector(struct fs_info* fs, uint32_t sector) argument
156 if (sector < data_area) {
157 /* Root directory sector... */
158 sector++;
159 if (sector >
190 sector_t sector; local
218 sector_t sector = get_next_sector(file->fs, PVT(inode)->here); local
421 sector_t sector; local
596 sector_t sector = get_the_right_sector(file); local
[all...]
/external/blktrace/btreplay/
H A Dbtrecord.h42 * @sector: Sector number of IO
47 __u64 sector; member in struct:io_pkt
/external/gptfdisk/
H A Ddiskio.h69 int Seek(uint64_t sector);
H A Dgpt.h18 // Default values for sector alignment
86 int LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk);
87 int LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector = 0);
89 int SaveHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector);
90 int SavePartitionTable(DiskIO & disk, uint64_t sector);
158 int Align(uint64_t* sector);
184 int IsFree(uint64_t sector, uint32_t *partNum = NULL);
/external/syslinux/com32/gplinclude/disk/
H A Dgeom.h50 uint16_t bytes_per_sector; /* bytes per sector */
233 * 07h BYTE sector count for multi-sector transfers
261 * 2 block PIO (multi-sector transfers) enabled
302 * chs_to_lba - compute lba value from cylinder, head and sector number
306 const unsigned int head, const unsigned int sector)
311 return (sector - 1) +
316 return (sector - 1) + (head * drive_info->legacy_sectors_per_track) +
323 unsigned int *sector);
304 chs_to_lba(const struct driveinfo *drive_info, const unsigned int cylinder, const unsigned int head, const unsigned int sector) argument
/external/syslinux/mbr/
H A Doldmbr.asm33 ; The MBR lives in front of the boot sector, and is responsible for
34 ; loading the boot sector of the active partition. The EBIOS support
68 ; Now, jump to the copy at 0600h so we can load the boot sector at 7C00h.
84 and cx,3Fh ; Max sector number
128 ; We have EBIOS. Load the boot sector using LBA.
140 ; No EBIOS. Load the boot sector using CHS.
153 div byte [Sectors] ; AL = head AH = sector
156 or cl,ah ; CX = cylinder and sector
160 mov ax,0201h ; Read one sector
166 ; Verify that we have a boot sector, jum
[all...]
/external/blktrace/
H A Dblkparse_fmt.c228 fprintf(ofp, strcat(format, "lu"), t->sector);
324 (unsigned long long) t->sector,
328 (unsigned long long) t->sector,
333 (unsigned long long) t->sector,
337 (unsigned long long) t->sector,
358 (unsigned long long) t->sector,
366 (unsigned long long) t->sector,
380 (unsigned long long) t->sector, t_sec(t), name);
397 (unsigned long long) t->sector, t_sec(t),
403 fprintf(ofp, "%llu / %u [%s]\n", (unsigned long long) t->sector,
[all...]
/external/syslinux/dosutil/
H A Dcopybs.asm17 ; Small DOS program to copy the boot sector from a drive
130 ; sector size.
170 mov dx,[bx+dpbSectorSize] ; Save sector size
172 ; Read the boot sector.
177 diStartSector: dd 0 ; Absolute sector 0
178 diSectors: dw 1 ; One sector
187 mov [SectorSize],dx ; Saved sector size from above
193 mov cx,1 ; One sector
200 xor dx,dx ; Absolute sector 0
207 ; Open the file and write the boot sector t
[all...]
/external/syslinux/com32/gpllib/disk/
H A Dgeom.c27 unsigned int *sector)
37 *sector = track / drive_info->edd_params.heads;
42 *sector = track / (drive_info->legacy_max_head + 1);
176 * CL = maximum sector number (bits 5-0)
242 /* Maximum sector number (bits 5-0) per track */
25 lba_to_chs(const struct driveinfo *drive_info, const int lba, unsigned int *cylinder, unsigned int *head, unsigned int *sector) argument
/external/syslinux/core/
H A Ddiskstart.inc26 ; Padding after the (minimum) 512-byte boot sector so that the rest of
65 ; the first sector. Use this structure for anything that isn't used by
66 ; the first sector itself.
80 ; Boot sector patch pointers
102 ; Note that some BIOSes are buggy and run the boot sector at 07C0:0000
104 ; more to the boot sector, so it is written to not assume a fixed
129 movzx ebx,si ; Start of the next sector
159 dec cx ; Minus this sector
190 sub ecx,eax ; ... minus one sector
218 ; Subroutines that have to be in the first sector
[all...]
/external/fio/
H A Dblktrace_api.h98 __u64 sector; /* disk offset */ member in struct:blk_io_trace
114 __u64 sector; member in struct:blk_io_trace_remap

Completed in 2675 milliseconds

1234