Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 25 of 114) sorted by relevance

12345

/external/u-boot/arch/arm/mach-imx/imx8/
Dparse-container.c80 u32 sectors; in read_auth_image() local
96 sectors = roundup(images[image_index].size, info->bl_len) / in read_auth_image()
102 container, sector, sectors); in read_auth_image()
103 if (info->read(info, sector, sectors, in read_auth_image()
104 (void *)images[image_index].entry) != sectors) { in read_auth_image()
124 u32 sectors; in read_auth_container() local
128 sectors = size / info->bl_len; in read_auth_container()
137 container, sector, sectors); in read_auth_container()
138 if (info->read(info, sector, sectors, container) != sectors) in read_auth_container()
156 sectors = size / info->bl_len; in read_auth_container()
[all …]
/external/vboot_reference/firmware/stub/
Dvboot_api_stub_stream.c52 uint64_t sectors; in VbExStreamRead() local
63 sectors = bytes / LBA_BYTES; in VbExStreamRead()
64 if (sectors > s->sectors_left) in VbExStreamRead()
67 rv = VbExDiskRead(s->handle, s->sector, sectors, buffer); in VbExStreamRead()
71 s->sector += sectors; in VbExStreamRead()
72 s->sectors_left -= sectors; in VbExStreamRead()
/external/gptfdisk/
Ddiskio-unix.cc247 numSecs = (uint32_t) geometry.sectors; in GetNumSecsPerTrack()
428 uint64_t sectors = 0; // size in sectors in DiskSize() local
448 *err = ioctl(fd, DKIOCGETBLOCKCOUNT, &sectors); in DiskSize()
454 sectors = minfo.dki_capacity; in DiskSize()
460 sectors = bytes / b; in DiskSize()
468 sectors = sz = 0; in DiskSize()
473 sectors = sz; in DiskSize()
475 sectors = (b >> 9); in DiskSize()
479 sectors /= (GetBlockSize() / 512); in DiskSize()
488 if ((sectors == 0) || (*err == -1)) { in DiskSize()
[all …]
Ddiskio-windows.cc313 uint64_t sectors = 0; // size in sectors in DiskSize() local
330 sectors = (uint64_t) buf.Length.QuadPart / GetBlockSize(); in DiskSize()
334 sectors = ((uint64_t) bytes + ((uint64_t) moreBytes) * UINT32_MAX) / GetBlockSize(); in DiskSize()
339 sectors = 0; in DiskSize()
342 return sectors; in DiskSize()
Dmbrpart.cc126 void MBRPart::SetGeometry(uint32_t heads, uint32_t sectors, uint64_t ds, uint32_t bs) { in SetGeometry() argument
128 numSecspTrack = sectors; in SetGeometry()
/external/u-boot/common/
Davb_verify.c262 lbaint_t sectors, in mmc_read_and_flush() argument
274 if ((start + sectors) > (part->info.start + part->info.size)) { in mmc_read_and_flush()
275 sectors = part->info.start + part->info.size - start; in mmc_read_and_flush()
277 __func__, sectors); in mmc_read_and_flush()
289 if (sectors > buf_size / part->info.blksz) in mmc_read_and_flush()
290 sectors = buf_size / part->info.blksz; in mmc_read_and_flush()
296 start, sectors, tmp_buf); in mmc_read_and_flush()
298 flush_cache((ulong)tmp_buf, sectors * part->info.blksz); in mmc_read_and_flush()
301 memcpy(buffer, tmp_buf, sectors * part->info.blksz); in mmc_read_and_flush()
307 lbaint_t sectors, void *buffer) in mmc_write() argument
[all …]
/external/u-boot/board/keymile/km83xx/
DREADME.kmeter167 Un-Protected 5 sectors
70 Erased 5 sectors
73 Protected 5 sectors
77 Un-Protected 1 sectors
79 Un-Protected 1 sectors
82 Erased 1 sectors
85 Protected 1 sectors
87 Protected 1 sectors
/external/blktrace/btt/
Dseek.c26 long long sectors; member
63 static void __insert(struct rb_root *root, long long sectors) in __insert() argument
72 if (sectors < sbp->sectors) in __insert()
74 else if (sectors > sbp->sectors) in __insert()
84 sbp->sectors = sectors; in __insert()
142 *rvp = sbp->sectors; in __median()
178 mp->modes[mp->nmds++] = sbp->sectors; in __mode()
/external/f2fs-tools/lib/
Dlibf2fs_zoned.c152 uint64_t sectors; in f2fs_get_zone_blocks() local
177 sectors = atol(str); in f2fs_get_zone_blocks()
178 if (!sectors) in f2fs_get_zone_blocks()
181 dev->zone_blocks = sectors >> (F2FS_BLKSIZE_BITS - 9); in f2fs_get_zone_blocks()
182 sectors = (sectors << 9) / c.sector_size; in f2fs_get_zone_blocks()
188 dev->nr_zones = dev->total_sectors / sectors; in f2fs_get_zone_blocks()
189 if (dev->total_sectors % sectors) in f2fs_get_zone_blocks()
/external/bsdiff/
Dfile.cc102 uint64_t sectors = 0; in GetSize()
103 if (ioctl(fd_, DKIOCGETBLOCKCOUNT, &sectors) == 0) { in GetSize()
104 *size = sectors << 9; in GetSize()
/external/u-boot/tools/env/
Dfw_env.config4 # Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
10 # MTD device name Device offset Env. size Flash sector size Number of sectors
15 # MTD device name Device offset Env. size Flash sector size Number of sectors
DREADME27 #define HAVE_REDUND /* For systems with 2 env sectors */
57 DEVICEx_ENVSECTORS defines the number of sectors that may be used for
/external/toybox/toys/pending/
Dfdisk.c32 long sectors;
165 unsigned long sectors = 0; in read_size() local
174 if (ioctl(dev_fd, BLKGETSIZE, &sectors) == 0) in read_size()
175 if (sizeof(long) > sizeof(sector_t) && sectors != (sector_t)sectors) in read_size()
176 sectors = (uint32_t) - 1L; in read_size()
177 return sectors; in read_size()
229 disk->sectors = geometry.sectors; in read_geometry()
372 disk.heads = disk.sectors = 0; in read_mbr()
378 …g_sectors = (toys.optflags & FLAG_S && TT.sectors)? TT.sectors : s? s : disk.sectors?disk.sectors in read_mbr()
1379 g_sectors = TT.sectors = value; in expert_menu()
[all …]
/external/u-boot/arch/arm/cpu/armv8/fsl-layerscape/doc/
DREADME.falcon26 driver from these sectors. We could change this loading order to favor the
27 stored sectors. But when secure boot is enabled, these sectors are used for
30 leave it absent to favor the stored sectors. It is easier to deploy the FIT
34 the stored sectors to. Normally this is the static device tree. The second
69 mmc write <address> <sector> <sectors>
70 dd if=/dev/mmcblk0 of=<filename> bs=512 skip=<sector> count=<sectors>
/external/u-boot/doc/
DREADME.sata19 Notes: Hard disk sectors are normally 512 bytes, so
20 0x1000 sectors = 2 MBytes
/external/u-boot/common/spl/
Dspl_fit.c368 int sectors; in spl_load_simple_fit() local
406 sectors = get_aligned_image_size(info, size, 0); in spl_load_simple_fit()
407 count = info->read(info, sector, sectors, fit); in spl_load_simple_fit()
409 sector, sectors, fit, count, size); in spl_load_simple_fit()
/external/u-boot/doc/imx/mkimage/
Dimximage.txt134 255 heads and 63 sectors, as suggested from several documentation and
172 Number of sectors (1-63, default 16): 63
178 cylinder = <total size> / <heads> / <sectors> / <blocksize>
209 255 heads, 63 sectors/track, 239 cylinders
216 I have set 100MB, leaving the first 2 sectors free. I will copy u-boot
/external/strace/
Dhdio.c55 (unsigned) geo.sectors, in MPERS_PRINTER_DECL()
/external/u-boot/board/freescale/mx6sabreauto/
DREADME78 - Write args 1MB data (0x800 sectors) to 1MB offset (0x800 sectors)
/external/u-boot/drivers/mtd/spi/
DKconfig158 bool "Use small 4096 B erase sectors"
162 Many flash memories support erasing small (4096 B) sectors. Depending
166 small sectors. On the other hand erasing should be faster when using
167 64 KiB block instead of 16 × 4 KiB sectors.
/external/kernel-headers/original/uapi/linux/
Dhdreg.h326 unsigned char sectors; member
406 unsigned short sectors; /* Obsolete, "physical" sectors per track */ member
/external/u-boot/board/freescale/mx6sabresd/
DREADME109 - Write args 1MB data (0x800 sectors) to 1MB offset (0x800 sectors)
/external/bcc/tools/
Dtrace_example.txt97 trace the block:block_rq_complete tracepoint and print out the number of sectors
100 # trace 't:block:block_rq_complete "sectors=%d", args->nr_sector' -T
102 01:23:51 0 swapper/0 block_rq_complete sectors=8
103 01:23:55 10017 kworker/u64: block_rq_complete sectors=1
104 01:23:55 0 swapper/0 block_rq_complete sectors=8
306 trace 't:block:block_rq_complete "sectors=%d", args->nr_sector'
307 Trace the block_rq_complete kernel tracepoint and print # of tx sectors
/external/u-boot/drivers/virtio/
Dvirtio_blk.h46 __u8 sectors; member
/external/e2fsprogs/misc/
Dpartinfo.c75 loc.heads, (int)loc.sectors, loc.cylinders, in main()

12345