/freebsd-9.3-release/sys/fs/ext2fs/ |
H A D | ext2_alloc.c | 89 int cg; local 111 cg = ino_to_cg(fs, ip->i_number); 113 cg = dtog(fs, bpref); 114 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, 355 int i, error, cg; local 371 cg = ext2_dirpref(pip); 372 if (fs->e2fs_contigdirs[cg] < 255) 373 fs->e2fs_contigdirs[cg]++; 375 cg = ino_to_cg(fs, pip->i_number); 376 if (fs->e2fs_contigdirs[cg] > 446 int cg, prefcg, dirsize, cgsize; local 593 ext2_hashalloc(struct inode *ip, int cg, long pref, int size, daddr_t (*allocator)(struct inode *, int, daddr_t, int)) argument 643 ext2_alloccg(struct inode *ip, int cg, daddr_t bpref, int size) argument 775 ext2_clusteralloc(struct inode *ip, int cg, daddr_t bpref, int len) argument 888 ext2_nodealloccg(struct inode *ip, int cg, daddr_t ipref, int mode) argument 972 int cg, error; local 1019 int error, cg; local [all...] |
H A D | ext2_subr.c | 167 ext2_clusteracct(struct m_ext2fs *fs, char *bbp, int cg, daddr_t bno, int cnt) argument 169 int32_t *sump = fs->e2fs_clustersum[cg].cs_sum; 174 if (fs->e2fs_clustersum[cg].cs_init == 0) { 200 fs->e2fs_clustersum[cg].cs_init = 1; 262 fs->e2fs_maxcluster[cg] = i;
|
/freebsd-9.3-release/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 69 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 432 int i, error, cg, blk, frags, bbase; local [all...] |
H A D | ffs_extern.h | 57 void ffs_clusteracct(struct fs *, struct cg *, int32_t, int); 67 void ffs_cg_swap(struct cg *, struct cg *, struct fs *);
|
/freebsd-9.3-release/contrib/llvm/include/llvm-c/ |
H A D | lto.h | 225 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod); 234 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model); 242 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model); 249 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu); 257 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path); 263 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args, 271 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol); 279 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path); 290 lto_codegen_compile(lto_code_gen_t cg, size_t* length); 297 lto_codegen_compile_to_file(lto_code_gen_t cg, cons [all...] |
/freebsd-9.3-release/sbin/fsck_ffs/ |
H A D | pass4.c | 54 int i, n, cg; local 59 for (cg = 0; cg < sblock.fs_ncg; cg++) { 62 cdevname, cg, sblock.fs_ncg, 63 cg * 100 / sblock.fs_ncg); 68 cg * 100 / sblock.fs_ncg); 71 inumber = cg * sblock.fs_ipg; 72 for (i = 0; i < inostathead[cg].il_numalloced; i++, inumber++) {
|
H A D | gjournal.c | 78 struct cg cgcu_cg; 104 getcg(int cg) argument 110 if (cgc->cgc_cg.cg_cgx == cg) { 111 //printf("%s: Found cg=%d\n", __func__, cg); 135 if (cgread1(disk, cg) == -1) 136 err(1, "cgread1(%d)", cg); 142 //printf("%s: Read cg=%d\n", __func__, cg); 196 //printf("%s: Wrote cg 264 int i, cg, blk, frags, bbase; local 404 int cg, mode; local [all...] |
H A D | pass5.c | 68 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...] |
H A D | fsutil.c | 202 cgget(int cg) argument 205 struct cg *cgp; 212 cgbp = &cgbufs[cg]; 219 getblk(&cgblk, cgtod(&sblock, cg), sblock.fs_cgsize); 224 getblk(cgbp, cgtod(&sblock, cg), sblock.fs_cgsize); 658 check_cgmagic(int cg, struct bufarea *cgbp) argument 660 struct cg *cgp = cgbp->b_un.b_cg; 676 pfatal("CYLINDER GROUP %d: BAD MAGIC NUMBER", cg); 688 cgp->cg_cgx = cg; 692 if (cgbase(&sblock, cg) 730 int i, j, k, cg, baseblk; local [all...] |
H A D | fsck.h | 129 long il_numalloced; /* number of inodes allocated in this cg */ 148 struct cg *b_cg; /* cylinder group */ 412 int check_cgmagic(int cg, struct bufarea *cgbp); 432 struct bufarea *cgget(int cg); 467 void update_maps(struct cg *, struct cg*, int);
|
H A D | setup.c | 73 long cg, asked, i, j; local 185 for (cg = 0; cg < proto.fs_ncg; cg++) { 186 bflag = fsbtodb(&proto, cgsblock(&proto, cg)); 190 if (cg >= proto.fs_ncg) { 245 printf("cannot alloc %u bytes for cg summary info\n",
|
/freebsd-9.3-release/usr.sbin/pmcstat/ |
H A D | pmcpl_callgraph.c | 92 struct pmcstat_cgnode *cg; local 94 if ((cg = malloc(sizeof(*cg))) == NULL) 97 cg->pcg_image = image; 98 cg->pcg_func = pc; 100 cg->pcg_count = 0; 101 cg->pcg_nchildren = 0; 102 LIST_INIT(&cg->pcg_children); 104 return (cg); 111 pmcstat_cgnode_free(struct pmcstat_cgnode *cg) argument 132 struct pmcstat_cgnode *cg; local 250 pmcstat_cgnode_print(struct pmcstat_cgnode *cg, int depth, uint32_t total) argument 470 pmcstat_cgnode_topprint(struct pmcstat_cgnode *cg, int depth, uint32_t nsamples) argument [all...] |
/freebsd-9.3-release/sys/ufs/ufs/ |
H A D | ufs_gjournal.c | 55 struct cg *cgp; 58 int error, cg; local 72 cg = ino_to_cg(fs, ino); 76 cgbno = fragstoblks(fs, cgtod(fs, cg)); 80 cgbno = fsbtodb(fs, cgtod(fs, cg)); 89 cgp = (struct cg *)bp->b_data; 99 ACTIVECLEAR(fs, cg);
|
/freebsd-9.3-release/sbin/badsect/ |
H A D | badsect.c | 157 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-9.3-release/sbin/fsirand/ |
H A D | fsirand.c | 121 int i, devfd, n, cg; local 181 for (cg = 0; cg < (int)sblock->fs_ncg; cg++) { 182 dblk = fsbtodb(sblock, cgsblock(sblock, cg)); 188 cg + 1, device, (n < SBLOCKSIZE) ? "short write" 195 cg + 1, device); 200 cg + 1, device); 242 for (cg = 0, inumber = 0; cg < (in [all...] |
/freebsd-9.3-release/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 101 typedef ufs2_daddr_t allocfcn_t(struct inode *ip, u_int cg, ufs2_daddr_t bpref, 124 static ufs1_daddr_t ffs_mapsearch(struct fs *, struct cg *, ufs2_daddr_t, int); 158 u_int cg, reclaimed; local 197 cg = ino_to_cg(fs, ip->i_number); 199 cg = dtog(fs, bpref); 200 bno = ffs_hashalloc(ip, cg, bpref, size, size, ffs_alloccg); 256 u_int cg, request, reclaimed; local 323 cg = dtog(fs, bprev); 325 bno = ffs_fragextend(ip, cg, bprev, osize, nsize); 391 bno = ffs_hashalloc(ip, cg, bpre 976 u_int cg; local 1095 int cg, prefcg, dirsize, cgsize; local 1245 u_int cg, inocg; local 1350 u_int cg, inocg; local 1905 getinobuf(struct inode *ip, u_int cg, u_int32_t cginoblk, int gbflags) argument 2108 u_int cg; local 2415 u_int cg; local 2486 u_int cg; local [all...] |
H A D | fs.h | 57 * 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. 266 int32_t fs_dblkno; /* offset of first data after cg */ 326 int32_t fs_cgrotor; /* last cg searched */ 329 struct csum *fs_csp; /* (u) cg summary info buffer */ 349 int32_t fs_save_cgsize; /* save real cg size to use fs_bsize */ 432 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(int))]) 433 #define ACTIVECGOFF(cg) ( 473 struct cg { struct [all...] |
H A D | ffs_snapshot.c | 204 int error, cg, snaploc; local 358 for (cg = 0; cg < fs->fs_ncg; cg++) { 359 error = UFS_BALLOC(vp, lfragtosize(fs, cgtod(fs, cg)), 364 if (cg % 10 == 0) 380 for (cg = 0; cg < fs->fs_ncg; cg++) { 381 error = UFS_BALLOC(vp, lfragtosize(fs, cgtod(fs, cg)), [all...] |
/freebsd-9.3-release/lib/libufs/ |
H A D | cgroup.c | 53 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 D | libufs.h | 56 struct cg d_cg; /* cylinder group */ 141 void ffs_clusteracct(struct fs *, struct cg *, ufs1_daddr_t, int);
|
/freebsd-9.3-release/sbin/growfs/ |
H A D | debug.h | 55 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-9.3-release/contrib/binutils/gprof/ |
H A D | mips.c | 55 indirect_child.cg.prop.fract = 1.0; 56 indirect_child.cg.cyc.head = &indirect_child;
|
/freebsd-9.3-release/contrib/llvm/include/llvm/Transforms/Utils/ |
H A D | Cloning.h | 162 explicit InlineFunctionInfo(CallGraph *cg = 0, const DataLayout *td = 0) 163 : CG(cg), TD(td) {}
|
/freebsd-9.3-release/sys/kern/ |
H A D | subr_smp.c | 642 struct cpu_group *cg; local 648 cg = top; 650 if (!CPU_OVERLAP(&cg->cg_mask, &mask)) 652 if (cg->cg_children == 0) 653 return (cg); 654 children = cg->cg_children; 655 for (i = 0, cg = cg->cg_child; i < children; cg++, i++) 656 if (CPU_OVERLAP(&cg [all...] |
H A D | sched_ule.c | 324 struct cpu_group *cg, int indent); 594 static __inline int cpu_search(const struct cpu_group *cg, struct cpu_search *low, 596 int cpu_search_lowest(const struct cpu_group *cg, struct cpu_search *low); 597 int cpu_search_highest(const struct cpu_group *cg, struct cpu_search *high); 598 int cpu_search_both(const struct cpu_group *cg, struct cpu_search *low, 613 cpu_search(const struct cpu_group *cg, struct cpu_search *low, argument 624 cpumask = cg->cg_mask; 635 for (i = cg->cg_children, cpu = mp_maxid; ; ) { 647 child = &cg->cg_child[i - 1]; 729 cpu_search_lowest(const struct cpu_group *cg, struc argument 735 cpu_search_highest(const struct cpu_group *cg, struct cpu_search *high) argument 741 cpu_search_both(const struct cpu_group *cg, struct cpu_search *low, struct cpu_search *high) argument 753 sched_lowest(const struct cpu_group *cg, cpuset_t mask, int pri, int maxload, int prefer) argument 771 sched_highest(const struct cpu_group *cg, cpuset_t mask, int minload) argument 783 sched_balance_group(struct cpu_group *cg) argument 942 struct cpu_group *cg; local 1169 struct cpu_group *cg, *ccg; local 2715 sysctl_kern_sched_topology_spec_internal(struct sbuf *sb, struct cpu_group *cg, int indent) argument [all...] |