Searched refs:cg (Results 1 - 25 of 66) sorted by relevance

123

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm-c/
H A Dlto.h210 * Loads an object file into the same context as \c cg. The module is safe to
219 const char *path, lto_code_gen_t cg);
372 * \c cg and \c mod must both be in the same context. See \a
379 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
385 * \c cg and \c mod must both be in the same context.
390 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod);
399 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
408 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
416 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
425 lto_codegen_set_assembler_path(lto_code_gen_t cg, cons
[all...]
/freebsd-11-stable/sys/dev/nand/
H A Dnand.c111 struct chip_geom *cg; local
113 cg = &chip->chip_geom;
115 init_chip_geom(cg, params->luns, params->blocks_per_lun,
130 struct chip_geom *cg; local
133 cg = &chip->chip_geom;
137 init_chip_geom(cg, 1, blocks_per_chip,
155 struct chip_geom *cg; local
158 cg = &chip->chip_geom;
159 blks = cg->blks_per_lun * cg
188 init_chip_geom(struct chip_geom *cg, uint32_t luns, uint32_t blks_per_lun, uint32_t pgs_per_blk, uint32_t pg_size, uint32_t oob_size) argument
231 nand_row_to_blkpg(struct chip_geom *cg, uint32_t row, uint32_t *lun, uint32_t *blk, uint32_t *pg) argument
252 page_to_row(struct chip_geom *cg, uint32_t page, uint32_t *row) argument
275 struct chip_geom* cg; local
290 struct chip_geom *cg; local
450 offset_to_page(struct chip_geom *cg, uint32_t offset) argument
460 struct chip_geom *cg; local
557 struct chip_geom *cg; local
614 struct chip_geom *cg; local
696 struct chip_geom *cg; local
786 struct chip_geom *cg; local
[all...]
H A Dnand_cdev.c62 offset_to_page(struct chip_geom *cg, uint32_t offset) argument
65 return (offset / cg->page_size);
69 offset_to_page_off(struct chip_geom *cg, uint32_t offset) argument
72 return (offset % cg->page_size);
135 struct chip_geom *cg; local
147 cg = &chip->chip_geom;
148 start_page = offset_to_page(cg, offset);
149 off = offset_to_page_off(cg, offset);
150 count = (len > cg->page_size - off) ? cg
189 struct chip_geom *cg; local
267 struct chip_geom *cg; local
297 struct chip_geom *cg; local
418 struct chip_geom *cg; local
442 struct chip_geom *cg; local
[all...]
H A Dnand_geom.c140 struct chip_geom *cg; local
143 cg = &chip->chip_geom;
146 ret = nand_read_oob(chip, page, data, cg->oob_size);
148 ret = nand_prog_oob(chip, page, data, cg->oob_size);
157 struct chip_geom *cg; local
165 cg = &(chip->chip_geom);
176 val = cg->oob_size;
178 val = cg->page_size;
180 val = cg->block_size;
196 struct chip_geom *cg; local
[all...]
H A Dnand_bbt.c74 struct chip_geom *cg; local
78 cg = &chip->chip_geom;
89 bbt->primary_map = cg->chip_size - cg->block_size;
90 bbt->secondary_map = cg->chip_size - 2 * cg->block_size;
91 bbt->tab_len = cg->blks_per_chip * sizeof(uint32_t);
/freebsd-11-stable/sys/fs/ext2fs/
H A Dext2_alloc.c89 int cg; local
112 cg = ino_to_cg(fs, ip->i_number);
114 cg = dtog(fs, bpref);
115 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize,
378 int i, error, cg; local
394 cg = ext2_dirpref(pip);
395 if (fs->e2fs_contigdirs[cg] < 255)
396 fs->e2fs_contigdirs[cg]++;
398 cg = ino_to_cg(fs, pip->i_number);
399 if (fs->e2fs_contigdirs[cg] >
471 int cg, prefcg, cgsize; local
617 ext2_hashalloc(struct inode *ip, int cg, long pref, int size, daddr_t (*allocator) (struct inode *, int, daddr_t, int)) argument
661 ext2_cg_num_gdb(struct m_ext2fs *fs, int cg) argument
686 ext2_num_base_meta_blocks(struct m_ext2fs *fs, int cg) argument
709 int cg; local
734 ext2_cg_block_bitmap_init(struct m_ext2fs *fs, int cg, struct buf *bp) argument
796 ext2_alloccg(struct inode *ip, int cg, daddr_t bpref, int size) argument
935 ext2_clusteralloc(struct inode *ip, int cg, daddr_t bpref, int len) argument
1040 ext2_zero_inode_table(struct inode *ip, int cg) argument
1081 ext2_nodealloccg(struct inode *ip, int cg, daddr_t ipref, int mode) argument
1174 int cg, error; local
1221 int error, cg; local
1313 ext2_cg_has_sb(struct m_ext2fs *fs, int cg) argument
[all...]
H A Dext2_subr.c135 ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, daddr_t bno, int cnt) argument
137 int32_t *sump = fs->e2fs_clustersum[cg].cs_sum;
142 if (fs->e2fs_clustersum[cg].cs_init == 0) {
169 fs->e2fs_clustersum[cg].cs_init = 1;
231 fs->e2fs_maxcluster[cg] = i;
/freebsd-11-stable/usr.sbin/makefs/ffs/
H A Dffs_alloc.c69 static int32_t ffs_mapsearch(struct fs *, struct cg *, daddr_t, int);
96 int cg; local
108 cg = ino_to_cg(fs, ip->i_number);
110 cg = dtog(fs, bpref);
111 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg);
155 int cg; local
161 cg = ino_to_cg(fs, ip->i_number);
162 return (fs->fs_fpg * cg + fs->fs_frag);
176 for (cg = startcg; cg < f
194 int cg; local
243 ffs_hashalloc(struct inode *ip, int cg, daddr_t pref, int size, daddr_t (*allocator)(struct inode *, int, daddr_t, int)) argument
292 ffs_alloccg(struct inode *ip, int cg, daddr_t bpref, int size) argument
433 int i, error, cg, blk, frags, bbase; local
[all...]
H A Dffs_extern.h57 void ffs_clusteracct(struct fs *, struct cg *, int32_t, int);
67 void ffs_cg_swap(struct cg *, struct cg *, struct fs *);
/freebsd-11-stable/sbin/fsck_ffs/
H A Dpass4.c55 int i, n, cg; local
60 for (cg = 0; cg < sblock.fs_ncg; cg++) {
63 cdevname, cg, sblock.fs_ncg,
64 cg * 100 / sblock.fs_ncg);
69 cg * 100 / sblock.fs_ncg);
72 inumber = cg * sblock.fs_ipg;
73 for (i = 0; i < inostathead[cg].il_numalloced; i++, inumber++) {
H A Dgjournal.c78 struct cg cgcu_cg;
103 getcg(int cg) argument
109 if (cgc->cgc_cg.cg_cgx == cg) {
110 //printf("%s: Found cg=%d\n", __func__, cg);
134 if (cgread1(disk, cg) == -1)
135 err(1, "cgread1(%d)", cg);
141 //printf("%s: Read cg=%d\n", __func__, cg);
195 //printf("%s: Wrote cg
263 int i, cg, blk, frags, bbase; local
403 int cg, mode; local
[all...]
H A Dpass5.c68 struct cg *cg, *newcg = (struct cg *)buf; local
166 cg = cgbp->b_un.b_cg;
167 if (!cg_chkmagic(cg))
169 newcg->cg_time = cg->cg_time;
170 newcg->cg_old_time = cg->cg_old_time;
171 newcg->cg_unrefs = cg->cg_unrefs;
193 if (cg->cg_rotor >= 0 && cg
[all...]
/freebsd-11-stable/usr.sbin/pmcstat/
H A Dpmcpl_callgraph.c94 struct pmcstat_cgnode *cg; local
96 if ((cg = malloc(sizeof(*cg))) == NULL)
99 cg->pcg_image = image;
100 cg->pcg_func = pc;
102 cg->pcg_count = 0;
103 cg->pcg_nchildren = 0;
104 LIST_INIT(&cg->pcg_children);
106 return (cg);
113 pmcstat_cgnode_free(struct pmcstat_cgnode *cg) argument
134 struct pmcstat_cgnode *cg; local
252 pmcstat_cgnode_print(struct pmcstat_cgnode *cg, int depth, uint32_t total) argument
472 pmcstat_cgnode_topprint(struct pmcstat_cgnode *cg, int depth, uint32_t nsamples) argument
[all...]
/freebsd-11-stable/sbin/badsect/
H A Dbadsect.c157 int cg; local
165 cg = dtog(fs, fsbn);
166 if (fsbn < cgdmin(fs, cg)) {
167 if (cg == 0 || (fsbn+cnt) > cgsblock(fs, cg)) {
173 if ((fsbn+cnt) > cgbase(fs, cg+1)) {
179 if (cgread1(&disk, cg) != 1) {
180 fprintf(stderr, "cg %d: could not be read\n", cg);
185 fprintf(stderr, "cg
[all...]
/freebsd-11-stable/sbin/fsirand/
H A Dfsirand.c122 int i, devfd, n, cg; local
172 for (cg = 0; cg < (int)sblock->fs_ncg; cg++) {
173 dblk = fsbtodb(sblock, cgsblock(sblock, cg));
179 cg + 1, device, (n < SBLOCKSIZE) ? "short write"
186 cg + 1, device);
191 cg + 1, device);
233 for (cg = 0, inumber = 0; cg < (in
[all...]
/freebsd-11-stable/sys/ufs/ffs/
H A Dffs_alloc.c101 typedef ufs2_daddr_t allocfcn_t(struct inode *ip, u_int cg, ufs2_daddr_t bpref,
123 static ufs1_daddr_t ffs_mapsearch(struct fs *, struct cg *, ufs2_daddr_t, int);
157 u_int cg, reclaimed; local
196 cg = ino_to_cg(fs, ip->i_number);
198 cg = dtog(fs, bpref);
199 bno = ffs_hashalloc(ip, cg, bpref, size, size, ffs_alloccg);
255 u_int cg, request, reclaimed; local
322 cg = dtog(fs, bprev);
324 bno = ffs_fragextend(ip, cg, bprev, osize, nsize);
390 bno = ffs_hashalloc(ip, cg, bpre
528 int i, cg, len, start_lvl, end_lvl, ssize; local
777 int i, cg, len, start_lvl, end_lvl, ssize; local
1036 u_int cg; local
1157 int cg, prefcg, dirsize, cgsize; local
1307 u_int cg, inocg; local
1412 u_int cg, inocg; local
1966 getinobuf(struct inode *ip, u_int cg, u_int32_t cginoblk, int gbflags) argument
2178 u_int cg; local
2488 u_int cg; local
2563 u_int cg; local
[all...]
H A Dfs.h57 * The beginning of cylinder group cg in fs, is given by
58 * the ``cgbase(fs, cg)'' macro.
108 * thus changes to (struct cg) must keep its size within MINBSIZE.
279 int32_t fs_dblkno; /* offset of first data after cg */
339 int32_t fs_cgrotor; /* last cg searched */
342 struct csum *fs_csp; /* (u) cg summary info buffer */
362 int32_t fs_save_cgsize; /* save real cg size to use fs_bsize */
445 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(int))])
446 #define ACTIVECGOFF(cg) (
486 struct cg { struct
[all...]
/freebsd-11-stable/sys/ufs/ufs/
H A Dufs_gjournal.c56 struct cg *cgp;
59 int error, cg; local
73 cg = ino_to_cg(fs, ino);
77 cgbno = fragstoblks(fs, cgtod(fs, cg));
81 cgbno = fsbtodb(fs, cgtod(fs, cg));
93 cgp = (struct cg *)bp->b_data;
103 ACTIVECLEAR(fs, cg);
/freebsd-11-stable/lib/libufs/
H A Dcgroup.c53 struct cg *cgp;
79 struct cg *cgp;
81 int i, cg, blk, frags, bbase; local
84 cg = dtog(fs, bno);
85 if (cgread1(disk, cg) != 1)
96 fs->fs_cs(fs, cg).cs_nbfree++;
112 fs->fs_cs(fs, cg).cs_nffree += i;
125 fs->fs_cs(fs, cg).cs_nffree -= fs->fs_frag;
129 fs->fs_cs(fs, cg).cs_nbfree++;
140 struct cg *cg
[all...]
H A Dlibufs.h56 struct cg d_cg; /* cylinder group */
141 void ffs_clusteracct(struct fs *, struct cg *, ufs1_daddr_t, int);
/freebsd-11-stable/sbin/growfs/
H A Ddebug.h55 void dbg_dump_cg(const char *, struct cg *);
61 void dbg_dump_inmap(struct fs *, const char *, struct cg *);
62 void dbg_dump_frmap(struct fs *, const char *, struct cg *);
63 void dbg_dump_clmap(struct fs *, const char *, struct cg *);
64 void dbg_dump_clsum(struct fs *, const char *, struct cg *);
65 void dbg_dump_sptbl(struct fs *, const char *, struct cg *);
/freebsd-11-stable/contrib/binutils/gprof/
H A Dmips.c55 indirect_child.cg.prop.fract = 1.0;
56 indirect_child.cg.cyc.head = &indirect_child;
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCallGraphSCCPass.h93 CallGraphSCC(CallGraph &cg, void *context) : CG(cg), Context(context) {} argument
/freebsd-11-stable/sys/kern/
H A Dsched_ule.c335 struct cpu_group *cg, int indent);
643 static __always_inline int cpu_search(const struct cpu_group *cg,
645 int __noinline cpu_search_lowest(const struct cpu_group *cg,
647 int __noinline cpu_search_highest(const struct cpu_group *cg,
649 int __noinline cpu_search_both(const struct cpu_group *cg,
664 cpu_search(const struct cpu_group *cg, struct cpu_search *low, argument
675 cpumask = cg->cg_mask;
686 for (i = cg->cg_children, cpu = mp_maxid; ; ) {
698 child = &cg->cg_child[i - 1];
779 cpu_search_lowest(const struct cpu_group *cg, struc argument
785 cpu_search_highest(const struct cpu_group *cg, struct cpu_search *high) argument
791 cpu_search_both(const struct cpu_group *cg, struct cpu_search *low, struct cpu_search *high) argument
803 sched_lowest(const struct cpu_group *cg, cpuset_t mask, int pri, int maxload, int prefer) argument
821 sched_highest(const struct cpu_group *cg, cpuset_t mask, int minload) argument
833 sched_balance_group(struct cpu_group *cg) argument
983 struct cpu_group *cg; local
1242 struct cpu_group *cg, *ccg; local
1893 struct cpu_group *cg; local
2968 sysctl_kern_sched_topology_spec_internal(struct sbuf *sb, struct cpu_group *cg, int indent) argument
[all...]
/freebsd-11-stable/cddl/usr.sbin/dtrace/tests/common/
H A DMakefile15 cg \

Completed in 210 milliseconds

123