Home
last modified time | relevance | path

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

1234

/freebsd/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/sys/fs/ext2fs/
H A Dext2_alloc.c106 int cg; in ext2_alloc() local
621 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
628 for (cg = 0; cg < prefcg; cg++) in ext2_dirpref()
665 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
672 for (cg = 0; cg < prefcg; cg++) in ext2_dirpref()
682 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
685 for (cg = 0; cg < prefcg; cg++) in ext2_dirpref()
785 cg++; in ext2_hashalloc()
816 if (cg == first || cg == first + 1 || cg == last) in ext2_cg_number_gdb_meta()
1570 a3 <= cg || a5 <= cg || a7 <= cg; in ext2_cg_has_sb()
[all …]
H A Dext2_subr.c100 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 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/usr.sbin/makefs/ffs/
H A Dffs_alloc.c93 int cg; in ffs_alloc() local
173 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs1()
176 for (cg = 0; cg <= startcg; cg++) in ffs_blkpref_ufs1()
212 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs2()
216 for (cg = 0; cg < startcg; cg++) in ffs_blkpref_ufs2()
258 cg += i; in ffs_hashalloc()
275 cg++; in ffs_hashalloc()
277 cg = 0; in ffs_hashalloc()
291 struct cg *cgp; in ffs_alloccg()
376 struct cg *cgp; in ffs_alloccgblk()
[all …]
H A Dffs_extern.h56 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 Dpmcpl_callgraph.c97 if ((cg = malloc(sizeof(*cg))) == NULL) in pmcstat_cgnode_allocate()
107 return (cg); in pmcstat_cgnode_allocate()
120 free(cg); in pmcstat_cgnode_free()
165 cg = NULL; in pmcstat_cgnode_hash_lookup_pc()
175 if (cg->pcg_image == image && cg->pcg_func == pc) in pmcstat_cgnode_hash_lookup_pc()
176 return (cg); in pmcstat_cgnode_hash_lookup_pc()
193 return (cg); in pmcstat_cgnode_hash_lookup_pc()
282 sym = pmcstat_symbol_search(cg->pcg_image, cg->pcg_func); in pmcstat_cgnode_print()
288 (void *) (cg->pcg_image->pi_vaddr + cg->pcg_func)); in pmcstat_cgnode_print()
493 (void *)(cg->pcg_image->pi_vaddr + cg->pcg_func)); in pmcstat_cgnode_topprint()
[all …]
/freebsd/sys/ufs/ffs/
H A Dffs_alloc.c687 cg += 1; in ffs_reallocblks_ufs1()
689 cg = 0; in ffs_reallocblks_ufs1()
1348 for (cg = prefcg; cg < fs->fs_ncg; cg++) in ffs_dirpref()
1355 for (cg = 0; cg < prefcg; cg++) in ffs_dirpref()
1365 for (cg = prefcg; cg < fs->fs_ncg; cg++) in ffs_dirpref()
1368 for (cg = 0; cg < prefcg; cg++) in ffs_dirpref()
1494 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs1()
1499 for (cg = 0; cg <= startcg; cg++) in ffs_blkpref_ufs1()
1606 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs2()
1611 for (cg = 0; cg <= startcg; cg++) in ffs_blkpref_ufs2()
[all …]
H A Dfs.h556 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(uint64_t))]) argument
557 #define ACTIVECGOFF(cg) (1 << ((cg) % (NBBY * sizeof(uint64_t)))) argument
558 #define ACTIVESET(fs, cg) do { \ argument
560 ACTIVECGNUM((fs), (cg)) |= ACTIVECGOFF((cg)); \
562 #define ACTIVECLEAR(fs, cg) do { \ argument
564 ACTIVECGNUM((fs), (cg)) &= ~ACTIVECGOFF((cg)); \
574 /* base cg */ (sizeof(struct cg) + \
597 struct cg { struct
H A Dffs_snapshot.c195 int error, cg, snaploc; in ffs_snapshot() local
354 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot()
360 if (cg % 10 == 0) { in ffs_snapshot()
389 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot()
450 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot()
451 if ((ACTIVECGNUM(fs, cg) & ACTIVECGOFF(cg)) != 0) in ffs_snapshot()
681 for (cg = 0; cg < fs->fs_ncg; cg++) { in ffs_snapshot()
689 for (; cg < fs->fs_ncg; cg++) in ffs_snapshot()
908 cgaccount(int cg, in cgaccount() argument
915 struct cg *cgp; in cgaccount()
[all …]
/freebsd/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.c50 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 Dpass5.c62 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()
178 cg->cg_ckhash = ckhash; in pass5()
182 cg->cg_ckhash = thishash; in pass5()
186 newcg->cg_time = cg->cg_time; in pass5()
211 if (cg->cg_rotor >= 0 && cg->cg_rotor < newcg->cg_ndblk) in pass5()
215 if (cg->cg_frotor >= 0 && cg->cg_frotor < newcg->cg_ndblk) in pass5()
[all …]
H A Dfsutil.c229 cglookup(int cg) in cglookup() argument
232 struct cg *cgp; in cglookup()
241 cgbp = &cgbufs[cg]; in cglookup()
267 struct cg *cg; in cgdirty() local
272 cg->cg_ckhash = in cgdirty()
547 struct cg *cgp; in cg_write()
770 for (cg = 0; cg < sblock.fs_ncg; cg++) in ckfini()
1064 prevfailcg = cg; in check_cgmagic()
1082 cgp->cg_cgx = cg; in rebuild_cg()
1161 struct cg *cgp; in std_checkblkavail()
[all …]
H A Dsetup.c279 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 Dcgroup.c54 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()
141 struct cg *cgp; in cgialloc()
221 cgget(int devfd, struct fs *fs, int cg, struct cg *cgp) in cgget() argument
248 cgp->cg_cgx != cg) { in cgget()
267 if (cg == disk->d_cg.cg_cgx) { in cgwrite1()
[all …]
H A Dlibufs.h57 struct cg d_cg; /* cylinder group */
127 void ffs_clusteracct(struct fs *, struct cg *, ufs1_daddr_t, int);
154 int cgget(int, struct fs *, int, struct cg *);
155 int cgput(int, struct fs *, struct cg *);
/freebsd/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.c630 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()
841 if (cg->cg_children == 0) in smp_topo_find()
842 return (cg); in smp_topo_find()
843 children = cg->cg_children; in smp_topo_find()
[all …]
/freebsd/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/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/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/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/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