Home
last modified time | relevance | path

Searched refs:cgp (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/cmd/mdb/common/modules/ufs/
H A Dufs.c516 struct cg *cgp = &cg; in cg() local
534 if (mdb_vread(cgp, sizeof (cg), addr) == -1) { in cg()
544 mdb_printf("%4d %?p %10d %10d %10d %10d\n", cgp->cg_cgx, in cg()
545 addr, cgp->cg_cs.cs_ndir, cgp->cg_cs.cs_nbfree, in cg()
546 cgp->cg_cs.cs_nifree, cgp->cg_cs.cs_nffree); in cg()
554 if (cgp->cg_btotoff >= cgp->cg_nextfreeoff || in cg()
555 cgp->cg_boff >= cgp->cg_nextfreeoff || in cg()
556 cgp->cg_iusedoff >= cgp->cg_nextfreeoff || in cg()
557 cgp->cg_freeoff >= cgp->cg_nextfreeoff) { in cg()
562 size = cgp->cg_nextfreeoff; in cg()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfs.h300 #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 …]
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_fs.h462 #define cg_blktot(cgp) \ argument
463 (((cgp)->cg_magic != CG_MAGIC) \
464 ? (((struct ocg *)(cgp))->cg_btot) \
465 : ((int32_t *)((char *)(cgp) + (cgp)->cg_btotoff)))
468 #define cg_blks(ufsvfsp, cgp, cylno) \ argument
469 (((cgp)->cg_magic != CG_MAGIC) \
470 ? (((struct ocg *)(cgp))->cg_b[cylno]) \
471 : ((short *)((char *)(cgp) + (cgp)->cg_boff) + \
474 #define cg_blks(fs, cgp, cylno) \ argument
475 (((cgp)->cg_magic != CG_MAGIC) \
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_alloc.c629 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 Dufs_snap.c283 struct cg *cgp; /* cylinder group data */ in ufs_snap_find_candidates() local
306 cgp = cgbp->b_un.b_cg; in ufs_snap_find_candidates()
309 if (cgp->cg_magic != CG_MAGIC) { in ufs_snap_find_candidates()
312 "magic number (0x%x)", cg, cgp->cg_magic, CG_MAGIC); in ufs_snap_find_candidates()
317 blksfree = cg_blksfree(cgp); in ufs_snap_find_candidates()
323 for (curfrag = 0; curfrag < cgp->cg_ndblk; curfrag++) { in ufs_snap_find_candidates()
343 cgbase += cgp->cg_ndblk; in ufs_snap_find_candidates()
H A Dufs_subr.c1245 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()
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dutilities.c1913 cg_sanity(struct cg *cgp, int cgno) in cg_sanity() argument
1928 if (!cg_chkmagic(cgp)) { in cg_sanity()
1931 cgp->cg_magic, CG_MAGIC); in cg_sanity()
1935 if (cgp->cg_cgx != cgno) { in cg_sanity()
1938 cgp->cg_cgx, cgno); in cg_sanity()
1942 if ((cgp->cg_btotoff & 3) != 0) { in cg_sanity()
1945 cgp->cg_btotoff); in cg_sanity()
1949 if ((cgp->cg_boff & 1) != 0) { in cg_sanity()
1952 cgp->cg_boff); in cg_sanity()
1956 if ((cgp->cg_ncyl < 1) || (cgp->cg_ncyl > sblock.fs_cpg)) { in cg_sanity()
[all …]
H A Dpass4.c162 struct cg *cgp = &cgrp; in pass4check() local
210 err = cg_sanity(cgp, cylno); in pass4check()
216 fix_cg(cgp, cylno); in pass4check()
218 clrbit(cg_blksfree(cgp), in pass4check()
H A Dinode.c1136 struct cg *cgp = &cgrp; in allocino() local
1182 err = cg_sanity(cgp, cg); in allocino()
1188 fix_cg(cgp, cg); in allocino()
1190 setbit(cg_inosused(cgp), ino % sblock.fs_ipg); in allocino()
1191 cgp->cg_cs.cs_nifree--; in allocino()
1204 cgp->cg_cs.cs_ndir++; in allocino()
1389 struct cg *cgp; in freeino() local
1425 cgp = cgblk.b_un.b_cg; in freeino()
1426 clrbit(cg_inosused(cgp), ino % sblock.fs_ipg); in freeino()
1427 cgp->cg_cs.cs_nifree += 1; in freeino()
/illumos-gate/usr/src/cmd/fs.d/ufs/fstyp/
H A Dfstyp.c534 struct cg *cgp; in dumpcg() local
546 cgp = (struct cg *)&h->acg; in dumpcg()
548 if (!cg_chkmagic(cgp)) in dumpcg()
551 cgp->cg_magic, ocgp->cg_magic); in dumpcg()
552 if (cgp->cg_magic == CG_MAGIC) { in dumpcg()
554 t = (time_t)cgp->cg_time; in dumpcg()
556 cgp->cg_magic, off, ctime(&t)); /* *** */ in dumpcg()
559 cgp->cg_cgx, cgp->cg_ncyl, cgp->cg_niblk, cgp->cg_ndblk); in dumpcg()
562 cgp->cg_cs.cs_nbfree, cgp->cg_cs.cs_ndir, in dumpcg()
563 cgp->cg_cs.cs_nifree, cgp->cg_cs.cs_nffree); in dumpcg()
[all …]
/illumos-gate/usr/src/boot/sys/ufs/ffs/
H A Dfs.h507 #define cg_chkmagic(cgp) ((cgp)->cg_magic == CG_MAGIC) argument
508 #define cg_inosused(cgp) \ argument
509 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_iusedoff))
510 #define cg_blksfree(cgp) \ argument
511 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_freeoff))
512 #define cg_clustersfree(cgp) \ argument
513 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_clusteroff))
514 #define cg_clustersum(cgp) \ argument
515 ((int32_t *)((uintptr_t)(cgp) + (cgp)->cg_clustersumoff))
/illumos-gate/usr/src/ucblib/libcurses/
H A Dcr_put.c65 char *cgp; in fgoto() local
137 cgp = tgoto(CM, destcol, destline); in fgoto()
138 if (plod((int)strlen(cgp)) > 0) in fgoto()
141 (void) tputs(cgp, 0, _putchar); in fgoto()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dfiles.c533 Cap_group *cgp; in ld_cap_move_symtoobj() local
536 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx1, cgp)) { in ld_cap_move_symtoobj()
537 Objcapset *scapset = &cgp->cg_set; in ld_cap_move_symtoobj()
586 Cap_group *cgp; in get_cap_group() local
599 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx, cgp)) { in get_cap_group()
600 Word onum = cgp->cg_num; in get_cap_group()
603 if (cgp->cg_set.oc_id.cs_str) in get_cap_group()
609 if (cgp->cg_set.oc_hw_1.cm_val != ocapset->oc_hw_1.cm_val) in get_cap_group()
611 if (cgp->cg_set.oc_sf_1.cm_val != ocapset->oc_sf_1.cm_val) in get_cap_group()
613 if (cgp->cg_set.oc_hw_2.cm_val != ocapset->oc_hw_2.cm_val) in get_cap_group()
[all …]
H A Dsections.c1787 Cap_group *cgp; in make_cap() local
1789 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx1, cgp)) { in make_cap()
1790 Objcapset *scapset = &cgp->cg_set; in make_cap()
1794 cgp->cg_ndx = capndx; in make_cap()
1880 for (APLIST_TRAVERSE(cgp->cg_secs, idx2, isp)) { in make_cap()
H A Dupdate.c3419 Cap_group *cgp; in update_oscap() local
3421 for (APLIST_TRAVERSE(ofl->ofl_capgroups, idx1, cgp)) { in update_oscap()
3422 Objcapset *ocapset = &cgp->cg_set; in update_oscap()
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumpmain.c880 struct cg *cgp = in main() local
885 (uchar_t *)cgp, sblock->fs_cgsize); in main()
886 bcopy(cg_inosused(cgp), clrp, in main()
890 free((char *)cgp); in main()
/illumos-gate/usr/src/cmd/fs.d/ufs/fsdb/
H A Dfsdb.c81 #define cg_blktot(cgp) (((cgp))->cg_btot) argument
82 #define cg_blks(fs, cgp, cylno) (((cgp))->cg_b[cylno]) argument
83 #define cg_inosused(cgp) (((cgp))->cg_iused) argument
84 #define cg_blksfree(cgp) (((cgp))->cg_free) argument
85 #define cg_chkmagic(cgp) ((cgp)->cg_magic == CG_MAGIC) argument
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dgprof.c982 process_cgraph(ProfCallGraph *cgp) in process_cgraph() argument
995 for (callee_off = cgp->functions; callee_off; in process_cgraph()
999 calleep = (ProfFunction *)((char *)cgp + callee_off); in process_cgraph()
1029 callerp = (ProfFunction *)((char *)cgp + caller_off); in process_cgraph()
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dus3_common.c6954 struct fpras_chkfngrp *cgp; local
6960 cgp = &fpras_chkfngrps[CPU->cpu_id];
6962 if (tpc >= (uintptr_t)&cgp->fpras_fn[op].fpras_blk0 &&
6963 tpc < (uintptr_t)&cgp->fpras_fn[op].fpras_chkresult)
6973 rp->r_pc = (uintptr_t)&cgp->fpras_fn[op].fpras_trampoline;