Home
last modified time | relevance | path

Searched refs:gp (Results 1 – 25 of 331) sorted by relevance

12345678910>>...14

/freebsd-11-stable/contrib/nvi/cl/
HDcl_main.c56 GS *gp; in main() local
66 __global_list = gp = gs_init(argv[0]); in main()
86 clp = cl_init(gp); in main()
96 term_init(gp->progname, ttype); in main()
99 if ((OG_D_STR(gp, GO_TERM) = in main()
100 OG_STR(gp, GO_TERM) = strdup(ttype)) == NULL) in main()
101 perr(gp->progname, NULL); in main()
108 OG_VAL(gp, GO_LINES) = OG_D_VAL(gp, GO_LINES) = rows; in main()
109 OG_VAL(gp, GO_COLUMNS) = OG_D_VAL(gp, GO_COLUMNS) = cols; in main()
115 if (sig_init(gp, NULL)) in main()
[all …]
/freebsd-11-stable/contrib/nvi/common/
HDmain.c45 GS *gp, in editor() argument
63 if (gp->scr_busy == NULL) in editor()
64 gp->scr_busy = vs_busy; in editor()
66 if (gp->scr_msg == NULL) in editor()
67 gp->scr_msg = vs_msg; in editor()
68 gp->catd = (nl_catd)-1; in editor()
71 TAILQ_INIT(gp->dq); in editor()
72 TAILQ_INIT(gp->hq); in editor()
73 SLIST_INIT(gp->ecq); in editor()
74 SLIST_INSERT_HEAD(gp->ecq, &gp->excmd, q); in editor()
[all …]
HDkey.c106 GS *gp; in v_key_init() local
110 gp = sp->gp; in v_key_init()
124 gp->special_key[kp->ch] = kp->value; in v_key_init()
129 gp->noprint = ch; in v_key_init()
132 if (ch != gp->noprint) { in v_key_init()
158 if (sp->gp->scr_keyval(sp, name, &ch, &dne)) in v_keyval()
189 GS *gp; in v_key_ilookup() local
192 for (gp = sp->gp, ch = 0;; ++ch) { in v_key_ilookup()
193 for (p = gp->cname[ch].name, t = v_key_name(sp, ch), in v_key_ilookup()
194 len = gp->cname[ch].len = sp->clen; len--;) in v_key_ilookup()
[all …]
HDoptions.h29 (sp)->gp->opts[(sp)->opts[(o)].o_cur.val].fld : \
33 #define OG_CLR(gp, o) ((gp)->opts[(o)].o_cur.val) = 0 argument
34 #define OG_SET(gp, o) ((gp)->opts[(o)].o_cur.val) = 1 argument
35 #define OG_STR(gp, o) ((gp)->opts[(o)].o_cur.str) argument
36 #define OG_VAL(gp, o) ((gp)->opts[(o)].o_cur.val) argument
37 #define OG_ISSET(gp, o) OG_VAL(gp, o) argument
39 #define OG_D_STR(gp, o) ((gp)->opts[(o)].o_def.str) argument
40 #define OG_D_VAL(gp, o) ((gp)->opts[(o)].o_def.val) argument
/freebsd-11-stable/contrib/nvi/vi/
HDvs_msg.c61 GS *gp; in vs_busy() local
73 gp = sp->gp; in vs_busy()
93 (void)gp->scr_cursor(sp, &vip->busy_oldy, &vip->busy_oldx); in vs_busy()
97 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_busy()
98 (void)gp->scr_addstr(sp, p, len); in vs_busy()
99 (void)gp->scr_cursor(sp, &notused, &vip->busy_fx); in vs_busy()
100 (void)gp->scr_clrtoeol(sp); in vs_busy()
101 (void)gp->scr_move(sp, LASTLINE(sp), vip->busy_fx); in vs_busy()
113 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_busy()
114 (void)gp->scr_clrtoeol(sp); in vs_busy()
[all …]
HDvs_split.c33 static void vs_insert(SCR *sp, GS *gp);
48 GS *gp; in vs_split() local
53 gp = sp->gp; in vs_split()
175 vs_insert(new, sp->gp); in vs_split()
178 (void)gp->scr_split(sp, new); in vs_split()
210 GS *gp; in vs_vsplit() local
213 gp = sp->gp; in vs_vsplit()
263 vs_insert(new, sp->gp); in vs_vsplit()
266 (void)gp->scr_split(sp, new); in vs_vsplit()
298 vs_insert(SCR *sp, GS *gp) in vs_insert() argument
[all …]
/freebsd-11-stable/sys/geom/mountver/
HDg_mountver.c63 static int g_mountver_destroy(struct g_geom *gp, boolean_t force);
66 struct g_geom *gp);
70 struct g_geom *gp, struct g_consumer *cp, struct g_provider *pp);
99 struct g_geom *gp; in g_mountver_done() local
104 gp = cp->geom; in g_mountver_done()
117 KASSERT(pbp->bio_to == LIST_FIRST(&gp->provider), in g_mountver_done()
124 sc = gp->softc; in g_mountver_done()
136 g_mountver_send(struct g_geom *gp, struct bio *bp) in g_mountver_send() argument
138 struct g_mountver_softc *sc = gp->softc; in g_mountver_send()
149 cp = LIST_FIRST(&gp->consumer); in g_mountver_send()
[all …]
/freebsd-11-stable/sys/geom/
HDgeom_subr.c86 struct g_geom *gp; in g_load_class() local
130 LIST_FOREACH(gp, &mp2->geom, geom) { in g_load_class()
131 LIST_FOREACH(pp, &gp->provider, provider) { in g_load_class()
142 struct g_geom *gp; in g_unload_class() local
151 LIST_FOREACH(gp, &mp->geom, geom) { in g_unload_class()
153 LIST_FOREACH(pp, &gp->provider, provider) in g_unload_class()
158 LIST_FOREACH(cp, &gp->consumer, consumer) in g_unload_class()
164 if (gp->flags & G_GEOM_WITHER) { in g_unload_class()
183 LIST_FOREACH(gp, &mp->geom, geom) { in g_unload_class()
184 error = mp->destroy_geom(NULL, mp, gp); in g_unload_class()
[all …]
HDgeom_fox.c78 struct g_geom *gp; in g_fox_select_path() local
87 gp = arg; in g_fox_select_path()
88 sc = gp->softc; in g_fox_select_path()
95 sc->opath->provider->name, gp->name); in g_fox_select_path()
110 sc->opath->provider->name, gp->name); in g_fox_select_path()
113 if (LIST_EMPTY(&gp->consumer)) { in g_fox_select_path()
115 g_wither_geom(gp, ENXIO); in g_fox_select_path()
128 sc->opath->provider->name, gp->name); in g_fox_select_path()
132 cp1 = LIST_FIRST(&gp->consumer); in g_fox_select_path()
135 cp1 = LIST_FIRST(&gp->consumer); in g_fox_select_path()
[all …]
HDgeom_dump.c70 g_confdot_geom(struct sbuf *sb, struct g_geom *gp) in g_confdot_geom() argument
76 gp, gp->class->name, gp->name, gp->rank); in g_confdot_geom()
77 LIST_FOREACH(cp, &gp->consumer, consumer) { in g_confdot_geom()
79 sbuf_printf(sb, "z%p -> z%p;\n", gp, cp); in g_confdot_geom()
82 LIST_FOREACH(pp, &gp->provider, provider) { in g_confdot_geom()
84 sbuf_printf(sb, "z%p -> z%p;\n", pp, gp); in g_confdot_geom()
91 struct g_geom *gp; in g_confdot_class() local
93 LIST_FOREACH(gp, &mp->geom, geom) in g_confdot_class()
94 g_confdot_geom(sb, gp); in g_confdot_class()
114 g_conftxt_geom(struct sbuf *sb, struct g_geom *gp, int level) in g_conftxt_geom() argument
[all …]
HDgeom_mbr.c100 g_mbr_modify(struct g_geom *gp, struct g_mbr_softc *ms, u_char *sec0, int len __unused) in g_mbr_modify() argument
151 error = g_slice_config(gp, i, G_SLICE_CONFIG_CHECK, in g_mbr_modify()
153 ms->sectorsize, "%ss%d", gp->name, 1 + i); in g_mbr_modify()
159 g_slice_config(gp, i, G_SLICE_CONFIG_SET, in g_mbr_modify()
161 ms->sectorsize, "%ss%d", gp->name, 1 + i); in g_mbr_modify()
179 struct g_geom *gp; in g_mbr_ioctl() local
185 gp = pp->geom; in g_mbr_ioctl()
186 gsp = gp->softc; in g_mbr_ioctl()
196 cp = LIST_FIRST(&gp->consumer); in g_mbr_ioctl()
203 error = g_mbr_modify(gp, ms, data, 512); in g_mbr_ioctl()
[all …]
HDgeom_sunlabel.c71 g_sunlabel_modify(struct g_geom *gp, struct g_sunlabel_softc *ms, u_char *sec0) in g_sunlabel_modify() argument
87 error = g_slice_config(gp, i, G_SLICE_CONFIG_CHECK, in g_sunlabel_modify()
91 "%s%c", gp->name, 'a' + i); in g_sunlabel_modify()
98 g_slice_config(gp, i, G_SLICE_CONFIG_SET, in g_sunlabel_modify()
102 "%s%c", gp->name, 'a' + i); in g_sunlabel_modify()
123 struct g_geom *gp; in g_sunlabel_hotwrite() local
132 gp = bp->bio_to->geom; in g_sunlabel_hotwrite()
133 gsp = gp->softc; in g_sunlabel_hotwrite()
144 error = g_sunlabel_modify(gp, ms, p); in g_sunlabel_hotwrite()
153 g_sunlabel_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_consumer *cp _… in g_sunlabel_dumpconf() argument
[all …]
HDgeom_bsd.c97 g_bsd_modify(struct g_geom *gp, u_char *label) in g_bsd_modify() argument
110 gsp = gp->softc; in g_bsd_modify()
119 cp = LIST_FIRST(&gp->consumer); in g_bsd_modify()
147 gp->name, in g_bsd_modify()
158 error = g_slice_config(gp, i, G_SLICE_CONFIG_CHECK, in g_bsd_modify()
162 "%s%c", gp->name, 'a' + i); in g_bsd_modify()
173 g_slice_config(gp, u, G_SLICE_CONFIG_SET, in g_bsd_modify()
177 "%s%c", gp->name, 'a' + u); in g_bsd_modify()
207 g_bsd_try(struct g_geom *gp, struct g_slicer *gsp, struct g_consumer *cp, int secsize, struct g_bsd… in g_bsd_try() argument
242 g_bsd_writelabel(struct g_geom *gp, u_char *bootcode) in g_bsd_writelabel() argument
[all …]
HDgeom_slice.c74 g_slice_free(struct g_geom *gp) in g_slice_free() argument
78 gsp = gp->softc; in g_slice_free()
79 gp->softc = NULL; in g_slice_free()
101 struct g_geom *gp; in g_slice_access() local
107 gp = pp->geom; in g_slice_access()
108 cp = LIST_FIRST(&gp->consumer); in g_slice_access()
110 gsp = gp->softc; in g_slice_access()
143 if (error == 0 && (gp->flags & G_GEOM_WITHER) != 0 && in g_slice_access()
145 g_slice_free(gp); in g_slice_access()
161 struct g_geom *gp; in g_slice_finish_hot() local
[all …]
HDgeom_pc98.c84 g_pc98_modify(struct g_geom *gp, struct g_pc98_softc *ms, u_char *sec, int len __unused) in g_pc98_modify() argument
136 printf("PC98 Slice %d on %s:\n", i + 1, gp->name); in g_pc98_modify()
142 error = g_slice_config(gp, i, G_SLICE_CONFIG_CHECK, in g_pc98_modify()
144 "%ss%d", gp->name, i + 1); in g_pc98_modify()
151 g_slice_config(gp, i, G_SLICE_CONFIG_SET, s[i], l[i], in g_pc98_modify()
152 ms->sectorsize, "%ss%d", gp->name, i + 1); in g_pc98_modify()
163 struct g_geom *gp; in g_pc98_ioctl() local
169 gp = pp->geom; in g_pc98_ioctl()
170 gsp = gp->softc; in g_pc98_ioctl()
180 cp = LIST_FIRST(&gp->consumer); in g_pc98_ioctl()
[all …]
/freebsd-11-stable/sys/geom/sched/
HDg_sched.c129 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) in g_sched_lock() argument
231 struct g_sched_softc *sc = gp->softc; in g_sched_lock()
237 g_sched_unlock(struct g_geom *gp) in g_sched_unlock() argument
239 struct g_sched_softc *sc = gp->softc; in g_sched_unlock()
282 g_sched_forced_dispatch(struct g_geom *gp) in g_sched_forced_dispatch() argument
284 struct g_sched_softc *sc = gp->softc; in g_sched_forced_dispatch()
292 g_io_request(bp, LIST_FIRST(&gp->consumer)); in g_sched_forced_dispatch()
[all …]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
HDtsan_rtl_mips64.S15 sd $gp,8($sp)
18 lui $gp,%hi(%neg(%gp_rel(setjmp)))
19 daddu $gp,$gp,$t9
20 daddiu $gp,$gp,%lo(%neg(%gp_rel(setjmp)))
21 move $s0,$gp
37 move $gp,$s0
43 ld $gp,8($sp)
67 sd $gp,8($sp)
70 lui $gp,%hi(%neg(%gp_rel(_setjmp)))
71 daddu $gp,$gp,$t9
[all …]
/freebsd-11-stable/sys/geom/multipath/
HDg_multipath.c115 g_multipath_good(struct g_geom *gp) in g_multipath_good() argument
120 LIST_FOREACH(cp, &gp->consumer, consumer) { in g_multipath_good()
132 struct g_geom *gp; in g_multipath_fault() local
134 gp = cp->geom; in g_multipath_fault()
135 sc = gp->softc; in g_multipath_fault()
137 if (g_multipath_good(gp) == 0 && sc->sc_ndisks > 0) { in g_multipath_fault()
138 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault()
153 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault()
169 g_multipath_choose(struct g_geom *gp, struct bio *bp) in g_multipath_choose() argument
174 sc = gp->softc; in g_multipath_choose()
[all …]
/freebsd-11-stable/sys/geom/uzip/
HDg_uzip.c140 g_uzip_softc_free(struct g_geom *gp) in g_uzip_softc_free() argument
142 struct g_uzip_softc *sc = gp->softc; in g_uzip_softc_free()
145 gp->name, sc->req_total, sc->req_cached)); in g_uzip_softc_free()
162 gp->softc = NULL; in g_uzip_softc_free()
166 g_uzip_cached(struct g_geom *gp, struct bio *bp) in g_uzip_cached() argument
172 sc = gp->softc; in g_uzip_cached()
187 "from cache\n", __func__, gp->name, bp, (intmax_t)ofs, in g_uzip_cached()
216 g_uzip_request(struct g_geom *gp, struct bio *bp) in g_uzip_request() argument
225 if (g_uzip_cached(gp, bp) != 0) in g_uzip_request()
228 sc = gp->softc; in g_uzip_request()
[all …]
/freebsd-11-stable/sys/geom/bde/
HDg_bde.c77 struct g_geom *gp; in g_bde_orphan() local
84 gp = cp->geom; in g_bde_orphan()
85 sc = gp->softc; in g_bde_orphan()
86 gp->flags |= G_GEOM_WITHER; in g_bde_orphan()
87 LIST_FOREACH(pp, &gp->provider, provider) in g_bde_orphan()
96 struct g_geom *gp; in g_bde_access() local
99 gp = pp->geom; in g_bde_access()
100 cp = LIST_FIRST(&gp->consumer); in g_bde_access()
116 struct g_geom *gp; in g_bde_create_geom() local
128 gp = NULL; in g_bde_create_geom()
[all …]
/freebsd-11-stable/sys/geom/shsec/
HDg_shsec.c52 struct g_geom *gp);
174 struct g_geom *gp; in g_shsec_orphan() local
177 gp = cp->geom; in g_shsec_orphan()
178 sc = gp->softc; in g_shsec_orphan()
184 if (LIST_EMPTY(&gp->consumer)) in g_shsec_orphan()
193 struct g_geom *gp; in g_shsec_access() local
196 gp = pp->geom; in g_shsec_access()
197 sc = gp->softc; in g_shsec_access()
207 LIST_FOREACH_SAFE(cp1, &gp->consumer, consumer, tmp) { in g_shsec_access()
219 if (LIST_EMPTY(&gp->consumer)) in g_shsec_access()
[all …]
/freebsd-11-stable/sys/dev/cxgb/ulp/iw_cxgb/
HDiw_cxgb_hal.h200 struct gen_pool *gp; in gen_pool_create() local
202 gp = malloc(sizeof(struct gen_pool), M_DEVBUF, M_NOWAIT); in gen_pool_create()
203 if (gp == NULL) in gen_pool_create()
206 memset(gp, 0, sizeof(struct gen_pool)); in gen_pool_create()
207 gp->gen_list = blist_create(len >> chunk_shift, M_NOWAIT); in gen_pool_create()
208 if (gp->gen_list == NULL) { in gen_pool_create()
209 free(gp, M_DEVBUF); in gen_pool_create()
212 blist_free(gp->gen_list, 0, len >> chunk_shift); in gen_pool_create()
213 gp->gen_base = base; in gen_pool_create()
214 gp->gen_chunk_shift = chunk_shift; in gen_pool_create()
[all …]
/freebsd-11-stable/sys/geom/nop/
HDg_nop.c50 static int g_nop_destroy(struct g_geom *gp, boolean_t force);
52 struct g_geom *gp);
56 struct g_geom *gp, struct g_consumer *cp, struct g_provider *pp);
78 struct g_geom *gp; in g_nop_resize() local
84 gp = cp->geom; in g_nop_resize()
85 sc = gp->softc; in g_nop_resize()
90 g_nop_destroy(gp, 1); in g_nop_resize()
94 LIST_FOREACH(pp, &gp->provider, provider) in g_nop_resize()
102 struct g_geom *gp; in g_nop_start() local
107 gp = bp->bio_to->geom; in g_nop_start()
[all …]
/freebsd-11-stable/sys/geom/concat/
HDg_concat.c56 struct g_geom *gp);
153 struct g_geom *gp; in g_concat_orphan() local
156 gp = cp->geom; in g_concat_orphan()
157 sc = gp->softc; in g_concat_orphan()
172 struct g_geom *gp; in g_concat_access() local
176 gp = pp->geom; in g_concat_access()
185 LIST_FOREACH_SAFE(cp1, &gp->consumer, consumer, tmp) { in g_concat_access()
198 LIST_FOREACH(cp2, &gp->consumer, consumer) { in g_concat_access()
487 struct g_geom *gp; in g_concat_add_disk() local
500 gp = sc->sc_geom; in g_concat_add_disk()
[all …]
/freebsd-11-stable/sys/geom/label/
HDg_label.c58 struct g_geom *gp);
59 static int g_label_destroy(struct g_geom *gp, boolean_t force);
118 struct g_geom *gp __unused) in g_label_destroy_geom()
198 struct g_geom *gp; in g_label_create() local
213 gp = NULL; in g_label_create()
216 LIST_FOREACH(gp, &mp->geom, geom) { in g_label_create()
217 pp2 = LIST_FIRST(&gp->provider); in g_label_create()
232 gp = g_slice_new(mp, 1, pp, &cp, NULL, 0, NULL); in g_label_create()
233 if (gp == NULL) { in g_label_create()
239 gp->orphan = g_label_orphan; in g_label_create()
[all …]

12345678910>>...14