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

  /src/sbin/gpt/
restore.c 166 memcpy((char *)secbuf + gpt->secsz + ((i - 1) * sizeof(ent)),
190 last = gpt->mediasz / gpt->secsz - 1LL;
218 if (!prop_number_equals_signed(propnum, gpt->secsz)) {
238 gpt_size = (u_int)(entries * sizeof(struct gpt_ent) / gpt->secsz);
239 if (gpt_size * sizeof(struct gpt_ent) % gpt->secsz)
276 if ((secbuf = calloc(gpt_size + 1, gpt->secsz)) == NULL) {
286 if (write(gpt->fd, secbuf, gpt->secsz) != (ssize_t)gpt->secsz) {
291 if (lseek(gpt->fd, (lastdata + 1) * gpt->secsz, SEEK_SET) == -1) {
296 if (write(gpt->fd, secbuf, gpt->secsz) != (ssize_t)gpt->secsz)
    [all...]
gpt_private.h 45 u_int secsz; member in struct:gpt
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 76 printf("Sector Size: %u\n", gpt->secsz);
79 (uintmax_t)(gpt->mediasz / gpt->secsz));
gpt.c 252 count *= gpt->secsz;
257 ofs = lba * gpt->secsz;
272 count = (size_t)(map->map_size * gpt->secsz);
273 ofs = map->map_start * gpt->secsz;
407 blocks = tblsz / gpt->secsz + ((tblsz % gpt->secsz) ? 1 : 0);
480 gpt_open(const char *dev, int flags, int verbose, off_t mediasz, u_int secsz,
496 gpt->secsz = secsz;
516 if (gpt->secsz == 0)
    [all...]
main.c 142 u_int secsz = 0; local in function:main
186 if (gpt_uint_get(NULL, &secsz) == -1)
221 verbose, mediasz, secsz, timestamp);
backup.c 166 m->map_size * gpt->secsz; i++, ent++) {
215 assert(gpt->secsz <= INT_MAX);
217 (int)gpt->secsz));
resize.c 89 alignsecs = alignment / gpt->secsz;
show.c 276 gpt_show_sec_num("Start", gpt->secsz, m->map_start);
277 gpt_show_sec_num("Size", gpt->secsz, m->map_size);
369 (int64_t)(m->map_size * gpt->secsz),
373 (int64_t)(m->map_size * gpt->secsz));
resizedisk.c 91 last = gpt->mediasz / gpt->secsz - 1;
193 memcpy(gpt->tpg->map_data, gpt->gpt->map_data, gpt->secsz);
add.c 132 alignsecs = alignment / gpt->secsz;
migrate.c 207 rawofs /= gpt->secsz;
222 le32toh(dl->d_secsize)) / gpt->secsz;
biosboot.c 116 if ((buf = malloc((size_t)gpt->secsz)) == NULL) {
recover.c 99 memcpy((*dgpt)->map_data, sgpt->map_data, gpt->secsz);
  /src/sys/arch/hppa/stand/xxboot/
main.c 185 unsigned secsz, partoff, partsz; local in function:ipl_main
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 in function:elf_map_sections
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 17 milliseconds