Searched refs:gp (Results 1 - 25 of 269) sorted by relevance

1234567891011

/freebsd-9.3-release/contrib/nvi/ip/
H A Dip_screen.c34 GS *gp; local
37 gp = sp->gp;
41 if (F_ISSET(gp, G_SRESTART)) {
42 if (ip_quit(gp))
44 F_CLR(gp, G_SRESTART);
74 ip_quit(gp)
75 GS *gp;
81 rval = ip_term_end(gp);
83 ipp = GIPP(gp);
[all...]
H A Dip_main.c34 ip_main(argc, argv, gp, ip_arg)
37 GS *gp;
45 if ((ipp = ip_init(gp, ip_arg)) == NULL)
49 if ((OG_D_STR(gp, GO_TERM) =
50 OG_STR(gp, GO_TERM) = strdup("ip_curses")) == NULL)
51 perr(gp->progname, NULL);
67 rval = editor(gp, argc, argv);
70 (void)ip_quit(gp);
75 free(gp);
86 ip_init(gp, ip_ar
[all...]
/freebsd-9.3-release/contrib/nvi/cl/
H A Dcl_main.c59 GS *gp; local
69 __global_list = gp = gs_init(argv[0]);
109 exit (ip_main(argc, argv, gp, ip_arg));
115 clp = cl_init(gp);
125 term_init(gp->progname, ttype);
128 if ((OG_D_STR(gp, GO_TERM) =
129 OG_STR(gp, GO_TERM) = strdup(ttype)) == NULL)
130 perr(gp->progname, NULL);
137 OG_VAL(gp, GO_LINES) = OG_D_VAL(gp, GO_LINE
197 GS *gp; local
[all...]
/freebsd-9.3-release/contrib/nvi/tk/
H A Dtk_main.c54 GS *gp; local
65 __global_list = gp = gs_init(argv[0]);
68 if (tcl_init(gp))
141 tkp = GTKP(gp);
146 if ((OG_D_STR(gp, GO_TERM) =
147 OG_STR(gp, GO_TERM) = strdup("tkterm")) == NULL)
148 perr(gp->progname, NULL);
155 OG_VAL(gp, GO_LINES) = OG_D_VAL(gp, GO_LINES) = rows;
156 OG_VAL(gp, GO_COLUMN
196 GS *gp; local
[all...]
H A Dtk_screen.c73 tk_quit(gp)
74 GS *gp;
80 rval = tk_term_end(gp);
82 tkp = GTKP(gp);
/freebsd-9.3-release/contrib/nvi/common/
H A Dmain.c53 editor(gp, argc, argv)
54 GS *gp;
73 if (gp->scr_busy == NULL)
74 gp->scr_busy = vs_busy;
76 if (gp->scr_msg == NULL)
77 gp->scr_msg = vs_msg;
80 CIRCLEQ_INIT(&gp->dq);
81 CIRCLEQ_INIT(&gp->hq);
82 LIST_INIT(&gp->ecq);
83 LIST_INSERT_HEAD(&gp
[all...]
H A Dkey.c107 GS *gp; local
111 gp = sp->gp;
140 for (gp->max_special = 0, kp = keylist, cnt = nkeylist; cnt--; ++kp) {
141 if (gp->max_special < kp->value)
142 gp->max_special = kp->value;
144 gp->special_key[kp->ch] = kp->value;
150 gp->noprint = ch;
153 if (ch != gp->noprint) {
179 if (sp->gp
210 GS *gp; local
356 GS *gp; local
408 GS *gp; local
536 GS *gp; local
751 GS *gp; local
827 GS *gp; local
845 GS *gp; local
[all...]
H A Doptions.h29 (sp)->gp->opts[(sp)->opts[(o)].o_cur.val].fld : \
33 #define OG_CLR(gp, o) ((gp)->opts[(o)].o_cur.val) = 0
34 #define OG_SET(gp, o) ((gp)->opts[(o)].o_cur.val) = 1
35 #define OG_STR(gp, o) ((gp)->opts[(o)].o_cur.str)
36 #define OG_VAL(gp, o) ((gp)->opts[(o)].o_cur.val)
37 #define OG_ISSET(gp,
[all...]
/freebsd-9.3-release/contrib/nvi/vi/
H A Dvs_msg.c64 GS *gp; local
75 gp = sp->gp;
95 (void)gp->scr_cursor(sp, &vip->busy_oldy, &vip->busy_oldx);
99 (void)gp->scr_move(sp, LASTLINE(sp), 0);
100 (void)gp->scr_addstr(sp, p, len);
101 (void)gp->scr_cursor(sp, &notused, &vip->busy_fx);
102 (void)gp->scr_clrtoeol(sp);
103 (void)gp->scr_move(sp, LASTLINE(sp), vip->busy_fx);
115 (void)gp
167 GS *gp; local
237 GS *gp; local
404 GS *gp; local
531 GS *gp; local
657 GS *gp; local
766 GS *gp; local
805 GS *gp; local
874 GS *gp; local
897 GS *gp; local
[all...]
/freebsd-9.3-release/sys/geom/
H A Dgeom_fox.c76 struct g_geom *gp; local
85 gp = arg;
86 sc = gp->softc;
93 sc->opath->provider->name, gp->name);
108 sc->opath->provider->name, gp->name);
111 if (LIST_EMPTY(&gp->consumer)) {
113 g_wither_geom(gp, ENXIO);
126 sc->opath->provider->name, gp->name);
130 cp1 = LIST_FIRST(&gp->consumer);
133 cp1 = LIST_FIRST(&gp
165 struct g_geom *gp; local
204 struct g_geom *gp; local
235 struct g_geom *gp; local
288 struct g_geom *gp; local
348 struct g_geom *gp, *gp2; local
452 g_fox_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) argument
[all...]
H A Dgeom_subr.c84 struct g_geom *gp; local
128 LIST_FOREACH(gp, &mp2->geom, geom) {
129 LIST_FOREACH(pp, &gp->provider, provider) {
140 struct g_geom *gp; local
149 LIST_FOREACH(gp, &mp->geom, geom) {
151 LIST_FOREACH(pp, &gp->provider, provider)
156 LIST_FOREACH(cp, &gp->consumer, consumer)
162 if (gp->flags & G_GEOM_WITHER) {
181 LIST_FOREACH(gp, &mp->geom, geom) {
182 error = mp->destroy_geom(NULL, mp, gp);
264 struct g_geom *gp; local
333 struct g_geom *gp; local
367 g_destroy_geom(struct g_geom *gp) argument
390 g_wither_geom(struct g_geom *gp, int error) argument
422 g_wither_geom_close(struct g_geom *gp, int error) argument
443 struct g_geom *gp, *gp2; local
477 g_new_consumer(struct g_geom *gp) argument
501 struct g_geom *gp; local
556 g_new_providerf(struct g_geom *gp, const char *fmt, ...) argument
608 struct g_geom *gp; local
629 struct g_geom *gp; local
672 redo_rank(struct g_geom *gp) argument
950 struct g_geom *gp; local
1130 struct g_geom *gp; local
1194 geom_flags_to_string(struct g_geom *gp, char *str, size_t size) argument
1280 db_show_geom_geom(int indent, struct g_geom *gp) argument
1324 struct g_geom *gp; local
[all...]
H A Dgeom_dump.c68 g_confdot_geom(struct sbuf *sb, struct g_geom *gp) argument
74 gp, gp->class->name, gp->name, gp->rank);
75 LIST_FOREACH(cp, &gp->consumer, consumer) {
77 sbuf_printf(sb, "z%p -> z%p;\n", gp, cp);
80 LIST_FOREACH(pp, &gp->provider, provider) {
82 sbuf_printf(sb, "z%p -> z%p;\n", pp, gp);
89 struct g_geom *gp; local
112 g_conftxt_geom(struct sbuf *sb, struct g_geom *gp, int level) argument
133 struct g_geom *gp; local
229 g_conf_geom(struct sbuf *sb, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) argument
262 g_conf_class(struct sbuf *sb, struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) argument
279 g_conf_specific(struct sbuf *sb, struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp) argument
[all...]
H A Dgeom_mbr.c98 g_mbr_modify(struct g_geom *gp, struct g_mbr_softc *ms, u_char *sec0, int len __unused) argument
149 error = g_slice_config(gp, i, G_SLICE_CONFIG_CHECK,
151 ms->sectorsize, "%ss%d", gp->name, 1 + i);
157 g_slice_config(gp, i, G_SLICE_CONFIG_SET,
159 ms->sectorsize, "%ss%d", gp->name, 1 + i);
177 struct g_geom *gp; local
183 gp = pp->geom;
184 gsp = gp->softc;
195 cp = LIST_FIRST(&gp->consumer);
202 error = g_mbr_modify(gp, m
220 struct g_geom *gp; local
245 g_mbr_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp __unused, struct g_provider *pp) argument
265 struct g_geom *gp; local
327 struct g_geom *gp; local
391 struct g_geom *gp; local
409 g_mbrext_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp __unused, struct g_provider *pp) argument
429 struct g_geom *gp; local
[all...]
/freebsd-9.3-release/sys/geom/bde/
H A Dg_bde.c77 struct g_geom *gp; local
84 gp = cp->geom;
85 sc = gp->softc;
86 gp->flags |= G_GEOM_WITHER;
87 LIST_FOREACH(pp, &gp->provider, provider)
96 struct g_geom *gp; local
99 gp = pp->geom;
100 cp = LIST_FIRST(&gp->consumer);
116 struct g_geom *gp; local
128 gp
220 g_bde_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) argument
256 struct g_geom *gp; local
[all...]
/freebsd-9.3-release/contrib/nvi/ex/
H A Dex_tcl.c47 GS *gp; local
52 gp = sp->gp;
53 if (gp->tcl_interp == NULL && tcl_init(gp))
70 if (Tcl_Eval(gp->tcl_interp, buf) == TCL_OK &&
71 Tcl_Eval(gp->tcl_interp, cmdp->argv[0]->bp) == TCL_OK)
74 msgq(sp, M_ERR, "Tcl: %s", ((Tcl_Interp *)gp->tcl_interp)->result);
/freebsd-9.3-release/sys/geom/mountver/
H A Dg_mountver.c62 static int g_mountver_destroy(struct g_geom *gp, boolean_t force);
65 struct g_geom *gp);
69 struct g_geom *gp, struct g_consumer *cp, struct g_provider *pp);
86 struct g_geom *gp; local
100 gp = bp->bio_from->geom;
103 KASSERT(pbp->bio_to == LIST_FIRST(&gp->provider),
113 struct g_geom *gp; local
116 gp = bp->bio_to->geom;
125 g_io_request(cbp, LIST_FIRST(&gp->consumer));
132 struct g_geom *gp; local
143 g_mountver_send_queued(struct g_geom *gp) argument
160 g_mountver_discard_queued(struct g_geom *gp) argument
180 struct g_geom *gp; local
206 struct g_geom *gp; local
232 struct g_geom *gp; local
305 g_mountver_destroy(struct g_geom *gp, boolean_t force) argument
339 g_mountver_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) argument
387 struct g_geom *gp; local
400 struct g_geom *gp; local
461 g_mountver_ident_matches(struct g_geom *gp) argument
502 struct g_geom *gp; local
578 g_mountver_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp, struct g_provider *pp) argument
597 struct g_geom *gp, *gp2; local
[all...]
/freebsd-9.3-release/sys/geom/uncompress/
H A Dg_uncompress.c110 g_uncompress_softc_free(struct g_uncompress_softc *sc, struct g_geom *gp) argument
113 if (gp != NULL) {
115 gp->name, sc->req_total, sc->req_cached);
169 struct g_geom *gp; local
179 gp = pp->geom;
180 cp = LIST_FIRST(&gp->consumer);
182 sc = gp->softc;
183 DPRINTF(("%s: done\n", gp->name));
218 gp->name, bp->bio_length, bp->bio_completed, start_blk, pos, upos,
230 gp
314 struct g_geom *gp; local
404 struct g_geom *gp; local
420 struct g_geom *gp; local
435 struct g_geom *gp; local
453 struct g_geom *gp; local
630 g_uncompress_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) argument
[all...]
/freebsd-9.3-release/sys/geom/multipath/
H A Dg_multipath.c107 g_multipath_good(struct g_geom *gp) argument
112 LIST_FOREACH(cp, &gp->consumer, consumer) {
124 struct g_geom *gp; local
126 gp = cp->geom;
127 sc = gp->softc;
129 if (g_multipath_good(gp) == 0 && sc->sc_ndisks > 0) {
130 LIST_FOREACH(lcp, &gp->consumer, consumer) {
145 LIST_FOREACH(lcp, &gp->consumer, consumer) {
161 g_multipath_choose(struct g_geom *gp, struct bio *bp) argument
166 sc = gp
187 struct g_geom *gp; local
243 struct g_geom *gp; local
305 struct g_geom *gp; local
383 struct g_geom *gp; local
416 struct g_geom *gp; local
457 g_multipath_add_disk(struct g_geom *gp, struct g_provider *pp) argument
543 g_multipath_destroy(struct g_geom *gp) argument
585 g_multipath_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) argument
593 g_multipath_rotate(struct g_geom *gp) argument
675 struct g_geom *gp, *gp1; local
800 struct g_geom *gp; local
863 struct g_geom *gp; local
936 struct g_geom *gp; local
964 struct g_geom *gp; local
1024 struct g_geom *gp; local
1086 struct g_geom *gp; local
1136 struct g_geom *gp; local
1190 struct g_geom *gp; local
1206 struct g_geom *gp; local
1230 struct g_geom *gp; local
1280 struct g_geom *gp; local
1306 struct g_geom *gp; local
1387 g_multipath_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp, struct g_provider *pp) argument
[all...]
/freebsd-9.3-release/sys/geom/uzip/
H A Dg_uzip.c90 g_uzip_softc_free(struct g_uzip_softc *sc, struct g_geom *gp) argument
92 if (gp != NULL) {
94 gp->name, sc->req_total, sc->req_cached);
126 struct g_geom *gp; local
134 gp = pp->geom;
135 cp = LIST_FIRST(&gp->consumer);
137 sc = gp->softc;
138 DPRINTF(("%s: done\n", gp->name));
159 gp->name, start_blk, pos, upos,
185 gp
230 struct g_geom *gp; local
312 struct g_geom *gp; local
326 struct g_geom *gp; local
342 struct g_geom *gp; local
361 struct g_geom *gp; local
500 g_uzip_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) argument
[all...]
/freebsd-9.3-release/sys/sparc64/sparc64/
H A Dprof_machdep.c69 startguprof(struct gmonparam *gp) argument
72 gp->profrate = tick_freq;
78 stopguprof(struct gmonparam *gp) argument
/freebsd-9.3-release/sys/i386/isa/
H A Dprof_machdep.c286 startguprof(gp)
287 struct gmonparam *gp;
300 gp->profrate = freq >> 1;
303 gp->profrate = i8254_freq << CPUTIME_CLOCK_I8254_SHIFT;
312 gp->profrate = 1000000;
314 saved_gmp = *gp;
317 gp->cputime_overhead = 0;
318 gp->mcount_overhead = 0;
319 gp->mcount_post_overhead = 0;
320 gp
[all...]
/freebsd-9.3-release/sys/geom/sched/
H A Dg_sched.c36 * an existing provider pp and its original geom gp
38 * [pp --> gp ..]
43 * [pp --> sched_gp --> cp] [new_pp --> gp ... ]
129 static int g_sched_destroy(struct g_geom *gp, boolean_t force);
131 struct g_class *mp, struct g_geom *gp);
137 struct g_geom *gp, struct g_consumer *cp, struct g_provider *pp);
229 g_sched_lock(struct g_geom *gp) argument
231 struct g_sched_softc *sc = gp->softc;
237 g_sched_unlock(struct g_geom *gp) argument
239 struct g_sched_softc *sc = gp
282 g_sched_forced_dispatch(struct g_geom *gp) argument
302 g_sched_dispatch(struct g_geom *gp) argument
378 g_sched_get_class(struct g_geom *gp, struct bio *bp) argument
420 g_sched_put_class(struct g_geom *gp, void *priv) argument
439 g_sched_hash_fini(struct g_geom *gp, struct g_hash *hp, u_long mask, struct g_gsched *gsp, void *data) argument
473 g_sched_flush_classes(struct g_geom *gp) argument
502 g_sched_wait_pending(struct g_geom *gp) argument
516 g_sched_remove_locked(struct g_geom *gp, struct g_gsched *gsp) argument
556 g_sched_remove(struct g_geom *gp, struct g_gsched *gsp) argument
651 struct g_geom *gp, *gp_tmp; local
801 struct g_geom *gp = bio->bio_caller2; local
824 struct g_geom *gp = bp->bio_to->geom; local
900 struct g_geom *gp; local
931 g_insert_proxy(struct g_geom *gp, struct g_provider *newpp, struct g_geom *dstgp, struct g_provider *pp, struct g_consumer *cp) argument
989 struct g_geom *gp, *dstgp; local
1086 struct g_geom *gp; local
1139 g_detach_proxy(struct g_geom *gp) argument
1173 g_reparent_provider(struct g_provider *pp, struct g_geom *gp, struct g_provider *newpp) argument
1189 struct g_geom *gp = oldpp->geom; local
1207 g_destroy_proxy(struct g_geom *gp, struct g_provider *oldpp) argument
1243 g_sched_destroy(struct g_geom *gp, boolean_t force) argument
1354 g_sched_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) argument
1587 struct g_geom *gp; local
1792 struct g_geom *gp; local
1805 struct g_geom *gp; local
1876 g_sched_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp, struct g_provider *pp) argument
[all...]
/freebsd-9.3-release/contrib/gcc/config/ia64/
H A Dunwind-ia64.h38 unsigned long *gp)
/freebsd-9.3-release/sys/amd64/amd64/
H A Dprof_machdep.c311 startguprof(gp)
312 struct gmonparam *gp;
324 gp->profrate = freq >> 1;
327 gp->profrate = i8254_freq << CPUTIME_CLOCK_I8254_SHIFT;
336 gp->profrate = 1000000;
338 saved_gmp = *gp;
341 gp->cputime_overhead = 0;
342 gp->mcount_overhead = 0;
343 gp->mcount_post_overhead = 0;
344 gp
[all...]
/freebsd-9.3-release/sys/dev/cxgb/ulp/iw_cxgb/
H A Diw_cxgb_hal.h200 struct gen_pool *gp; local
202 gp = malloc(sizeof(struct gen_pool), M_DEVBUF, M_NOWAIT);
203 if (gp == NULL)
206 memset(gp, 0, sizeof(struct gen_pool));
207 gp->gen_list = blist_create(len >> chunk_shift, M_NOWAIT);
208 if (gp->gen_list == NULL) {
209 free(gp, M_DEVBUF);
212 blist_free(gp->gen_list, 0, len >> chunk_shift);
213 gp->gen_base = base;
214 gp
221 gen_pool_alloc(struct gen_pool *gp, int size) argument
238 gen_pool_free(struct gen_pool *gp, daddr_t address, int size) argument
251 gen_pool_destroy(struct gen_pool *gp) argument
[all...]

Completed in 118 milliseconds

1234567891011