Home
last modified time | relevance | path

Searched refs:gc (Results 1 – 25 of 101) sorted by relevance

12345

/freebsd/sys/dev/mana/
H A Dgdma_main.c102 struct gdma_context *gc = device_get_softc(dev); in mana_gd_query_max_resources() local
110 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_query_max_resources()
112 device_printf(gc->dev, in mana_gd_query_max_resources()
123 if (gc->num_msix_usable > resp.max_msix) in mana_gd_query_max_resources()
124 gc->num_msix_usable = resp.max_msix; in mana_gd_query_max_resources()
126 if (gc->num_msix_usable <= 1) in mana_gd_query_max_resources()
129 gc->max_num_queues = mp_ncpus; in mana_gd_query_max_resources()
130 if (gc->max_num_queues > MANA_MAX_NUM_QUEUES) in mana_gd_query_max_resources()
131 gc->max_num_queues = MANA_MAX_NUM_QUEUES; in mana_gd_query_max_resources()
133 if (gc->max_num_queues > resp.max_eq) in mana_gd_query_max_resources()
[all …]
H A Dhw_channel.c382 mana_hwc_destroy_cq(struct gdma_context *gc, struct hwc_cq *hwc_cq) in mana_hwc_destroy_cq() argument
388 mana_gd_destroy_queue(gc, hwc_cq->gdma_cq); in mana_hwc_destroy_cq()
391 mana_gd_destroy_queue(gc, hwc_cq->gdma_eq); in mana_hwc_destroy_cq()
460 struct gdma_context *gc = hwc->gdma_dev->gdma_context; in mana_hwc_alloc_dma_buf() local
479 err = mana_gd_alloc_memory(gc, buf_size, gmi); in mana_hwc_alloc_dma_buf()
645 struct gdma_context *gc = hwc->gdma_dev->gdma_context; in mana_hwc_test_channel() local
668 return mana_gd_test_eq(gc, hwc->cq->gdma_eq); in mana_hwc_test_channel()
672 mana_hwc_establish_channel(struct gdma_context *gc, uint16_t *q_depth, in mana_hwc_establish_channel() argument
676 struct hw_channel_context *hwc = gc->hwc.driver_data; in mana_hwc_establish_channel()
685 err = mana_smc_setup_hwc(&gc->shm_channel, false, in mana_hwc_establish_channel()
[all …]
H A Dgdma.h460 int mana_gd_test_eq(struct gdma_context *gc, struct gdma_queue *eq);
474 void mana_gd_destroy_queue(struct gdma_context *gc, struct gdma_queue *queue);
861 void mana_gd_wq_ring_doorbell(struct gdma_context *gc,
864 int mana_gd_alloc_memory(struct gdma_context *gc, unsigned int length,
872 int mana_gd_send_request(struct gdma_context *gc, uint32_t req_len,
875 int mana_gd_allocate_doorbell_page(struct gdma_context *gc,
878 int mana_gd_destroy_doorbell_page(struct gdma_context *gc,
881 int mana_gd_destroy_dma_region(struct gdma_context *gc,
H A Dmana_en.c930 struct gdma_context *gc = ac->gdma_dev->gdma_context; in mana_send_request() local
933 device_t dev = gc->dev; in mana_send_request()
937 req->dev_id = gc->mana.dev_id; in mana_send_request()
942 err = mana_gd_send_request(gc, in_len, in_buf, out_len, in mana_send_request()
984 struct gdma_context *gc = ac->gdma_dev->gdma_context; in mana_query_device_cfg() local
987 device_t dev = gc->dev; in mana_query_device_cfg()
1018 gc->adapter_mtu = resp.adapter_mtu; in mana_query_device_cfg()
1020 gc->adapter_mtu = ETHERMTU + ETHER_HDR_LEN; in mana_query_device_cfg()
1024 *max_num_vports, gc->adapter_mtu); in mana_query_device_cfg()
1297 struct gdma_context *gc = ac->gdma_dev->gdma_context; in mana_destroy_eq() local
[all …]
/freebsd/usr.sbin/bhyve/
H A Dbhyvegc.c45 struct bhyvegc *gc; in bhyvegc_init() local
48 gc = calloc(1, sizeof (struct bhyvegc)); in bhyvegc_init()
55 gc->raw = 1; in bhyvegc_init()
58 gc->raw = 0; in bhyvegc_init()
61 gc->gc_image = gc_image; in bhyvegc_init()
63 return (gc); in bhyvegc_init()
67 bhyvegc_set_fbaddr(struct bhyvegc *gc, void *fbaddr) in bhyvegc_set_fbaddr() argument
69 gc->raw = 1; in bhyvegc_set_fbaddr()
70 if (gc->gc_image->data && gc->gc_image->data != fbaddr) in bhyvegc_set_fbaddr()
71 free(gc->gc_image->data); in bhyvegc_set_fbaddr()
[all …]
H A Dconsole.c35 struct bhyvegc *gc; member
52 console.gc = bhyvegc_init(w, h, fbaddr); in console_init()
58 bhyvegc_set_fbaddr(console.gc, fbaddr); in console_set_fbaddr()
66 bhyvegc_image = bhyvegc_get_image(console.gc); in console_get_image()
82 (*console.fb_render_cb)(console.gc, console.fb_arg); in console_refresh()
H A Dbhyvegc.h42 void bhyvegc_set_fbaddr(struct bhyvegc *gc, void *fbaddr);
43 void bhyvegc_resize(struct bhyvegc *gc, int width, int height);
44 struct bhyvegc_image *bhyvegc_get_image(struct bhyvegc *gc);
H A Drfb.c517 rfb_send_rect(struct rfb_softc *rc, int cfd, struct bhyvegc_image *gc, in rfb_send_rect() argument
544 for (p = &gc->data[y * gc->width + x]; y < h; y++) { in rfb_send_rect()
562 p += gc->width; in rfb_send_rect()
581 for (p = &gc->data[y * gc->width + x]; y < h; y++) { in rfb_send_rect()
586 p += gc->width; in rfb_send_rect()
601 rfb_send_all(struct rfb_softc *rc, int cfd, struct bhyvegc_image *gc) in rfb_send_all() argument
623 return (rfb_send_rect(rc, cfd, gc, 0, 0, in rfb_send_all()
624 gc->width, gc->height)); in rfb_send_all()
630 srect_hdr.width = htons(gc->width); in rfb_send_all()
631 srect_hdr.height = htons(gc->height); in rfb_send_all()
[all …]
/freebsd/sys/gdb/
H A Dgdb_cons.c119 struct gdbcons *gc = arg; in gdb_cnflush() local
123 for (i = 0; i < gc->npending; i++) in gdb_cnflush()
124 gdb_tx_puthex(gc->buf[i]); in gdb_cnflush()
126 gc->npending = 0; in gdb_cnflush()
145 struct gdbcons *gc; in gdb_cnputc() local
148 gc = cp->cn_arg; in gdb_cnputc()
149 if (gc->npending != 0) { in gdb_cnputc()
155 callout_stop(&gc->flush); in gdb_cnputc()
156 if (gc->npending == sizeof(gc->buf)) in gdb_cnputc()
157 gdb_cnflush(gc); in gdb_cnputc()
[all …]
/freebsd/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c345 struct gconfig *gc; in gpart_activate() local
355 LIST_FOREACH(gc, &pp->lg_geom->lg_config, lg_config) { in gpart_activate()
356 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_activate()
357 scheme = gc->lg_val; in gpart_activate()
367 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in gpart_activate()
368 if (strcmp(gc->lg_name, "index") == 0) { in gpart_activate()
369 idx = atoi(gc->lg_val); in gpart_activate()
412 struct gconfig *gc; in gpart_bootcode() local
424 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in gpart_bootcode()
425 if (strcmp(gc->lg_name, "scheme") == 0) { in gpart_bootcode()
[all …]
H A Dpart_wizard.c126 struct gconfig *gc; in boot_disk_select() local
150 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in boot_disk_select()
151 if (strcmp(gc->lg_name, "type") == 0) in boot_disk_select()
152 type = gc->lg_val; in boot_disk_select()
153 if (strcmp(gc->lg_name, "descr") == 0) in boot_disk_select()
154 desc = gc->lg_val; in boot_disk_select()
248 struct gconfig *gc; in wizard_partition() local
268 LIST_FOREACH(gc, &gpart->lg_config, lg_config) { in wizard_partition()
269 if (strcmp(gc->lg_name, "scheme") == 0) { in wizard_partition()
270 scheme = gc->lg_val; in wizard_partition()
H A Dpartedit.c464 struct gconfig *gc; in apply_workaround() local
481 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in apply_workaround()
482 if (strcmp(gc->lg_name, "scheme") == 0) { in apply_workaround()
483 scheme = gc->lg_val; in apply_workaround()
484 } else if (strcmp(gc->lg_name, "modified") == 0) { in apply_workaround()
485 modified = gc->lg_val; in apply_workaround()
532 struct gconfig *gc; in add_geom_children() local
536 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in add_geom_children()
537 if (strcmp(gc->lg_name, "scheme") == 0) in add_geom_children()
538 (*items)[*nitems-1].type = gc->lg_val; in add_geom_children()
[all …]
/freebsd/crypto/krb5/src/lib/rpc/
H A Dauth_gss.c152 struct rpc_gss_cred gc; /* client credentials */ member
199 gd->gc.gc_v = RPCSEC_GSS_VERSION; in authgss_create()
200 gd->gc.gc_proc = RPCSEC_GSS_INIT; in authgss_create()
201 gd->gc.gc_svc = gd->sec.svc; in authgss_create()
267 pd->pd_ctx_hndl = gd->gc.gc_ctx; in authgss_get_private_data()
295 gd->gc.gc_seq++; in authgss_marshal()
299 if (!xdr_rpc_gss_cred(&tmpxdrs, &gd->gc)) { in authgss_marshal()
312 if (gd->gc.gc_proc == RPCSEC_GSS_INIT || in authgss_marshal()
313 gd->gc.gc_proc == RPCSEC_GSS_CONTINUE_INIT) { in authgss_marshal()
369 if (gd->gc.gc_proc == RPCSEC_GSS_INIT || in authgss_validate()
[all …]
H A Dsvc_auth_gss.c182 struct rpc_gss_cred *gc; in svcauth_gss_accept_sec_context() local
190 gc = (struct rpc_gss_cred *)rqst->rq_clntcred; in svcauth_gss_accept_sec_context()
231 gd->sec.svc = gc->gc_svc; in svcauth_gss_accept_sec_context()
232 gd->seq = gc->gc_seq; in svcauth_gss_accept_sec_context()
394 struct rpc_gss_cred *gc; in gssrpc__svcauth_gss() local
427 gc = (struct rpc_gss_cred *)rqst->rq_clntcred; in gssrpc__svcauth_gss()
428 memset(gc, 0, sizeof(*gc)); in gssrpc__svcauth_gss()
437 if (!xdr_rpc_gss_cred(&xdrs, gc)) { in gssrpc__svcauth_gss()
449 if (gc->gc_v != RPCSEC_GSS_VERSION) in gssrpc__svcauth_gss()
453 if (gc->gc_svc != RPCSEC_GSS_SVC_NONE && in gssrpc__svcauth_gss()
[all …]
/freebsd/contrib/llvm-project/lld/docs/ELF/
H A Dstart-stop-gc.rst1 -z start-stop-gc
4 If your ``-Wl,--gc-sections`` build fail with a linker error like this:
8 …ol needs to be retained under --gc-sections properly; consider -z nostart-stop-gc (see https://lld…
11 suffice under ``--gc-sections``.
20 GNU ld 2.37 added ``-z start-stop-gc`` to restore the traditional behavior
21 ld.lld 13.0.0 defaults to ``-z start-stop-gc`` and supports ``-z nostart-stop-gc``
25 allowed GC (like ``-z start-stop-gc``).
53 linker ``--gc-sections``.
/freebsd/contrib/lua/src/
H A Dlobject.h50 struct GCObject *gc; /* collectable objects */ member
266 #define thvalue(o) check_exp(ttisthread(o), gco2th(val_(o).gc))
270 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VTHREAD)); \
305 #define gcvalue(o) check_exp(iscollectable(o), val_(o).gc)
307 #define gcvalueraw(v) ((v).gc)
311 val_(io).gc = i_g; settt_(io, ctb(i_g->tt)); }
367 #define tsvalueraw(v) (gco2ts((v).gc))
369 #define tsvalue(o) check_exp(ttisstring(o), gco2ts(val_(o).gc))
373 val_(io).gc = obj2gco(x_); settt_(io, ctb(x_->tt)); \
435 #define uvalue(o) check_exp(ttisfulluserdata(o), gco2u(val_(o).gc))
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlobject.h152 #define gcvalue(o) check_exp(iscollectable(o), val_(o).gc)
154 #define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts)
156 #define rawuvalue(o) check_exp(ttisuserdata(o), &val_(o).gc->u)
158 #define clvalue(o) check_exp(ttisclosure(o), &val_(o).gc->cl)
159 #define clLvalue(o) check_exp(ttisLclosure(o), &val_(o).gc->cl.l)
160 #define clCvalue(o) check_exp(ttisCclosure(o), &val_(o).gc->cl.c)
162 #define hvalue(o) check_exp(ttistable(o), &val_(o).gc->h)
164 #define thvalue(o) check_exp(ttisthread(o), &val_(o).gc->th)
166 #define deadvalue(o) check_exp(ttisdeadkey(o), cast(void *, val_(o).gc))
201 val_(io).gc=i_g; settt_(io, ctb(gch(i_g)->tt)); }
[all …]
/freebsd/lib/librpcsec_gss/
H A Dsvc_rpcsec_gss.c594 struct rpc_gss_cred *gc) in svc_rpc_gss_accept_sec_context() argument
680 client->cl_seq = gc->gc_seq; in svc_rpc_gss_accept_sec_context()
718 client->cl_rawcred.service = gc->gc_svc; in svc_rpc_gss_accept_sec_context()
969 struct rpc_gss_cred gc; in svc_rpc_gss() local
987 memset(&gc, 0, sizeof(gc)); in svc_rpc_gss()
992 if (!xdr_rpc_gss_cred(&xdrs, &gc)) { in svc_rpc_gss()
999 if (gc.gc_version != RPCSEC_GSS_VERSION) { in svc_rpc_gss()
1005 if (gc.gc_proc == RPCSEC_GSS_INIT) { in svc_rpc_gss()
1006 if (gc.gc_handle.length != 0) { in svc_rpc_gss()
1012 if (gc.gc_handle.length != sizeof(uint32_t)) { in svc_rpc_gss()
[all …]
/freebsd/sys/rpc/rpcsec_gss/
H A Dsvc_rpcsec_gss.c921 struct rpc_gss_cred *gc) in svc_rpc_gss_accept_sec_context() argument
1128 client->cl_rawcred.service = gc->gc_svc; in svc_rpc_gss_accept_sec_context()
1404 struct rpc_gss_cred gc; in svc_rpc_gss() local
1425 memset(&gc, 0, sizeof(gc)); in svc_rpc_gss()
1430 if (!xdr_rpc_gss_cred(&xdrs, &gc)) { in svc_rpc_gss()
1440 if (gc.gc_version != RPCSEC_GSS_VERSION) { in svc_rpc_gss()
1446 if (gc.gc_proc == RPCSEC_GSS_INIT) { in svc_rpc_gss()
1447 if (gc.gc_handle.length != 0) { in svc_rpc_gss()
1454 if (gc.gc_handle.length != sizeof(*p)) { in svc_rpc_gss()
1458 p = gc.gc_handle.value; in svc_rpc_gss()
[all …]
/freebsd/contrib/elftoolchain/libelf/
H A Dgelf_cap.c96 gelf_update_cap(Elf_Data *ed, int ndx, GElf_Cap *gc) in gelf_update_cap() argument
109 if (d == NULL || ndx < 0 || gc == NULL || in gelf_update_cap()
140 LIBELF_COPY_U32(cap32, gc, c_tag); in gelf_update_cap()
141 LIBELF_COPY_U32(cap32, gc, c_un.c_val); in gelf_update_cap()
145 *cap64 = *gc; in gelf_update_cap()
/freebsd/lib/geom/part/
H A Dgeom_part.c231 struct gconfig *gc; in geom_is_withered() local
233 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in geom_is_withered()
234 if (!strcmp(gc->lg_name, "wither")) in geom_is_withered()
243 struct gconfig *gc; in find_geomcfg() local
245 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in find_geomcfg()
246 if (!strcmp(gc->lg_name, cfg)) in find_geomcfg()
247 return (gc->lg_val); in find_geomcfg()
255 struct gconfig *gc; in find_provcfg() local
257 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in find_provcfg()
258 if (!strcmp(gc->lg_name, cfg)) in find_provcfg()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzcp_iter.c44 zcp_list_func_t *gc; member
117 .gc = NULL,
204 .gc = NULL,
291 .gc = NULL,
371 .gc = zcp_user_props_list_gc,
393 .gc = zcp_user_props_list_gc,
670 .gc = NULL,
740 if (info->gc != NULL) { in zcp_load_list_lib()
748 lua_pushcfunction(state, info->gc); in zcp_load_list_lib()
/freebsd/lib/libgeom/
H A Dgeom_xml2tree.c195 struct gconfig *gc; in EndElement() local
277 gc = calloc(1, sizeof *gc); in EndElement()
278 if (gc == NULL) { in EndElement()
286 gc->lg_name = strdup(name); in EndElement()
287 if (gc->lg_name == NULL) { in EndElement()
292 free(gc); in EndElement()
296 gc->lg_val = p; in EndElement()
297 LIST_INSERT_HEAD(c, gc, lg_config); in EndElement()
/freebsd/contrib/ntp/sntp/m4/
H A Dntp_compiler.m4146 # NetBSD will link but likely not run with --gc-sections
149 # --gc-sections causes attempt to load as linux elf, with
157 CFLAGS="$CFLAGS -Wl,--gc-sections"
188 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
203 LDADD_LIBNTP="-Wl,--gc-sections"
/freebsd/contrib/nvi/vi/
H A Dv_match.c38 int cnt, isempty, matchc, startc, (*gc)(SCR *, VCS *); in v_match() local
74 gc = cnt & 1 ? cs_prev : cs_next; in v_match()
84 if (gc(sp, &cs)) in v_match()

12345