Searched refs:vh (Results 1 - 25 of 27) sorted by relevance

12

/netbsd-current/sys/dev/ic/
H A Dvga_subr.c53 fontram(struct vga_handle *vh) argument
58 vga_ts_write(vh, syncreset, 0x01); /* synchronous reset */
59 vga_ts_write(vh, wrplmask, 0x04); /* write to map 2 */
60 vga_ts_write(vh, memmode, 0x07); /* sequential addressing */
61 vga_ts_write(vh, syncreset, 0x03); /* clear synchronous reset */
65 vga_gdc_write(vh, rdplanesel, 0x02); /* select map 2 for CPU reads */
66 vga_gdc_write(vh, mode, 0x00); /* disable odd-even addressing */
67 vga_gdc_write(vh, misc, 0x04); /* map starts at 0xA000 */
71 textram(struct vga_handle *vh) argument
76 vga_ts_write(vh, syncrese
91 vga_loadchars(struct vga_handle *vh, int fontset, int first, int num, int lpc, const char *data) argument
112 vga_readoutchars(struct vga_handle *vh, int fontset, int first, int num, int lpc, char *data) argument
134 vga_copyfont01(struct vga_handle *vh) argument
150 vga_setfontset(struct vga_handle *vh, int fontset1, int fontset2) argument
169 vga_setscreentype(struct vga_handle *vh, const struct wsscreen_descr *type) argument
197 vga_load_builtinfont(struct vga_handle *vh, uint8_t *font, int firstchar, int numchars) argument
221 vga_reset(struct vga_handle *vh, void (*md_initfunc)(struct vga_handle *)) argument
373 vga_initregs(struct vga_handle *vh) argument
[all...]
H A Dvgavar.h93 #define vga_raw_read(vh, reg) \
94 bus_space_read_1(vh->vh_iot, vh->vh_ioh_vga, reg)
95 #define vga_raw_write(vh, reg, value) \
96 bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, reg, value)
98 #define vga_enable(vh) \
99 vga_raw_write(vh, 0, 0x20)
101 #define vga_reset_state(vh) \
102 (void) bus_space_read_1(vh
105 _vga_attr_read(struct vga_handle *vh, int reg) argument
124 _vga_attr_write(struct vga_handle *vh, int reg, u_int8_t val) argument
139 _vga_ts_read(struct vga_handle *vh, int reg) argument
147 _vga_ts_write(struct vga_handle *vh, int reg, u_int8_t val) argument
155 _vga_gdc_read(struct vga_handle *vh, int reg) argument
163 _vga_gdc_write(struct vga_handle *vh, int reg, u_int8_t val) argument
[all...]
H A Dvga_raster.c380 struct vga_handle *vh = &vc->hdl; local
384 vh->vh_iot = iot;
385 vh->vh_memt = memt;
387 if (bus_space_map(vh->vh_iot, 0x3c0, 0x10, 0, &vh->vh_ioh_vga))
391 mor = bus_space_read_1(vh->vh_iot, vh->vh_ioh_vga, VGA_MISC_DATAR);
392 vh->vh_mono = !(mor & 1);
394 if (bus_space_map(vh->vh_iot, (vh
443 struct vga_handle *vh; local
559 struct vga_handle *vh; local
777 struct vga_handle *vh = &vc->hdl; local
1001 vga_set_mode(struct vga_handle *vh, struct vga_moderegs *regs) argument
1185 struct vga_handle *vh = scr->hdl; local
1261 struct vga_handle *vh = scr->hdl; local
1304 struct vga_handle *vh = scr->hdl; local
1362 struct vga_handle *vh = scr->hdl; local
1461 struct vga_handle *vh = &vc->hdl; local
[all...]
H A Dvga.c529 struct vga_handle *vh = &vc->hdl; local
533 vh->vh_iot = iot;
534 vh->vh_memt = memt;
536 if (bus_space_map(vh->vh_iot, 0x3c0, 0x10, 0, &vh->vh_ioh_vga))
540 mor = vga_raw_read(vh, VGA_MISC_DATAR);
541 vh->vh_mono = !(mor & 1);
543 if (bus_space_map(vh->vh_iot, (vh->vh_mono ? 0x3b0 : 0x3d0), 0x10, 0,
544 &vh
716 struct vga_handle *vh; local
1006 struct vga_handle *vh = &vc->hdl; local
1461 struct vga_handle *vh = &vc->hdl; local
1509 struct vga_handle *vh = &vc->hdl; local
1529 struct vga_handle *vh = &vc->hdl; local
1557 struct vga_handle *vh = &vc->hdl; local
1575 struct vga_handle *vh = &vc->hdl; local
[all...]
/netbsd-current/sbin/svhlabel/
H A Dsvhlabel.c109 struct sgi_boot_block *vh; local
116 perror("seek vh");
120 perror("read vh");
123 vh = convert_sgi_boot_block(buf);
125 if (vh->magic != SGI_BOOT_BLOCK_MAGIC)
133 if (vh->partitions[i].blocks == 0)
139 switch (vh->partitions[i].type) {
145 if (is_efs(sd, vh->partitions[i].first)) {
147 npe.p_size = vh->partitions[i].blocks;
148 npe.p_offset = vh
238 struct sgi_boot_block *vh; local
[all...]
/netbsd-current/sys/arch/sgimips/sgimips/
H A Ddisksubr.c51 struct sgi_boot_block *vh);
52 static const char *disklabel_sgimips_to_bsd(struct sgi_boot_block *vh,
224 disklabel_sgimips_to_bsd(struct sgi_boot_block *vh, struct disklabel *lp) argument
228 if (mipsvh_cksum(vh))
232 lp->d_secsize = vh->dp.dp_secbytes;
234 lp->d_nsectors = vh->dp.dp_secs;
235 lp->d_ntracks = vh->dp.dp_trks0;
236 lp->d_ncylinders = vh->dp.dp_cyls;
237 lp->d_interleave = vh->dp.dp_interleave;
252 lpp->p_offset = vh
274 disklabel_bsd_to_sgimips(struct disklabel *lp, struct sgi_boot_block *vh) argument
[all...]
/netbsd-current/sys/arch/mipsco/mipsco/
H A Ddisksubr.c240 disklabel_mips_to_bsd(struct mips_volheader *vh, struct disklabel *lp) argument
244 if (mipsvh_cksum(vh))
247 lp->d_secsize = vh->vh_dp.dp_secbytes;
248 lp->d_nsectors = vh->vh_dp.dp_secs;
249 lp->d_ntracks = vh->vh_dp.dp_trks0;
250 lp->d_ncylinders = vh->vh_dp.dp_cyls;
251 lp->d_interleave = vh->vh_dp.dp_interleave;
265 lpp->p_offset = vh->vh_part[mp].pt_offset;
266 lpp->p_size = vh->vh_part[mp].pt_size;
286 disklabel_bsd_to_mips(struct disklabel *lp, struct mips_volheader *vh) argument
[all...]
/netbsd-current/sys/arch/arc/arc/
H A Dc_nec_eisa.c271 gd54xx_initregs(struct vga_handle *vh) argument
276 vga_ts_write(vh, mode, vga_ts_read(vh, mode) | VGA_TS_MODE_BLANK);
279 _vga_ts_write(vh, 0x06, 0x12);
283 _vga_ts_write(vh, VGA_TS_NREGS + i, vga_ts_gd54xx[i]);
286 _vga_ts_write(vh, 0x06, 0x0);
289 vga_ts_write(vh, mode, vga_ts_read(vh, mode) & ~VGA_TS_MODE_BLANK);
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/
H A Dunpack.h16 #define nvif_unpack(r,d,s,m,vl,vh,x) ({ \
18 int _ret = (r), _vl = (vl), _vh = (vh); \
/netbsd-current/external/lgpl3/gmp/dist/mpn/generic/
H A Dredc_2.c57 #define umul2low(ph, pl, uh, ul, vh, vl) \
67 : "f" (uh), "f" (ul), "f" (vh), "f" (vl)); \
72 #define umul2low(ph, pl, uh, ul, vh, vl) \
76 (ph) = _ph + (ul) * (vh) + (uh) * (vl); \
H A Dgcdext_lehmer.c281 mp_limb_t uh, vh; local
321 vh = mpn_addmul_1 (up, u0, un, v);
323 if ( (uh | vh) > 0)
325 uh += vh;
327 if (uh < vh)
H A Dtoom4_sqr.c50 vh = (8a0+4a1+2a2+ a3)^2 # A(1/2)^2 ah <= 14
102 /* NOTE: The multiplications to v2, vm2, vh and vm1 overwrites the
110 #define vh (scratch + 4 * n + 2) /* 2n+1 */ macro
151 TOOM4_SQR_REC (vh, apx, n + 1, tp); /* vh, 2n+1 limbs */
162 mpn_toom_interpolate_7pts (pp, n, (enum toom7_flags) 0, vm2, vm1, v2, vh, 2*s, tp);
H A Dgcd.c177 mp_limb_t uh, ul, vh, vl; local
186 vh = vp[n-1]; vl = vp[n-2];
195 vh = MPN_EXTRACT_NUMB (shift, vp[n-1], vp[n-2]);
200 if (mpn_hgcd2 (uh, ul, vh, vl, &M))
H A Dtoom44_mul.c54 vh = (8a0+4a1+2a2+ a3)*(8b0+4b1+2b2+ b3) # A(1/2)*B(1/2) ah <= 14 bh <= 14
92 The other recursive products, vm1, v2, vm2, vh are stored in the
97 and at vh + 2n + 2.
139 /* NOTE: The multiplications to v2, vm2, vh and vm1 overwrites the
147 #define vh (scratch + 4 * n + 2) /* 2n+1 */ macro
216 TOOM44_MUL_N_REC (vh, apx, bpx, n + 1, tp); /* vh, 2n+1 limbs */
234 mpn_toom_interpolate_7pts (pp, n, flags, vm2, vm1, v2, vh, s + t, tp);
H A Dtoom62_mul.c58 vh = (32a0+16a1+8a2+4a3+ 2a4+ a5)*(2b0+ b1) # A(1/2)*B(1/2) ah <= 62 bh <= 2
248 #define vh (scratch + 4 * n + 2) /* 2n+1 */ macro
257 mpn_mul_n (vh, ash, bsh, n + 1); /* vh, 2n+1 limbs */
307 vm2, vm1, v2, vh, s + t, scratch_out);
H A Dtoom53_mul.c57 vh = (16a0+8a1+4a2+2a3+ a4)*(4b0+2b1+ b2) # A(1/2)*B(1/2) ah <= 30 bh <= 6
246 #define vh (scratch + 4 * n + 2) /* 2n+1 */ macro
255 mpn_mul_n (vh, ash, bsh, n + 1); /* vh, 2n+1 limbs */
327 mpn_toom_interpolate_7pts (pp, n, flags, vm2, vm1, v2, vh, s + t,
/netbsd-current/sys/arch/mipsco/stand/installboot/
H A Dinstallboot.c130 struct mips_volheader vh; local
134 read_volheader(disk, &vh);
138 for (i=0, vdp=vh.vh_voldir; i<MIPS_NVOLDIR; i++, vdp++)
147 struct mips_volheader vh; local
150 read_volheader(disk, &vh);
151 vdp = voldir_findfile(&vh, filename, 0);
158 write_volheader(disk, &vh);
165 struct mips_volheader vh; local
198 read_volheader(disk, &vh);
200 vdp = voldir_findfile(&vh, bootnam
[all...]
/netbsd-current/sys/dev/isa/
H A Dega.c395 struct vga_handle *vh = &vc->hdl; local
398 vh->vh_iot = iot;
399 vh->vh_memt = memt;
400 vh->vh_mono = mono;
402 if (bus_space_map(vh->vh_iot, 0x3c0, 0x10, 0, &vh->vh_ioh_vga))
405 if (bus_space_map(vh->vh_iot, (vh->vh_mono ? 0x3b0 : 0x3d0), 0x10, 0,
406 &vh->vh_ioh_6845))
409 if (bus_space_map(vh
676 struct vga_handle *vh = &vc->hdl; local
[all...]
/netbsd-current/sys/fs/hfs/
H A Dhfs_vfsops.c393 while ((1 << mp->mnt_fs_bshift) < hmp->hm_vol.vh.block_size)
461 hfs_volume_header_t *vh; local
467 vh = &VFSTOHFS(mp)->hm_vol.vh;
469 sbp->f_bsize = vh->block_size;
472 sbp->f_blocks = vh->total_blocks;
473 sbp->f_bfree = vh->free_blocks; /* total free blocks */
474 sbp->f_bavail = vh->free_blocks; /* blocks free for non superuser */
476 sbp->f_files = vh->file_count; /* total files */
477 sbp->f_ffree = (1U<<31) - vh
[all...]
H A Dhfs.h142 #define HFS_BLOCKSIZE(vp) (VTOH(vp)->h_hmp->hm_vol.vh.block_size)
H A Dlibhfs.c219 if (hfslib_read_volume_header(buffer, &(out_vol->vh)) == 0)
226 switch(out_vol->vh.signature) {
252 out_vol->vh.catalog_file.extents[0].start_block *
253 (uint64_t)out_vol->vh.block_size, cbargs) != 0)
288 out_vol->vh.extents_file.extents[0].start_block *
289 (uint64_t)out_vol->vh.block_size, cbargs) != 0)
303 if (out_vol->vh.attributes & (1<<HFS_VOL_JOURNALED)) {
311 out_vol->vh.journal_info_block * out_vol->vh.block_size,
807 fork = in_vol->vh
[all...]
H A Dlibhfs.h450 hfs_volume_header_t vh; /* volume header */ member in struct:__anon37
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/fb/
H A Dnouveau_nvkm_subdev_fb_gddr5.c42 int pd, lf, xd, vh, vr, vo, l3; local
52 vh = ram->next->bios.ramcfg_11_02_10;
119 ram->mr[7] |= (vh & 0x01) << 7;
/netbsd-current/sys/netinet/
H A Dip_carp.c985 struct carp_softc *vh; local
999 TAILQ_FOREACH(vh, &cif->vhif_vrs, sc_list) {
1000 if ((vh->sc_if.if_flags & (IFF_UP|IFF_RUNNING)) ==
1001 (IFF_UP|IFF_RUNNING) && vh->sc_state == MASTER)
1002 carp_send_ad(vh);
1349 struct carp_softc *vh; local
1353 TAILQ_FOREACH(vh, &cif->vhif_vrs, sc_list) {
1355 (vh->sc_if.if_flags & (IFF_UP|IFF_RUNNING)) ==
1357 (type == CARP_COUNT_MASTER && vh->sc_state == MASTER)) {
1359 IFADDR_READER_FOREACH(ifa, &vh
1412 struct carp_softc *vh; local
1435 struct carp_softc *vh; local
1481 struct carp_softc *vh; local
[all...]
/netbsd-current/external/bsd/dhcpcd/dist/src/
H A Dipv6.c522 uint64_t vh, vl, user_low, user_high; local
566 in6_to_h64(&vh, &vl, prefix);
568 vh |= user_high;
572 h64_to_in6(result, vh, vl);

Completed in 384 milliseconds

12