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

123

/freebsd-10.0-release/sys/dev/nand/
H A Dnand.c120 struct chip_geom *cg; local
122 cg = &chip->chip_geom;
124 init_chip_geom(cg, params->luns, params->blocks_per_lun,
139 struct chip_geom *cg; local
142 cg = &chip->chip_geom;
146 init_chip_geom(cg, 1, blocks_per_chip,
164 struct chip_geom *cg; local
167 cg = &chip->chip_geom;
168 blks = cg->blks_per_lun * cg
197 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
240 nand_row_to_blkpg(struct chip_geom *cg, uint32_t row, uint32_t *lun, uint32_t *blk, uint32_t *pg) argument
261 page_to_row(struct chip_geom *cg, uint32_t page, uint32_t *row) argument
284 struct chip_geom* cg; local
299 struct chip_geom *cg; local
460 offset_to_page(struct chip_geom *cg, uint32_t offset) argument
470 struct chip_geom *cg; local
567 struct chip_geom *cg; local
624 struct chip_geom *cg; local
706 struct chip_geom *cg; local
796 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-10.0-release/sys/fs/ext2fs/
H A Dext2_alloc.c89 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
886 ext2_nodealloccg(struct inode *ip, int cg, daddr_t ipref, int mode) argument
964 int cg, error; local
1011 int error, cg; local
[all...]
H A Dext2_subr.c167 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-10.0-release/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
432 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-10.0-release/contrib/llvm/include/llvm-c/
H A Dlto.h212 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
221 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
229 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
236 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
244 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path);
250 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
259 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
267 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
278 lto_codegen_compile(lto_code_gen_t cg, size_t* length);
285 lto_codegen_compile_to_file(lto_code_gen_t cg, cons
[all...]
/freebsd-10.0-release/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;
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 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...]
H A Dfsutil.c203 cgget(int cg) argument
206 struct cg *cgp;
213 cgbp = &cgbufs[cg];
220 getblk(&cgblk, cgtod(&sblock, cg), sblock.fs_cgsize);
225 getblk(cgbp, cgtod(&sblock, cg), sblock.fs_cgsize);
666 check_cgmagic(int cg, struct bufarea *cgbp) argument
668 struct cg *cgp = cgbp->b_un.b_cg;
684 pfatal("CYLINDER GROUP %d: BAD MAGIC NUMBER", cg);
696 cgp->cg_cgx = cg;
700 if (cgbase(&sblock, cg)
738 int i, j, k, cg, baseblk; local
[all...]
/freebsd-10.0-release/usr.sbin/pmcstat/
H A Dpmcpl_callgraph.c92 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-10.0-release/sys/ufs/ufs/
H A Dufs_gjournal.c55 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-10.0-release/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-10.0-release/sbin/fsirand/
H A Dfsirand.c121 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-10.0-release/sys/ufs/ffs/
H A Dffs_alloc.c101 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
977 u_int cg; local
1096 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
2102 u_int cg; local
2409 u_int cg; local
2480 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.
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...]
/freebsd-10.0-release/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-10.0-release/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-10.0-release/contrib/binutils/gprof/
H A Dmips.c55 indirect_child.cg.prop.fract = 1.0;
56 indirect_child.cg.cyc.head = &indirect_child;
/freebsd-10.0-release/contrib/llvm/include/llvm/Transforms/Utils/
H A DCloning.h161 explicit InlineFunctionInfo(CallGraph *cg = 0, const DataLayout *td = 0)
162 : CG(cg), TD(td) {}
/freebsd-10.0-release/sys/kern/
H A Dsched_ule.c335 struct cpu_group *cg, int indent);
629 static __inline int cpu_search(const struct cpu_group *cg, struct cpu_search *low,
631 int cpu_search_lowest(const struct cpu_group *cg, struct cpu_search *low);
632 int cpu_search_highest(const struct cpu_group *cg, struct cpu_search *high);
633 int cpu_search_both(const struct cpu_group *cg, struct cpu_search *low,
648 cpu_search(const struct cpu_group *cg, struct cpu_search *low, argument
659 cpumask = cg->cg_mask;
670 for (i = cg->cg_children, cpu = mp_maxid; ; ) {
682 child = &cg->cg_child[i - 1];
764 cpu_search_lowest(const struct cpu_group *cg, struc argument
770 cpu_search_highest(const struct cpu_group *cg, struct cpu_search *high) argument
776 cpu_search_both(const struct cpu_group *cg, struct cpu_search *low, struct cpu_search *high) argument
788 sched_lowest(const struct cpu_group *cg, cpuset_t mask, int pri, int maxload, int prefer) argument
806 sched_highest(const struct cpu_group *cg, cpuset_t mask, int minload) argument
822 sched_both(const struct cpu_group *cg, cpuset_t mask, int *lowcpu, int *highcpu) argument
842 sched_balance_group(struct cpu_group *cg) argument
999 struct cpu_group *cg; local
1226 struct cpu_group *cg, *ccg; local
2779 sysctl_kern_sched_topology_spec_internal(struct sbuf *sb, struct cpu_group *cg, int indent) argument
[all...]

Completed in 287 milliseconds

123