Home
last modified time | relevance | path

Searched refs:cg (Results 1 – 25 of 92) sorted by relevance

1234

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/
H A Dlto.h404 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);
441 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
494 lto_codegen_compile(lto_code_gen_t cg, size_t* length);
514 lto_codegen_optimize(lto_code_gen_t cg);
565 lto_codegen_debug_options(lto_code_gen_t cg, const char *);
592 lto_codegen_set_should_internalize(lto_code_gen_t cg,
604 lto_codegen_set_should_embed_uselists(lto_code_gen_t cg,
695 extern void thinlto_codegen_dispose(thinlto_code_gen_t cg);
718 extern void thinlto_codegen_process(thinlto_code_gen_t cg);
[all …]
/freebsd-14.2/sys/fs/ext2fs/
H A Dext2_alloc.c108 int cg; in ext2_alloc() local
623 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
630 for (cg = 0; cg < prefcg; cg++) in ext2_dirpref()
667 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
674 for (cg = 0; cg < prefcg; cg++) in ext2_dirpref()
684 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
687 for (cg = 0; cg < prefcg; cg++) in ext2_dirpref()
787 cg++; in ext2_hashalloc()
818 if (cg == first || cg == first + 1 || cg == last) in ext2_cg_number_gdb_meta()
1572 a3 <= cg || a5 <= cg || a7 <= cg; in ext2_cg_has_sb()
[all …]
H A Dext2_subr.c102 ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, e4fs_daddr_t bno, int cnt) in ext2_clusteracct() argument
104 int32_t *sump = fs->e2fs_clustersum[cg].cs_sum; in ext2_clusteracct()
110 if (fs->e2fs_clustersum[cg].cs_init == 0) { in ext2_clusteracct()
137 fs->e2fs_clustersum[cg].cs_init = 1; in ext2_clusteracct()
199 fs->e2fs_maxcluster[cg] = i; in ext2_clusteracct()
H A Dext2_csum.c489 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()
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
565 fs->e2fs_gd[cg].ext4bgd_b_bmap_csum = htole16(csum & 0xFFFF); in ext2_gd_b_bitmap_csum_set()
[all …]
/freebsd-14.2/usr.sbin/makefs/ffs/
H A Dffs_alloc.c96 int cg; in ffs_alloc() local
176 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs1()
179 for (cg = 0; cg <= startcg; cg++) in ffs_blkpref_ufs1()
215 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs2()
219 for (cg = 0; cg < startcg; cg++) in ffs_blkpref_ufs2()
261 cg += i; in ffs_hashalloc()
278 cg++; in ffs_hashalloc()
280 cg = 0; in ffs_hashalloc()
294 struct cg *cgp; in ffs_alloccg()
379 struct cg *cgp; in ffs_alloccgblk()
[all …]
H A Dffs_extern.h58 void ffs_clusteracct(struct fs *, struct cg *, int32_t, int);
68 void ffs_cg_swap(struct cg *, struct cg *, struct fs *);
/freebsd-14.2/usr.sbin/pmcstat/
H A Dpmcpl_callgraph.c98 if ((cg = malloc(sizeof(*cg))) == NULL) in pmcstat_cgnode_allocate()
108 return (cg); in pmcstat_cgnode_allocate()
121 free(cg); in pmcstat_cgnode_free()
166 cg = NULL; in pmcstat_cgnode_hash_lookup_pc()
176 if (cg->pcg_image == image && cg->pcg_func == pc) in pmcstat_cgnode_hash_lookup_pc()
177 return (cg); in pmcstat_cgnode_hash_lookup_pc()
194 return (cg); in pmcstat_cgnode_hash_lookup_pc()
283 sym = pmcstat_symbol_search(cg->pcg_image, cg->pcg_func); in pmcstat_cgnode_print()
289 (void *) (cg->pcg_image->pi_vaddr + cg->pcg_func)); in pmcstat_cgnode_print()
494 (void *)(cg->pcg_image->pi_vaddr + cg->pcg_func)); in pmcstat_cgnode_topprint()
[all …]
/freebsd-14.2/sys/ufs/ffs/
H A Dffs_alloc.c689 cg += 1; in ffs_reallocblks_ufs1()
691 cg = 0; in ffs_reallocblks_ufs1()
1350 for (cg = prefcg; cg < fs->fs_ncg; cg++) in ffs_dirpref()
1357 for (cg = 0; cg < prefcg; cg++) in ffs_dirpref()
1367 for (cg = prefcg; cg < fs->fs_ncg; cg++) in ffs_dirpref()
1370 for (cg = 0; cg < prefcg; cg++) in ffs_dirpref()
1496 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs1()
1501 for (cg = 0; cg <= startcg; cg++) in ffs_blkpref_ufs1()
1608 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs2()
1613 for (cg = 0; cg <= startcg; cg++) in ffs_blkpref_ufs2()
[all …]
H A Dfs.h558 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(uint64_t))]) argument
559 #define ACTIVECGOFF(cg) (1 << ((cg) % (NBBY * sizeof(uint64_t)))) argument
560 #define ACTIVESET(fs, cg) do { \ argument
562 ACTIVECGNUM((fs), (cg)) |= ACTIVECGOFF((cg)); \
564 #define ACTIVECLEAR(fs, cg) do { \ argument
566 ACTIVECGNUM((fs), (cg)) &= ~ACTIVECGOFF((cg)); \
576 /* base cg */ (sizeof(struct cg) + \
599 struct cg { struct
H A Dffs_snapshot.c197 int error, cg, snaploc; in ffs_snapshot() local
365 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot()
371 if (cg % 10 == 0) { in ffs_snapshot()
400 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot()
461 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot()
462 if ((ACTIVECGNUM(fs, cg) & ACTIVECGOFF(cg)) != 0) in ffs_snapshot()
692 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot()
700 for (; cg < fs->fs_ncg; cg++) in ffs_snapshot()
919 cgaccount(int cg, in cgaccount() argument
926 struct cg *cgp; in cgaccount()
[all …]
/freebsd-14.2/sbin/fsck_ffs/
H A Dgjournal.c69 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 Dpass4.c56 int i, n, cg; in pass4() local
60 for (cg = 0; cg < sblock.fs_ncg; cg++) { in pass4()
63 cdevname, cg, sblock.fs_ncg, in pass4()
64 cg * 100 / sblock.fs_ncg); in pass4()
69 cg * 100 / sblock.fs_ncg); in pass4()
72 inumber = cg * sblock.fs_ipg; in pass4()
73 for (i = 0; i < inostathead[cg].il_numalloced; i++, inumber++) { in pass4()
H A Dpass5.c69 struct cg *cg, *newcg = (struct cg *)buf; in pass5() local
170 cg = cgbp->b_un.b_cg; in pass5()
171 if (!cg_chkmagic(cg)) in pass5()
181 ckhash = cg->cg_ckhash; in pass5()
182 cg->cg_ckhash = 0; in pass5()
185 cg->cg_ckhash = ckhash; in pass5()
189 cg->cg_ckhash = thishash; in pass5()
193 newcg->cg_time = cg->cg_time; in pass5()
218 if (cg->cg_rotor >= 0 && cg->cg_rotor < newcg->cg_ndblk) in pass5()
222 if (cg->cg_frotor >= 0 && cg->cg_frotor < newcg->cg_ndblk) in pass5()
[all …]
H A Dfsutil.c236 cglookup(int cg) in cglookup() argument
239 struct cg *cgp; in cglookup()
248 cgbp = &cgbufs[cg]; in cglookup()
274 struct cg *cg; in cgdirty() local
279 cg->cg_ckhash = in cgdirty()
554 struct cg *cgp; in cg_write()
777 for (cg = 0; cg < sblock.fs_ncg; cg++) in ckfini()
1071 prevfailcg = cg; in check_cgmagic()
1089 cgp->cg_cgx = cg; in rebuild_cg()
1168 struct cg *cgp; in std_checkblkavail()
[all …]
H A Dsetup.c286 int cg, loc, len, status; in checksnapinfo() local
329 for (cg = 0; cg < fs->fs_ncg; cg++) { in checksnapinfo()
330 if (fragstoblks(fs, cgtod(fs, cg)) > csblkno) in checksnapinfo()
332 CHKBLKINLIST(fragstoblks(fs, cgtod(fs, cg))); in checksnapinfo()
344 for (; cg < fs->fs_ncg; cg++) { in checksnapinfo()
345 CHKBLKINLIST(fragstoblks(fs, cgtod(fs, cg))); in checksnapinfo()
/freebsd-14.2/lib/libufs/
H A Dcgroup.c55 struct cg *cgp; in cgballoc()
81 struct cg *cgp; in cgbfree()
83 int i, cg, blk, frags, bbase; in cgbfree() local
86 cg = dtog(fs, bno); in cgbfree()
87 if (cgread1(disk, cg) != 1) in cgbfree()
98 fs->fs_cs(fs, cg).cs_nbfree++; in cgbfree()
142 struct cg *cgp; in cgialloc()
222 cgget(int devfd, struct fs *fs, int cg, struct cg *cgp) in cgget() argument
249 cgp->cg_cgx != cg) { in cgget()
268 if (cg == disk->d_cg.cg_cgx) { in cgwrite1()
[all …]
H A Dlibufs.h60 struct cg d_cg; /* cylinder group */
108 void ffs_clusteracct(struct fs *, struct cg *, ufs1_daddr_t, int);
135 int cgget(int, struct fs *, int, struct cg *);
136 int cgput(int, struct fs *, struct cg *);
/freebsd-14.2/sys/kern/
H A Dsched_ule.c711 for (c = cg->cg_last; c >= cg->cg_first; c--) { in cpu_search_lowest()
782 for (c = cg->cg_last; c >= cg->cg_first; c--) { in cpu_search_highest()
1053 cg = cg->cg_parent; in tdq_idled()
1066 cg = parent; in tdq_idled()
1367 for (cpu = cg->cg_first; cpu <= cg->cg_last; cpu++) { in sched_pickcpu()
1389 for (ccg = NULL; cg != NULL; cg = cg->cg_parent) { in sched_pickcpu()
1392 if (cg->cg_children == 1 || cg->cg_count == 1) in sched_pickcpu()
1397 ccg = cg; in sched_pickcpu()
2058 cg = cg->cg_parent; in tdq_trysteal()
2077 cg = parent; in tdq_trysteal()
[all …]
H A Dsubr_smp.c639 smp_topo_fill(struct cpu_group *cg) in smp_topo_fill() argument
643 for (c = 0; c < cg->cg_children; c++) in smp_topo_fill()
644 smp_topo_fill(&cg->cg_child[c]); in smp_topo_fill()
645 cg->cg_first = CPU_FFS(&cg->cg_mask) - 1; in smp_topo_fill()
646 cg->cg_last = CPU_FLS(&cg->cg_mask) - 1; in smp_topo_fill()
840 struct cpu_group *cg; in smp_topo_find() local
846 cg = top; in smp_topo_find()
850 if (cg->cg_children == 0) in smp_topo_find()
851 return (cg); in smp_topo_find()
852 children = cg->cg_children; in smp_topo_find()
[all …]
/freebsd-14.2/sys/ufs/ufs/
H A Dufs_gjournal.c56 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-14.2/usr.bin/xinstall/tests/
H A Dinstall_test.sh419 local cu=65532 cg=65532
433 atf_check install -g "$cg" testf testc
434 atf_check_equal "$u:$cg:10$m" "$(stat -f"%u:%g:%p" testc)"
436 atf_check install -o "$cu" -g "$cg" testf testc
437 atf_check_equal "$cu:$cg:10$m" "$(stat -f"%u:%g:%p" testc)"
445 atf_check install -g "$cg" -m "$cm" testf testc
448 atf_check install -o "$cu" -g "$cg" -m "$cm" testf testc
458 local cu=65532 cg=65532
472 atf_check install -U -g "$cg" testf testc
475 atf_check install -U -o "$cu" -g "$cg" testf testc
[all …]
/freebsd-14.2/sbin/growfs/
H A Ddebug.h56 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-14.2/sbin/fsirand/
H A Dfsirand.c110 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-14.2/contrib/one-true-awk/testdir/
H A Dt.re11 /[a-cg-j1-3]/ { print $0 " matches /[a-cg-j1-3]/" }
H A Dt.re1a1 BEGIN { r1 = "[a-cg-j1-3]"
5 $0 ~ r1 { print $0 " matches /[a-cg-j1-3]/" }

1234