Lines Matching refs:Table
317 static struct ipart Table[FD_NUMPART]; variable
1182 if ((rval = libfdisk_init(&epp, Dfltdev, &Table[0], lf_op_flag)) in main()
1258 Table[0].bootid = ACTIVE; in main()
1259 Table[0].relsect = LE_32(heads * sectors); in main()
1261 Table[0].numsect = in main()
1265 Table[0].systid = SUNIXOS2; /* Solaris */ in main()
1434 if (Table[new_pt].systid != SUNIXOS && in dev_mboot_write()
1435 Table[new_pt].systid != SUNIXOS2) in dev_mboot_write()
1447 Table[new_pt].relsect) && in dev_mboot_write()
1449 Table[new_pt].numsect)) in dev_mboot_write()
1476 if (Table[new_pt].systid != EFI_PMBR) in dev_mboot_write()
1480 Table[new_pt].systid) && in dev_mboot_write()
1482 Table[new_pt].relsect) && in dev_mboot_write()
1484 Table[new_pt].numsect)) in dev_mboot_write()
1492 if (old_pt == FD_NUMPART && Table[new_pt].begcyl != 0) { in dev_mboot_write()
2029 if (Table[i].systid == id && in load()
2030 Table[i].bootid == act && in load()
2031 Table[i].beghead == bhead && in load()
2032 Table[i].begsect == ((bsect & 0x3f) | in load()
2034 Table[i].begcyl == (uchar_t)(bcyl & 0xff) && in load()
2035 Table[i].endhead == ehead && in load()
2036 Table[i].endsect == ((esect & 0x3f) | in load()
2038 Table[i].endcyl == (uchar_t)(ecyl & 0xff) && in load()
2039 Table[i].relsect == LE_32(rsect) && in load()
2040 Table[i].numsect == LE_32(numsect)) { in load()
2042 (void) memset(&Table[i], 0, in load()
2247 lba = (uint32_t)Table[ti].relsect; in Set_Table_CHS_Values()
2261 Table[ti].begcyl = cy & 0xff; in Set_Table_CHS_Values()
2262 Table[ti].beghead = (uchar_t)hd; in Set_Table_CHS_Values()
2263 Table[ti].begsect = (uchar_t)(((cy >> 2) & 0xc0) | sc); in Set_Table_CHS_Values()
2269 lba = (uint32_t)(Table[ti].relsect + Table[ti].numsect - 1); in Set_Table_CHS_Values()
2279 Table[ti].endcyl = cy & 0xff; in Set_Table_CHS_Values()
2280 Table[ti].endhead = (uchar_t)hd; in Set_Table_CHS_Values()
2281 Table[ti].endsect = (uchar_t)(((cy >> 2) & 0xc0) | sc); in Set_Table_CHS_Values()
2309 if (Table[i].systid == UNUSED) { in insert_tbl()
2319 Table[i].systid = (uchar_t)id; in insert_tbl()
2320 Table[i].bootid = (uchar_t)act; in insert_tbl()
2321 Table[i].numsect = LE_32(numsect); in insert_tbl()
2322 Table[i].relsect = LE_32(rsect); in insert_tbl()
2325 (void) memset(&Table[i], 0, sizeof (struct ipart)); in insert_tbl()
2339 Table[i].begcyl = bcyl & 0xff; in insert_tbl()
2340 Table[i].endcyl = ecyl & 0xff; in insert_tbl()
2341 Table[i].beghead = (uchar_t)bhead; in insert_tbl()
2342 Table[i].endhead = (uchar_t)ehead; in insert_tbl()
2343 Table[i].begsect = (uchar_t)(((bcyl >> 2) & 0xc0) | bsect); in insert_tbl()
2344 Table[i].endsect = ((ecyl >> 2) & 0xc0) | esect; in insert_tbl()
2392 if (Table[j].systid == UNUSED) { in entry_from_old_table()
2393 (void) memcpy(&Table[j], &Old_Table[i], in entry_from_old_table()
2394 sizeof (Table[0])); in entry_from_old_table()
2421 if (Table[i].systid != UNUSED) { in verify_tbl()
2430 if (Table[i].systid == EFI_PMBR) { in verify_tbl()
2437 if (Table[i].relsect != 1) { in verify_tbl()
2443 Table[i].relsect); in verify_tbl()
2448 if (Table[i].numsect != in verify_tbl()
2461 Table[i].numsect, in verify_tbl()
2468 Table[i].numsect, in verify_tbl()
2476 rsect = LE_32(Table[i].relsect); in verify_tbl()
2477 numsect = LE_32(Table[i].numsect); in verify_tbl()
2486 if (Table[j].systid != UNUSED) { in verify_tbl()
2488 LE_32(Table[j].relsect); in verify_tbl()
2490 LE_32(Table[j].numsect); in verify_tbl()
2508 Table[i].systid, in verify_tbl()
2509 Table[i].bootid, in verify_tbl()
2510 Table[i].begcyl, in verify_tbl()
2511 Table[i].beghead, in verify_tbl()
2512 Table[i].begsect, in verify_tbl()
2513 Table[i].endcyl, in verify_tbl()
2514 Table[i].endhead, in verify_tbl()
2515 Table[i].endsect, in verify_tbl()
2516 Table[i].relsect, in verify_tbl()
2517 Table[i].numsect, in verify_tbl()
2518 Table[j].systid, in verify_tbl()
2519 Table[j].bootid, in verify_tbl()
2520 Table[j].begcyl, in verify_tbl()
2521 Table[j].beghead, in verify_tbl()
2522 Table[j].begsect, in verify_tbl()
2523 Table[j].endcyl, in verify_tbl()
2524 Table[j].endhead, in verify_tbl()
2525 Table[j].endsect, in verify_tbl()
2526 Table[j].relsect, in verify_tbl()
2527 Table[j].numsect); in verify_tbl()
2547 if (Table[i].systid != UNUSED) { in verify_tbl()
2551 ((((diskaddr_t)lel(Table[i].relsect) + in verify_tbl()
2552 lel(Table[i].numsect)) > dev_capacity) || in verify_tbl()
2553 (((diskaddr_t)lel(Table[i].relsect) + in verify_tbl()
2554 lel(Table[i].numsect)) > DK_MAX_2TB))) { in verify_tbl()
2818 if (Table[i].systid == UNUSED) {
2826 if (Table[i].systid != UNUSED) {
2827 numsect += LE_32(Table[i].numsect);
2831 if (fdisk_is_dos_extended(Table[i].systid)) {
2981 Table[j].bootid = ACTIVE;
2988 Table[j].bootid = 0;
2992 Table[i].bootid = 0;
3001 if (fdisk_is_dos_extended(Table[i].systid)) {
3003 LE_32(Table[i].relsect),
3004 LE_32(Table[i].numsect));
3052 Table[i].bootid = 0;
3088 if (Table[i].systid != UNUSED) {
3089 localpart[j] = Table[i];
3412 if (Table[i].systid != UNUSED &&
3413 Table[i].bootid == ACTIVE)
3414 Table[i].bootid = 0;
3424 if (Table[i].systid == UNUSED) {
3430 else if ((Table[i].systid == DOSDATA) ||
3431 (Table[i].systid == EXTDOS) ||
3432 (Table[i].systid == FDISK_EXTLBA)) {
3440 Table[i].bootid = ACTIVE;
3443 Table[j].bootid = 0;
3488 if (Table[i].systid == SUNIXOS) {
3489 Table[i].systid = SUNIXOS2;
3490 } else if (Table[i].systid == SUNIXOS2) {
3491 Table[i].systid = SUNIXOS;
3536 if (Table[i].systid == UNUSED) {
3543 if (fdisk_is_dos_extended(Table[i].systid) &&
3544 (Table[i].relsect == fdisk_get_ext_beg_sec(epp)) &&
3583 if (Table[i].bootid == ACTIVE) {
3589 (void) memset(&Table[i], 0, sizeof (struct ipart));
3689 if (Table[i].systid == UNUSED) {
3693 if (Table[i].bootid == ACTIVE)
3697 switch (Table[i].systid) {
3704 if (fdisk_is_linux_swap(epp, Table[i].relsect,
3804 if (LE_32(Table[i].numsect) == DK_MAX_2TB)
3812 startcyl = LE_32(Table[i].relsect) /
3815 if (LE_32(Table[i].numsect) == DK_MAX_2TB) {
3819 length = LE_32(Table[i].numsect) /
3821 if (LE_32(Table[i].numsect) %
3874 (void) fprintf(stderr, " %-5d ", Table[i].systid);
3875 (void) fprintf(stderr, "%-3d ", Table[i].bootid);
3876 (void) fprintf(stderr, "%-5d ", Table[i].beghead);
3877 (void) fprintf(stderr, "%-5d ", Table[i].begsect & 0x3f);
3879 (((uint_t)Table[i].begsect & 0xc0) << 2) + Table[i].begcyl);
3881 (void) fprintf(stderr, "%-5d ", Table[i].endhead);
3882 (void) fprintf(stderr, "%-5d ", Table[i].endsect & 0x3f);
3884 (((uint_t)Table[i].endsect & 0xc0) << 2) + Table[i].endcyl);
3885 (void) fprintf(stderr, "%-10u ", LE_32(Table[i].relsect));
3886 (void) fprintf(stderr, "%-10u\n", LE_32(Table[i].numsect));
3902 (void) memcpy(&Old_Table[i], &Table[i], sizeof (Table[0]));
3917 Table[i].systid = UNUSED;
3918 Table[i].numsect = LE_32(UNUSED);
3919 Table[i].relsect = LE_32(UNUSED);
3920 Table[i].bootid = 0;
3955 (void) memset(&Table[i], 0, sizeof (struct ipart));
3957 fill_ipart(bootptr, &Table[i]);
4034 tbl_ptr = (struct ipart *)&Table[0].bootid;
4035 for (; tbl_ptr < (struct ipart *)&Table[FD_NUMPART].bootid;
4056 if (memcmp(&Old_Table[i], &Table[i], sizeof (Table[0])) != 0) {
4156 Table[i].systid,
4157 Table[i].bootid,
4158 Table[i].beghead,
4159 Table[i].begsect & 0x3f,
4160 ((Table[i].begcyl & 0xff) | ((Table[i].begsect &
4162 Table[i].endhead,
4163 Table[i].endsect & 0x3f,
4164 ((Table[i].endcyl & 0xff) | ((Table[i].endsect &
4166 LE_32(Table[i].relsect),
4167 LE_32(Table[i].numsect));
4221 if (Table[i].systid == SUNIXOS || Table[i].systid == SUNIXOS2) {
4227 numsect = LE_32(Table[i].numsect);
4589 clr_table = &Table[part];
5624 if (Table[i].systid != UNUSED)