/freebsd/sys/fs/ext2fs/ |
H A D | ext2_alloc.c | 106 int cg; in ext2_alloc() local 129 cg = ino_to_cg(fs, ip->i_number); in ext2_alloc() 131 cg = dtog(fs, bpref); in ext2_alloc() 132 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, in ext2_alloc() 389 int error, cg; in ext2_valloc() local 405 cg = ext2_dirpref(pip); in ext2_valloc() 406 if (fs->e2fs_contigdirs[cg] < 255) in ext2_valloc() 407 fs->e2fs_contigdirs[cg]++; in ext2_valloc() 409 cg = ino_to_cg(fs, pip->i_number); in ext2_valloc() 410 if (fs->e2fs_contigdirs[cg] > 0) in ext2_valloc() [all …]
|
H A D | ext2_subr.c | 100 ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, e4fs_daddr_t bno, int cnt) in ext2_clusteracct() argument 102 int32_t *sump = fs->e2fs_clustersum[cg].cs_sum; in ext2_clusteracct() 108 if (fs->e2fs_clustersum[cg].cs_init == 0) { in ext2_clusteracct() 135 fs->e2fs_clustersum[cg].cs_init = 1; in ext2_clusteracct() 197 fs->e2fs_maxcluster[cg] = i; in ext2_clusteracct()
|
H A D | ext2_csum.c | 489 ext2_gd_i_bitmap_csum_verify(struct m_ext2fs *fs, int cg, struct buf *bp) in ext2_gd_i_bitmap_csum_verify() argument 496 provided = le16toh(fs->e2fs_gd[cg].ext4bgd_i_bmap_csum); in ext2_gd_i_bitmap_csum_verify() 501 hi = le16toh(fs->e2fs_gd[cg].ext4bgd_i_bmap_csum_hi); in ext2_gd_i_bitmap_csum_verify() 515 ext2_gd_i_bitmap_csum_set(struct m_ext2fs *fs, int cg, struct buf *bp) in ext2_gd_i_bitmap_csum_set() argument 524 fs->e2fs_gd[cg].ext4bgd_i_bmap_csum = htole16(csum & 0xFFFF); in ext2_gd_i_bitmap_csum_set() 526 fs->e2fs_gd[cg].ext4bgd_i_bmap_csum_hi = htole16(csum >> 16); in ext2_gd_i_bitmap_csum_set() 530 ext2_gd_b_bitmap_csum_verify(struct m_ext2fs *fs, int cg, struct buf *bp) in ext2_gd_b_bitmap_csum_verify() argument 538 provided = le16toh(fs->e2fs_gd[cg].ext4bgd_b_bmap_csum); in ext2_gd_b_bitmap_csum_verify() 542 hi = le16toh(fs->e2fs_gd[cg].ext4bgd_b_bmap_csum_hi); in ext2_gd_b_bitmap_csum_verify() 556 ext2_gd_b_bitmap_csum_set(struct m_ext2fs *fs, int cg, struct buf *bp) in ext2_gd_b_bitmap_csum_set() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
H A D | lto.h | 219 const char *path, lto_code_gen_t cg); 404 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod); 415 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod); 424 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model); 433 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model); 441 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu); 450 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path); 458 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args, 469 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol); 479 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path); [all …]
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 66 static int32_t ffs_mapsearch(struct fs *, struct cg *, daddr_t, int); 93 int cg; in ffs_alloc() local 105 cg = ino_to_cg(fs, ip->i_number); in ffs_alloc() 107 cg = dtog(fs, bpref); in ffs_alloc() 108 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); in ffs_alloc() 152 u_int cg, startcg; in ffs_blkpref_ufs1() local 158 cg = ino_to_cg(fs, ip->i_number); in ffs_blkpref_ufs1() 159 return (fs->fs_fpg * cg + fs->fs_frag); in ffs_blkpref_ufs1() 173 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs1() 174 if (fs->fs_cs(fs, cg).cs_nbfree >= avgbfree) in ffs_blkpref_ufs1() [all …]
|
H A D | ffs_extern.h | 56 void ffs_clusteracct(struct fs *, struct cg *, int32_t, int); 66 void ffs_cg_swap(struct cg *, struct cg *, struct fs *);
|
/freebsd/usr.sbin/pmcstat/ |
H A D | pmcpl_callgraph.c | 95 struct pmcstat_cgnode *cg; in pmcstat_cgnode_allocate() local 97 if ((cg = malloc(sizeof(*cg))) == NULL) in pmcstat_cgnode_allocate() 100 cg->pcg_image = image; in pmcstat_cgnode_allocate() 101 cg->pcg_func = pc; in pmcstat_cgnode_allocate() 103 cg->pcg_count = 0; in pmcstat_cgnode_allocate() 104 cg->pcg_nchildren = 0; in pmcstat_cgnode_allocate() 105 LIST_INIT(&cg->pcg_children); in pmcstat_cgnode_allocate() 107 return (cg); in pmcstat_cgnode_allocate() 114 pmcstat_cgnode_free(struct pmcstat_cgnode *cg) in pmcstat_cgnode_free() argument 135 struct pmcstat_cgnode *cg; pmcstat_cgnode_hash_lookup_pc() local 255 pmcstat_cgnode_print(struct pmcstat_cgnode * cg,int depth,uint32_t total) pmcstat_cgnode_print() argument 475 pmcstat_cgnode_topprint(struct pmcstat_cgnode * cg,int depth __unused,uint32_t nsamples) pmcstat_cgnode_topprint() argument [all...] |
/freebsd/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 102 typedef ufs2_daddr_t allocfcn_t(struct inode *ip, uint64_t cg, 125 static ufs1_daddr_t ffs_mapsearch(struct fs *, struct cg *, ufs2_daddr_t, int); 161 uint64_t cg, reclaimed; in ffs_alloc() local 198 cg = ino_to_cg(fs, ip->i_number); in ffs_alloc() 200 cg = dtog(fs, bpref); in ffs_alloc() 201 bno = ffs_hashalloc(ip, cg, bpref, size, size, ffs_alloccg); in ffs_alloc() 265 uint64_t cg, request, reclaimed; in ffs_realloccg() local 332 cg = dtog(fs, bprev); in ffs_realloccg() 334 bno = ffs_fragextend(ip, cg, bprev, osize, nsize); in ffs_realloccg() 400 bno = ffs_hashalloc(ip, cg, bpref, request, nsize, ffs_alloccg); in ffs_realloccg() [all …]
|
H A D | fs.h | 56 * The beginning of cylinder group cg in fs, is given by 57 * the ``cgbase(fs, cg)'' macro. 146 * thus changes to (struct cg) must keep its size within MINBSIZE. 328 struct csum *si_csp; /* (u) cg summary info buffer */ 346 int32_t fs_dblkno; /* offset of first data after cg */ 406 int32_t fs_cgrotor; /* last cg searched */ 557 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(uint64_t))]) argument 558 #define ACTIVECGOFF(cg) (1 << ((cg) argument 556 ACTIVECGNUM(fs,cg) global() argument 562 ACTIVECLEAR(fs,cg) global() argument 597 struct cg { global() struct 598 cg_firstfieldcg global() argument 599 cg_magiccg global() argument 600 cg_old_timecg global() argument 601 cg_cgxcg global() argument 602 cg_old_ncylcg global() argument 603 cg_old_niblkcg global() argument 604 cg_ndblkcg global() argument 605 cg_cscg global() argument 606 cg_rotorcg global() argument 607 cg_frotorcg global() argument 608 cg_irotorcg global() argument 609 cg_frsumcg global() argument 610 cg_old_btotoffcg global() argument 611 cg_old_boffcg global() argument 612 cg_iusedoffcg global() argument 613 cg_freeoffcg global() argument 614 cg_nextfreeoffcg global() argument 615 cg_clustersumoffcg global() argument 616 cg_clusteroffcg global() argument 617 cg_nclusterblkscg global() argument 618 cg_niblkcg global() argument 619 cg_initediblkcg global() argument 620 cg_unrefscg global() argument 621 cg_sparecon32cg global() argument 622 cg_ckhashcg global() argument 623 cg_timecg global() argument 624 cg_sparecon64cg global() argument [all...] |
H A D | ffs_snapshot.c | 195 int error, cg, snaploc; in ffs_snapshot() local 363 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot() 364 error = UFS_BALLOC(vp, lfragtosize(fs, cgtod(fs, cg)), in ffs_snapshot() 369 if (cg % 10 == 0) { in ffs_snapshot() 398 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot() 399 error = UFS_BALLOC(vp, lfragtosize(fs, cgtod(fs, cg)), in ffs_snapshot() 917 cgaccount(int cg,struct vnode * vp,struct buf * nbp,int passno) cgaccount() argument [all...] |
/freebsd/sbin/fsck_ffs/ |
H A D | gjournal.c | 69 struct cg *cgp; in gjournal_check() 73 int cg; in gjournal_check() local 83 for (cg = 0; cg < fs->fs_ncg; cg++) { in gjournal_check() 87 cdevname, cg, fs->fs_ncg, cg * 100 / fs->fs_ncg); in gjournal_check() 92 cg * 100 / fs->fs_ncg); in gjournal_check() 95 cgbp = cglookup(cg); in gjournal_check() 97 if (!check_cgmagic(cg, cgbp)) { in gjournal_check() 111 ino = fs->fs_ipg * cg + cino; in gjournal_check()
|
H A D | pass5.c | 62 struct cg *cg, *newcg = (struct cg *)buf; in pass5() local 163 cg = cgbp->b_un.b_cg; in pass5() 164 if (!cg_chkmagic(cg)) in pass5() 174 ckhash = cg->cg_ckhash; in pass5() 175 cg->cg_ckhash = 0; in pass5() 176 thishash = calculate_crc32c(~0L, cg, fs->fs_cgsize); in pass5() 178 cg->cg_ckhash = ckhash; in pass5() 182 cg->cg_ckhash = thishash; in pass5() 186 newcg->cg_time = cg->cg_time; in pass5() 187 newcg->cg_old_time = cg->cg_old_time; in pass5() [all …]
|
H A D | pass4.c | 50 int i, n, cg; in pass4() local 54 for (cg = 0; cg < sblock.fs_ncg; cg++) { in pass4() 57 cdevname, cg, sblock.fs_ncg, in pass4() 58 cg * 100 / sblock.fs_ncg); in pass4() 63 cg * 100 / sblock.fs_ncg); in pass4() 66 inumber = cg * sblock.fs_ipg; in pass4() 67 for (i = 0; i < inostathead[cg].il_numalloced; i++, inumber++) { in pass4()
|
H A D | fsutil.c | 229 cglookup(int cg) in cglookup() argument 232 struct cg *cgp; in cglookup() 234 if ((unsigned) cg >= sblock.fs_ncg) in cglookup() 235 errx(EEXIT, "cglookup: out of range cylinder group %d", cg); in cglookup() 241 cgbp = &cgbufs[cg]; in cglookup() 251 getblk(&cgblk, cgtod(&sblock, cg), sblock.fs_cgsize); in cglookup() 256 getblk(cgbp, cgtod(&sblock, cg), sblock.fs_cgsize); in cglookup() 267 struct cg *cg; in cgdirty() local 269 cg = cgbp->b_un.b_cg; in cgdirty() 271 cg->cg_ckhash = 0; in cgdirty() [all …]
|
H A D | setup.c | 279 int cg, loc, len, status; in checksnapinfo() local 322 for (cg = 0; cg < fs->fs_ncg; cg++) { in checksnapinfo() 323 if (fragstoblks(fs, cgtod(fs, cg)) > csblkno) in checksnapinfo() 325 CHKBLKINLIST(fragstoblks(fs, cgtod(fs, cg))); in checksnapinfo() 337 for (; cg < fs->fs_ncg; cg++) { in checksnapinfo() 338 CHKBLKINLIST(fragstoblks(fs, cgtod(fs, cg))); in checksnapinfo()
|
/freebsd/lib/libufs/ |
H A D | cgroup.c | 54 struct cg *cgp; in cgballoc() 80 struct cg *cgp; in cgbfree() 82 int i, cg, blk, frags, bbase; in cgbfree() local 85 cg = dtog(fs, bno); in cgbfree() 86 if (cgread1(disk, cg) != 1) in cgbfree() 97 fs->fs_cs(fs, cg).cs_nbfree++; in cgbfree() 113 fs->fs_cs(fs, cg).cs_nffree += i; in cgbfree() 126 fs->fs_cs(fs, cg).cs_nffree -= fs->fs_frag; in cgbfree() 130 fs->fs_cs(fs, cg).cs_nbfree++; in cgbfree() 141 struct cg *cgp; in cgialloc() [all …]
|
H A D | libufs.h | 50 struct cg d_cg; /* cylinder group */ 120 void ffs_clusteracct(struct fs *, struct cg *, ufs1_daddr_t, int); 148 int cgget(int, struct fs *, int, struct cg *); 149 int cgput(int, struct fs *, struct cg *);
|
/freebsd/sys/kern/ |
H A D | sched_ule.c | 355 struct cpu_group *cg, int indent); 673 cpu_search_lowest(const struct cpu_group *cg, const struct cpu_search *s, in cpu_search_lowest() argument 685 if (cg->cg_children > 0) { in cpu_search_lowest() 686 for (c = cg->cg_children - 1; c >= 0; c--) { in cpu_search_lowest() 687 load = cpu_search_lowest(&cg->cg_child[c], s, &lr); in cpu_search_lowest() 696 (cg->cg_child[c].cg_flags & CG_FLAG_THREAD) && in cpu_search_lowest() 711 for (c = cg->cg_last; c >= cg->cg_first; c--) { in cpu_search_lowest() 712 if (!CPU_ISSET(c, &cg->cg_mask)) in cpu_search_lowest() 755 cpu_search_highest(const struct cpu_group *cg, cons argument 813 sched_lowest(const struct cpu_group * cg,cpuset_t * mask,int pri,int maxload,int prefer,int running) sched_lowest() argument 832 sched_highest(const struct cpu_group * cg,cpuset_t * mask,int minload,int mintrans) sched_highest() argument 846 sched_balance_group(struct cpu_group * cg) sched_balance_group() argument 1025 struct cpu_group *cg, *parent; tdq_idled() local 1321 struct cpu_group *cg, *ccg; sched_pickcpu() local 2026 struct cpu_group *cg, *parent; tdq_trysteal() local 3211 sysctl_kern_sched_topology_spec_internal(struct sbuf * sb,struct cpu_group * cg,int indent) sysctl_kern_sched_topology_spec_internal() argument [all...] |
H A D | subr_smp.c | 630 smp_topo_fill(struct cpu_group *cg) in smp_topo_fill() argument 634 for (c = 0; c < cg->cg_children; c++) in smp_topo_fill() 635 smp_topo_fill(&cg->cg_child[c]); in smp_topo_fill() 636 cg->cg_first = CPU_FFS(&cg->cg_mask) - 1; in smp_topo_fill() 637 cg->cg_last = CPU_FLS(&cg->cg_mask) - 1; in smp_topo_fill() 831 struct cpu_group *cg; in smp_topo_find() local 837 cg = top; in smp_topo_find() 839 if (!CPU_OVERLAP(&cg->cg_mask, &mask)) in smp_topo_find() 841 if (cg->cg_children == 0) in smp_topo_find() 842 return (cg); in smp_topo_find() [all …]
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_gjournal.c | 56 struct cg *cgp; in ufs_gjournal_modref() 58 int error, cg; in ufs_gjournal_modref() local 72 cg = ino_to_cg(fs, ino); in ufs_gjournal_modref() 86 if ((error = ffs_getcg(fs, devvp, cg, 0, &bp, &cgp)) != 0) in ufs_gjournal_modref() 92 ACTIVECLEAR(fs, cg); in ufs_gjournal_modref()
|
/freebsd/usr.bin/xinstall/tests/ |
H A D | install_test.sh | 428 local cu=65532 cg=65532 442 atf_check install -g "$cg" testf testc 443 atf_check_equal "$u:$cg:10$m" "$(stat -f"%u:%g:%p" testc)" 445 atf_check install -o "$cu" -g "$cg" testf testc 446 atf_check_equal "$cu:$cg:10$m" "$(stat -f"%u:%g:%p" testc)" 454 atf_check install -g "$cg" -m "$cm" testf testc 455 atf_check_equal "$u:$cg:10$cm" "$(stat -f"%u:%g:%p" testc)" 457 atf_check install -o "$cu" -g "$cg" -m "$cm" testf testc 458 atf_check_equal "$cu:$cg:10$cm" "$(stat -f"%u:%g:%p" testc)" 467 local cu=65532 cg=65532 [all …]
|
/freebsd/sbin/growfs/ |
H A D | debug.h | 56 void dbg_dump_cg(const char *, struct cg *); 62 void dbg_dump_inmap(struct fs *, const char *, struct cg *); 63 void dbg_dump_frmap(struct fs *, const char *, struct cg *); 64 void dbg_dump_clmap(struct fs *, const char *, struct cg *); 65 void dbg_dump_clsum(struct fs *, const char *, struct cg *); 66 void dbg_dump_sptbl(struct fs *, const char *, struct cg *);
|
/freebsd/sbin/fsirand/ |
H A D | fsirand.c | 110 int devfd, n, cg; in fsirand() local 177 for (cg = 0, inumber = UFS_ROOTINO; cg < (int)sblock->fs_ncg; cg++) { in fsirand() 191 for (n = cg > 0 ? 0 : UFS_ROOTINO; in fsirand()
|
/freebsd/contrib/one-true-awk/testdir/ |
H A D | t.re1 | 1 /[a-cg-j1-3]/ { print $0 " matches /[a-cg-j1-3]/" }
|
H A D | t.re1a | 1 BEGIN { r1 = "[a-cg-j1-3]" 5 $0 ~ r1 { print $0 " matches /[a-cg-j1-3]/" }
|