HomeSort by: relevance | last modified time | path
    Searched refs:secsz (Results 1 - 18 of 18) sorted by relevancy

  /src/sbin/gpt/
restore.c 169 memcpy((char *)secbuf + gpt->secsz + ((i - 1) * sizeof(ent)),
193 last = gpt->mediasz / gpt->secsz - 1LL;
221 if (!prop_number_equals_signed(propnum, gpt->secsz)) {
241 gpt_size = (u_int)(entries * sizeof(struct gpt_ent) / gpt->secsz);
242 if (gpt_size * sizeof(struct gpt_ent) % gpt->secsz)
279 if ((secbuf = calloc(gpt_size + 1, gpt->secsz)) == NULL) {
289 if (write(gpt->fd, secbuf, gpt->secsz) != (ssize_t)gpt->secsz) {
294 if (lseek(gpt->fd, (lastdata + 1) * gpt->secsz, SEEK_SET) == -1) {
299 if (write(gpt->fd, secbuf, gpt->secsz) != (ssize_t)gpt->secsz)
    [all...]
gpt_private.h 45 u_int secsz; member in struct:gpt
main.c 146 u_int secsz = 0; local
192 (secsz ? secsz: 512))
195 if (secsz != 0) {
196 mediasz *= secsz;
257 if (gpt_scaled_uint_get(NULL, &secsz) == -1)
260 if (mediasz / 512 > UINTMAX_MAX / secsz)
262 mediasz = mediasz / 512 * secsz;
298 verbose, (off_t)mediasz, secsz, timestamp);
302 if (mediasz / 512 > UINTMAX_MAX / gpt->secsz)
    [all...]
destroy.c 88 memset(pri_hdr->map_data, 0, gpt->secsz);
96 memset(sec_hdr->map_data, 0, gpt->secsz);
104 memset(pmbr->map_data, 0, gpt->secsz);
header.c 79 printf("Sector Size: %u\n", gpt->secsz);
82 (uintmax_t)(gpt->mediasz / gpt->secsz));
gpt.c 251 count *= gpt->secsz;
256 ofs = lba * gpt->secsz;
275 count = (size_t)(map->map_size * gpt->secsz);
276 ofs = map->map_start * gpt->secsz;
410 blocks = tblsz / gpt->secsz + ((tblsz % gpt->secsz) ? 1 : 0);
483 gpt_open(const char *dev, int flags, int verbose, off_t mediasz, u_int secsz,
499 gpt->secsz = secsz;
539 if (gpt->secsz == 0)
    [all...]
backup.c 169 m->map_size * gpt->secsz; i++, ent++) {
218 assert(gpt->secsz <= INT_MAX);
220 (int)gpt->secsz));
resizedisk.c 94 last = gpt->mediasz / gpt->secsz - 1;
196 memcpy(gpt->tpg->map_data, gpt->gpt->map_data, gpt->secsz);
add.c 134 alignsecs = alignment / gpt->secsz;
resize.c 92 alignsecs = alignment / gpt->secsz;
migrate.c 210 rawofs /= gpt->secsz;
225 le32toh(dl->d_secsize)) / gpt->secsz;
show.c 273 num = sz * gpt->secsz;
538 gpt_show_sec_num("Start", gpt->secsz, m->map_start, xshow, gpt);
539 gpt_show_sec_num("Size", gpt->secsz, m->map_size, xshow, gpt);
645 (int64_t)(m->map_size * gpt->secsz),
651 (intmax_t)m->map_size * gpt->secsz,
biosboot.c 118 if ((buf = malloc((size_t)gpt->secsz)) == NULL) {
recover.c 102 memcpy((*dgpt)->map_data, sgpt->map_data, gpt->secsz);
  /src/sys/arch/hppa/stand/xxboot/
main.c 185 unsigned secsz, partoff, partsz; local
205 if (dklabel.d_magic == DISKMAGIC && (secsz = dklabel.d_secsize) != 0) {
263 if (partoff + partsz > ((unsigned)2*1024*1024*1024) / secsz) {
272 offset_raw_read = partoff * secsz;
  /src/sys/fs/hfs/
hfs_subr.c 289 hfs_pread(struct vnode *vp, void *buf, size_t secsz, uint64_t off,
312 start = ABSZ(off, secsz);
321 RBSZ(min(len - curoff + (off - start), MAXBSIZE), secsz),
  /src/sys/arch/amd64/stand/prekern/
elf.c 342 size_t i, secsz, secalign; local
359 secsz = shdr->sh_size;
363 ASSERT(secpa + secsz <= kernpa_end);
365 secva = mm_map_segment(segtype, secpa, secsz, secalign);
  /src/sbin/efi/
gptsubr.c 478 u_int secsz = 0;
552 verbose, mediasz, secsz, timestamp);

Completed in 24 milliseconds