/freebsd-11.0-release/sys/dev/nand/ |
H A D | nand.c | 111 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 D | nand_cdev.c | 62 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 D | nand_geom.c | 140 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 D | nand_bbt.c | 74 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.0-release/contrib/llvm/include/llvm-c/ |
H A D | lto.h | 200 * Loads an object file into the same context as \c cg. The module is safe to 209 const char *path, lto_code_gen_t cg); 367 * \c cg and \c mod must both be in the same context. See \a 374 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod); 380 * \c cg and \c mod must both be in the same context. 385 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod); 394 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model); 404 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model); 413 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu); 423 lto_codegen_set_assembler_path(lto_code_gen_t cg, cons [all...] |
/freebsd-11.0-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, 356 int i, error, cg; local 372 cg = ext2_dirpref(pip); 373 if (fs->e2fs_contigdirs[cg] < 255) 374 fs->e2fs_contigdirs[cg]++; 376 cg = ino_to_cg(fs, pip->i_number); 377 if (fs->e2fs_contigdirs[cg] > 449 int cg, prefcg, 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 D | ext2_subr.c | 135 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) { 168 fs->e2fs_clustersum[cg].cs_init = 1; 230 fs->e2fs_maxcluster[cg] = i;
|
/freebsd-11.0-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-11.0-release/sbin/fsck_ffs/ |
H A D | pass4.c | 55 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 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 | 222 cgget(int cg) argument 225 struct cg *cgp; 232 cgbp = &cgbufs[cg]; 239 getblk(&cgblk, cgtod(&sblock, cg), sblock.fs_cgsize); 244 getblk(cgbp, cgtod(&sblock, cg), sblock.fs_cgsize); 688 check_cgmagic(int cg, struct bufarea *cgbp) argument 690 struct cg *cgp = cgbp->b_un.b_cg; 706 pfatal("CYLINDER GROUP %d: BAD MAGIC NUMBER", cg); 718 cgp->cg_cgx = cg; 721 if (cgbase(&sblock, cg) 759 int i, j, k, cg, baseblk; local [all...] |
/freebsd-11.0-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-11.0-release/sys/ufs/ufs/ |
H A D | ufs_gjournal.c | 56 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)); 90 cgp = (struct cg *)bp->b_data; 100 ACTIVECLEAR(fs, cg);
|
/freebsd-11.0-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-11.0-release/sbin/fsirand/ |
H A D | fsirand.c | 120 int i, devfd, n, cg; local 170 for (cg = 0; cg < (int)sblock->fs_ncg; cg++) { 171 dblk = fsbtodb(sblock, cgsblock(sblock, cg)); 177 cg + 1, device, (n < SBLOCKSIZE) ? "short write" 184 cg + 1, device); 189 cg + 1, device); 231 for (cg = 0, inumber = 0; cg < (in [all...] |
/freebsd-11.0-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, 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 1155 int cg, prefcg, dirsize, cgsize; local 1305 u_int cg, inocg; local 1410 u_int cg, inocg; local 1964 getinobuf(struct inode *ip, u_int cg, u_int32_t cginoblk, int gbflags) argument 2162 u_int cg; local 2469 u_int cg; local 2540 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...] |
/freebsd-11.0-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-11.0-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-11.0-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-11.0-release/sys/kern/ |
H A D | sched_ule.c | 333 struct cpu_group *cg, int indent); 645 static __always_inline int cpu_search(const struct cpu_group *cg, 647 int __noinline cpu_search_lowest(const struct cpu_group *cg, 649 int __noinline cpu_search_highest(const struct cpu_group *cg, 651 int __noinline cpu_search_both(const struct cpu_group *cg, 666 cpu_search(const struct cpu_group *cg, struct cpu_search *low, argument 677 cpumask = cg->cg_mask; 688 for (i = cg->cg_children, cpu = mp_maxid; ; ) { 700 child = &cg->cg_child[i - 1]; 781 cpu_search_lowest(const struct cpu_group *cg, struc argument 787 cpu_search_highest(const struct cpu_group *cg, struct cpu_search *high) argument 793 cpu_search_both(const struct cpu_group *cg, struct cpu_search *low, struct cpu_search *high) argument 805 sched_lowest(const struct cpu_group *cg, cpuset_t mask, int pri, int maxload, int prefer) argument 823 sched_highest(const struct cpu_group *cg, cpuset_t mask, int minload) argument 835 sched_balance_group(struct cpu_group *cg) argument 989 struct cpu_group *cg; local 1219 struct cpu_group *cg, *ccg; local 2794 sysctl_kern_sched_topology_spec_internal(struct sbuf *sb, struct cpu_group *cg, int indent) argument [all...] |
/freebsd-11.0-release/cddl/usr.sbin/dtrace/tests/common/ |
H A D | Makefile | 15 cg \
|