Searched defs:mbr (Results 1 - 9 of 9) sorted by relevance

/illumos-gate/usr/src/lib/libnvpair/
H A Dnvpair_json.c48 mbstate_t mbr; local
52 bzero(&mbr, sizeof (mbr));
55 while ((sz = mbrtowc(&c, input, MB_CUR_MAX, &mbr)) > 0) {
/illumos-gate/usr/src/cmd/format/
H A Dmenu_fdisk.c484 char *mbr; local
497 * We may get mbr of different size, but the first 512 bytes
500 mbr = malloc(cur_blksz);
501 if (mbr == NULL) {
505 status = read(fd, mbr, cur_blksz);
510 free(mbr);
514 (void) memcpy(&boot_sec, mbr, sizeof (struct mboot));
515 free(mbr);
681 char *mbr; local
728 * We may get mbr o
837 char *mbr; local
[all...]
/illumos-gate/usr/src/cmd/boot/installboot/i386/
H A Dinstallboot.h73 char mbr[SECTOR_SIZE]; member in struct:_ib_device
98 /* locations of MBR parts, must be reviewd if mbr code is changed */
H A Dinstallboot.c424 bcopy(device->mbr + STAGE1_BPB_OFFSET,
429 bcopy(device->mbr + STAGE1_SIG, data->stage1 + STAGE1_SIG,
452 * to allow biosdev to identify disk based on mbr differences.
653 mboot = (struct mboot *)device->mbr;
856 get_boot_partition(ib_device_t *device, struct mboot *mbr) argument
862 part = (struct ipart *)mbr->parts;
1001 if (read(device->fd, device->mbr, SECTOR_SIZE) != SECTOR_SIZE) {
1016 ret = get_boot_partition(device, (struct mboot *)device->mbr);
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_activate.c935 uint16_t mbr = flags & BE_INSTALLBOOT_FLAG_MBR; local
938 if (mbr == BE_INSTALLBOOT_FLAG_MBR ||
944 if (mbr == BE_INSTALLBOOT_FLAG_MBR ||
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dpart.c72 uint8_t mbr; member in union:pentry::__anon126
394 if (e1->type.mbr == DOSPTYP_EXT ||
395 e1->type.mbr == DOSPTYP_EXTLBA)
431 entry->type.mbr = dp[0].dp_typ;
814 entry->type.mbr = dp[i].dp_typ;
898 switch (entry->type.mbr) {
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Ddisk_io.c458 char mbr[512]; local
474 if (! rawread (saved_drive, 0, 0, SECTOR_SIZE, mbr))
479 if (IS_PC_SLICE_TYPE_EXTENDED (PC_SLICE_TYPE (mbr, part)))
486 if (PC_SLICE_FLAG (mbr, part) != PC_SLICE_FLAG_BOOTABLE)
492 PC_SLICE_FLAG (mbr, i) = 0;
495 PC_SLICE_FLAG (mbr, part) = PC_SLICE_FLAG_BOOTABLE;
498 if (! rawwrite (saved_drive, 0, mbr))
520 char mbr[512]; local
540 &ext_offset, &gpt_offset, &gpt_count, &gpt_size, mbr))
553 PC_SLICE_TYPE (mbr, entr
[all...]
H A Dbuiltins.c1444 char mbr[SECTOR_SIZE];
1460 if (! rawread (current_drive, PC_MBR_SECTOR, 0, SECTOR_SIZE, mbr))
1464 if (! PC_MBR_CHECK_SIG (mbr))
1472 if (PC_SLICE_TYPE (mbr, i) && PC_SLICE_START (mbr, i) - 1 < size)
3314 char mbr[512];
3378 if (! rawread (current_drive, 0, 0, SECTOR_SIZE, mbr))
3385 PC_SLICE_FLAG (mbr, entry) = 0;
3386 PC_SLICE_HEAD (mbr, entry) = start_dh;
3387 PC_SLICE_SEC (mbr, entr
1427 char mbr[SECTOR_SIZE]; local
3276 char mbr[512]; local
3388 char mbr[512]; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf.c856 mbr_info_t mbr; local
859 mbr.mbr_member = member;
860 mbr.mbr_offp = offp;
861 mbr.mbr_typep = typep;
863 rc = mdb_ctf_member_iter(id, member_info_cb, &mbr);
1269 member_t mbr; local
1462 mbr.m_modbuf = modbuf;
1463 mbr.m_tgtbuf = tgtbuf;
1464 mbr.m_tgtid = tgtid;
1465 mbr
[all...]

Completed in 87 milliseconds