Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/cmd/bhyve/common/
H A Dbhyvegc.c50 struct bhyvegc *gc; in bhyvegc_init() local
53 gc = calloc(1, sizeof (struct bhyvegc)); in bhyvegc_init()
60 gc->raw = 1; in bhyvegc_init()
63 gc->raw = 0; in bhyvegc_init()
66 gc->gc_image = gc_image; in bhyvegc_init()
72 return (gc); in bhyvegc_init()
76 bhyvegc_set_fbaddr(struct bhyvegc *gc, void *fbaddr) in bhyvegc_set_fbaddr() argument
79 pthread_mutex_lock(&gc->gc_image->mtx); in bhyvegc_set_fbaddr()
81 gc->raw = 1; in bhyvegc_set_fbaddr()
82 if (gc->gc_image->data && gc->gc_image->data != fbaddr) in bhyvegc_set_fbaddr()
[all …]
H A Dconsole.c36 struct bhyvegc *gc; member
53 console.gc = bhyvegc_init(w, h, fbaddr); in console_init()
59 bhyvegc_set_fbaddr(console.gc, fbaddr); in console_set_fbaddr()
67 bhyvegc_image = bhyvegc_get_image(console.gc); in console_get_image()
83 (*console.fb_render_cb)(console.gc, console.fb_arg); in console_refresh()
H A Dbhyvegc.h49 void bhyvegc_set_fbaddr(struct bhyvegc *gc, void *fbaddr);
50 void bhyvegc_resize(struct bhyvegc *gc, int width, int height);
51 struct bhyvegc_image *bhyvegc_get_image(struct bhyvegc *gc);
H A Dpci_fbuf.c351 extern void vga_render(struct bhyvegc *gc, void *arg);
354 pci_fbuf_render(struct bhyvegc *gc, void *arg) in pci_fbuf_render() argument
364 vga_render(gc, sc->vgasc); in pci_fbuf_render()
369 bhyvegc_resize(gc, sc->memregs.width, sc->memregs.height); in pci_fbuf_render()
H A Dusb_mouse.c258 struct bhyvegc_image *gc; in umouse_event() local
260 gc = console_get_image(); in umouse_event()
261 if (gc == NULL) { in umouse_event()
285 sc->um_report.x = MOUSE_MAX_X * x / gc->width; in umouse_event()
286 sc->um_report.y = MOUSE_MAX_Y * y / gc->height; in umouse_event()
H A Dconsole.h34 typedef void (*fb_render_func_t)(struct bhyvegc *gc, void *arg);
/illumos-gate/usr/src/uts/common/io/sfe/
H A Dsfe_util.c109 &(dp)->tx_buf[SLOT((dp)->tx_slots_base + (sn), (dp)->gc.gc_tx_buf_size)]
367 int rx_desc_unit_shift = dp->gc.gc_rx_desc_unit_shift; in gem_rx_desc_dma_sync()
375 n = dp->gc.gc_rx_ring_size - head; in gem_rx_desc_dma_sync()
395 int tx_desc_unit_shift = dp->gc.gc_tx_desc_unit_shift; in gem_tx_desc_dma_sync()
403 n = dp->gc.gc_tx_ring_size - head; in gem_tx_desc_dma_sync()
423 SLOT(head, dp->gc.gc_rx_ring_size), nslot, in gem_rx_start_default()
443 SLOT(dp->tx_active_head, dp->gc.gc_tx_buf_size), in gem_dump_txbuf()
445 SLOT(dp->tx_active_tail, dp->gc.gc_tx_buf_size), in gem_dump_txbuf()
448 SLOT(dp->tx_softq_head, dp->gc.gc_tx_buf_size), in gem_dump_txbuf()
450 SLOT(dp->tx_softq_tail, dp->gc.gc_tx_buf_size), in gem_dump_txbuf()
[all …]
H A Dsfe.c1150 uint_t tx_ring_size = dp->gc.gc_tx_ring_size; in sfe_tx_start()
1205 uint_t tx_ring_size = dp->gc.gc_tx_ring_size; in sfe_tx_desc_stat()
1407 uint_t tx_ring_size = dp->gc.gc_tx_ring_size; in sfe_tx_desc_init()
1427 uint_t rx_ring_size = dp->gc.gc_rx_ring_size; in sfe_rx_desc_init()
1468 uint_t rx_ring_size = dp->gc.gc_rx_ring_size; in sfe_interrupt()
1656 dp->gc.gc_mii_sync = &sfe_mii_sync_sis900; in sfe_mii_probe_dp83815()
1657 dp->gc.gc_mii_read = &sfe_mii_read_sis900; in sfe_mii_probe_dp83815()
1658 dp->gc.gc_mii_write = &sfe_mii_write_sis900; in sfe_mii_probe_dp83815()
1671 dp->gc.gc_mii_sync = &sfe_mii_sync_dp83815; in sfe_mii_probe_dp83815()
1672 dp->gc.gc_mii_read = &sfe_mii_read_dp83815; in sfe_mii_probe_dp83815()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dtnet.c450 tsol_gc_t *gc; in gc_create() local
461 for (gc = gcgrp->gcgrp_head; gc != NULL; gc = gc->gc_next) { in gc_create()
462 if (gc->gc_db == gcdb) { in gc_create()
463 ASSERT(gc->gc_grp == gcgrp); in gc_create()
465 gc->gc_refcnt++; in gc_create()
466 ASSERT(gc->gc_refcnt != 0); in gc_create()
472 tsol_gc_t *, gc, tsol_gcgrp_t *, gcgrp); in gc_create()
474 return (gc); in gc_create()
478 gc = kmem_zalloc(sizeof (*gc), KM_NOSLEEP); in gc_create()
479 if (gc != NULL) { in gc_create()
[all …]
H A Dip6_rts.c84 mblk_t *mp, const tsol_gc_t *gc) in rts_fill_msg_v6() argument
102 data_size = rts_data_msg_size(rtm_addrs, AF_INET6, gc != NULL ? 1 : 0); in rts_fill_msg_v6()
156 if (gc != NULL) { in rts_fill_msg_v6()
161 ASSERT(gc->gc_grp != NULL); in rts_fill_msg_v6()
162 ASSERT(RW_LOCK_HELD(&gc->gc_grp->gcgrp_rwlock)); in rts_fill_msg_v6()
172 ASSERT(gc->gc_db != NULL); in rts_fill_msg_v6()
173 bcopy(&gc->gc_db->gcdb_attr, rp_dst, sizeof (*rp_dst)); in rts_fill_msg_v6()
H A Dip_rts.c306 tsol_gc_t *gc = NULL; in ip_rts_request_common() local
933 gc = gc_create(rtsap, gcgrp, &gcgrp_xtraref); in ip_rts_request_common()
934 if (gc == NULL || in ip_rts_request_common()
936 ire->ire_ipversion, gc)) != 0) { in ip_rts_request_common()
937 if (gc != NULL) { in ip_rts_request_common()
938 GC_REFRELE(gc); in ip_rts_request_common()
1236 tsol_gc_t *gc = NULL; in rts_rtmget() local
1262 if ((gc = attrp->igsa_gc) != NULL) { in rts_rtmget()
1263 gcgrp = gc->gc_grp; in rts_rtmget()
1303 new_mp = rts_alloc_msg(RTM_GET, rtm_addrs, af, gc != NULL ? 1 : 0); in rts_rtmget()
[all …]
H A Dip6_ire.c82 zoneid_t zoneid, uint_t flags, tsol_gc_t *gc, ip_stack_t *ipst) in ire_init_v6() argument
90 if (gc != NULL && !is_system_labeled()) in ire_init_v6()
128 gc, ipst); in ire_init_v6()
183 uint_t flags, tsol_gc_t *gc, ip_stack_t *ipst) in ire_create_v6() argument
198 type, ill, zoneid, flags, gc, ipst); in ire_create_v6()
H A Dip_ire.c498 tsol_gc_t *gc, ip_stack_t *ipst) in ire_init_v4() argument
506 if (gc != NULL && !is_system_labeled()) in ire_init_v4()
545 gc, ipst); in ire_init_v4()
627 ushort_t type, ill_t *ill, zoneid_t zoneid, uint_t flags, tsol_gc_t *gc, in ire_create() argument
641 gc, ipst); in ire_create()
656 uint_t flags, uchar_t ipversion, tsol_gc_t *gc, ip_stack_t *ipst) in ire_init_common() argument
680 if (gc != NULL) in ire_init_common()
681 GC_REFRELE(gc); in ire_init_common()
683 error = tsol_ire_init_gwattr(ire, ipversion, gc); in ire_init_common()
H A Dip6_if.c403 tsol_gc_t *gc = NULL; in ip_rt_add_v6() local
785 gc = gc_create(sp, gcgrp, &gcgrp_xtraref); in ip_rt_add_v6()
786 if (gc == NULL) { in ip_rt_add_v6()
805 gc, /* security attribute */ in ip_rt_add_v6()
816 if (gc != NULL) in ip_rt_add_v6()
817 GC_REFRELE(gc); in ip_rt_add_v6()
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlobject.h153 #define gcvalue(o) check_exp(iscollectable(o), val_(o).gc)
155 #define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts)
157 #define rawuvalue(o) check_exp(ttisuserdata(o), &val_(o).gc->u)
159 #define clvalue(o) check_exp(ttisclosure(o), &val_(o).gc->cl)
160 #define clLvalue(o) check_exp(ttisLclosure(o), &val_(o).gc->cl.l)
161 #define clCvalue(o) check_exp(ttisCclosure(o), &val_(o).gc->cl.c)
163 #define hvalue(o) check_exp(ttistable(o), &val_(o).gc->h)
165 #define thvalue(o) check_exp(ttisthread(o), &val_(o).gc->th)
167 #define deadvalue(o) check_exp(ttisdeadkey(o), cast(void *, val_(o).gc))
202 val_(io).gc=i_g; settt_(io, ctb(gch(i_g)->tt)); }
[all …]
/illumos-gate/usr/src/cmd/idmap/test-getdc/
H A Dgetdc_main.c36 ad_disc_ds_t *dc, *gc; in main() local
87 gc = ad_disc_get_GlobalCatalog(ad_ctx, in main()
89 if (gc != NULL) { in main()
91 print_ds(gc); in main()
92 free(gc); in main()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dinit_color.c125 float rc, gc, bc, h, l, s; in _rgb_to_hls() local
151 gc = (max - g) / (max - min); in _rgb_to_hls()
155 h = bc - gc; in _rgb_to_hls()
159 h = 4 + gc - rc; in _rgb_to_hls()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_iter.c40 zcp_list_func_t *gc; member
110 .gc = NULL,
199 .gc = NULL,
300 .gc = NULL,
380 .gc = zcp_props_list_gc,
511 if (info->gc != NULL) { in zcp_load_list_lib()
519 lua_pushcfunction(state, info->gc); in zcp_load_list_lib()
/illumos-gate/usr/src/lib/libadutils/common/
H A Daddisc.c1516 ad_disc_ds_t *gc = NULL; in validate_GlobalCatalog() local
1571 gc = ds_dup(ds); in validate_GlobalCatalog()
1572 if (gc != NULL) { in validate_GlobalCatalog()
1573 gc->port = GC_PORT; in validate_GlobalCatalog()
1603 gc = ldap_ping( in validate_GlobalCatalog()
1611 if (gc == NULL) { in validate_GlobalCatalog()
1615 log_ds(ctx, gc); in validate_GlobalCatalog()
1618 update_item(&ctx->site_global_catalog, gc, in validate_GlobalCatalog()
1619 AD_STATE_AUTO, gc->ttl); in validate_GlobalCatalog()
1645 gc = ds_dup(ds); in validate_GlobalCatalog()
[all …]
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_kmem.c1006 segkmem_gc_list_t *gc = inaddr; in segkmem_xfree() local
1007 gc->gc_arena = vmp; in segkmem_xfree()
1008 gc->gc_size = size; in segkmem_xfree()
1009 gc->gc_next = segkmem_gc_list; in segkmem_xfree()
1010 segkmem_gc_list = gc; in segkmem_xfree()
1067 segkmem_gc_list_t *gc = segkmem_gc_list; in segkmem_gc() local
1068 segkmem_gc_list = gc->gc_next; in segkmem_gc()
1069 segkmem_free(gc->gc_arena, gc, gc->gc_size); in segkmem_gc()
/illumos-gate/usr/src/lib/scsi/libses/common/
H A Dses_snap.c449 uint32_t gc; in ses_snap_new() local
517 gc = SCSI_READ32((uint8_t *)pp->ssp_page + in ses_snap_new()
520 sp->ss_generation = gc; in ses_snap_new()
521 } else if (sp->ss_generation != gc) { in ses_snap_new()
527 gc, sp->ss_generation); in ses_snap_new()
/illumos-gate/usr/src/cmd/fm/fmadm/
H A DMakefile.com32 gc.c \
/illumos-gate/usr/src/cmd/find/
H A Dfind.c1699 } nc[NUID], gc[NGID]; variable
1741 if (gc[cp].id == gid && gc[cp].name[0]) in getgroup()
1742 return (gc[cp].name); in getgroup()
1746 gc[cp].id = gid; in getgroup()
1747 SCPYN(gc[cp].name, gr->gr_name); in getgroup()
1748 return (gc[cp].name); in getgroup()
/illumos-gate/usr/src/cmd/bhyve/amd64/
H A Dvga.c57 struct bhyvegc *gc; member
187 vga_check_size(struct bhyvegc *gc, struct vga_softc *sc) in vga_check_size() argument
213 bhyvegc_resize(gc, sc->gc_width, sc->gc_height); in vga_check_size()
324 vga_render(struct bhyvegc *gc, void *arg) in vga_render() argument
328 vga_check_size(gc, sc); in vga_render()
/illumos-gate/usr/src/boot/i386/loader/
H A DMakefile87 LDFLAGS= -static -T $(LDSCRIPT) -N --gc-sections

12