Lines Matching refs:Table

317 static struct ipart	Table[FD_NUMPART];
510 "Amoeba Bad Block Table", /* 148 */
617 "Xenix Bad Block Table" /* 255 */
1171 /* save away a copy of Table in Old_Table for sensing changes */
1182 if ((rval = libfdisk_init(&epp, Dfltdev, &Table[0], lf_op_flag))
1258 Table[0].bootid = ACTIVE;
1259 Table[0].relsect = LE_32(heads * sectors);
1261 Table[0].numsect =
1265 Table[0].systid = SUNIXOS2; /* Solaris */
1288 (void) fprintf(stderr, "Partition Table Entry Values:\n");
1434 if (Table[new_pt].systid != SUNIXOS &&
1435 Table[new_pt].systid != SUNIXOS2)
1447 Table[new_pt].relsect) &&
1449 Table[new_pt].numsect))
1476 if (Table[new_pt].systid != EFI_PMBR)
1480 Table[new_pt].systid) &&
1482 Table[new_pt].relsect) &&
1484 Table[new_pt].numsect))
1492 if (old_pt == FD_NUMPART && Table[new_pt].begcyl != 0) {
2029 if (Table[i].systid == id &&
2030 Table[i].bootid == act &&
2031 Table[i].beghead == bhead &&
2032 Table[i].begsect == ((bsect & 0x3f) |
2034 Table[i].begcyl == (uchar_t)(bcyl & 0xff) &&
2035 Table[i].endhead == ehead &&
2036 Table[i].endsect == ((esect & 0x3f) |
2038 Table[i].endcyl == (uchar_t)(ecyl & 0xff) &&
2039 Table[i].relsect == LE_32(rsect) &&
2040 Table[i].numsect == LE_32(numsect)) {
2042 (void) memset(&Table[i], 0,
2247 lba = (uint32_t)Table[ti].relsect;
2261 Table[ti].begcyl = cy & 0xff;
2262 Table[ti].beghead = (uchar_t)hd;
2263 Table[ti].begsect = (uchar_t)(((cy >> 2) & 0xc0) | sc);
2269 lba = (uint32_t)(Table[ti].relsect + Table[ti].numsect - 1);
2279 Table[ti].endcyl = cy & 0xff;
2280 Table[ti].endhead = (uchar_t)hd;
2281 Table[ti].endsect = (uchar_t)(((cy >> 2) & 0xc0) | sc);
2309 if (Table[i].systid == UNUSED) {
2319 Table[i].systid = (uchar_t)id;
2320 Table[i].bootid = (uchar_t)act;
2321 Table[i].numsect = LE_32(numsect);
2322 Table[i].relsect = LE_32(rsect);
2325 (void) memset(&Table[i], 0, sizeof (struct ipart));
2339 Table[i].begcyl = bcyl & 0xff;
2340 Table[i].endcyl = ecyl & 0xff;
2341 Table[i].beghead = (uchar_t)bhead;
2342 Table[i].endhead = (uchar_t)ehead;
2343 Table[i].begsect = (uchar_t)(((bcyl >> 2) & 0xc0) | bsect);
2344 Table[i].endsect = ((ecyl >> 2) & 0xc0) | esect;
2392 if (Table[j].systid == UNUSED) {
2393 (void) memcpy(&Table[j], &Old_Table[i],
2394 sizeof (Table[0]));
2421 if (Table[i].systid != UNUSED) {
2430 if (Table[i].systid == EFI_PMBR) {
2437 if (Table[i].relsect != 1) {
2443 Table[i].relsect);
2448 if (Table[i].numsect !=
2461 Table[i].numsect,
2468 Table[i].numsect,
2476 rsect = LE_32(Table[i].relsect);
2477 numsect = LE_32(Table[i].numsect);
2486 if (Table[j].systid != UNUSED) {
2488 LE_32(Table[j].relsect);
2490 LE_32(Table[j].numsect);
2508 Table[i].systid,
2509 Table[i].bootid,
2510 Table[i].begcyl,
2511 Table[i].beghead,
2512 Table[i].begsect,
2513 Table[i].endcyl,
2514 Table[i].endhead,
2515 Table[i].endsect,
2516 Table[i].relsect,
2517 Table[i].numsect,
2518 Table[j].systid,
2519 Table[j].bootid,
2520 Table[j].begcyl,
2521 Table[j].beghead,
2522 Table[j].begsect,
2523 Table[j].endcyl,
2524 Table[j].endhead,
2525 Table[j].endsect,
2526 Table[j].relsect,
2527 Table[j].numsect);
2547 if (Table[i].systid != UNUSED) {
2551 ((((diskaddr_t)lel(Table[i].relsect) +
2552 lel(Table[i].numsect)) > dev_capacity) ||
2553 (((diskaddr_t)lel(Table[i].relsect) +
2554 lel(Table[i].numsect)) > DK_MAX_2TB))) {
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));
3893 * Copy Table into Old_Table. The function only copies the systid,
3895 * ones compared when determining if Table has changed.
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;
3927 * Copy the bytes from the boot record to an internal "Table".
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)