Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 25 of 136) sorted by relevance

123456

/external/f2fs-tools/lib/
Dlibf2fs_zoned.c112 u_int64_t sector; in f2fs_check_zones() local
123 sector = 0; in f2fs_check_zones()
126 while (sector < total_sectors) { in f2fs_check_zones()
130 rep->sector = sector; in f2fs_check_zones()
145 for (i = 0; i < rep->nr_zones && sector < total_sectors; i++) { in f2fs_check_zones()
182 sector = blk_zone_sector(blkz) + blk_zone_length(blkz); in f2fs_check_zones()
188 if (sector != total_sectors) { in f2fs_check_zones()
190 (unsigned long long)(sector << 9) / c.sector_size, in f2fs_check_zones()
220 u_int64_t sector; in f2fs_reset_zones() local
230 sector = 0; in f2fs_reset_zones()
[all …]
/external/syslinux/core/fs/fat/
Dfat.c27 static const void *get_fat_sector(struct fs_info *fs, sector_t sector) in get_fat_sector() argument
29 return get_cache(fs->fs_dev, FAT_SB(fs)->fat + sector); in get_fat_sector()
148 static sector_t get_next_sector(struct fs_info* fs, uint32_t sector) in get_next_sector() argument
156 if (sector < data_area) { in get_next_sector()
158 sector++; in get_next_sector()
159 if (sector >= data_area) in get_next_sector()
160 sector = 0; /* Ran out of root directory, return EOF */ in get_next_sector()
161 return sector; in get_next_sector()
164 data_sector = sector - data_area; in get_next_sector()
166 return sector + 1; /* Next sector inside cluster */ in get_next_sector()
[all …]
/external/stressapptest/src/
Ddisk_blocks.cc196 int64 sector = 0; in GetUnusedBlock() local
213 sector = (Random64() & 0x7FFFFFFFFFFFFFFFLL) % ( in GetUnusedBlock()
215 sector *= num_sectors; in GetUnusedBlock()
217 sector = (Random64() & 0x7FFFFFFFFFFFFFFFLL) % ( in GetUnusedBlock()
219 sector *= num_sectors; in GetUnusedBlock()
220 sector += segment * segment_size_; in GetUnusedBlock()
222 if (sector + num_sectors > (segment + 1) * segment_size_) { in GetUnusedBlock()
228 if (sector + num_sectors > device_sectors_) { in GetUnusedBlock()
237 if (addr_to_block_.find(sector) != addr_to_block_.end()) { in GetUnusedBlock()
244 block->set_address(sector); in GetUnusedBlock()
/external/syslinux/win/
Dsyslinux.c111 unsigned char sector[SECTOR_SIZE]; in FixMBR() local
122 if (ReadFile(drive, sector, sizeof(sector), &howMany, NULL) == 0) { in FixMBR()
125 } else if (howMany != sizeof(sector)) { in FixMBR()
128 (int)howMany, sizeof(sector)); in FixMBR()
139 memcpy(sector, syslinux_mbr, syslinux_mbr_len); in FixMBR()
145 if (sector[PART_TABLE + (PART_SIZE * (partitionNum - 1))] != 0x80) { in FixMBR()
148 sector[PART_TABLE + (PART_SIZE * p)] = in FixMBR()
156 if (WriteFile(drive, sector, sizeof(sector), &howMany, NULL) == 0) { in FixMBR()
159 } else if (howMany != sizeof(sector)) { in FixMBR()
162 (int)howMany, sizeof(sector)); in FixMBR()
[all …]
/external/autotest/client/tests/disktest/src/
Ddisktest.c21 unsigned int sector; member
56 unsigned int i, sec_offset, sector; in write_block() local
61 sector = (block * sectors_per_block) + sec_offset; in write_block()
65 sector_buffer[i].sector = sector; in write_block()
87 unsigned int sec_offset, sector; in verify_block() local
103 sector = (block * sectors_per_block) + sec_offset; in verify_block()
107 if (sector_buffer[i].sector != sector) { in verify_block()
108 read_sector = sector_buffer[i].sector; in verify_block()
121 sector, read_sector, in verify_block()
127 sector, read_signature, signature, in verify_block()
/external/syslinux/doc/
Dchain.txt9 - load and jump to a sector
10 - load and jump to a file (also loading a sector for other purposes)
11 - prepare handover data to use by a file / boot sector
12 - fix different options in a file / sector / partition entries
16 first sector from a raw disk.
24 5. Load a sector to boot from, if it doesn't conflict with #5.
28 9. Patch loaded sector if necessary.
31 In most basic form, syslinux loads specified boot sector (or mbr, if not
95 instead of the sector from the disk. Note, that the <file> must reside on
99 options 'sect=' and 'seg='), the file will cause sector to not be loaded at all
[all …]
/external/syslinux/diag/geodsp/
DREADME10 GeoDsp1S is a one-sector variant containing all code in one sector that
14 GeoDspMS is a multi sector variant intended to look like Syslinux
18 GeoDspMS can also be used to attempt to make the boot sector look like a
19 normal file system's boot sector (ie FAT12/FAT16/FAT32). In order to do
20 this, you must first save a portion the existing boot sector (the
/external/vboot_reference/firmware/stub/
Dvboot_api_stub_stream.c23 uint64_t sector; member
41 s->sector = lba_start; in VbExStreamOpen()
67 rv = VbExDiskRead(s->handle, s->sector, sectors, buffer); in VbExStreamRead()
71 s->sector += sectors; in VbExStreamRead()
/external/syslinux/mbr/
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, jump
[all …]
/external/syslinux/core/
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 …]
Ddiskboot.inc17 ; Common boot sector code for harddisk-based Syslinux derivatives.
56 ; "Superblock" follows -- it's in the boot sector, so it's already
167 mov cl,[bsSecPerTrack] ; Patch the sector count
216 ; No partition table given... assume that the Hidden field in the boot sector
266 ; Load the first sector of LDLINUX.SYS; this used to be all proper
286 ; getonesec: load a single disk linear sector EDX:EAX into the buffer
351 ; Dividing by sectors to get (track,sector): we may have
356 xchg cx,dx ; CX <- sector index (0-based)
365 ; Now we have AX = cyl, DX = head, CX = sector (0-based),
375 mov ax,0201h ; Read one sector
[all …]
/external/blktrace/
Dblkparse_fmt.c228 fprintf(ofp, strcat(format, "lu"), t->sector); in print_field()
324 (unsigned long long) t->sector, in process_default()
328 (unsigned long long) t->sector, in process_default()
333 (unsigned long long) t->sector, in process_default()
337 (unsigned long long) t->sector, in process_default()
358 (unsigned long long) t->sector, in process_default()
366 (unsigned long long) t->sector, in process_default()
380 (unsigned long long) t->sector, t_sec(t), name); in process_default()
397 (unsigned long long) t->sector, t_sec(t), in process_default()
403 fprintf(ofp, "%llu / %u [%s]\n", (unsigned long long) t->sector, in process_default()
/external/syslinux/gpxe/src/include/
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/blktrace/btt/
Dtrace_im.c29 q_iop = dip_find_sec(g_iop->dip, IOP_Q, g_iop->t.sector); in handle_g()
40 struct io *q_iop = dip_find_sec(s_iop->dip, IOP_Q, s_iop->t.sector); in handle_s()
48 struct io *q_iop = dip_find_sec(i_iop->dip, IOP_Q, i_iop->t.sector); in handle_i()
63 q_iop = dip_find_sec(m_iop->dip, IOP_Q, m_iop->t.sector); in handle_m()
Dtrace_complete.c38 __out(ofp, iop->t.time, IOP_Q, iop->t.sector, t_sec(&iop->t), 0); in display_io_track()
41 __out(ofp, iop->g_time, IOP_G, iop->t.sector, t_sec(&iop->t),1); in display_io_track()
43 __out(ofp, iop->i_time, IOP_I, iop->t.sector, t_sec(&iop->t),1); in display_io_track()
45 __out(ofp, iop->m_time, IOP_M, iop->t.sector, t_sec(&iop->t),1); in display_io_track()
88 q_iop->c_sec = c_iop->t.sector; in handle_complete()
/external/gptfdisk/
Dgpt.h86 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);
Dgpttext.cc184 uint64_t firstBlock, firstInLargest, lastBlock, sector, origSector; in CreatePartition() local
214 sector = GetSectorNum(firstBlock, lastBlock, firstInLargest, blockSize, prompt2.str()); in CreatePartition()
215 } while (IsFree(sector) == 0); in CreatePartition()
216 origSector = sector; in CreatePartition()
217 if (Align(&sector)) { in CreatePartition()
219 << sector << " in\norder to align on " << sectorAlignment in CreatePartition()
225 firstBlock = sector; in CreatePartition()
232 sector = GetSectorNum(firstBlock, lastBlock, lastBlock, blockSize, prompt3.str()); in CreatePartition()
233 } while (IsFree(sector) == 0); in CreatePartition()
234 lastBlock = sector; in CreatePartition()
Dgpt.cc922 int GPTData::LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk) { in LoadHeader() argument
926 disk.Seek(sector); in LoadHeader()
951 int GPTData::LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector) { in LoadPartitionTable() argument
959 if (sector == 0) { in LoadPartitionTable()
962 retval = disk.Seek(sector); in LoadPartitionTable()
1227 int GPTData::SaveHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector) { in SaveHeader() argument
1233 if (disk.Seek(sector)) { in SaveHeader()
1247 int GPTData::SavePartitionTable(DiskIO & disk, uint64_t sector) { in SavePartitionTable() argument
1251 if (disk.Seek(sector)) { in SavePartitionTable()
1991 int GPTData::Align(uint64_t* sector) { in Align() argument
[all …]
/external/syslinux/com32/gplinclude/disk/
Dgeom.h306 const unsigned int head, const unsigned int sector) in chs_to_lba() argument
311 return (sector - 1) + in chs_to_lba()
316 return (sector - 1) + (head * drive_info->legacy_sectors_per_track) + in chs_to_lba()
323 unsigned int *sector);
/external/blktrace/btreplay/
Dbtrecord.c71 __u64 sector; member
274 .sector = spec->sector, in io_bunch_add()
513 spec->sector = t.sector; in next_io()
520 spec->sector = be64_to_cpu(t.sector); in next_io()
549 iip->cpu, (long long unsigned)spec->sector, in next_io()
615 (unsigned long long)p->sector, in bunch_output_pkts()
/external/syslinux/dos/
Dsyslinux.c173 void write_device(int drive, const void *buf, size_t nsecs, unsigned int sector) in write_device() argument
178 dprintf("write_device(%d,%p,%u,%u)\n", drive, buf, nsecs, sector); in write_device()
180 dio.startsector = sector; in write_device()
206 void read_device(int drive, void *buf, size_t nsecs, unsigned int sector) in read_device() argument
211 dprintf("read_device(%d,%p,%u,%u)\n", drive, buf, nsecs, sector); in read_device()
213 dio.startsector = sector; in read_device()
391 libfat_sector_t sector) in libfat_xpread() argument
393 read_device(pp, buf, 1, sector); in libfat_xpread()
/external/vboot_reference/host/arch/arm/lib/
Dcrossystem_arch.c383 uint8_t sector[SECTOR_SIZE]; in VbReadNvStorage_disk() local
406 rv = read(nvctx_fd, sector, SECTOR_SIZE); in VbReadNvStorage_disk()
412 Memcpy(vnc->raw, sector+offset, size); in VbReadNvStorage_disk()
424 uint8_t sector[SECTOR_SIZE]; in VbWriteNvStorage_disk() local
447 rv = read(nvctx_fd, sector, SECTOR_SIZE); in VbWriteNvStorage_disk()
453 Memcpy(sector+offset, vnc->raw, size); in VbWriteNvStorage_disk()
455 rv = write(nvctx_fd, sector, SECTOR_SIZE); in VbWriteNvStorage_disk()
/external/valgrind/none/tests/
Dbigcode.vgtest1 # this test exercises m_transtab.c sector recycling
5 # recycles a (already used) sector.
/external/kernel-headers/original/uapi/linux/
Dblkzoned.h115 __u64 sector; member
127 __u64 sector; member
/external/fio/t/
Dbtrace2fio.c105 static struct inflight *inflight_find(uint64_t sector) in inflight_find() argument
110 inflight_list = &inflight_hash[hash_long(sector, INFLIGHT_HASH_BITS)]; in inflight_find()
115 if (i->end_sector == sector) in inflight_find()
140 static void inflight_add(struct btrace_pid *p, uint64_t sector, uint32_t len) in inflight_add() argument
155 i->end_sector = sector + (len >> 9); in inflight_add()
359 if (t->sector == o->last_end[rw] || o->last_end[rw] == -1ULL) in handle_trace_fs()
362 o->last_end[rw] = t->sector + (t->bytes >> 9); in handle_trace_fs()
382 inflight_add(p, t->sector, t->bytes); in handle_trace()
387 i = inflight_find(t->sector + (t->bytes >> 9)); in handle_trace()
391 i = inflight_find(t->sector); in handle_trace()
[all …]

123456