Home
last modified time | relevance | path

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

1234

/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.h454 int mana_gd_test_eq(struct gdma_context *gc, struct gdma_queue *eq);
468 void mana_gd_destroy_queue(struct gdma_context *gc, struct gdma_queue *queue);
855 void mana_gd_wq_ring_doorbell(struct gdma_context *gc,
858 int mana_gd_alloc_memory(struct gdma_context *gc, unsigned int length,
866 int mana_gd_send_request(struct gdma_context *gc, uint32_t req_len,
869 int mana_gd_allocate_doorbell_page(struct gdma_context *gc,
872 int mana_gd_destroy_doorbell_page(struct gdma_context *gc,
875 int mana_gd_destroy_dma_region(struct gdma_context *gc,
H A Dmana_en.c931 struct gdma_context *gc = ac->gdma_dev->gdma_context; in mana_send_request() local
934 device_t dev = gc->dev; in mana_send_request()
938 req->dev_id = gc->mana.dev_id; in mana_send_request()
943 err = mana_gd_send_request(gc, in_len, in_buf, out_len, in mana_send_request()
985 struct gdma_context *gc = ac->gdma_dev->gdma_context; in mana_query_device_cfg() local
988 device_t dev = gc->dev; in mana_query_device_cfg()
1289 struct gdma_context *gc = ac->gdma_dev->gdma_context; in mana_destroy_eq() local
1296 for (i = 0; i < gc->max_num_queues; i++) { in mana_destroy_eq()
1301 mana_gd_destroy_queue(gc, eq); in mana_destroy_eq()
1312 struct gdma_context *gc = gd->gdma_context; in mana_create_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.c491 rfb_send_rect(struct rfb_softc *rc, int cfd, struct bhyvegc_image *gc, in rfb_send_rect() argument
518 for (p = &gc->data[y * gc->width + x]; y < h; y++) { in rfb_send_rect()
536 p += gc->width; in rfb_send_rect()
555 for (p = &gc->data[y * gc->width + x]; y < h; y++) { in rfb_send_rect()
560 p += gc->width; in rfb_send_rect()
575 rfb_send_all(struct rfb_softc *rc, int cfd, struct bhyvegc_image *gc) in rfb_send_all() argument
597 return (rfb_send_rect(rc, cfd, gc, 0, 0, in rfb_send_all()
598 gc->width, gc->height)); in rfb_send_all()
604 srect_hdr.width = htons(gc->width); in rfb_send_all()
605 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.c105 struct gconfig *gc; in boot_disk_select() local
129 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in boot_disk_select()
130 if (strcmp(gc->lg_name, "type") == 0) in boot_disk_select()
131 type = gc->lg_val; in boot_disk_select()
132 if (strcmp(gc->lg_name, "descr") == 0) in boot_disk_select()
133 desc = gc->lg_val; in boot_disk_select()
227 struct gconfig *gc; in wizard_partition() local
247 LIST_FOREACH(gc, &gpart->lg_config, lg_config) { in wizard_partition()
248 if (strcmp(gc->lg_name, "scheme") == 0) { in wizard_partition()
249 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/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)); \
437 #define uvalue(o) check_exp(ttisfulluserdata(o), gco2u(val_(o).gc))
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlobject.h151 #define gcvalue(o) check_exp(iscollectable(o), val_(o).gc)
153 #define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts)
155 #define rawuvalue(o) check_exp(ttisuserdata(o), &val_(o).gc->u)
157 #define clvalue(o) check_exp(ttisclosure(o), &val_(o).gc->cl)
158 #define clLvalue(o) check_exp(ttisLclosure(o), &val_(o).gc->cl.l)
159 #define clCvalue(o) check_exp(ttisCclosure(o), &val_(o).gc->cl.c)
161 #define hvalue(o) check_exp(ttistable(o), &val_(o).gc->h)
163 #define thvalue(o) check_exp(ttisthread(o), &val_(o).gc->th)
165 #define deadvalue(o) check_exp(ttisdeadkey(o), cast(void *, val_(o).gc))
200 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()
962 struct rpc_gss_cred gc; in svc_rpc_gss() local
980 memset(&gc, 0, sizeof(gc)); in svc_rpc_gss()
985 if (!xdr_rpc_gss_cred(&xdrs, &gc)) { in svc_rpc_gss()
992 if (gc.gc_version != RPCSEC_GSS_VERSION) { in svc_rpc_gss()
998 if (gc.gc_proc == RPCSEC_GSS_INIT) { in svc_rpc_gss()
999 if (gc.gc_handle.length != 0) { in svc_rpc_gss()
1005 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
1065 client->cl_rawcred.service = gc->gc_svc; in svc_rpc_gss_accept_sec_context()
1332 struct rpc_gss_cred gc; in svc_rpc_gss() local
1353 memset(&gc, 0, sizeof(gc)); in svc_rpc_gss()
1358 if (!xdr_rpc_gss_cred(&xdrs, &gc)) { in svc_rpc_gss()
1368 if (gc.gc_version != RPCSEC_GSS_VERSION) { in svc_rpc_gss()
1374 if (gc.gc_proc == RPCSEC_GSS_INIT) { in svc_rpc_gss()
1375 if (gc.gc_handle.length != 0) { in svc_rpc_gss()
1382 if (gc.gc_handle.length != sizeof(*p)) { in svc_rpc_gss()
1386 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/sys/contrib/openzfs/module/zfs/
H A Dzcp_iter.c43 zcp_list_func_t *gc; member
116 .gc = NULL,
203 .gc = NULL,
290 .gc = NULL,
370 .gc = zcp_user_props_list_gc,
392 .gc = zcp_user_props_list_gc,
669 .gc = NULL,
739 if (info->gc != NULL) { in zcp_load_list_lib()
747 lua_pushcfunction(state, info->gc); in zcp_load_list_lib()
/freebsd/lib/libgeom/
H A Dgeom_xml2tree.c191 struct gconfig *gc; in EndElement() local
273 gc = calloc(1, sizeof *gc); in EndElement()
274 if (gc == NULL) { in EndElement()
282 gc->lg_name = strdup(name); in EndElement()
283 if (gc->lg_name == NULL) { in EndElement()
288 free(gc); in EndElement()
292 gc->lg_val = p; in EndElement()
293 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()
/freebsd/lib/geom/part/
H A Dgeom_part.c230 struct gconfig *gc; in geom_is_withered() local
232 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in geom_is_withered()
233 if (!strcmp(gc->lg_name, "wither")) in geom_is_withered()
242 struct gconfig *gc; in find_geomcfg() local
244 LIST_FOREACH(gc, &gp->lg_config, lg_config) { in find_geomcfg()
245 if (!strcmp(gc->lg_name, cfg)) in find_geomcfg()
246 return (gc->lg_val); in find_geomcfg()
254 struct gconfig *gc; in find_provcfg() local
256 LIST_FOREACH(gc, &pp->lg_config, lg_config) { in find_provcfg()
257 if (!strcmp(gc->lg_name, cfg)) in find_provcfg()
[all …]
/freebsd/sys/dev/iommu/
H A Diommu_gas.c715 struct iommu_map_entries_tailq *gc, in iommu_gas_remove_locked() argument
732 iommu_gas_remove_unmap(domain, entry, gc); in iommu_gas_remove_locked()
735 iommu_gas_remove_unmap(domain, *r2, gc); in iommu_gas_remove_locked()
754 struct iommu_map_entries_tailq *gc, struct iommu_map_entry **r1, in iommu_gas_remove_init() argument
757 TAILQ_INIT(gc); in iommu_gas_remove_init()
764 struct iommu_map_entries_tailq *gc, struct iommu_map_entry **r1, in iommu_gas_remove_cleanup() argument
775 iommu_domain_unload(domain, gc, true); in iommu_gas_remove_cleanup()
789 struct iommu_map_entries_tailq gc; in iommu_gas_remove() local
791 iommu_gas_remove_init(domain, &gc, &r1, &r2); in iommu_gas_remove()
793 iommu_gas_remove_locked(domain, start, size, &gc, &r1, &r2); in iommu_gas_remove()
[all …]
/freebsd/sbin/mdconfig/
H A Dmdconfig.c497 struct gconf *gc; in md_list() local
537 gc = &pp->lg_config; in md_list()
538 type = geom_config_get(gc, "type"); in md_list()
541 file = geom_config_get(gc, "file"); in md_list()
556 length = geom_config_get(gc, "length"); in md_list()
563 label = geom_config_get(gc, "label"); in md_list()

1234