/netbsd/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 301 struct cg *cgp; in ffs_alloccg() local 315 cgp = (struct cg *)bp->b_data; in ffs_alloccg() 316 if (!cg_chkmagic(cgp, needswap) || in ffs_alloccg() 333 if (cgp->cg_frsum[allocsiz] != 0) in ffs_alloccg() 340 if (cgp->cg_cs.cs_nbfree == 0) { in ffs_alloccg() 386 struct cg *cgp; in ffs_alloccgblk() local 393 cgp = (struct cg *)bp->b_data; in ffs_alloccgblk() 435 struct cg *cgp; in ffs_blkfree() local 458 cgp = (struct cg *)bp->b_data; in ffs_blkfree() 459 if (!cg_chkmagic(cgp, needswap)) { in ffs_blkfree() [all …]
|
/netbsd/sys/ufs/ffs/ |
H A D | fs.h | 577 #define old_cg_blktot(cgp, ns) \ argument 579 old_cg_blktot_old(cgp, ns) : old_cg_blktot_new(cgp, ns)) 582 old_cg_blks_old(fs, cgp, cylno, ns) : old_cg_blks_new(fs, cgp, cylno, ns)) 584 #define cg_inosused_new(cgp, ns) \ argument 600 #define cg_inosused(cgp, ns) \ argument 602 cg_inosused_old(cgp, ns) : cg_inosused_new(cgp, ns)) 603 #define cg_blksfree(cgp, ns) \ argument 605 cg_blksfree_old(cgp, ns) : cg_blksfree_new(cgp, ns)) 606 #define cg_chkmagic(cgp, ns) \ argument 607 (cg_chkmagic_new(cgp, ns) || cg_chkmagic_old(cgp, ns)) [all …]
|
H A D | ffs_alloc.c | 975 struct cg *cgp; in ffs_fragextend() local 1056 struct cg *cgp; in ffs_alloccg() local 1186 struct cg *cgp; in ffs_alloccgblk() local 1267 struct cg *cgp; in ffs_nodealloccg() local 1296 if (!cg_chkmagic(cgp, needswap) || cgp->cg_cs.cs_nifree == 0) in ffs_nodealloccg() 1458 struct cg *cgp; in ffs_blkalloc_ump() local 1562 struct cg *cgp; in ffs_blkfree_cg() local 1835 struct cg *cgp; in ffs_blkfree_snap() local 1875 struct cg *cgp; in ffs_blkfree_common() local 1999 struct cg *cgp; in ffs_freefile() local [all …]
|
H A D | ffs_subr.c | 285 ffs_clusteracct(struct fs *fs, struct cg *cgp, int32_t blkno, int cnt) in ffs_clusteracct() argument 298 freemapp = cg_clustersfree(cgp, needswap); in ffs_clusteracct() 299 sump = cg_clustersum(cgp, needswap); in ffs_clusteracct() 312 if ((uint32_t)end >= ufs_rw32(cgp->cg_nclusterblks, needswap)) in ffs_clusteracct() 313 end = ufs_rw32(cgp->cg_nclusterblks, needswap); in ffs_clusteracct() 370 fs->fs_maxcluster[ufs_rw32(cgp->cg_cgx, needswap)] = i; in ffs_clusteracct()
|
H A D | ffs_wapbl.c | 771 struct cg *cgp; in wapbl_find_log_start() local 869 cgp = (struct cg *)bp->b_data; in wapbl_find_log_start() 870 if (!cg_chkmagic(cgp, UFS_FSNEEDSWAP(fs))) { in wapbl_find_log_start() 875 blksfree = cg_blksfree(cgp, needswap); in wapbl_find_log_start()
|
H A D | ffs_snapshot.c | 965 struct cg *cgp; 979 cgp = (struct cg *)bp->b_data; 980 if (!cg_chkmagic(cgp, ns)) { 999 if (ffs_isblock(fs, cg_blksfree(cgp, ns), loc)) 1022 if (ffs_isblock(fs, cg_blksfree(cgp, ns), loc))
|
H A D | ffs_vfsops.c | 223 struct cg *cgp = (struct cg *)bp->b_data; in ffs_checkrange() local 224 if (!cg_chkmagic(cgp, needswap)) { in ffs_checkrange() 231 int32_t initediblk = ufs_rw32(cgp->cg_initediblk, needswap); in ffs_checkrange()
|
/netbsd/sbin/fsck_ffs/ |
H A D | pass4.c | 165 struct cg *cgp = cgrp; in pass4check() local 169 memcpy(cgp, cgblk.b_un.b_cg, sblock->fs_cgsize); in pass4check() 171 ffs_cg_swap(cgblk.b_un.b_cg, cgp, sblock); in pass4check() 172 if (!cg_chkmagic(cgp, 0)) { in pass4check() 174 cgp = NULL; in pass4check() 192 if (cgp) in pass4check() 193 setbit(cg_blksfree(cgp, 0), in pass4check() 203 cgp) { in pass4check() 204 cgp->cg_cs.cs_nffree ++; in pass4check() 212 cgp->cg_cs.cs_nbfree++; in pass4check() [all …]
|
H A D | inode.c | 716 struct cg *cgp = cgrp; in allocino() local 758 ffs_cg_swap(cgblk.b_un.b_cg, cgp, sblock); in allocino() 759 if (!cg_chkmagic(cgp, 0)) in allocino() 764 cgp->cg_cs.cs_nifree--; in allocino() 771 cgp->cg_cs.cs_ndir++; in allocino() 831 struct cg *cgp = cgrp; in freeino() local 838 ffs_cg_swap(cgblk.b_un.b_cg, cgp, sblock); in freeino() 839 if (!cg_chkmagic(cgp, 0)) { in freeino() 841 cgp = NULL; in freeino() 862 if (cgp) { in freeino() [all …]
|
H A D | utilities.c | 410 struct cg *cgp = cgrp; in allocblk() local 427 memcpy(cgp, cgblk.b_un.b_cg, sblock->fs_cgsize); in allocblk() 429 ffs_cg_swap(cgblk.b_un.b_cg, cgp, sblock); in allocblk() 430 if (!cg_chkmagic(cgp, 0)) in allocblk() 436 clrbit(cg_blksfree(cgp, 0), baseblk + k); in allocblk() 440 cgp->cg_cs.cs_nbfree--; in allocblk() 443 ffs_clusteracct(sblock, cgp, in allocblk() 446 cgp->cg_cs.cs_nffree -= frags; in allocblk()
|
H A D | pass1.c | 74 struct cg *cgp = cgrp; in pass1() local 104 memcpy(cgp, cgblk.b_un.b_cg, sblock->fs_cgsize); in pass1() 106 ffs_cg_swap(cgblk.b_un.b_cg, cgp, sblock); in pass1() 108 inosused = cgp->cg_initediblk; in pass1() 130 if (!cg_chkmagic(cgp, 0)) in pass1() 132 cp = &cg_inosused(cgp, 0)[(inosused - 1) / CHAR_BIT]; in pass1()
|
/netbsd/sbin/dump/ |
H A D | ffs_inode.c | 173 struct cg *cgp; in fs_mapinodes() local 177 if ((cgp = malloc(sblock->fs_cgsize)) == NULL) in fs_mapinodes() 182 bread(FFS_FSBTODB(sblock, cgtod(sblock, cg)), (char *)cgp, in fs_mapinodes() 185 ffs_cg_swap(cgp, cgp, sblock); in fs_mapinodes() 187 inosused = cgp->cg_initediblk; in fs_mapinodes() 198 if (!cg_chkmagic(cgp, 0)) in fs_mapinodes() 201 cp = &cg_inosused(cgp, 0)[(inosused - 1) / CHAR_BIT]; in fs_mapinodes() 222 free(cgp); in fs_mapinodes()
|
/netbsd/lib/libcurses/ |
H A D | cr_put.c | 93 char *cgp; in fgoto() local 169 (cgp = tiparm(cursor_address, destline, destcol))) in fgoto() 175 __CTRACE(__CTRACE_OUTPUT, "fgoto: cgp=%s\n", cgp); in fgoto() 177 plod((int) strlen(cgp), in_refresh) > 0) in fgoto() 180 tputs(cgp, 0, __cputchar); in fgoto()
|
/netbsd/usr.sbin/quotacheck/ |
H A D | quotacheck.c | 325 struct cg *cgp; in chkquota() local 408 cgp = malloc(sblock.fs_cgsize); in chkquota() 409 if (cgp == NULL) { in chkquota() 424 bread(FFS_FSBTODB(&sblock, cgtod(&sblock, cg)), (char *)cgp, in chkquota() 427 ffs_cg_swap(cgp, cgp, &sblock); in chkquota() 428 inosused = cgp->cg_initediblk; in chkquota() 465 free(cgp); in chkquota()
|
/netbsd/usr.sbin/makefs/ |
H A D | ffs.c | 1068 struct cg *cgp; in ffs_write_inode() local 1090 cgp = (struct cg *)sbbuf; in ffs_write_inode() 1091 if (!cg_chkmagic(cgp, fsopts->needswap)) in ffs_write_inode() 1094 assert (isclr(cg_inosused(cgp, fsopts->needswap), cgino)); in ffs_write_inode() 1107 setbit(cg_inosused(cgp, fsopts->needswap), cgino); in ffs_write_inode() 1108 ufs_add32(cgp->cg_cs.cs_nifree, -1, fsopts->needswap); in ffs_write_inode() 1112 ufs_add32(cgp->cg_cs.cs_ndir, 1, fsopts->needswap); in ffs_write_inode() 1120 initediblk = ufs_rw32(cgp->cg_initediblk, fsopts->needswap); in ffs_write_inode() 1123 initediblk < ufs_rw32(cgp->cg_niblk, fsopts->needswap)) { in ffs_write_inode() 1134 cgp->cg_initediblk = ufs_rw32(initediblk, fsopts->needswap); in ffs_write_inode()
|
/netbsd/external/apache2/llvm/dist/llvm/utils/TableGen/ |
H A D | DAGISelEmitter.cpp | 79 PatternSortingPredicate(CodeGenDAGPatterns &cgp) : CGP(cgp) {} in PatternSortingPredicate()
|
H A D | DAGISelMatcherGen.cpp | 101 MatcherGen(const PatternToMatch &pattern, const CodeGenDAGPatterns &cgp); 147 const CodeGenDAGPatterns &cgp) in MatcherGen() argument 148 : Pattern(pattern), CGP(cgp), NextRecordedOperandNo(0), in MatcherGen()
|
H A D | DAGISelMatcherEmitter.cpp | 85 MatcherTableEmitter(const CodeGenDAGPatterns &cgp) : CGP(cgp) { in MatcherTableEmitter() argument
|
/netbsd/sbin/resize_ffs/ |
H A D | resize_ffs.c | 331 char *cgp; in loadcgs() local 335 cgp = alloconce(oldsb->fs_ncg * cgblksz, "cgs"); in loadcgs() 339 cgs[cg] = (struct cg *) cgp; in loadcgs() 340 readat(FFS_FSBTODB(oldsb, cgtod(oldsb, cg)), cgp, cgblksz); in loadcgs() 344 cgp += cgblksz; in loadcgs() 1030 char *cgp; in grow() local 1036 cgp = alloconce((newsb->fs_ncg - oldsb->fs_ncg) * cgblksz, in grow() 1039 cgs[i] = (struct cg *) cgp; in grow() 1043 cgp += cgblksz; in grow()
|
/netbsd/sbin/fsdb/ |
H A D | fsdb.c | 622 struct cg *cgp = cgrp; in CMDFUNC() local 653 memcpy(cgp, cgblk.b_un.b_cg, sblock->fs_cgsize); in CMDFUNC() 655 ffs_cg_swap(cgblk.b_un.b_cg, cgp, sblock); in CMDFUNC() 657 inosused = cgp->cg_initediblk; in CMDFUNC()
|