/titanic_50/usr/src/cmd/mdb/common/modules/ufs/ |
H A D | ufs.c | 517 struct cg *cgp = &cg; in cg() local 535 if (mdb_vread(cgp, sizeof (cg), addr) == -1) { in cg() 545 mdb_printf("%4d %?p %10d %10d %10d %10d\n", cgp->cg_cgx, in cg() 546 addr, cgp->cg_cs.cs_ndir, cgp->cg_cs.cs_nbfree, in cg() 547 cgp->cg_cs.cs_nifree, cgp->cg_cs.cs_nffree); in cg() 555 if (cgp->cg_btotoff >= cgp->cg_nextfreeoff || in cg() 556 cgp->cg_boff >= cgp->cg_nextfreeoff || in cg() 557 cgp->cg_iusedoff >= cgp->cg_nextfreeoff || in cg() 558 cgp->cg_freeoff >= cgp->cg_nextfreeoff) { in cg() 563 size = cgp->cg_nextfreeoff; in cg() [all …]
|
/titanic_50/usr/src/grub/grub-0.97/stage2/ |
H A D | fs.h | 300 #define cg_blktot(cgp) \ argument 301 (((cgp)->cg_magic != CG_MAGIC) \ 302 ? (((struct ocg *)(cgp))->cg_btot) \ 303 : ((int *)((char *)(cgp) + (cgp)->cg_btotoff))) 304 #define cg_blks(fs, cgp, cylno) \ argument 305 (((cgp)->cg_magic != CG_MAGIC) \ 306 ? (((struct ocg *)(cgp))->cg_b[cylno]) \ 307 : ((short *)((char *)(cgp) + (cgp)->cg_boff) + (cylno) * (fs)->fs_nrpos)) 308 #define cg_inosused(cgp) \ argument 309 (((cgp)->cg_magic != CG_MAGIC) \ [all …]
|
/titanic_50/usr/src/uts/common/sys/fs/ |
H A D | ufs_fs.h | 464 #define cg_blktot(cgp) \ argument 465 (((cgp)->cg_magic != CG_MAGIC) \ 466 ? (((struct ocg *)(cgp))->cg_btot) \ 467 : ((int32_t *)((char *)(cgp) + (cgp)->cg_btotoff))) 470 #define cg_blks(ufsvfsp, cgp, cylno) \ argument 471 (((cgp)->cg_magic != CG_MAGIC) \ 472 ? (((struct ocg *)(cgp))->cg_b[cylno]) \ 473 : ((short *)((char *)(cgp) + (cgp)->cg_boff) + \ 476 #define cg_blks(fs, cgp, cylno) \ argument 477 (((cgp)->cg_magic != CG_MAGIC) \ [all …]
|
/titanic_50/usr/src/uts/common/fs/ufs/ |
H A D | ufs_alloc.c | 629 struct cg *cgp; in free() local 658 cgp = bp->b_un.b_cg; in free() 659 if (bp->b_flags & B_ERROR || !cg_chkmagic(cgp)) { in free() 669 blksfree = cg_blksfree(cgp); in free() 670 blktot = cg_blktot(cgp); in free() 672 cgp->cg_time = gethrestime_sec(); in free() 678 blks = cg_blks(ufsvfsp, cgp, cylno); in free() 690 cgp->cg_cs.cs_nbfree++; /* Log below */ in free() 705 fragacct(fs, bmap, cgp->cg_frsum, -1); in free() 719 cgp->cg_cgx, in free() [all …]
|
H A D | ufs_snap.c | 285 struct cg *cgp; /* cylinder group data */ in ufs_snap_find_candidates() local 308 cgp = cgbp->b_un.b_cg; in ufs_snap_find_candidates() 311 if (cgp->cg_magic != CG_MAGIC) { in ufs_snap_find_candidates() 314 "magic number (0x%x)", cg, cgp->cg_magic, CG_MAGIC); in ufs_snap_find_candidates() 319 blksfree = cg_blksfree(cgp); in ufs_snap_find_candidates() 325 for (curfrag = 0; curfrag < cgp->cg_ndblk; curfrag++) { in ufs_snap_find_candidates() 345 cgbase += cgp->cg_ndblk; in ufs_snap_find_candidates()
|
H A D | ufs_subr.c | 1245 struct cg *cgp; in ufs_construct_si() local 1288 cgp = bp->b_un.b_cg; in ufs_construct_si() 1289 sip[cg + i] = cgp->cg_cs; in ufs_construct_si()
|
/titanic_50/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | utilities.c | 1906 cg_sanity(struct cg *cgp, int cgno) in cg_sanity() argument 1921 if (!cg_chkmagic(cgp)) { in cg_sanity() 1924 cgp->cg_magic, CG_MAGIC); in cg_sanity() 1928 if (cgp->cg_cgx != cgno) { in cg_sanity() 1931 cgp->cg_cgx, cgno); in cg_sanity() 1935 if ((cgp->cg_btotoff & 3) != 0) { in cg_sanity() 1938 cgp->cg_btotoff); in cg_sanity() 1942 if ((cgp->cg_boff & 1) != 0) { in cg_sanity() 1945 cgp->cg_boff); in cg_sanity() 1949 if ((cgp->cg_ncyl < 1) || (cgp->cg_ncyl > sblock.fs_cpg)) { in cg_sanity() [all …]
|
H A D | pass4.c | 164 struct cg *cgp = &cgrp; in pass4check() local 212 err = cg_sanity(cgp, cylno); in pass4check() 218 fix_cg(cgp, cylno); in pass4check() 220 clrbit(cg_blksfree(cgp), in pass4check()
|
H A D | inode.c | 1130 struct cg *cgp = &cgrp; in allocino() local 1176 err = cg_sanity(cgp, cg); in allocino() 1182 fix_cg(cgp, cg); in allocino() 1184 setbit(cg_inosused(cgp), ino % sblock.fs_ipg); in allocino() 1185 cgp->cg_cs.cs_nifree--; in allocino() 1198 cgp->cg_cs.cs_ndir++; in allocino() 1383 struct cg *cgp; in freeino() local 1419 cgp = cgblk.b_un.b_cg; in freeino() 1420 clrbit(cg_inosused(cgp), ino % sblock.fs_ipg); in freeino() 1421 cgp->cg_cs.cs_nifree += 1; in freeino()
|
/titanic_50/usr/src/cmd/fs.d/ufs/fstyp/ |
H A D | fstyp.c | 536 struct cg *cgp; in dumpcg() local 548 cgp = (struct cg *)&h->acg; in dumpcg() 550 if (!cg_chkmagic(cgp)) in dumpcg() 553 cgp->cg_magic, ocgp->cg_magic); in dumpcg() 554 if (cgp->cg_magic == CG_MAGIC) { in dumpcg() 556 t = (time_t)cgp->cg_time; in dumpcg() 558 cgp->cg_magic, off, ctime(&t)); /* *** */ in dumpcg() 561 cgp->cg_cgx, cgp->cg_ncyl, cgp->cg_niblk, cgp->cg_ndblk); in dumpcg() 564 cgp->cg_cs.cs_nbfree, cgp->cg_cs.cs_ndir, in dumpcg() 565 cgp->cg_cs.cs_nifree, cgp->cg_cs.cs_nffree); in dumpcg() [all …]
|
/titanic_50/usr/src/ucblib/libcurses/ |
H A D | cr_put.c | 74 char *cgp; in fgoto() local 146 cgp = tgoto(CM, destcol, destline); in fgoto() 147 if (plod((int)strlen(cgp)) > 0) in fgoto() 150 (void) tputs(cgp, 0, _putchar); in fgoto()
|
/titanic_50/usr/src/cmd/sgs/libld/common/ |
H A D | files.c | 507 Cap_group *cgp; in ld_cap_move_symtoobj() local 510 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx1, cgp)) { in ld_cap_move_symtoobj() 511 Objcapset *scapset = &cgp->cg_set; in ld_cap_move_symtoobj() 557 Cap_group *cgp; in get_cap_group() local 570 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx, cgp)) { in get_cap_group() 571 Word onum = cgp->cg_num; in get_cap_group() 574 if (cgp->cg_set.oc_id.cs_str) in get_cap_group() 580 if (cgp->cg_set.oc_hw_1.cm_val != ocapset->oc_hw_1.cm_val) in get_cap_group() 582 if (cgp->cg_set.oc_sf_1.cm_val != ocapset->oc_sf_1.cm_val) in get_cap_group() 584 if (cgp->cg_set.oc_hw_2.cm_val != ocapset->oc_hw_2.cm_val) in get_cap_group() [all …]
|
H A D | sections.c | 1762 Cap_group *cgp; in make_cap() local 1764 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx1, cgp)) { in make_cap() 1765 Objcapset *scapset = &cgp->cg_set; in make_cap() 1769 cgp->cg_ndx = capndx; in make_cap() 1851 for (APLIST_TRAVERSE(cgp->cg_secs, idx2, isp)) { in make_cap()
|
H A D | update.c | 3334 Cap_group *cgp; in update_oscap() local 3336 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx1, cgp)) { in update_oscap() 3337 Objcapset *ocapset = &cgp->cg_set; in update_oscap()
|
/titanic_50/usr/src/cmd/sgs/prof/common/ |
H A D | profv.c | 507 process_cgraph(ProfCallGraph *cgp) in process_cgraph() argument 515 for (callee_off = cgp->functions; callee_off; in process_cgraph() 519 calleep = (ProfFunction *)((char *)cgp + callee_off); in process_cgraph()
|
/titanic_50/usr/src/cmd/backup/dump/ |
H A D | dumpmain.c | 841 struct cg *cgp = in main() local 846 (uchar_t *)cgp, sblock->fs_cgsize); in main() 847 bcopy(cg_inosused(cgp), clrp, in main() 851 free((char *)cgp); in main()
|
/titanic_50/usr/src/cmd/sgs/gprof/common/ |
H A D | gprof.c | 945 process_cgraph(ProfCallGraph *cgp) in process_cgraph() argument 958 for (callee_off = cgp->functions; callee_off; in process_cgraph() 962 calleep = (ProfFunction *)((char *)cgp + callee_off); in process_cgraph() 992 callerp = (ProfFunction *)((char *)cgp + caller_off); in process_cgraph()
|
/titanic_50/usr/src/cmd/fs.d/ufs/fsdb/ |
H A D | fsdb.c | 91 #define cg_blktot(cgp) (((cgp))->cg_btot) argument 92 #define cg_blks(fs, cgp, cylno) (((cgp))->cg_b[cylno]) argument 93 #define cg_inosused(cgp) (((cgp))->cg_iused) argument 94 #define cg_blksfree(cgp) (((cgp))->cg_free) argument 95 #define cg_chkmagic(cgp) ((cgp)->cg_magic == CG_MAGIC) argument
|
/titanic_50/usr/src/uts/sun4u/cpu/ |
H A D | us3_common.c | 6953 struct fpras_chkfngrp *cgp; local 6959 cgp = &fpras_chkfngrps[CPU->cpu_id]; 6961 if (tpc >= (uintptr_t)&cgp->fpras_fn[op].fpras_blk0 && 6962 tpc < (uintptr_t)&cgp->fpras_fn[op].fpras_chkresult) 6972 rp->r_pc = (uintptr_t)&cgp->fpras_fn[op].fpras_trampoline;
|