/external/autotest/client/tests/disktest/src/ |
D | disktest.c | 21 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/vboot_reference/firmware/stub/ |
D | vboot_api_stub_stream.c | 23 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/blktrace/ |
D | blkparse_fmt.c | 228 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()
|
D | blkparse.c | 249 __u64 sector; member 920 if (iot->sector < __iot->sector) in track_rb_insert() 922 else if (iot->sector > __iot->sector) in track_rb_insert() 927 (unsigned long long) iot->sector, in track_rb_insert() 938 static struct io_track *__find_track(struct per_dev_info *pdi, __u64 sector) in __find_track() argument 946 if (sector < __iot->sector) in __find_track() 948 else if (sector > __iot->sector) in __find_track() 958 __u64 sector) in find_track() argument 962 iot = __find_track(pdi, sector); in find_track() 968 iot->sector = sector; in find_track() [all …]
|
D | blkiomon.c | 117 fprintf(debug.fp, "sector %16ld\n", (unsigned long)bit->sector); in dump_bit() 144 (unsigned long)bit1->sector, (unsigned long)bit2->sector); in dump_bits() 368 int i = t->bit.sector % TRACE_HASH_SIZE; in blkiomon_store_trace() 376 int i = bit->sector % TRACE_HASH_SIZE; in blkiomon_fetch_trace() 381 t->bit.sector == bit->sector && in blkiomon_fetch_trace()
|
D | blktrace.h | 112 t->sector = be64_to_cpu(t->sector); in trace_to_cpu()
|
/external/blktrace/btt/ |
D | trace_im.c | 29 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()
|
D | trace_complete.c | 38 __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()
|
D | mmap.c | 62 tp->sector = be64_to_cpu(t->sector); in convert_to_cpu()
|
/external/gptfdisk/ |
D | gpttext.cc | 184 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(§or)) { 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()
|
D | gpt.cc | 917 int GPTData::LoadHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector, int *crcOk) { in LoadHeader() argument 921 disk.Seek(sector); in LoadHeader() 946 int GPTData::LoadPartitionTable(const struct GPTHeader & header, DiskIO & disk, uint64_t sector) { in LoadPartitionTable() argument 951 if (sector == 0) { in LoadPartitionTable() 954 retval = disk.Seek(sector); in LoadPartitionTable() 1219 int GPTData::SaveHeader(struct GPTHeader *header, DiskIO & disk, uint64_t sector) { in SaveHeader() argument 1225 if (disk.Seek(sector)) { in SaveHeader() 1239 int GPTData::SavePartitionTable(DiskIO & disk, uint64_t sector) { in SavePartitionTable() argument 1243 if (disk.Seek(sector)) { in SavePartitionTable() 1981 int GPTData::Align(uint64_t* sector) { in Align() argument [all …]
|
D | mbrpart.cc | 259 uint64_t cylinder, head, sector; // all numbered from 0 in LBAtoCHS() local 283 sector = remainder; in LBAtoCHS() 288 if (sector < numSecspTrack) { in LBAtoCHS() 289 chs[1] = (uint8_t) ((sector + 1) + (cylinder >> 8) * 64); in LBAtoCHS()
|
D | NEWS | 44 that ended at or above the 2^32 sector point with incorrect end values. 53 the 2^32 sector mark. 60 - Fixed spurious "0xEE partition doesn't start on sector 1" warning in 108 on sector 1: Previously, a disk with multiple 0xEE partitions would 110 0xEE partitions begins on sector 1. 208 or sector number, for instance). 226 of the number of partition table entries that fits in a sector (normally 227 4 per sector). The program still rounds up, when necessary, when resizing 241 - Changed gdisk's first-sector input operation to specify a sector number 265 restriction that the size be equal to or less than the disk's sector [all …]
|
D | basicmbr.cc | 414 int BasicMBRData::WriteMBRData(struct TempMBR & mbr, DiskIO *theDisk, uint64_t sector) { in WriteMBRData() argument 430 if (allOK && theDisk->Seek(sector)) { in WriteMBRData() 662 uint64_t cylinder, head, sector; // all numbered from 0 in LBAtoCHS() local 686 sector = remainder; in LBAtoCHS() 691 if (sector < numSecspTrack) { in LBAtoCHS() 692 chs[1] = (uint8_t) ((sector + 1) + (cylinder >> 8) * 64); in LBAtoCHS() 1448 int BasicMBRData::SectorUsedAs(uint64_t sector, int topPartNum) { in SectorUsedAs() argument 1452 if ((partitions[i].GetStartLBA() <= sector) && (partitions[i].GetLastLBA() >= sector)) in SectorUsedAs() 1454 … if ((partitions[i].GetStartLBA() == (sector + 1)) && (partitions[i].GetInclusion() == LOGICAL)) in SectorUsedAs() 1456 if (sector == 0) in SectorUsedAs() [all …]
|
D | basicmbr.h | 75 int WriteMBRData(struct TempMBR & mbr, DiskIO *theDisk, uint64_t sector); 139 int SectorUsedAs(uint64_t sector, int topPartNum = MAX_MBR_PARTS);
|
/external/blktrace/btreplay/ |
D | btrecord.c | 71 __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/vboot_reference/host/arch/arm/lib/ |
D | crossystem_arch.c | 383 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/fio/t/ |
D | btrace2fio.c | 105 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 …]
|
/external/valgrind/none/tests/ |
D | bigcode.vgtest | 1 # this test exercises m_transtab.c sector recycling 5 # recycles a (already used) sector.
|
/external/libnfc-nci/src/nfc/tags/ |
D | rw_t2t.c | 466 p_t2t->sector = p_t2t->select_sector; in rw_t2t_process_timeout() 698 tNFC_STATUS rw_t2t_sector_change (UINT8 sector) in rw_t2t_sector_change() argument 714 UINT8_TO_BE_STREAM (p, sector); in rw_t2t_sector_change() 762 if (p_t2t->sector != block/T2T_BLOCKS_PER_SECTOR) in rw_t2t_read() 821 if (p_t2t->sector != block/T2T_BLOCKS_PER_SECTOR) in rw_t2t_write() 1061 tNFC_STATUS RW_T2tSectorSelect (UINT8 sector) in RW_T2tSectorSelect() argument 1073 if (sector >= T2T_MAX_SECTOR) in RW_T2tSectorSelect() 1075 …2tSectorSelect - Invalid sector: %u, T2 Max supported sector value: %u", sector, T2T_MAX_SECTOR - … in RW_T2tSectorSelect() 1084 p_t2t->select_sector = sector; in RW_T2tSectorSelect()
|
/external/fio/ |
D | blktrace_api.h | 98 __u64 sector; /* disk offset */ member 114 __u64 sector; member
|
D | blktrace.c | 248 ipo->offset = t->sector * 512; in handle_trace_discard() 276 store_ipo(td, t->sector, t->bytes, rw, ttime, fileno); in handle_trace_fs() 315 t->sector = fio_swap64(t->sector); in byteswap_trace()
|
/external/toybox/toys/pending/ |
D | fdisk.c | 46 #define sector(s) ((s) & 0x3f) macro 52 unsigned char boot_ind, head, sector, cyl, sys_ind, end_head, member 106 p->sector = (start % g_sectors) + 1; in set_hsc() 111 p->sector |= (start >> 2) & 0xc0; in set_hsc() 415 physbc = cylinder(p->sector,p->cyl); in consistency_check() 417 physbs = sector(p->sector); in consistency_check() 421 physes = sector(p->end_sector); in consistency_check() 1068 real_s = sector(s) - 1; in check() 1206 sector(p->sector), cylinder(p->sector, p->cyl), in print_partitions_list() 1208 sector(p->end_sector), cylinder(p->end_sector, p->end_cyl), in print_partitions_list()
|
/external/vulkan-validation-layers/libs/glm/gtx/ |
D | color_space.inl | 23 T sector = floor(hsv.x / T(60)); local 24 T frac = (hsv.x / T(60)) - sector; 30 switch(int(sector)) local
|
/external/opencv3/modules/cudev/include/opencv2/cudev/functional/detail/ |
D | color_cvt.hpp | 717 int sector = __float2int_rd(h); in operator ()() local 718 h -= sector; in operator ()() 720 if ( (unsigned)sector >= 6u ) in operator ()() 722 sector = 0; in operator ()() 732 b = tab[c_HsvSectorData[sector][0]]; in operator ()() 733 g = tab[c_HsvSectorData[sector][1]]; in operator ()() 734 r = tab[c_HsvSectorData[sector][2]]; in operator ()() 875 int sector; in operator ()() local 876 sector = __float2int_rd(h); in operator ()() 878 h -= sector; in operator ()() [all …]
|