vh 465 dev/ic/vga.c struct vga_handle *vh = &vc->hdl; vh 469 dev/ic/vga.c vh->vh_iot = iot; vh 470 dev/ic/vga.c vh->vh_memt = memt; vh 472 dev/ic/vga.c if (bus_space_map(vh->vh_iot, 0x3c0, 0x10, 0, &vh->vh_ioh_vga)) vh 476 dev/ic/vga.c mor = bus_space_read_1(vh->vh_iot, vh->vh_ioh_vga, 0xc); vh 477 dev/ic/vga.c vh->vh_mono = !(mor & 1); vh 479 dev/ic/vga.c if (bus_space_map(vh->vh_iot, (vh->vh_mono ? 0x3b0 : 0x3d0), 0x10, 0, vh 480 dev/ic/vga.c &vh->vh_ioh_6845)) vh 483 dev/ic/vga.c if (bus_space_map(vh->vh_memt, 0xa0000, 0x20000, 0, &vh->vh_allmemh)) vh 486 dev/ic/vga.c if (bus_space_subregion(vh->vh_memt, vh->vh_allmemh, vh 487 dev/ic/vga.c (vh->vh_mono ? 0x10000 : 0x18000), 0x8000, vh 488 dev/ic/vga.c &vh->vh_memh)) vh 494 dev/ic/vga.c vc->currenttype = vh->vh_mono ? &vga_stdscreen_mono : &vga_stdscreen; vh 774 dev/ic/vga.c struct vga_handle *vh = &vc->hdl; vh 807 dev/ic/vga.c bus_space_read_region_2(vh->vh_memt, vh->vh_memh, vh 813 dev/ic/vga.c vga_setscreentype(vh, type); vh 822 dev/ic/vga.c vga_6845_write(vh, startadrh, scr->pcs.dispoffset >> 9); vh 823 dev/ic/vga.c vga_6845_write(vh, startadrl, scr->pcs.dispoffset >> 1); vh 826 dev/ic/vga.c bus_space_write_region_2(vh->vh_memt, vh->vh_memh, vh 921 dev/ic/vga.c struct vga_handle *vh = &vc->hdl; vh 954 dev/ic/vga.c vga_6845_write(vh, startadrh, scr->pcs.visibleoffset >> 9); vh 955 dev/ic/vga.c vga_6845_write(vh, startadrl, scr->pcs.visibleoffset >> 1); vh 1295 dev/ic/vga.c struct vga_handle *vh = &vc->hdl; vh 1300 dev/ic/vga.c vga_ts_write(vh, syncreset, 0x01); vh 1302 dev/ic/vga.c vga_ts_write(vh, mode, (vga_ts_read(vh, mode) & ~0x20)); vh 1303 dev/ic/vga.c r = vga_6845_read(vh, mode) | 0x80; vh 1305 dev/ic/vga.c vga_6845_write(vh, mode, r); vh 1307 dev/ic/vga.c vga_ts_write(vh, mode, (vga_ts_read(vh, mode) | 0x20)); vh 1309 dev/ic/vga.c r = vga_6845_read(vh, mode) & ~0x80; vh 1311 dev/ic/vga.c vga_6845_write(vh, mode, r); vh 1314 dev/ic/vga.c vga_ts_write(vh, syncreset, 0x03); vh 47 dev/ic/vga_subr.c fontram(vh) vh 48 dev/ic/vga_subr.c struct vga_handle *vh; vh 52 dev/ic/vga_subr.c vga_ts_write(vh, syncreset, 0x01); /* synchronous reset */ vh 53 dev/ic/vga_subr.c vga_ts_write(vh, wrplmask, 0x04); /* write to map 2 */ vh 54 dev/ic/vga_subr.c vga_ts_write(vh, memmode, 0x07); /* sequential addressing */ vh 55 dev/ic/vga_subr.c vga_ts_write(vh, syncreset, 0x03); /* clear synchronous reset */ vh 59 dev/ic/vga_subr.c vga_gdc_write(vh, rdplanesel, 0x02); /* select map 2 for cpu reads */ vh 60 dev/ic/vga_subr.c vga_gdc_write(vh, mode, 0x00); /* disable odd-even addressing */ vh 61 dev/ic/vga_subr.c vga_gdc_write(vh, misc, 0x04); /* map starts at 0xA000 */ vh 65 dev/ic/vga_subr.c textram(vh) vh 66 dev/ic/vga_subr.c struct vga_handle *vh; vh 70 dev/ic/vga_subr.c vga_ts_write(vh, syncreset, 0x01); /* synchronous reset */ vh 71 dev/ic/vga_subr.c vga_ts_write(vh, wrplmask, 0x03); /* write to map 0 & 1 */ vh 72 dev/ic/vga_subr.c vga_ts_write(vh, memmode, 0x03); /* odd-even addressing */ vh 73 dev/ic/vga_subr.c vga_ts_write(vh, syncreset, 0x03); /* clear synchronous reset */ vh 77 dev/ic/vga_subr.c vga_gdc_write(vh, rdplanesel, 0x00); /* select map 0 for cpu reads */ vh 78 dev/ic/vga_subr.c vga_gdc_write(vh, mode, 0x10); /* enable odd-even addressing */ vh 80 dev/ic/vga_subr.c vga_gdc_write(vh, misc, (vh->vh_mono ? 0x0a : 0x0e)); vh 84 dev/ic/vga_subr.c vga_loadchars(vh, fontset, first, num, lpc, data) vh 85 dev/ic/vga_subr.c struct vga_handle *vh; vh 96 dev/ic/vga_subr.c fontram(vh); vh 100 dev/ic/vga_subr.c bus_space_write_1(vh->vh_memt, vh->vh_allmemh, vh 104 dev/ic/vga_subr.c textram(vh); vh 109 dev/ic/vga_subr.c vga_setfontset(vh, fontset1, fontset2) vh 110 dev/ic/vga_subr.c struct vga_handle *vh; vh 126 dev/ic/vga_subr.c vga_ts_write(vh, fontsel, cmap); vh 130 dev/ic/vga_subr.c vga_setscreentype(vh, type) vh 131 dev/ic/vga_subr.c struct vga_handle *vh; vh 134 dev/ic/vga_subr.c vga_6845_write(vh, maxrow, type->fontheight - 1); vh 137 dev/ic/vga_subr.c vga_6845_write(vh, vde, type->fontheight * type->nrows - 1); vh 141 dev/ic/vga_subr.c vga_6845_write(vh, curstart, type->fontheight - 2); vh 142 dev/ic/vga_subr.c vga_6845_write(vh, curend, type->fontheight - 1); vh 152 dev/ic/vga_subr.c vga_attr_write(vh, colplen, 0x0f); vh 154 dev/ic/vga_subr.c vga_attr_write(vh, colplen, 0x07); vh 72 dev/ic/vgavar.h static inline u_int8_t _vga_attr_read(vh, reg) vh 73 dev/ic/vgavar.h struct vga_handle *vh; vh 79 dev/ic/vgavar.h (void) bus_space_read_1(vh->vh_iot, vh->vh_ioh_6845, 10); vh 81 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_ATC_INDEX, reg); vh 82 dev/ic/vgavar.h res = bus_space_read_1(vh->vh_iot, vh->vh_ioh_vga, VGA_ATC_DATAR); vh 85 dev/ic/vgavar.h (void) bus_space_read_1(vh->vh_iot, vh->vh_ioh_6845, 10); vh 88 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, 0, 0x20); vh 93 dev/ic/vgavar.h static inline void _vga_attr_write(vh, reg, val) vh 94 dev/ic/vgavar.h struct vga_handle *vh; vh 99 dev/ic/vgavar.h (void) bus_space_read_1(vh->vh_iot, vh->vh_ioh_6845, 10); vh 101 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_ATC_INDEX, reg); vh 102 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_ATC_DATAW, val); vh 105 dev/ic/vgavar.h (void) bus_space_read_1(vh->vh_iot, vh->vh_ioh_6845, 10); vh 108 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, 0, 0x20); vh 111 dev/ic/vgavar.h static inline u_int8_t _vga_ts_read(vh, reg) vh 112 dev/ic/vgavar.h struct vga_handle *vh; vh 115 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_TS_INDEX, reg); vh 116 dev/ic/vgavar.h return (bus_space_read_1(vh->vh_iot, vh->vh_ioh_vga, VGA_TS_DATA)); vh 119 dev/ic/vgavar.h static inline void _vga_ts_write(vh, reg, val) vh 120 dev/ic/vgavar.h struct vga_handle *vh; vh 124 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_TS_INDEX, reg); vh 125 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_TS_DATA, val); vh 128 dev/ic/vgavar.h static inline u_int8_t _vga_gdc_read(vh, reg) vh 129 dev/ic/vgavar.h struct vga_handle *vh; vh 132 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_GDC_INDEX, reg); vh 133 dev/ic/vgavar.h return (bus_space_read_1(vh->vh_iot, vh->vh_ioh_vga, VGA_GDC_DATA)); vh 136 dev/ic/vgavar.h static inline void _vga_gdc_write(vh, reg, val) vh 137 dev/ic/vgavar.h struct vga_handle *vh; vh 141 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_GDC_INDEX, reg); vh 142 dev/ic/vgavar.h bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_GDC_DATA, val); vh 145 dev/ic/vgavar.h #define vga_attr_read(vh, reg) \ vh 146 dev/ic/vgavar.h _vga_attr_read(vh, offsetof(struct reg_vgaattr, reg)) vh 147 dev/ic/vgavar.h #define vga_attr_write(vh, reg, val) \ vh 148 dev/ic/vgavar.h _vga_attr_write(vh, offsetof(struct reg_vgaattr, reg), val) vh 149 dev/ic/vgavar.h #define vga_ts_read(vh, reg) \ vh 150 dev/ic/vgavar.h _vga_ts_read(vh, offsetof(struct reg_vgats, reg)) vh 151 dev/ic/vgavar.h #define vga_ts_write(vh, reg, val) \ vh 152 dev/ic/vgavar.h _vga_ts_write(vh, offsetof(struct reg_vgats, reg), val) vh 153 dev/ic/vgavar.h #define vga_gdc_read(vh, reg) \ vh 154 dev/ic/vgavar.h _vga_gdc_read(vh, offsetof(struct reg_vgagdc, reg)) vh 155 dev/ic/vgavar.h #define vga_gdc_write(vh, reg, val) \ vh 156 dev/ic/vgavar.h _vga_gdc_write(vh, offsetof(struct reg_vgagdc, reg), val) vh 158 dev/ic/vgavar.h #define vga_6845_read(vh, reg) \ vh 159 dev/ic/vgavar.h pcdisplay_6845_read(&(vh)->vh_ph, reg) vh 160 dev/ic/vgavar.h #define vga_6845_write(vh, reg, val) \ vh 161 dev/ic/vgavar.h pcdisplay_6845_write(&(vh)->vh_ph, reg, val) vh 427 dev/isa/ega.c struct vga_handle *vh = &vc->hdl; vh 430 dev/isa/ega.c vh->vh_iot = iot; vh 431 dev/isa/ega.c vh->vh_memt = memt; vh 432 dev/isa/ega.c vh->vh_mono = mono; vh 434 dev/isa/ega.c if (bus_space_map(vh->vh_iot, 0x3c0, 0x10, 0, &vh->vh_ioh_vga)) vh 437 dev/isa/ega.c if (bus_space_map(vh->vh_iot, (vh->vh_mono ? 0x3b0 : 0x3d0), 0x10, 0, vh 438 dev/isa/ega.c &vh->vh_ioh_6845)) vh 441 dev/isa/ega.c if (bus_space_map(vh->vh_memt, 0xa0000, 0x20000, 0, &vh->vh_allmemh)) vh 444 dev/isa/ega.c if (bus_space_subregion(vh->vh_memt, vh->vh_allmemh, vh 445 dev/isa/ega.c (vh->vh_mono ? 0x10000 : 0x18000), 0x8000, vh 446 dev/isa/ega.c &vh->vh_memh)) vh 452 dev/isa/ega.c vc->currenttype = vh->vh_mono ? &ega_stdscreen_mono : &ega_stdscreen; vh 729 dev/isa/ega.c struct vga_handle *vh = &vc->hdl; vh 760 dev/isa/ega.c bus_space_read_region_2(vh->vh_memt, vh->vh_memh, vh 766 dev/isa/ega.c vga_setscreentype(vh, type); vh 775 dev/isa/ega.c vga_6845_write(vh, startadrh, scr->pcs.dispoffset >> 9); vh 776 dev/isa/ega.c vga_6845_write(vh, startadrl, scr->pcs.dispoffset >> 1); vh 779 dev/isa/ega.c bus_space_write_region_2(vh->vh_memt, vh->vh_memh, vh 3952 dev/pci/if_bnx.c struct ether_vlan_header vh; vh 3963 dev/pci/if_bnx.c m_copydata(m, 0, ETHER_HDR_LEN, (caddr_t)&vh); vh 3964 dev/pci/if_bnx.c vh.evl_proto = vh.evl_encap_proto; vh 3965 dev/pci/if_bnx.c vh.evl_tag = htons(l2fhdr->l2_fhdr_vlan_tag); vh 3966 dev/pci/if_bnx.c vh.evl_encap_proto = htons(ETHERTYPE_VLAN); vh 3968 dev/pci/if_bnx.c M_PREPEND(m, sizeof(vh), M_DONTWAIT); vh 3971 dev/pci/if_bnx.c m_copyback(m, 0, sizeof(vh), &vh); vh 667 dev/pci/if_txp.c struct ether_vlan_header vh; vh 673 dev/pci/if_txp.c m_copydata(m, 0, ETHER_HDR_LEN, (caddr_t)&vh); vh 674 dev/pci/if_txp.c vh.evl_proto = vh.evl_encap_proto; vh 675 dev/pci/if_txp.c vh.evl_tag = rxd->rx_vlan >> 16; vh 676 dev/pci/if_txp.c vh.evl_encap_proto = htons(ETHERTYPE_VLAN); vh 678 dev/pci/if_txp.c M_PREPEND(m, sizeof(vh), M_DONTWAIT); vh 681 dev/pci/if_txp.c m_copyback(m, 0, sizeof(vh), &vh); vh 971 netinet/ip_carp.c struct carp_softc *vh; vh 978 netinet/ip_carp.c TAILQ_FOREACH(vh, &cif->vhif_vrs, sc_list) { vh 979 netinet/ip_carp.c if ((vh->sc_if.if_flags & (IFF_UP|IFF_RUNNING)) == vh 980 netinet/ip_carp.c (IFF_UP|IFF_RUNNING) && vh->sc_state == MASTER) vh 981 netinet/ip_carp.c carp_send_ad(vh); vh 1287 netinet/ip_carp.c struct carp_softc *vh; vh 1291 netinet/ip_carp.c TAILQ_FOREACH(vh, &cif->vhif_vrs, sc_list) { vh 1294 netinet/ip_carp.c if ((vh->sc_if.if_flags & (IFF_UP|IFF_RUNNING)) != vh 1299 netinet/ip_carp.c if (vh->sc_state != MASTER) vh 1303 netinet/ip_carp.c if (!(vh->sc_if.if_flags & IFF_LINK0) || vh 1304 netinet/ip_carp.c (vh->sc_if.if_flags & (IFF_UP|IFF_RUNNING)) != vh 1309 netinet/ip_carp.c TAILQ_FOREACH(ifa, &vh->sc_if.if_addrlist, ifa_list) { vh 1329 netinet/ip_carp.c struct carp_softc *curvh, *vh, *sc0 = NULL; vh 1374 netinet/ip_carp.c TAILQ_FOREACH(vh, &cif->vhif_vrs, sc_list) { vh 1375 netinet/ip_carp.c if ((vh->sc_if.if_flags & (IFF_UP|IFF_RUNNING)) != vh 1378 netinet/ip_carp.c TAILQ_FOREACH(ifa, &vh->sc_if.if_addrlist, ifa_list) { vh 1391 netinet/ip_carp.c if (ifa && vh->sc_vhid > last && vh->sc_vhid < cur) { vh 1392 netinet/ip_carp.c cur = vh->sc_vhid; vh 1393 netinet/ip_carp.c curvh = vh; vh 1483 netinet/ip_carp.c struct carp_softc *vh; vh 1491 netinet/ip_carp.c TAILQ_FOREACH(vh, &cif->vhif_vrs, sc_list) { vh 1492 netinet/ip_carp.c if ((vh->sc_if.if_flags & (IFF_UP|IFF_RUNNING)) != vh 1495 netinet/ip_carp.c if ((vh->sc_state == MASTER || vh->sc_if.if_flags & IFF_LINK0) vh 1496 netinet/ip_carp.c && !bcmp(ena, vh->sc_ac.ac_enaddr, ETHER_ADDR_LEN)) vh 1497 netinet/ip_carp.c return (&vh->sc_if); vh 1516 netinet/ip_carp.c struct carp_softc *vh; vh 1523 netinet/ip_carp.c TAILQ_FOREACH(vh, &cif->vhif_vrs, sc_list) { vh 1527 netinet/ip_carp.c m0->m_pkthdr.rcvif = &vh->sc_if; vh 1528 netinet/ip_carp.c ether_input(&vh->sc_if, &eh, m0);