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

  /src/sys/arch/ews4800mips/ews4800mips/
vtoc.c 1 /* $NetBSD: vtoc.c,v 1.4 2008/04/28 20:23:18 martin Exp $ */
33 __KERNEL_RCSID(0, "$NetBSD: vtoc.c,v 1.4 2008/04/28 20:23:18 martin Exp $");
50 #include <machine/vtoc.h>
57 vtoc_sector(void *rwops, struct vtoc_sector *vtoc, int start)
60 if (!sector_read(rwops, (void *)vtoc, start + VTOC_SECTOR))
63 if (!vtoc_sanity(vtoc))
70 vtoc_find_bfs(const struct vtoc_sector *vtoc)
74 if (!vtoc_valid(vtoc)) {
75 printf("invalid VTOC\n");
79 for (i = 0; i < vtoc->npartitions; i++
    [all...]
disklabel_conv.c 57 * | VTOC |
92 struct vtoc_sector *vtoc = &ux->vtoc; local
98 memset(vtoc, 0, sizeof *vtoc);
135 vtoc->magic = VTOC_MAGIC;
136 vtoc->version = VTOC_VERSION;
137 vtoc->sector_size_byte = DEV_BSIZE;
138 vtoc->npartitions = VTOC_MAXPARTITIONS;
140 boot = &vtoc->partition[7]
165 struct vtoc_sector *vtoc = &ux->vtoc; local
218 struct vtoc_sector *vtoc = &ux->vtoc; local
    [all...]
disksubr.c 57 struct vtoc_sector *vtoc = &ux->vtoc; local
65 /* Read VTOC */
68 } else if (vtoc_sector(rwops, vtoc, pdinfo->logical_sector) &&
69 vtoc_sanity(vtoc)) {
81 DPRINTF("%s: PDINFO found, but VTOC not found.\n", __func__);
85 /* If there is no BSD disklabel, convert from VTOC */
88 DPRINTF("%s: creating disklabel from VTOC.\n",
91 DPRINTF("%s: no VTOC. creating default disklabel.\n",
128 /* 1. Update VTOC */
    [all...]
  /src/sys/arch/ews4800mips/include/
disklabel.h 37 #include <nbinclude/machine/vtoc.h>
40 #include <machine/vtoc.h>
50 * 7 boot block (VTOC)
66 struct vtoc_sector vtoc; member in struct:cpu_disklabel
70 /* VTOC <-> disklabel conversion ops. */
bfs.h 36 #include <machine/vtoc.h>
Makefile 21 vmparam.h vtoc.h \
  /src/sys/arch/ews4800mips/stand/common/
diskutil.c 37 #include <machine/vtoc.h>
44 struct vtoc_sector vtoc; variable in typeref:struct:vtoc_sector
58 partition = vtoc.partition;
136 p = &vtoc.partition[partition];
154 vtoc.partition[partition].start_sector;
175 if (!vtoc_sector(0, &vtoc, pdinfo.logical_sector)) {
176 printf("no VTOC\n");
bfs_subr.c 73 struct vtoc_sector *vtoc; local
86 vtoc = (struct vtoc_sector *)buf;
87 if (!vtoc_sector(0, vtoc, start))
91 if ((bfs_partition = vtoc_find_bfs(vtoc)) == 0)
fileread_bfs.c 40 #include <machine/vtoc.h>
48 struct vtoc_sector *vtoc = (void *)SDBOOT_VTOCADDR; local
49 struct ux_partition *partition = vtoc->partition;
62 uint8_t *p = (void *)vtoc;
64 err = dk_read(pdinfo->logical_sector + VTOC_SECTOR, 1, vtoc);
80 /* Read VTOC */
81 err = dk_read(pdinfo->logical_sector + VTOC_SECTOR, 1, vtoc);
85 if (vtoc->magic != VTOC_MAGIC)
boot.c 41 #include <machine/vtoc.h>
125 extern struct vtoc_sector vtoc;
146 partition = vtoc.partition;
  /src/external/cddl/osnet/dist/lib/libzfs/common/
libzfs_pool.c 3868 struct dk_gpt *vtoc; local
3870 if ((err = efi_alloc_and_read(fd, &vtoc)) >= 0) {
3872 *sb = vtoc->efi_parts[0].p_start;
3873 efi_free(vtoc);
3923 struct dk_gpt *vtoc; local
3963 if (efi_alloc_and_init(fd, EFI_NUMPAR, &vtoc) != 0) {
3978 slice_size = vtoc->efi_last_u_lba + 1;
3984 vtoc->efi_parts[0].p_start = start_block;
3985 vtoc->efi_parts[0].p_size = slice_size;
3995 vtoc->efi_parts[0].p_tag = V_USR
    [all...]
libzfs_import.c 1019 struct extvtoc vtoc; local
1030 if (read_extvtoc(fd, &vtoc) >= 0) {
1033 vtoc.v_part[i].p_size, vtoc.v_sectorsz);
  /src/sys/arch/ews4800mips/stand/boot/
Makefile 52 SRCS += pdinfo.c vtoc.c

Completed in 36 milliseconds