cddl/usr.sbin/zfsd/case_file.cc
1098
Vdev vd(zhp, CaseVdev(zhp));
cddl/usr.sbin/zfsd/case_file.cc
1102
Vdev parent(vd.Parent());
cddl/usr.sbin/zfsd/case_file.cc
1154
Vdev vd(zhp, CaseVdev(zhp));
cddl/usr.sbin/zfsd/case_file.cc
1157
if (isspare && !vd.IsSpare() && !replaced.DoesNotExist()) {
cddl/usr.sbin/zfsd/case_file.cc
252
Vdev vd(casePool, CaseVdev(casePool));
cddl/usr.sbin/zfsd/case_file.cc
253
if (vd.DoesNotExist())
cddl/usr.sbin/zfsd/case_file.cc
256
m_vdevState = vd.State();
cddl/usr.sbin/zfsd/case_file.cc
257
m_vdevPhysPath = vd.PhysicalPath();
cddl/usr.sbin/zfsd/case_file.cc
258
m_vdevName = vd.Name(casePool, false);
cddl/usr.sbin/zfsd/vdev.cc
249
Vdev vd = to_examine.front();
cddl/usr.sbin/zfsd/vdev.cc
250
if (vd.DoesNotExist())
cddl/usr.sbin/zfsd/vdev.cc
253
children = vd.Children();
cddl/usr.sbin/zfsd/vdev.cc
259
return (vd);
crypto/krb5/src/lib/rpc/xdr_float.c
204
struct vax_double vd;
crypto/krb5/src/lib/rpc/xdr_float.c
222
vd = *((struct vax_double *)dp);
crypto/krb5/src/lib/rpc/xdr_float.c
226
if ((vd.mantissa4 == lim->d.mantissa4) &&
crypto/krb5/src/lib/rpc/xdr_float.c
227
(vd.mantissa3 == lim->d.mantissa3) &&
crypto/krb5/src/lib/rpc/xdr_float.c
228
(vd.mantissa2 == lim->d.mantissa2) &&
crypto/krb5/src/lib/rpc/xdr_float.c
229
(vd.mantissa1 == lim->d.mantissa1) &&
crypto/krb5/src/lib/rpc/xdr_float.c
230
(vd.exp == lim->d.exp)) {
crypto/krb5/src/lib/rpc/xdr_float.c
235
id.exp = vd.exp - VAX_DBL_BIAS + IEEE_DBL_BIAS;
crypto/krb5/src/lib/rpc/xdr_float.c
236
id.mantissa1 = (vd.mantissa1 << 13) | (vd.mantissa2 >> 3);
crypto/krb5/src/lib/rpc/xdr_float.c
237
id.mantissa2 = ((vd.mantissa2 & MASK(3)) << 29) |
crypto/krb5/src/lib/rpc/xdr_float.c
238
(vd.mantissa3 << 13) |
crypto/krb5/src/lib/rpc/xdr_float.c
239
((vd.mantissa4 >> 3) & MASK(13));
crypto/krb5/src/lib/rpc/xdr_float.c
241
id.sign = vd.sign;
crypto/krb5/src/lib/rpc/xdr_float.c
269
vd = lim->d;
crypto/krb5/src/lib/rpc/xdr_float.c
273
vd.exp = id.exp - IEEE_DBL_BIAS + VAX_DBL_BIAS;
crypto/krb5/src/lib/rpc/xdr_float.c
274
vd.mantissa1 = (id.mantissa1 >> 13);
crypto/krb5/src/lib/rpc/xdr_float.c
275
vd.mantissa2 = ((id.mantissa1 & MASK(13)) << 3) |
crypto/krb5/src/lib/rpc/xdr_float.c
277
vd.mantissa3 = (id.mantissa2 >> 13);
crypto/krb5/src/lib/rpc/xdr_float.c
278
vd.mantissa4 = (id.mantissa2 << 3);
crypto/krb5/src/lib/rpc/xdr_float.c
280
vd.sign = id.sign;
crypto/krb5/src/lib/rpc/xdr_float.c
281
*dp = *((double *)&vd);
crypto/openssl/test/lhash_test.c
199
int *vd = ossl_ht_test_int_from_value(v);
crypto/openssl/test/lhash_test.c
200
const int n = int_find(*vd);
lib/libc/xdr/xdr_float.c
199
struct vax_double vd;
lib/libc/xdr/xdr_float.c
222
vd = *((struct vax_double *)dp);
lib/libc/xdr/xdr_float.c
225
if ((vd.mantissa4 == lim->d.mantissa4) &&
lib/libc/xdr/xdr_float.c
226
(vd.mantissa3 == lim->d.mantissa3) &&
lib/libc/xdr/xdr_float.c
227
(vd.mantissa2 == lim->d.mantissa2) &&
lib/libc/xdr/xdr_float.c
228
(vd.mantissa1 == lim->d.mantissa1) &&
lib/libc/xdr/xdr_float.c
229
(vd.exp == lim->d.exp)) {
lib/libc/xdr/xdr_float.c
234
id.exp = vd.exp - VAX_DBL_BIAS + IEEE_DBL_BIAS;
lib/libc/xdr/xdr_float.c
235
id.mantissa1 = (vd.mantissa1 << 13) | (vd.mantissa2 >> 3);
lib/libc/xdr/xdr_float.c
236
id.mantissa2 = ((vd.mantissa2 & MASK(3)) << 29) |
lib/libc/xdr/xdr_float.c
237
(vd.mantissa3 << 13) |
lib/libc/xdr/xdr_float.c
238
((vd.mantissa4 >> 3) & MASK(13));
lib/libc/xdr/xdr_float.c
240
id.sign = vd.sign;
lib/libc/xdr/xdr_float.c
269
vd = lim->d;
lib/libc/xdr/xdr_float.c
273
vd.exp = id.exp - IEEE_DBL_BIAS + VAX_DBL_BIAS;
lib/libc/xdr/xdr_float.c
274
vd.mantissa1 = (id.mantissa1 >> 13);
lib/libc/xdr/xdr_float.c
275
vd.mantissa2 = ((id.mantissa1 & MASK(13)) << 3) |
lib/libc/xdr/xdr_float.c
277
vd.mantissa3 = (id.mantissa2 >> 13);
lib/libc/xdr/xdr_float.c
278
vd.mantissa4 = (id.mantissa2 << 3);
lib/libc/xdr/xdr_float.c
280
vd.sign = id.sign;
lib/libc/xdr/xdr_float.c
281
*dp = *((double *)&vd);
lib/msun/src/s_cbrtl.c
113
t = dt + vd - 0x1.0p32;
libexec/rtld-elf/rtld.c
5981
const Elf_Verdef *vd;
libexec/rtld-elf/rtld.c
5985
vd = depobj->verdef;
libexec/rtld-elf/rtld.c
5986
if (vd == NULL) {
libexec/rtld-elf/rtld.c
5992
if (vd->vd_version != VER_DEF_CURRENT) {
libexec/rtld-elf/rtld.c
5995
depobj->path, vd->vd_version);
libexec/rtld-elf/rtld.c
5998
if (vna->vna_hash == vd->vd_hash) {
libexec/rtld-elf/rtld.c
6000
(const Elf_Verdaux *)((const char *)vd +
libexec/rtld-elf/rtld.c
6001
vd->vd_aux);
libexec/rtld-elf/rtld.c
6006
if (vd->vd_next == 0)
libexec/rtld-elf/rtld.c
6008
vd = (const Elf_Verdef *)((const char *)vd + vd->vd_next);
libexec/rtld-elf/rtld.c
6021
const Elf_Verdef *vd;
libexec/rtld-elf/rtld.c
6060
vd = obj->verdef;
libexec/rtld-elf/rtld.c
6061
while (vd != NULL) {
libexec/rtld-elf/rtld.c
6062
if (vd->vd_version != VER_DEF_CURRENT) {
libexec/rtld-elf/rtld.c
6065
obj->path, vd->vd_version);
libexec/rtld-elf/rtld.c
6068
vernum = VER_DEF_IDX(vd->vd_ndx);
libexec/rtld-elf/rtld.c
6071
if (vd->vd_next == 0)
libexec/rtld-elf/rtld.c
6073
vd = (const Elf_Verdef *)((const char *)vd + vd->vd_next);
libexec/rtld-elf/rtld.c
6087
vd = obj->verdef;
libexec/rtld-elf/rtld.c
6088
while (vd != NULL) {
libexec/rtld-elf/rtld.c
6089
if ((vd->vd_flags & VER_FLG_BASE) == 0) {
libexec/rtld-elf/rtld.c
6090
vernum = VER_DEF_IDX(vd->vd_ndx);
libexec/rtld-elf/rtld.c
6092
vda = (const Elf_Verdaux *)((const char *)vd +
libexec/rtld-elf/rtld.c
6093
vd->vd_aux);
libexec/rtld-elf/rtld.c
6094
obj->vertab[vernum].hash = vd->vd_hash;
libexec/rtld-elf/rtld.c
6099
if (vd->vd_next == 0)
libexec/rtld-elf/rtld.c
6101
vd = (const Elf_Verdef *)((const char *)vd + vd->vd_next);
stand/common/part.c
523
struct iso_primary_descriptor *vd;
stand/common/part.c
536
vd = (struct iso_primary_descriptor *)buf;
stand/common/part.c
537
if (bcmp(vd->id, ISO_STANDARD_ID, sizeof vd->id) != 0)
stand/common/vdisk.c
101
vd->vdisk_unit);
stand/common/vdisk.c
126
vd = calloc(1, sizeof (*vd));
stand/common/vdisk.c
127
if (vd == NULL) {
stand/common/vdisk.c
131
vd->vdisk_path = strdup(argv[1]);
stand/common/vdisk.c
132
if (vd->vdisk_path == NULL) {
stand/common/vdisk.c
133
free (vd);
stand/common/vdisk.c
137
vd->vdisk_fd = open(vd->vdisk_path, O_RDONLY);
stand/common/vdisk.c
138
if (vd->vdisk_fd < 0) {
stand/common/vdisk.c
140
free(vd->vdisk_path);
stand/common/vdisk.c
141
free(vd);
stand/common/vdisk.c
145
vd->vdisk_size = sb.st_size;
stand/common/vdisk.c
146
vd->vdisk_sectorsz = DEV_BSIZE;
stand/common/vdisk.c
149
if (p->vdisk_unit == vd->vdisk_unit) {
stand/common/vdisk.c
150
vd->vdisk_unit++;
stand/common/vdisk.c
154
if (p->vdisk_unit < vd->vdisk_unit) {
stand/common/vdisk.c
157
STAILQ_INSERT_TAIL(&vdisk_list, vd, vdisk_link);
stand/common/vdisk.c
160
if (n->vdisk_unit > vd->vdisk_unit) {
stand/common/vdisk.c
162
STAILQ_INSERT_AFTER(&vdisk_list, p, vd,
stand/common/vdisk.c
167
vd->vdisk_unit++;
stand/common/vdisk.c
171
STAILQ_INSERT_HEAD(&vdisk_list, vd, vdisk_link);
stand/common/vdisk.c
177
STAILQ_INSERT_TAIL(&vdisk_list, vd, vdisk_link);
stand/common/vdisk.c
179
printf("%s: file %s is mapped as %s%d\n", argv[0], vd->vdisk_path,
stand/common/vdisk.c
180
vdisk_dev.dv_name, vd->vdisk_unit);
stand/common/vdisk.c
193
vdisk_info_t *vd;
stand/common/vdisk.c
214
STAILQ_FOREACH(vd, &vdisk_list, vdisk_link) {
stand/common/vdisk.c
215
if (vd->vdisk_unit == unit)
stand/common/vdisk.c
219
if (vd == NULL) {
stand/common/vdisk.c
224
if (vd->vdisk_open != 0) {
stand/common/vdisk.c
230
STAILQ_REMOVE(&vdisk_list, vd, vdisk_info, vdisk_link);
stand/common/vdisk.c
231
(void) close(vd->vdisk_fd);
stand/common/vdisk.c
232
printf("%s (%s) unmapped\n", argv[1], vd->vdisk_path);
stand/common/vdisk.c
233
free(vd->vdisk_path);
stand/common/vdisk.c
234
free(vd);
stand/common/vdisk.c
251
vdisk_info_t *vd;
stand/common/vdisk.c
257
vd = vdisk_get_info((struct devdesc *)dev);
stand/common/vdisk.c
258
if (vd == NULL)
stand/common/vdisk.c
267
offset = dev->d_offset * vd->vdisk_sectorsz;
stand/common/vdisk.c
271
if (lseek(vd->vdisk_fd, blk << 9, SEEK_SET) == -1)
stand/common/vdisk.c
277
rv = read(vd->vdisk_fd, buf, size);
stand/common/vdisk.c
280
rv = write(vd->vdisk_fd, buf, size);
stand/common/vdisk.c
297
vdisk_info_t *vd;
stand/common/vdisk.c
305
vd = vdisk_get_info((struct devdesc *)dev);
stand/common/vdisk.c
306
if (vd == NULL)
stand/common/vdisk.c
310
rc = disk_open(dev, vd->vdisk_size, vd->vdisk_sectorsz);
stand/common/vdisk.c
313
vd->vdisk_open++;
stand/common/vdisk.c
321
vdisk_info_t *vd;
stand/common/vdisk.c
326
vd = vdisk_get_info((struct devdesc *)dev);
stand/common/vdisk.c
327
if (vd == NULL)
stand/common/vdisk.c
330
vd->vdisk_open--;
stand/common/vdisk.c
340
vdisk_info_t *vd;
stand/common/vdisk.c
346
vd = vdisk_get_info((struct devdesc *)dev);
stand/common/vdisk.c
347
if (vd == NULL)
stand/common/vdisk.c
358
*(u_int *)data = vd->vdisk_sectorsz;
stand/common/vdisk.c
361
*(uint64_t *)data = vd->vdisk_size;
stand/common/vdisk.c
373
vdisk_info_t *vd;
stand/common/vdisk.c
383
STAILQ_FOREACH(vd, &vdisk_list, vdisk_link) {
stand/common/vdisk.c
387
printf(" %s", vd->vdisk_path);
stand/common/vdisk.c
392
" %s%d", vdisk_dev.dv_name, vd->vdisk_unit);
stand/common/vdisk.c
394
vd->vdisk_size / vd->vdisk_sectorsz,
stand/common/vdisk.c
395
vd->vdisk_sectorsz);
stand/common/vdisk.c
400
vd_dev.dd.d_unit = vd->vdisk_unit;
stand/common/vdisk.c
404
ret = disk_open(&vd_dev, vd->vdisk_size, vd->vdisk_sectorsz);
stand/common/vdisk.c
75
vdisk_info_t *vd;
stand/common/vdisk.c
77
STAILQ_FOREACH(vd, &vdisk_list, vdisk_link) {
stand/common/vdisk.c
78
if (vd->vdisk_unit == dev->d_unit)
stand/common/vdisk.c
79
return (vd);
stand/common/vdisk.c
81
return (vd);
stand/common/vdisk.c
89
vdisk_info_t *vd, *p;
stand/common/vdisk.c
97
STAILQ_FOREACH(vd, &vdisk_list, vdisk_link) {
stand/common/vdisk.c
98
if (strcmp(vd->vdisk_path, argv[1]) == 0) {
stand/libsa/cd9660.c
298
struct iso_primary_descriptor *vd;
stand/libsa/cd9660.c
304
vd = malloc(MAX(ISO_DEFAULT_BLOCK_SIZE,
stand/libsa/cd9660.c
306
if (vd == NULL)
stand/libsa/cd9660.c
312
ISO_DEFAULT_BLOCK_SIZE, (char *)vd, &read);
stand/libsa/cd9660.c
320
if (bcmp(vd->id, ISO_STANDARD_ID, sizeof(vd->id)) != 0)
stand/libsa/cd9660.c
322
if (isonum_711(vd->type) == ISO_VD_END)
stand/libsa/cd9660.c
324
if (isonum_711(vd->type) == ISO_VD_PRIMARY)
stand/libsa/cd9660.c
327
if (isonum_723(vd->logical_block_size) == ISO_DEFAULT_BLOCK_SIZE) {
stand/libsa/cd9660.c
328
bcopy(vd->root_directory_record, rec, sizeof(*rec));
stand/libsa/cd9660.c
332
free(vd);
stand/libsa/cd9660read.c
223
struct iso_primary_descriptor *vd;
stand/libsa/cd9660read.c
233
vd = (struct iso_primary_descriptor *)blkbuf;
stand/libsa/cd9660read.c
235
if (bcmp(vd->id, ISO_STANDARD_ID, sizeof vd->id) != 0)
stand/libsa/cd9660read.c
237
if (isonum_711(vd->type) == ISO_VD_END)
stand/libsa/cd9660read.c
239
if (isonum_711(vd->type) == ISO_VD_PRIMARY)
stand/libsa/cd9660read.c
243
bcopy(vd->root_directory_record, &rec, sizeof(rec));
stand/libsa/zfs/zfsimpl.c
1648
vdev_label_read(vdev_t *vd, int l, void *buf, uint64_t offset,
stand/libsa/zfs/zfsimpl.c
1654
off = vdev_label_offset(vd->v_psize, l, offset);
stand/libsa/zfs/zfsimpl.c
1664
return (vdev_read_phys(vd, &bp, buf, off, size));
stand/libsa/zfs/zfsimpl.c
1681
vdev_label_write_validate(vdev_t *vd, int l, uint64_t offset)
stand/libsa/zfs/zfsimpl.c
1689
off = vdev_label_offset(vd->v_psize, l, o_phys);
stand/libsa/zfs/zfsimpl.c
1692
if (vdev_label_offset(vd->v_psize, l, offset) + VDEV_PAD_SIZE != off)
stand/libsa/zfs/zfsimpl.c
1700
rc = vdev_label_read(vd, l, buf, o_phys, size);
stand/libsa/zfs/zfsimpl.c
1706
vdev_label_write(vdev_t *vd, int l, vdev_boot_envblock_t *be, uint64_t offset)
stand/libsa/zfs/zfsimpl.c
1714
if (vd->v_phys_write == NULL)
stand/libsa/zfs/zfsimpl.c
1717
off = vdev_label_offset(vd->v_psize, l, offset);
stand/libsa/zfs/zfsimpl.c
1719
rc = vdev_label_write_validate(vd, l, offset);
stand/libsa/zfs/zfsimpl.c
1730
return (vdev_write_phys(vd, be, off, size));
stand/libsa/zfs/zfsimpl.c
1969
vdev_label_read_config(vdev_t *vd, uint64_t txg)
stand/libsa/zfs/zfsimpl.c
1983
if (vdev_label_read(vd, l, label,
stand/libsa/zfs/zfsimpl.c
2013
vd->v_psize = asize;
stand/libsa/zfs/zfsimpl.c
2029
vdev_uberblock_load(vdev_t *vd, uberblock_t *ub)
stand/libsa/zfs/zfsimpl.c
2033
buf = malloc(VDEV_UBERBLOCK_SIZE(vd));
stand/libsa/zfs/zfsimpl.c
2038
for (int n = 0; n < VDEV_UBERBLOCK_COUNT(vd); n++) {
stand/libsa/zfs/zfsimpl.c
2039
if (vdev_label_read(vd, l, buf,
stand/libsa/zfs/zfsimpl.c
2040
VDEV_UBERBLOCK_OFFSET(vd, n),
stand/libsa/zfs/zfsimpl.c
2041
VDEV_UBERBLOCK_SIZE(vd)))
stand/libsa/zfs/zfsimpl.c
2293
vdev_t *vd = vdev_lookup_top(spa,
stand/libsa/zfs/zfsimpl.c
2295
gangblocksize = MIN(gangblocksize, 1ULL << vd->v_ashift);
stand/libsa/zfs/zfsimpl.c
272
rs_alloc(vdev_t *vd, uint64_t offset, uint64_t asize, uint64_t split_offset)
stand/libsa/zfs/zfsimpl.c
277
rs->rs_vd = vd;
stand/libsa/zfs/zfsimpl.c
3989
vdev_t *vd;
stand/libsa/zfs/zfsimpl.c
3993
STAILQ_FOREACH(vd, &spa->spa_root_vdev->v_children,
stand/libsa/zfs/zfsimpl.c
3995
benv = vdev_read_bootenv(vd);
stand/libsa/zfs/zfsimpl.c
4017
vdev_t *vd;
stand/libsa/zfs/zfsimpl.c
4019
STAILQ_FOREACH(vd, &spa->spa_root_vdev->v_children, v_childlink) {
stand/libsa/zfs/zfsimpl.c
4020
vdev_write_bootenv(vd, benv);
stand/libsa/zfs/zfsimpl.c
500
vdev_indirect_mapping_duplicate_adjacent_entries(vdev_t *vd, uint64_t offset,
stand/libsa/zfs/zfsimpl.c
504
vdev_indirect_mapping_t *vim = vd->v_mapping;
stand/libsa/zfs/zfsimpl.c
554
vdev_indirect_gather_splits(uint64_t split_offset, vdev_t *vd, uint64_t offset,
stand/libsa/zfs/zfsimpl.c
561
if (vd->v_read == vdev_indirect_read)
stand/libsa/zfs/zfsimpl.c
564
if (vd->v_read == vdev_mirror_read)
stand/libsa/zfs/zfsimpl.c
565
n = vd->v_nchildren;
stand/libsa/zfs/zfsimpl.c
579
is->is_vdev = vd;
stand/libsa/zfs/zfsimpl.c
587
if (vd->v_read == vdev_mirror_read) {
stand/libsa/zfs/zfsimpl.c
591
STAILQ_FOREACH(kid, &vd->v_children, v_childlink) {
stand/libsa/zfs/zfsimpl.c
595
is->is_child[0].ic_vdev = vd;
stand/libsa/zfs/zfsimpl.c
602
vdev_indirect_remap(vdev_t *vd, uint64_t offset, uint64_t asize, void *arg)
stand/libsa/zfs/zfsimpl.c
605
spa_t *spa = vd->v_spa;
stand/libsa/zfs/zfsimpl.c
612
rs = rs_alloc(vd, offset, asize, 0);
sys/amd64/amd64/mem.c
147
vd = PHYS_TO_DMAP(v);
sys/amd64/amd64/mem.c
148
error = uiomove((void *)vd, c, uio);
sys/amd64/amd64/mem.c
83
u_long v, vd;
sys/cddl/boot/zfs/zfsimpl.h
520
#define VDEV_UBERBLOCK_SHIFT(vd) \
sys/cddl/boot/zfs/zfsimpl.h
521
MIN(MAX((vd)->v_top->v_ashift, UBERBLOCK_SHIFT), MAX_UBERBLOCK_SHIFT)
sys/cddl/boot/zfs/zfsimpl.h
522
#define VDEV_UBERBLOCK_COUNT(vd) \
sys/cddl/boot/zfs/zfsimpl.h
523
(VDEV_UBERBLOCK_RING >> VDEV_UBERBLOCK_SHIFT(vd))
sys/cddl/boot/zfs/zfsimpl.h
524
#define VDEV_UBERBLOCK_OFFSET(vd, n) \
sys/cddl/boot/zfs/zfsimpl.h
525
offsetof(vdev_label_t, vl_uberblock[(n) << VDEV_UBERBLOCK_SHIFT(vd)])
sys/cddl/boot/zfs/zfsimpl.h
526
#define VDEV_UBERBLOCK_SIZE(vd) (1ULL << VDEV_UBERBLOCK_SHIFT(vd))
sys/cddl/boot/zfs/zfssubr.c
1567
vdev_raidz_read(vdev_t *vd, const blkptr_t *bp, void *data,
sys/cddl/boot/zfs/zfssubr.c
1570
vdev_t *tvd = vd->v_top;
sys/cddl/boot/zfs/zfssubr.c
1588
vd->v_nchildren, vd->v_nparity);
sys/cddl/boot/zfs/zfssubr.c
1598
cvd = vdev_child(vd, rc->rc_devidx);
sys/cddl/boot/zfs/zfssubr.c
1679
rv = raidz_checksum_verify(vd->v_spa, bp, data, bytes);
sys/cddl/boot/zfs/zfssubr.c
1725
rv = raidz_checksum_verify(vd->v_spa, bp, data, bytes);
sys/cddl/boot/zfs/zfssubr.c
1771
cvd = vdev_child(vd, rc->rc_devidx);
sys/cddl/boot/zfs/zfssubr.c
1800
(code = vdev_raidz_combrec(vd->v_spa, rm, bp, data, offset, bytes,
sys/dev/drm2/drm_crtc.h
112
#define DRM_MODE(nm, t, c, hd, hss, hse, ht, hsk, vd, vss, vse, vt, vs, f) \
sys/dev/drm2/drm_crtc.h
115
.htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
268
PVDEV vd = pCmd->target;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
270
if (mIsArray(vd->type) && vd->u.array.transform && vd!=vd->u.array.transform->target) {
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
271
vd = vd->u.array.transform->target;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
272
HPT_ASSERT(vd);
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
273
pCmd->target = vd;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
286
static int hpt_flush_vdev(PVBUS_EXT vbus_ext, PVDEV vd)
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
292
KdPrint(("flusing dev %p", vd));
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
296
if (mIsArray(vd->type) && vd->u.array.transform)
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
297
count = max(vd->u.array.transform->source->cmds_per_request,
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
298
vd->u.array.transform->target->cmds_per_request);
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
300
count = vd->cmds_per_request;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
302
pCmd = ldm_alloc_cmds(vd->vbus, count);
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
311
pCmd->target = vd;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
320
ldm_reset_vbus(vd->vbus);
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
351
PVDEV vd = ldm_find_target(vbus, i);
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
352
if (vd) {
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
354
if (hpt_flush_vdev(vbus_ext, vd))
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
355
hpt_flush_vdev(vbus_ext, vd);
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
532
PVDEV vd;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
559
vd = ldm_find_target(vbus, ccb->ccb_h.target_id);
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
561
if (!vd) {
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
585
if (vd->target_id / 10) {
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
586
inquiryData->ProductId[7] = (vd->target_id % 100) / 10 + '0';
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
587
inquiryData->ProductId[8] = (vd->target_id % 100) % 10 + '0';
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
590
inquiryData->ProductId[7] = (vd->target_id % 100) % 10 + '0';
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
606
if (mIsArray(vd->type))
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
607
sector_size_shift = vd->u.array.sector_size_shift;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
609
if(vd->type == VD_RAW){
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
610
sector_size = vd->u.raw.logical_sector_size;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
622
new_cap = vd->capacity >> sector_size_shift;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
656
if(mIsArray(vd->type))
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
657
sector_size_shift = vd->u.array.sector_size_shift;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
659
if(vd->type == VD_RAW){
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
660
sector_size = vd->u.raw.logical_sector_size;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
672
cap = (vd->capacity >> sector_size_shift) - 1;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
703
pCmd = ldm_alloc_cmds(vbus, vd->cmds_per_request);
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
741
if(mIsArray(vd->type)) {
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
742
sector_size_shift = vd->u.array.sector_size_shift;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
745
if(vd->type == VD_RAW){
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
746
sector_size = vd->u.raw.logical_sector_size;
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
777
pCmd->target = vd;
sys/dev/hpt27xx/ldm.h
226
HPT_U32 ldm_get_device_id(PVDEV vd); /* for ioctl */
sys/dev/hpt27xx/ldm.h
305
void (*member_failed)(struct _VDEV * vd);
sys/dev/hpt27xx/ldm.h
310
int (*add)(PVDEV vd);
sys/dev/hpt27xx/ldm.h
311
void (*remove)(PVDEV vd);
sys/dev/hpt27xx/ldm.h
312
void (*reset)(PVDEV vd);
sys/dev/hpt27xx/ldm.h
313
void (*sync_stamp)(PVDEV vd);
sys/dev/hpt27xx/ldm.h
450
void ldm_release_vdev(PVDEV vd);
sys/dev/hpt27xx/ldm.h
496
int ldm_acquire_lock(PVDEV vd, struct lock_request *req);
sys/dev/hpt27xx/ldm.h
497
void ldm_release_lock(PVDEV vd, struct lock_request *req);
sys/dev/hpt27xx/ldm.h
526
void log_sector_repair(PVDEV vd, int success, HPT_LBA lba, HPT_U16 nsectors);
sys/dev/hpt27xx/ldm.h
528
void ldm_register_device(PVDEV vd);
sys/dev/hpt27xx/ldm.h
529
void ldm_unregister_device(PVDEV vd);
sys/dev/hpt27xx/wj.h
40
void *wj_add_entry(PVBUS vbus, PVDEV vd, HPT_LBA lba, HPT_U16 sectors);
sys/dev/hpt27xx/wj.h
43
void wj_del_vd(PVBUS vbus, PVDEV vd);
sys/dev/hpt27xx/wj.h
44
void wj_sync_stamp(PVBUS vbus, PVDEV vd);
sys/dev/hpt27xx/wj.h
48
#define wj_add_entry(vbus, vd, lba, sectors) 0
sys/dev/hpt27xx/wj.h
51
#define wj_del_vd(vbus, vd) 0
sys/dev/hpt27xx/wj.h
52
#define wj_sync_stamp(vbus, vd) 0
sys/dev/hptnr/hptnr_osm_bsd.c
1030
if(mIsArray(vd->type)) {
sys/dev/hptnr/hptnr_osm_bsd.c
1031
sector_size_shift = vd->u.array.sector_size_shift;
sys/dev/hptnr/hptnr_osm_bsd.c
1034
if(vd->type == VD_RAW){
sys/dev/hptnr/hptnr_osm_bsd.c
1035
sector_size = vd->u.raw.logical_sector_size;
sys/dev/hptnr/hptnr_osm_bsd.c
1066
pCmd->target = vd;
sys/dev/hptnr/hptnr_osm_bsd.c
272
PVDEV vd = pCmd->target;
sys/dev/hptnr/hptnr_osm_bsd.c
274
if (mIsArray(vd->type) && vd->u.array.transform && vd!=vd->u.array.transform->target) {
sys/dev/hptnr/hptnr_osm_bsd.c
275
vd = vd->u.array.transform->target;
sys/dev/hptnr/hptnr_osm_bsd.c
276
HPT_ASSERT(vd);
sys/dev/hptnr/hptnr_osm_bsd.c
277
pCmd->target = vd;
sys/dev/hptnr/hptnr_osm_bsd.c
290
static int hpt_flush_vdev(PVBUS_EXT vbus_ext, PVDEV vd)
sys/dev/hptnr/hptnr_osm_bsd.c
296
KdPrint(("flusing dev %p", vd));
sys/dev/hptnr/hptnr_osm_bsd.c
300
if (mIsArray(vd->type) && vd->u.array.transform)
sys/dev/hptnr/hptnr_osm_bsd.c
301
count = max(vd->u.array.transform->source->cmds_per_request,
sys/dev/hptnr/hptnr_osm_bsd.c
302
vd->u.array.transform->target->cmds_per_request);
sys/dev/hptnr/hptnr_osm_bsd.c
304
count = vd->cmds_per_request;
sys/dev/hptnr/hptnr_osm_bsd.c
306
pCmd = ldm_alloc_cmds(vd->vbus, count);
sys/dev/hptnr/hptnr_osm_bsd.c
314
pCmd->target = vd;
sys/dev/hptnr/hptnr_osm_bsd.c
323
ldm_reset_vbus(vd->vbus);
sys/dev/hptnr/hptnr_osm_bsd.c
353
PVDEV vd = ldm_find_target(vbus, i);
sys/dev/hptnr/hptnr_osm_bsd.c
354
if (vd) {
sys/dev/hptnr/hptnr_osm_bsd.c
356
if (hpt_flush_vdev(vbus_ext, vd))
sys/dev/hptnr/hptnr_osm_bsd.c
357
hpt_flush_vdev(vbus_ext, vd);
sys/dev/hptnr/hptnr_osm_bsd.c
579
PVDEV vd;
sys/dev/hptnr/hptnr_osm_bsd.c
605
vd = ldm_find_target(vbus, ccb->ccb_h.target_id);
sys/dev/hptnr/hptnr_osm_bsd.c
607
if (!vd) {
sys/dev/hptnr/hptnr_osm_bsd.c
627
if (mIsArray(vd->type)) {
sys/dev/hptnr/hptnr_osm_bsd.c
632
HPT_ASSERT(vd->type == VD_RAW && vd->u.raw.legacy_disk);
sys/dev/hptnr/hptnr_osm_bsd.c
643
pCmd = ldm_alloc_cmds(vbus, vd->cmds_per_request);
sys/dev/hptnr/hptnr_osm_bsd.c
737
pCmd->target = vd;
sys/dev/hptnr/hptnr_osm_bsd.c
794
if (vd->type == VD_RAW) {
sys/dev/hptnr/hptnr_osm_bsd.c
796
vd->u.raw.him->get_device_config(vd->u.raw.phy_dev,&devconf);
sys/dev/hptnr/hptnr_osm_bsd.c
854
if (vd->type == VD_RAW) {
sys/dev/hptnr/hptnr_osm_bsd.c
855
vd->u.raw.him->get_device_config(vd->u.raw.phy_dev,&devconf);
sys/dev/hptnr/hptnr_osm_bsd.c
871
os_get_vbus_seq(vbus_ext), vd->target_id);
sys/dev/hptnr/hptnr_osm_bsd.c
887
if (mIsArray(vd->type))
sys/dev/hptnr/hptnr_osm_bsd.c
888
sector_size_shift = vd->u.array.sector_size_shift;
sys/dev/hptnr/hptnr_osm_bsd.c
890
if(vd->type == VD_RAW){
sys/dev/hptnr/hptnr_osm_bsd.c
891
sector_size = vd->u.raw.logical_sector_size;
sys/dev/hptnr/hptnr_osm_bsd.c
903
new_cap = vd->capacity >> sector_size_shift;
sys/dev/hptnr/hptnr_osm_bsd.c
938
if(mIsArray(vd->type))
sys/dev/hptnr/hptnr_osm_bsd.c
939
sector_size_shift = vd->u.array.sector_size_shift;
sys/dev/hptnr/hptnr_osm_bsd.c
941
if(vd->type == VD_RAW){
sys/dev/hptnr/hptnr_osm_bsd.c
942
sector_size = vd->u.raw.logical_sector_size;
sys/dev/hptnr/hptnr_osm_bsd.c
954
cap = (vd->capacity >> sector_size_shift) - 1;
sys/dev/hptnr/hptnr_osm_bsd.c
969
if(!mIsArray(vd->type)){
sys/dev/hptnr/hptnr_osm_bsd.c
970
rbuf[13] = vd->u.raw.logicalsectors_per_physicalsector;
sys/dev/hptnr/hptnr_osm_bsd.c
971
rbuf[14] = (HPT_U8)((vd->u.raw.lowest_aligned >> 8) & 0x3f);
sys/dev/hptnr/hptnr_osm_bsd.c
972
rbuf[15] = (HPT_U8)(vd->u.raw.lowest_aligned);
sys/dev/hptnr/hptnr_osm_bsd.c
992
pCmd = ldm_alloc_cmds(vbus, vd->cmds_per_request);
sys/dev/hptnr/ldm.h
226
HPT_U32 ldm_get_device_id(PVDEV vd); /* for ioctl */
sys/dev/hptnr/ldm.h
304
void (*member_failed)(struct _VDEV * vd);
sys/dev/hptnr/ldm.h
309
int (*add)(PVDEV vd);
sys/dev/hptnr/ldm.h
310
void (*remove)(PVDEV vd);
sys/dev/hptnr/ldm.h
311
void (*reset)(PVDEV vd);
sys/dev/hptnr/ldm.h
312
void (*sync_stamp)(PVDEV vd);
sys/dev/hptnr/ldm.h
449
void ldm_release_vdev(PVDEV vd);
sys/dev/hptnr/ldm.h
495
int ldm_acquire_lock(PVDEV vd, struct lock_request *req);
sys/dev/hptnr/ldm.h
496
void ldm_release_lock(PVDEV vd, struct lock_request *req);
sys/dev/hptnr/ldm.h
525
void log_sector_repair(PVDEV vd, int success, HPT_LBA lba, HPT_U16 nsectors);
sys/dev/hptnr/ldm.h
527
void ldm_register_device(PVDEV vd);
sys/dev/hptnr/ldm.h
528
void ldm_unregister_device(PVDEV vd);
sys/dev/hptnr/wj.h
41
void *wj_add_entry(PVBUS vbus, PVDEV vd, HPT_LBA lba, HPT_U16 sectors);
sys/dev/hptnr/wj.h
44
void wj_del_vd(PVBUS vbus, PVDEV vd);
sys/dev/hptnr/wj.h
45
void wj_sync_stamp(PVBUS vbus, PVDEV vd);
sys/dev/hptnr/wj.h
49
#define wj_add_entry(vbus, vd, lba, sectors) 0
sys/dev/hptnr/wj.h
52
#define wj_del_vd(vbus, vd) 0
sys/dev/hptnr/wj.h
53
#define wj_sync_stamp(vbus, vd) 0
sys/dev/hptrr/array.h
179
HPT_U16 get_strip_size(PVDEV vd);
sys/dev/hptrr/hptrr_osm_bsd.c
274
PVDEV vd = pCmd->target;
sys/dev/hptrr/hptrr_osm_bsd.c
276
if (mIsArray(vd->type) && vd->u.array.transform && vd!=vd->u.array.transform->target) {
sys/dev/hptrr/hptrr_osm_bsd.c
277
vd = vd->u.array.transform->target;
sys/dev/hptrr/hptrr_osm_bsd.c
278
HPT_ASSERT(vd);
sys/dev/hptrr/hptrr_osm_bsd.c
279
pCmd->target = vd;
sys/dev/hptrr/hptrr_osm_bsd.c
292
static int hpt_flush_vdev(PVBUS_EXT vbus_ext, PVDEV vd)
sys/dev/hptrr/hptrr_osm_bsd.c
298
KdPrint(("flusing dev %p", vd));
sys/dev/hptrr/hptrr_osm_bsd.c
302
if (mIsArray(vd->type) && vd->u.array.transform)
sys/dev/hptrr/hptrr_osm_bsd.c
303
count = max(vd->u.array.transform->source->cmds_per_request,
sys/dev/hptrr/hptrr_osm_bsd.c
304
vd->u.array.transform->target->cmds_per_request);
sys/dev/hptrr/hptrr_osm_bsd.c
306
count = vd->cmds_per_request;
sys/dev/hptrr/hptrr_osm_bsd.c
308
pCmd = ldm_alloc_cmds(vd->vbus, count);
sys/dev/hptrr/hptrr_osm_bsd.c
316
pCmd->target = vd;
sys/dev/hptrr/hptrr_osm_bsd.c
325
ldm_reset_vbus(vd->vbus);
sys/dev/hptrr/hptrr_osm_bsd.c
355
PVDEV vd = ldm_find_target(vbus, i);
sys/dev/hptrr/hptrr_osm_bsd.c
356
if (vd) {
sys/dev/hptrr/hptrr_osm_bsd.c
358
if (hpt_flush_vdev(vbus_ext, vd))
sys/dev/hptrr/hptrr_osm_bsd.c
359
hpt_flush_vdev(vbus_ext, vd);
sys/dev/hptrr/hptrr_osm_bsd.c
539
PVDEV vd;
sys/dev/hptrr/hptrr_osm_bsd.c
565
vd = ldm_find_target(vbus, ccb->ccb_h.target_id);
sys/dev/hptrr/hptrr_osm_bsd.c
567
if (!vd) {
sys/dev/hptrr/hptrr_osm_bsd.c
591
if (vd->target_id / 10) {
sys/dev/hptrr/hptrr_osm_bsd.c
592
inquiryData->ProductId[7] = (vd->target_id % 100) / 10 + '0';
sys/dev/hptrr/hptrr_osm_bsd.c
593
inquiryData->ProductId[8] = (vd->target_id % 100) % 10 + '0';
sys/dev/hptrr/hptrr_osm_bsd.c
596
inquiryData->ProductId[7] = (vd->target_id % 100) % 10 + '0';
sys/dev/hptrr/hptrr_osm_bsd.c
609
if (vd->capacity>0xfffffffful)
sys/dev/hptrr/hptrr_osm_bsd.c
612
cap = vd->capacity - 1;
sys/dev/hptrr/hptrr_osm_bsd.c
630
HPT_U64 cap = vd->capacity - 1;
sys/dev/hptrr/hptrr_osm_bsd.c
660
pCmd = ldm_alloc_cmds(vbus, vd->cmds_per_request);
sys/dev/hptrr/hptrr_osm_bsd.c
712
pCmd->target = vd;
sys/dev/hptrr/ldm.h
223
HPT_U32 ldm_get_device_id(PVDEV vd); /* for ioctl */
sys/dev/hptrr/ldm.h
299
void (*member_failed)(struct _VDEV * vd);
sys/dev/hptrr/ldm.h
304
int (*add)(PVDEV vd);
sys/dev/hptrr/ldm.h
305
void (*remove)(PVDEV vd);
sys/dev/hptrr/ldm.h
306
void (*reset)(PVDEV vd);
sys/dev/hptrr/ldm.h
307
void (*sync_stamp)(PVDEV vd);
sys/dev/hptrr/ldm.h
443
void ldm_release_vdev(PVDEV vd);
sys/dev/hptrr/ldm.h
489
int ldm_acquire_lock(PVDEV vd, struct lock_request *req);
sys/dev/hptrr/ldm.h
490
void ldm_release_lock(PVDEV vd, struct lock_request *req);
sys/dev/hptrr/ldm.h
518
void log_sector_repair(PVDEV vd, int success, HPT_LBA lba, HPT_U16 nsectors);
sys/dev/hptrr/ldm.h
520
void ldm_register_device(PVDEV vd);
sys/dev/hptrr/ldm.h
521
void ldm_unregister_device(PVDEV vd);
sys/dev/virtio/gpu/virtio_gpu.c
129
vtgpu_fb_blank(struct vt_device *vd, term_color_t color)
sys/dev/virtio/gpu/virtio_gpu.c
134
info = vd->vd_softc;
sys/dev/virtio/gpu/virtio_gpu.c
137
vt_fb_blank(vd, color);
sys/dev/virtio/gpu/virtio_gpu.c
146
vtgpu_fb_bitblt_text(struct vt_device *vd, const struct vt_window *vw,
sys/dev/virtio/gpu/virtio_gpu.c
153
info = vd->vd_softc;
sys/dev/virtio/gpu/virtio_gpu.c
156
vt_fb_bitblt_text(vd, vw, area);
sys/dev/virtio/gpu/virtio_gpu.c
168
vtgpu_fb_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw,
sys/dev/virtio/gpu/virtio_gpu.c
176
info = vd->vd_softc;
sys/dev/virtio/gpu/virtio_gpu.c
179
vt_fb_bitblt_bitmap(vd, vw, pattern, mask, width, height, x, y, fg, bg);
sys/dev/virtio/gpu/virtio_gpu.c
186
vtgpu_fb_bitblt_argb(struct vt_device *vd, const struct vt_window *vw,
sys/dev/virtio/gpu/virtio_gpu.c
196
vtgpu_fb_drawrect(struct vt_device *vd, int x1, int y1, int x2, int y2,
sys/dev/virtio/gpu/virtio_gpu.c
203
info = vd->vd_softc;
sys/dev/virtio/gpu/virtio_gpu.c
206
vt_fb_drawrect(vd, x1, y1, x2, y2, fill, color);
sys/dev/virtio/gpu/virtio_gpu.c
215
vtgpu_fb_setpixel(struct vt_device *vd, int x, int y, term_color_t color)
sys/dev/virtio/gpu/virtio_gpu.c
220
info = vd->vd_softc;
sys/dev/virtio/gpu/virtio_gpu.c
223
vt_fb_setpixel(vd, x, y, color);
sys/dev/vt/hw/efifb/efifb.c
131
info = vd->vd_softc;
sys/dev/vt/hw/efifb/efifb.c
133
info = vd->vd_softc = (void *)&local_info;
sys/dev/vt/hw/efifb/efifb.c
166
vt_fb_init(vd);
sys/dev/vt/hw/efifb/efifb.c
172
vt_efifb_fini(struct vt_device *vd, void *softc)
sys/dev/vt/hw/efifb/efifb.c
176
vt_fb_fini(vd, softc);
sys/dev/vt/hw/efifb/efifb.c
76
vt_efifb_probe(struct vt_device *vd)
sys/dev/vt/hw/efifb/efifb.c
95
vt_efifb_init(struct vt_device *vd)
sys/dev/vt/hw/fb/vt_early_fb.c
155
vt_efb_probe(struct vt_device *vd)
sys/dev/vt/hw/fb/vt_early_fb.c
173
vt_efb_init(struct vt_device *vd)
sys/dev/vt/hw/fb/vt_early_fb.c
180
if (vd->vd_softc == NULL)
sys/dev/vt/hw/fb/vt_early_fb.c
181
vd->vd_softc = (void *)&local_info;
sys/dev/vt/hw/fb/vt_early_fb.c
183
info = vd->vd_softc;
sys/dev/vt/hw/fb/vt_early_fb.c
291
vt_fb_init(vd);
sys/dev/vt/hw/fb/vt_fb.c
107
vt_fb_ioctl(struct vt_device *vd, u_long cmd, caddr_t data, struct thread *td)
sys/dev/vt/hw/fb/vt_fb.c
112
info = vd->vd_softc;
sys/dev/vt/hw/fb/vt_fb.c
133
if (vd->vd_driver->vd_blank == NULL)
sys/dev/vt/hw/fb/vt_fb.c
135
vd->vd_driver->vd_blank(vd, TC_BLACK);
sys/dev/vt/hw/fb/vt_fb.c
155
vt_fb_mmap(struct vt_device *vd, vm_ooffset_t offset, vm_paddr_t *paddr,
sys/dev/vt/hw/fb/vt_fb.c
160
info = vd->vd_softc;
sys/dev/vt/hw/fb/vt_fb.c
184
vt_fb_setpixel(struct vt_device *vd, int x, int y, term_color_t color)
sys/dev/vt/hw/fb/vt_fb.c
190
info = vd->vd_softc;
sys/dev/vt/hw/fb/vt_fb.c
219
vt_fb_drawrect(struct vt_device *vd, int x1, int y1, int x2, int y2, int fill,
sys/dev/vt/hw/fb/vt_fb.c
227
vt_fb_setpixel(vd, x, y, color);
sys/dev/vt/hw/fb/vt_fb.c
229
vt_fb_setpixel(vd, x1, y, color);
sys/dev/vt/hw/fb/vt_fb.c
230
vt_fb_setpixel(vd, x2, y, color);
sys/dev/vt/hw/fb/vt_fb.c
236
vt_fb_blank(struct vt_device *vd, term_color_t color)
sys/dev/vt/hw/fb/vt_fb.c
242
info = vd->vd_softc;
sys/dev/vt/hw/fb/vt_fb.c
279
vt_fb_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/fb/vt_fb.c
289
info = vd->vd_softc;
sys/dev/vt/hw/fb/vt_fb.c
319
o += vd->vd_transpose;
sys/dev/vt/hw/fb/vt_fb.c
344
vt_fb_bitblt_argb(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/fb/vt_fb.c
353
info = vd->vd_softc;
sys/dev/vt/hw/fb/vt_fb.c
377
o += vd->vd_transpose;
sys/dev/vt/hw/fb/vt_fb.c
390
vt_fb_bitblt_text(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/fb/vt_fb.c
419
if (vd->vd_drawn && (vd->vd_drawn[z] == c) &&
sys/dev/vt/hw/fb/vt_fb.c
420
vd->vd_drawnfg && (vd->vd_drawnfg[z] == fg) &&
sys/dev/vt/hw/fb/vt_fb.c
421
vd->vd_drawnbg && (vd->vd_drawnbg[z] == bg))
sys/dev/vt/hw/fb/vt_fb.c
424
vt_fb_bitblt_bitmap(vd, vw,
sys/dev/vt/hw/fb/vt_fb.c
428
if (vd->vd_drawn)
sys/dev/vt/hw/fb/vt_fb.c
429
vd->vd_drawn[z] = c;
sys/dev/vt/hw/fb/vt_fb.c
430
if (vd->vd_drawnfg)
sys/dev/vt/hw/fb/vt_fb.c
431
vd->vd_drawnfg[z] = fg;
sys/dev/vt/hw/fb/vt_fb.c
432
if (vd->vd_drawnbg)
sys/dev/vt/hw/fb/vt_fb.c
433
vd->vd_drawnbg[z] = bg;
sys/dev/vt/hw/fb/vt_fb.c
438
if (!vd->vd_mshown)
sys/dev/vt/hw/fb/vt_fb.c
448
if (vt_is_cursor_in_area(vd, &drawn_area)) {
sys/dev/vt/hw/fb/vt_fb.c
449
vt_fb_bitblt_bitmap(vd, vw,
sys/dev/vt/hw/fb/vt_fb.c
450
vd->vd_mcursor->map, vd->vd_mcursor->mask,
sys/dev/vt/hw/fb/vt_fb.c
451
vd->vd_mcursor->width, vd->vd_mcursor->height,
sys/dev/vt/hw/fb/vt_fb.c
452
vd->vd_mx_drawn + vw->vw_draw_area.tr_begin.tp_col,
sys/dev/vt/hw/fb/vt_fb.c
453
vd->vd_my_drawn + vw->vw_draw_area.tr_begin.tp_row,
sys/dev/vt/hw/fb/vt_fb.c
454
vd->vd_mcursor_fg, vd->vd_mcursor_bg);
sys/dev/vt/hw/fb/vt_fb.c
460
vt_fb_invalidate_text(struct vt_device *vd, const term_rect_t *area)
sys/dev/vt/hw/fb/vt_fb.c
472
if (vd->vd_drawn)
sys/dev/vt/hw/fb/vt_fb.c
473
vd->vd_drawn[z] = 0;
sys/dev/vt/hw/fb/vt_fb.c
474
if (vd->vd_drawnfg)
sys/dev/vt/hw/fb/vt_fb.c
475
vd->vd_drawnfg[z] = 0;
sys/dev/vt/hw/fb/vt_fb.c
476
if (vd->vd_drawnbg)
sys/dev/vt/hw/fb/vt_fb.c
477
vd->vd_drawnbg[z] = 0;
sys/dev/vt/hw/fb/vt_fb.c
483
vt_fb_postswitch(struct vt_device *vd)
sys/dev/vt/hw/fb/vt_fb.c
487
info = vd->vd_softc;
sys/dev/vt/hw/fb/vt_fb.c
517
vt_fb_init(struct vt_device *vd)
sys/dev/vt/hw/fb/vt_fb.c
524
info = vd->vd_softc;
sys/dev/vt/hw/fb/vt_fb.c
525
vd->vd_height = MIN(VT_FB_MAX_HEIGHT, info->fb_height);
sys/dev/vt/hw/fb/vt_fb.c
526
margin = (info->fb_height - vd->vd_height) >> 1;
sys/dev/vt/hw/fb/vt_fb.c
527
vd->vd_transpose = margin * info->fb_stride;
sys/dev/vt/hw/fb/vt_fb.c
528
vd->vd_width = MIN(VT_FB_MAX_WIDTH, info->fb_width);
sys/dev/vt/hw/fb/vt_fb.c
529
margin = (info->fb_width - vd->vd_width) >> 1;
sys/dev/vt/hw/fb/vt_fb.c
530
vd->vd_transpose += margin * (info->fb_bpp / NBBY);
sys/dev/vt/hw/fb/vt_fb.c
531
vd->vd_video_dev = info->fb_video_dev;
sys/dev/vt/hw/fb/vt_fb.c
553
vd->vd_driver->vd_blank(vd, c);
sys/dev/vt/hw/fb/vt_fb.c
556
vt_fb_postswitch(vd);
sys/dev/vt/hw/fb/vt_fb.c
562
vt_fb_fini(struct vt_device *vd, void *softc)
sys/dev/vt/hw/fb/vt_fb.c
565
vd->vd_video_dev = NULL;
sys/dev/vt/hw/fb/vt_fb.c
589
vt_fb_suspend(struct vt_device *vd)
sys/dev/vt/hw/fb/vt_fb.c
592
vt_suspend(vd);
sys/dev/vt/hw/fb/vt_fb.c
596
vt_fb_resume(struct vt_device *vd)
sys/dev/vt/hw/fb/vt_fb.c
599
vt_resume(vd);
sys/dev/vt/hw/fb/vt_fb.h
35
void vt_fb_resume(struct vt_device *vd);
sys/dev/vt/hw/fb/vt_fb.h
36
void vt_fb_suspend(struct vt_device *vd);
sys/dev/vt/hw/ofwfb/ofwfb.c
133
ofwfb_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/ofwfb/ofwfb.c
138
struct fb_info *sc = vd->vd_softc;
sys/dev/vt/hw/ofwfb/ofwfb.c
153
ofwfb_initialize(vd);
sys/dev/vt/hw/ofwfb/ofwfb.c
154
vd->vd_driver->vd_blank(vd, TC_BLACK);
sys/dev/vt/hw/ofwfb/ofwfb.c
165
if (((struct ofwfb_softc *)vd->vd_softc)->iso_palette) {
sys/dev/vt/hw/ofwfb/ofwfb.c
173
if (((x + width) > vd->vd_width) || ((y + height) >
sys/dev/vt/hw/ofwfb/ofwfb.c
174
vd->vd_height))
sys/dev/vt/hw/ofwfb/ofwfb.c
248
ofwfb_bitblt_argb(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/ofwfb/ofwfb.c
258
ofwfb_bitblt_text(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/ofwfb/ofwfb.c
282
ofwfb_bitblt_bitmap(vd, vw,
sys/dev/vt/hw/ofwfb/ofwfb.c
289
if (!vd->vd_mshown)
sys/dev/vt/hw/ofwfb/ofwfb.c
299
if (vt_is_cursor_in_area(vd, &drawn_area)) {
sys/dev/vt/hw/ofwfb/ofwfb.c
300
ofwfb_bitblt_bitmap(vd, vw,
sys/dev/vt/hw/ofwfb/ofwfb.c
301
vd->vd_mcursor->map, vd->vd_mcursor->mask,
sys/dev/vt/hw/ofwfb/ofwfb.c
302
vd->vd_mcursor->width, vd->vd_mcursor->height,
sys/dev/vt/hw/ofwfb/ofwfb.c
303
vd->vd_mx_drawn + vw->vw_draw_area.tr_begin.tp_col,
sys/dev/vt/hw/ofwfb/ofwfb.c
304
vd->vd_my_drawn + vw->vw_draw_area.tr_begin.tp_row,
sys/dev/vt/hw/ofwfb/ofwfb.c
305
vd->vd_mcursor_fg, vd->vd_mcursor_bg);
sys/dev/vt/hw/ofwfb/ofwfb.c
409
ofwfb_initialize(struct vt_device *vd)
sys/dev/vt/hw/ofwfb/ofwfb.c
411
struct ofwfb_softc *sc = vd->vd_softc;
sys/dev/vt/hw/ofwfb/ofwfb.c
489
ofwfb_init(struct vt_device *vd)
sys/dev/vt/hw/ofwfb/ofwfb.c
504
vd->vd_softc = sc = &ofwfb_conssoftc;
sys/dev/vt/hw/ofwfb/ofwfb.c
64
static void ofwfb_initialize(struct vt_device *vd);
sys/dev/vt/hw/ofwfb/ofwfb.c
710
ofwfb_initialize(vd);
sys/dev/vt/hw/ofwfb/ofwfb.c
711
vt_fb_init(vd);
sys/dev/vt/hw/ofwfb/ofwfb.c
94
ofwfb_probe(struct vt_device *vd)
sys/dev/vt/hw/simplefb/simplefb.c
145
vt_simplefb_probe(struct vt_device *vd)
sys/dev/vt/hw/simplefb/simplefb.c
161
vt_simplefb_init(struct vt_device *vd)
sys/dev/vt/hw/simplefb/simplefb.c
171
vd->vd_softc = sc = &local_info;
sys/dev/vt/hw/simplefb/simplefb.c
212
vt_fb_init(vd);
sys/dev/vt/hw/simplefb/simplefb.c
218
vt_simplefb_fini(struct vt_device *vd, void *softc)
sys/dev/vt/hw/simplefb/simplefb.c
223
vt_fb_fini(vd, softc);
sys/dev/vt/hw/simplefb/simplefb.c
228
vt_simplefb_bitblt_argb(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/vbefb/vbefb.c
101
info = vd->vd_softc;
sys/dev/vt/hw/vbefb/vbefb.c
103
info = vd->vd_softc = (void *)&local_vbe_info;
sys/dev/vt/hw/vbefb/vbefb.c
141
vt_fb_init(vd);
sys/dev/vt/hw/vbefb/vbefb.c
147
vt_vbefb_fini(struct vt_device *vd, void *softc)
sys/dev/vt/hw/vbefb/vbefb.c
151
vt_fb_fini(vd, softc);
sys/dev/vt/hw/vbefb/vbefb.c
76
vt_vbefb_probe(struct vt_device *vd)
sys/dev/vt/hw/vbefb/vbefb.c
95
vt_vbefb_init(struct vt_device *vd)
sys/dev/vt/hw/vga/vt_vga.c
1004
vga_bitblt_argb(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/vga/vt_vga.c
1014
vga_initialize_graphics(struct vt_device *vd)
sys/dev/vt/hw/vga/vt_vga.c
1016
struct vga_softc *sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
1095
vga_initialize(struct vt_device *vd, int textmode)
sys/dev/vt/hw/vga/vt_vga.c
1097
struct vga_softc *sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
1141
vga_initialize_graphics(vd);
sys/dev/vt/hw/vga/vt_vga.c
127
vga_setwmode(struct vt_device *vd, int wmode)
sys/dev/vt/hw/vga/vt_vga.c
1288
vga_probe(struct vt_device *vd)
sys/dev/vt/hw/vga/vt_vga.c
129
struct vga_softc *sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
1295
vga_init(struct vt_device *vd)
sys/dev/vt/hw/vga/vt_vga.c
1300
if (vd->vd_softc == NULL)
sys/dev/vt/hw/vga/vt_vga.c
1301
vd->vd_softc = (void *)&vga_conssoftc;
sys/dev/vt/hw/vga/vt_vga.c
1302
sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
1304
if (vd->vd_flags & VDF_DOWNGRADE && vd->vd_video_dev != NULL)
sys/dev/vt/hw/vga/vt_vga.c
1305
vga_pci_repost(vd->vd_video_dev);
sys/dev/vt/hw/vga/vt_vga.c
1326
vd->vd_flags |= VDF_TEXTMODE;
sys/dev/vt/hw/vga/vt_vga.c
1327
vd->vd_width = 80;
sys/dev/vt/hw/vga/vt_vga.c
1328
vd->vd_height = 25;
sys/dev/vt/hw/vga/vt_vga.c
1332
vd->vd_width = VT_VGA_WIDTH;
sys/dev/vt/hw/vga/vt_vga.c
1333
vd->vd_height = VT_VGA_HEIGHT;
sys/dev/vt/hw/vga/vt_vga.c
1337
if (vga_initialize(vd, textmode) != 0)
sys/dev/vt/hw/vga/vt_vga.c
1345
vga_postswitch(struct vt_device *vd)
sys/dev/vt/hw/vga/vt_vga.c
1349
vga_initialize(vd, (vd->vd_flags & VDF_TEXTMODE));
sys/dev/vt/hw/vga/vt_vga.c
1351
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/hw/vga/vt_vga.c
149
vga_setfg(struct vt_device *vd, term_color_t color)
sys/dev/vt/hw/vga/vt_vga.c
151
struct vga_softc *sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
153
vga_setwmode(vd, 3);
sys/dev/vt/hw/vga/vt_vga.c
164
vga_setbg(struct vt_device *vd, term_color_t color)
sys/dev/vt/hw/vga/vt_vga.c
166
struct vga_softc *sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
168
vga_setwmode(vd, 3);
sys/dev/vt/hw/vga/vt_vga.c
326
vga_blank(struct vt_device *vd, term_color_t color)
sys/dev/vt/hw/vga/vt_vga.c
328
struct vga_softc *sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
331
vga_setfg(vd, color);
sys/dev/vt/hw/vga/vt_vga.c
337
vga_bitblt_put(struct vt_device *vd, u_long dst, term_color_t color,
sys/dev/vt/hw/vga/vt_vga.c
340
struct vga_softc *sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
344
vga_setfg(vd, color);
sys/dev/vt/hw/vga/vt_vga.c
363
vga_setpixel(struct vt_device *vd, int x, int y, term_color_t color)
sys/dev/vt/hw/vga/vt_vga.c
366
if (vd->vd_flags & VDF_TEXTMODE)
sys/dev/vt/hw/vga/vt_vga.c
369
vga_bitblt_put(vd, (y * VT_VGA_WIDTH / 8) + (x / 8), color,
sys/dev/vt/hw/vga/vt_vga.c
374
vga_drawrect(struct vt_device *vd, int x1, int y1, int x2, int y2, int fill,
sys/dev/vt/hw/vga/vt_vga.c
379
if (vd->vd_flags & VDF_TEXTMODE)
sys/dev/vt/hw/vga/vt_vga.c
385
vga_setpixel(vd, x, y, color);
sys/dev/vt/hw/vga/vt_vga.c
387
vga_setpixel(vd, x1, y, color);
sys/dev/vt/hw/vga/vt_vga.c
388
vga_setpixel(vd, x2, y, color);
sys/dev/vt/hw/vga/vt_vga.c
503
vga_bitblt_pixels_block_2colors(struct vt_device *vd, const uint8_t *masks,
sys/dev/vt/hw/vga/vt_vga.c
520
vga_setbg(vd, bg);
sys/dev/vt/hw/vga/vt_vga.c
521
vga_setfg(vd, fg);
sys/dev/vt/hw/vga/vt_vga.c
523
sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
532
vga_bitblt_pixels_block_ncolors(struct vt_device *vd, const uint8_t *masks,
sys/dev/vt/hw/vga/vt_vga.c
539
sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
594
vga_setwmode(vd, 0);
sys/dev/vt/hw/vga/vt_vga.c
610
vga_bitblt_one_text_pixels_block(struct vt_device *vd,
sys/dev/vt/hw/vga/vt_vga.c
727
if (vd->vd_mshown && vt_is_cursor_in_area(vd, &drawn_area)) {
sys/dev/vt/hw/vga/vt_vga.c
732
cursor = vd->vd_mcursor;
sys/dev/vt/hw/vga/vt_vga.c
733
mx = vd->vd_mx_drawn + vw->vw_draw_area.tr_begin.tp_col;
sys/dev/vt/hw/vga/vt_vga.c
734
my = vd->vd_my_drawn + vw->vw_draw_area.tr_begin.tp_row;
sys/dev/vt/hw/vga/vt_vga.c
760
vd->vd_mcursor_fg, vd->vd_mcursor_bg, 1);
sys/dev/vt/hw/vga/vt_vga.c
762
if ((used_colors_list[vd->vd_mcursor_fg] & 0x1) != 0x1)
sys/dev/vt/hw/vga/vt_vga.c
764
if ((used_colors_list[vd->vd_mcursor_bg] & 0x2) != 0x2)
sys/dev/vt/hw/vga/vt_vga.c
774
vga_bitblt_pixels_block_2colors(vd, pattern_2colors, fg, bg,
sys/dev/vt/hw/vga/vt_vga.c
777
vga_bitblt_pixels_block_ncolors(vd, pattern_ncolors,
sys/dev/vt/hw/vga/vt_vga.c
782
vga_bitblt_text_gfxmode(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/vga/vt_vga.c
858
vga_bitblt_one_text_pixels_block(vd, vw, x, y);
sys/dev/vt/hw/vga/vt_vga.c
864
vga_bitblt_text_txtmode(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/vga/vt_vga.c
875
sc = vd->vd_softc;
sys/dev/vt/hw/vga/vt_vga.c
894
if (vd->vd_drawn && (vd->vd_drawn[z] == c) &&
sys/dev/vt/hw/vga/vt_vga.c
895
vd->vd_drawnfg && (vd->vd_drawnfg[z] == fg) &&
sys/dev/vt/hw/vga/vt_vga.c
896
vd->vd_drawnbg && (vd->vd_drawnbg[z] == bg))
sys/dev/vt/hw/vga/vt_vga.c
914
if (vd->vd_drawn)
sys/dev/vt/hw/vga/vt_vga.c
915
vd->vd_drawn[z] = c;
sys/dev/vt/hw/vga/vt_vga.c
916
if (vd->vd_drawnfg)
sys/dev/vt/hw/vga/vt_vga.c
917
vd->vd_drawnfg[z] = fg;
sys/dev/vt/hw/vga/vt_vga.c
918
if (vd->vd_drawnbg)
sys/dev/vt/hw/vga/vt_vga.c
919
vd->vd_drawnbg[z] = bg;
sys/dev/vt/hw/vga/vt_vga.c
925
vga_bitblt_text(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/vga/vt_vga.c
929
if (!(vd->vd_flags & VDF_TEXTMODE)) {
sys/dev/vt/hw/vga/vt_vga.c
930
vga_bitblt_text_gfxmode(vd, vw, area);
sys/dev/vt/hw/vga/vt_vga.c
932
vga_bitblt_text_txtmode(vd, vw, area);
sys/dev/vt/hw/vga/vt_vga.c
937
vga_invalidate_text(struct vt_device *vd, const term_rect_t *area)
sys/dev/vt/hw/vga/vt_vga.c
950
if (vd->vd_drawn)
sys/dev/vt/hw/vga/vt_vga.c
951
vd->vd_drawn[z] = 0;
sys/dev/vt/hw/vga/vt_vga.c
952
if (vd->vd_drawnfg)
sys/dev/vt/hw/vga/vt_vga.c
953
vd->vd_drawnfg[z] = 0;
sys/dev/vt/hw/vga/vt_vga.c
954
if (vd->vd_drawnbg)
sys/dev/vt/hw/vga/vt_vga.c
955
vd->vd_drawnbg[z] = 0;
sys/dev/vt/hw/vga/vt_vga.c
961
vga_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/hw/vga/vt_vga.c
975
x2 = min(x2, vd->vd_width - 1);
sys/dev/vt/hw/vga/vt_vga.c
976
y2 = min(y2, vd->vd_height - 1);
sys/dev/vt/hw/vga/vt_vga.c
992
vga_bitblt_pixels_block_2colors(vd,
sys/dev/vt/vt.h
172
#define VD_PASTEBUF(vd) ((vd)->vd_pastebuf.vpb_buf)
sys/dev/vt/vt.h
173
#define VD_PASTEBUFSZ(vd) ((vd)->vd_pastebuf.vpb_bufsz)
sys/dev/vt/vt.h
174
#define VD_PASTEBUFLEN(vd) ((vd)->vd_pastebuf.vpb_len)
sys/dev/vt/vt.h
176
#define VT_LOCK(vd) mtx_lock(&(vd)->vd_lock)
sys/dev/vt/vt.h
177
#define VT_UNLOCK(vd) mtx_unlock(&(vd)->vd_lock)
sys/dev/vt/vt.h
178
#define VT_LOCK_ASSERT(vd, what) mtx_assert(&(vd)->vd_lock, what)
sys/dev/vt/vt.h
180
#define VT_FLUSH_LOCK(vd) \
sys/dev/vt/vt.h
181
if ((vd)->vd_driver->vd_bitblt_after_vtbuf_unlock) \
sys/dev/vt/vt.h
182
mtx_lock(&(vd)->vd_flush_lock)
sys/dev/vt/vt.h
184
#define VT_FLUSH_UNLOCK(vd) \
sys/dev/vt/vt.h
185
if ((vd)->vd_driver->vd_bitblt_after_vtbuf_unlock) \
sys/dev/vt/vt.h
186
mtx_unlock(&(vd)->vd_flush_lock)
sys/dev/vt/vt.h
188
void vt_resume(struct vt_device *vd);
sys/dev/vt/vt.h
190
void vt_suspend(struct vt_device *vd);
sys/dev/vt/vt.h
334
typedef int vd_init_t(struct vt_device *vd);
sys/dev/vt/vt.h
335
typedef int vd_probe_t(struct vt_device *vd);
sys/dev/vt/vt.h
336
typedef void vd_fini_t(struct vt_device *vd, void *softc);
sys/dev/vt/vt.h
337
typedef void vd_postswitch_t(struct vt_device *vd);
sys/dev/vt/vt.h
338
typedef void vd_blank_t(struct vt_device *vd, term_color_t color);
sys/dev/vt/vt.h
339
typedef void vd_bitblt_text_t(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/vt.h
341
typedef void vd_invalidate_text_t(struct vt_device *vd,
sys/dev/vt/vt.h
343
typedef void vd_bitblt_bmp_t(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/vt.h
347
typedef int vd_bitblt_argb_t(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/vt.h
411
void vt_upgrade(struct vt_device *vd);
sys/dev/vt/vt.h
453
int vt_is_cursor_in_area(const struct vt_device *vd,
sys/dev/vt/vt_core.c
1001
if (vd->vd_kbstate & ALKED) {
sys/dev/vt/vt_core.c
1009
kdb_alt_break(c, &vd->vd_altbrk);
sys/dev/vt/vt_core.c
1021
struct vt_device *vd = arg;
sys/dev/vt/vt_core.c
1029
vd->vd_keyboard = NULL;
sys/dev/vt/vt_core.c
1030
kbd_release(kbd, (void *)vd);
sys/dev/vt/vt_core.c
1038
vt_processkey(kbd, vd, c);
sys/dev/vt/vt_core.c
1044
vt_allocate_keyboard(struct vt_device *vd)
sys/dev/vt/vt_core.c
1056
if (vd->vd_curwindow == &vt_conswindow) {
sys/dev/vt/vt_core.c
1057
grabbed = vd->vd_curwindow->vw_grabbed;
sys/dev/vt/vt_core.c
1059
vtterm_cnungrab_noswitch(vd, vd->vd_curwindow);
sys/dev/vt/vt_core.c
1062
idx0 = kbd_allocate("kbdmux", -1, vd, vt_kbdevent, vd);
sys/dev/vt/vt_core.c
1084
idx0 = kbd_allocate("*", -1, vd, vt_kbdevent, vd);
sys/dev/vt/vt_core.c
1091
vd->vd_keyboard = k0;
sys/dev/vt/vt_core.c
1093
vd->vd_keyboard->kb_index);
sys/dev/vt/vt_core.c
1095
if (vd->vd_curwindow == &vt_conswindow) {
sys/dev/vt/vt_core.c
1097
vtterm_cngrab_noswitch(vd, vd->vd_curwindow);
sys/dev/vt/vt_core.c
1128
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1130
vtterm_devctl(vt_enable_bell, vd->vd_flags & VDF_QUIET_BELL,
sys/dev/vt/vt_core.c
1136
if (vd->vd_flags & VDF_QUIET_BELL)
sys/dev/vt/vt_core.c
1159
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1170
vtterm_devctl(vt_enable_bell, vd->vd_flags & VDF_QUIET_BELL,
sys/dev/vt/vt_core.c
1272
vt_is_cursor_in_area(const struct vt_device *vd, const term_rect_t *area)
sys/dev/vt/vt_core.c
1280
mx = vd->vd_mx_drawn + vd->vd_curwindow->vw_draw_area.tr_begin.tp_col;
sys/dev/vt/vt_core.c
1281
my = vd->vd_my_drawn + vd->vd_curwindow->vw_draw_area.tr_begin.tp_row;
sys/dev/vt/vt_core.c
1284
mx + vd->vd_mcursor->width <= area->tr_begin.tp_col ||
sys/dev/vt/vt_core.c
1286
my + vd->vd_mcursor->height <= area->tr_begin.tp_row)
sys/dev/vt/vt_core.c
1292
vt_mark_mouse_position_as_dirty(struct vt_device *vd, int locked)
sys/dev/vt/vt_core.c
1299
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
1302
x = vd->vd_mx_drawn;
sys/dev/vt/vt_core.c
1303
y = vd->vd_my_drawn;
sys/dev/vt/vt_core.c
1309
((x + vd->vd_mcursor->width) / vf->vf_width) + 1;
sys/dev/vt/vt_core.c
1311
((y + vd->vd_mcursor->height) / vf->vf_height) + 1;
sys/dev/vt/vt_core.c
1327
if (vd->vd_driver->vd_invalidate_text)
sys/dev/vt/vt_core.c
1328
vd->vd_driver->vd_invalidate_text(vd, &area);
sys/dev/vt/vt_core.c
1336
vt_set_border(struct vt_device *vd, const term_rect_t *area,
sys/dev/vt/vt_core.c
1339
vd_drawrect_t *drawrect = vd->vd_driver->vd_drawrect;
sys/dev/vt/vt_core.c
1346
drawrect(vd, 0, 0, vd->vd_width - 1,
sys/dev/vt/vt_core.c
1351
drawrect(vd, 0, area->tr_begin.tp_row,
sys/dev/vt/vt_core.c
1355
if (area->tr_end.tp_col < vd->vd_width)
sys/dev/vt/vt_core.c
1356
drawrect(vd, area->tr_end.tp_col, area->tr_begin.tp_row,
sys/dev/vt/vt_core.c
1357
vd->vd_width - 1, area->tr_end.tp_row - 1, 1, c);
sys/dev/vt/vt_core.c
1360
if (area->tr_end.tp_row < vd->vd_height)
sys/dev/vt/vt_core.c
1361
drawrect(vd, 0, area->tr_end.tp_row, vd->vd_width - 1,
sys/dev/vt/vt_core.c
1362
vd->vd_height - 1, 1, c);
sys/dev/vt/vt_core.c
1366
vt_flush_to_buffer(struct vt_device *vd,
sys/dev/vt/vt_core.c
1386
if (vd->vd_drawn && (vd->vd_drawn[z] == c) &&
sys/dev/vt/vt_core.c
1387
vd->vd_drawnfg && (vd->vd_drawnfg[z] == fg) &&
sys/dev/vt/vt_core.c
1388
vd->vd_drawnbg && (vd->vd_drawnbg[z] == bg)) {
sys/dev/vt/vt_core.c
1389
vd->vd_pos_to_flush[z] = false;
sys/dev/vt/vt_core.c
1393
vd->vd_pos_to_flush[z] = true;
sys/dev/vt/vt_core.c
1395
if (vd->vd_drawn)
sys/dev/vt/vt_core.c
1396
vd->vd_drawn[z] = c;
sys/dev/vt/vt_core.c
1397
if (vd->vd_drawnfg)
sys/dev/vt/vt_core.c
1398
vd->vd_drawnfg[z] = fg;
sys/dev/vt/vt_core.c
1399
if (vd->vd_drawnbg)
sys/dev/vt/vt_core.c
1400
vd->vd_drawnbg[z] = bg;
sys/dev/vt/vt_core.c
1406
vt_bitblt_buffer(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/vt_core.c
1430
if (!vd->vd_pos_to_flush[z])
sys/dev/vt/vt_core.c
1433
c = vd->vd_drawn[z];
sys/dev/vt/vt_core.c
1434
fg = vd->vd_drawnfg[z];
sys/dev/vt/vt_core.c
1435
bg = vd->vd_drawnbg[z];
sys/dev/vt/vt_core.c
1438
vd->vd_driver->vd_bitblt_bmp(vd, vw,
sys/dev/vt/vt_core.c
1445
if (!vd->vd_mshown)
sys/dev/vt/vt_core.c
1455
if (vt_is_cursor_in_area(vd, &drawn_area)) {
sys/dev/vt/vt_core.c
1456
vd->vd_driver->vd_bitblt_bmp(vd, vw,
sys/dev/vt/vt_core.c
1457
vd->vd_mcursor->map, vd->vd_mcursor->mask,
sys/dev/vt/vt_core.c
1458
vd->vd_mcursor->width, vd->vd_mcursor->height,
sys/dev/vt/vt_core.c
1459
vd->vd_mx_drawn + vw->vw_draw_area.tr_begin.tp_col,
sys/dev/vt/vt_core.c
1460
vd->vd_my_drawn + vw->vw_draw_area.tr_begin.tp_row,
sys/dev/vt/vt_core.c
1461
vd->vd_mcursor_fg, vd->vd_mcursor_bg);
sys/dev/vt/vt_core.c
1467
vt_draw_decorations(struct vt_device *vd)
sys/dev/vt/vt_core.c
1472
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
1475
vt_set_border(vd, &vw->vw_draw_area, a->ta_bgcolor);
sys/dev/vt/vt_core.c
1478
vtterm_draw_cpu_logos(vd);
sys/dev/vt/vt_core.c
1482
vt_flush(struct vt_device *vd)
sys/dev/vt/vt_core.c
1495
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
1499
if (vd->vd_flags & VDF_SPLASH || vw->vw_flags & VWF_BUSY)
sys/dev/vt/vt_core.c
1503
if (((vd->vd_flags & VDF_TEXTMODE) == 0) && (vf == NULL))
sys/dev/vt/vt_core.c
1506
VT_FLUSH_LOCK(vd);
sys/dev/vt/vt_core.c
1512
cursor_was_shown = vd->vd_mshown;
sys/dev/vt/vt_core.c
1513
cursor_moved = (vd->vd_mx != vd->vd_mx_drawn ||
sys/dev/vt/vt_core.c
1514
vd->vd_my != vd->vd_my_drawn);
sys/dev/vt/vt_core.c
1517
if ((vd->vd_flags & VDF_MOUSECURSOR) && /* Mouse support enabled. */
sys/dev/vt/vt_core.c
1520
vd->vd_mshown = 1;
sys/dev/vt/vt_core.c
1522
vd->vd_mshown = 0;
sys/dev/vt/vt_core.c
1529
if (cursor_was_shown != vd->vd_mshown ||
sys/dev/vt/vt_core.c
1530
(vd->vd_mshown && cursor_moved))
sys/dev/vt/vt_core.c
1531
vt_mark_mouse_position_as_dirty(vd, true);
sys/dev/vt/vt_core.c
1538
vd->vd_mx_drawn = vd->vd_mx;
sys/dev/vt/vt_core.c
1539
vd->vd_my_drawn = vd->vd_my;
sys/dev/vt/vt_core.c
1545
if (vd->vd_mshown && cursor_moved)
sys/dev/vt/vt_core.c
1546
vt_mark_mouse_position_as_dirty(vd, true);
sys/dev/vt/vt_core.c
1553
if (vd->vd_flags & (VDF_INVALID | VDF_SUSPENDED)) {
sys/dev/vt/vt_core.c
1555
vd->vd_flags &= ~VDF_INVALID;
sys/dev/vt/vt_core.c
1557
vt_termrect(vd, vf, &tarea);
sys/dev/vt/vt_core.c
1558
if (vd->vd_driver->vd_invalidate_text)
sys/dev/vt/vt_core.c
1559
vd->vd_driver->vd_invalidate_text(vd, &tarea);
sys/dev/vt/vt_core.c
1563
if (vd->vd_driver->vd_bitblt_after_vtbuf_unlock) {
sys/dev/vt/vt_core.c
1572
vt_flush_to_buffer(vd, vw, &tarea);
sys/dev/vt/vt_core.c
1574
vt_bitblt_buffer(vd, vw, &tarea);
sys/dev/vt/vt_core.c
1577
vt_draw_decorations(vd);
sys/dev/vt/vt_core.c
1590
vd->vd_driver->vd_bitblt_text(vd, vw, &tarea);
sys/dev/vt/vt_core.c
1593
vt_draw_decorations(vd);
sys/dev/vt/vt_core.c
1599
VT_FLUSH_UNLOCK(vd);
sys/dev/vt/vt_core.c
1607
VT_FLUSH_UNLOCK(vd);
sys/dev/vt/vt_core.c
1615
struct vt_device *vd;
sys/dev/vt/vt_core.c
1618
vd = arg;
sys/dev/vt/vt_core.c
1620
changed = vt_flush(vd);
sys/dev/vt/vt_core.c
1624
vt_schedule_flush(vd, 0);
sys/dev/vt/vt_core.c
1626
vd->vd_timer_armed = 0;
sys/dev/vt/vt_core.c
1656
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1660
if (vd->vd_curwindow != vw) {
sys/dev/vt/vt_core.c
1661
vd->vd_curwindow = vw;
sys/dev/vt/vt_core.c
1662
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
1663
if (vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
1664
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
1666
vd->vd_flags &= ~VDF_SPLASH;
sys/dev/vt/vt_core.c
1667
vt_flush(vd);
sys/dev/vt/vt_core.c
1672
vt_flush(vd);
sys/dev/vt/vt_core.c
1674
} else if (!(vd->vd_flags & VDF_ASYNC)) {
sys/dev/vt/vt_core.c
1675
vt_flush(vd);
sys/dev/vt/vt_core.c
1681
vtterm_splash(struct vt_device *vd)
sys/dev/vt/vt_core.c
1687
if (!(vd->vd_flags & VDF_TEXTMODE) && (boothowto & RB_MUTE)) {
sys/dev/vt/vt_core.c
1690
vd->vd_driver->vd_blank(vd, TC_BLACK);
sys/dev/vt/vt_core.c
1695
top = (vd->vd_height - vt_logo_height) / 2;
sys/dev/vt/vt_core.c
1696
left = (vd->vd_width - vt_logo_width) / 2;
sys/dev/vt/vt_core.c
1697
vd->vd_driver->vd_bitblt_bmp(vd, vd->vd_curwindow,
sys/dev/vt/vt_core.c
1705
top = (vd->vd_height - si->si_height) / 2;
sys/dev/vt/vt_core.c
1706
left = (vd->vd_width - si->si_width) / 2;
sys/dev/vt/vt_core.c
1707
vd->vd_driver->vd_bitblt_argb(vd, vd->vd_curwindow,
sys/dev/vt/vt_core.c
1711
vd->vd_flags |= VDF_SPLASH;
sys/dev/vt/vt_core.c
1854
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1861
if (vd->vd_flags & VDF_INITIALIZED)
sys/dev/vt/vt_core.c
1869
if (vtd->vd_probe(vd) == CN_DEAD)
sys/dev/vt/vt_core.c
1877
vd->vd_flags |= VDF_DEAD;
sys/dev/vt/vt_core.c
1879
vd->vd_driver = vtdbest;
sys/dev/vt/vt_core.c
1880
cp->cn_pri = vd->vd_driver->vd_init(vd);
sys/dev/vt/vt_core.c
1885
vd->vd_flags |= VDF_DEAD;
sys/dev/vt/vt_core.c
1891
vd->vd_unit = atomic_fetchadd_int(&vt_unit, 1);
sys/dev/vt/vt_core.c
1892
vd->vd_windows[VT_CONSWINDOW] = vw;
sys/dev/vt/vt_core.c
1898
if ((vd->vd_flags & VDF_TEXTMODE) == 0) {
sys/dev/vt/vt_core.c
1908
if (vd->vd_width != 0 && vd->vd_height != 0)
sys/dev/vt/vt_core.c
1909
vt_termsize(vd, vw->vw_font, &vw->vw_buf.vb_scr_size);
sys/dev/vt/vt_core.c
1914
vt_winsize(vd, vw->vw_font, &wsz);
sys/dev/vt/vt_core.c
1921
vtterm_splash(vd);
sys/dev/vt/vt_core.c
1923
vd->vd_flags |= VDF_INITIALIZED;
sys/dev/vt/vt_core.c
1931
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1939
if (vd->vd_flags & VDF_SPLASH) {
sys/dev/vt/vt_core.c
1941
vd->vd_flags &= ~VDF_SPLASH;
sys/dev/vt/vt_core.c
1943
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
1944
vt_flush(vd);
sys/dev/vt/vt_core.c
1948
if ((kbd = vd->vd_keyboard) == NULL)
sys/dev/vt/vt_core.c
1964
vt_flush(vd);
sys/dev/vt/vt_core.c
2003
vt_flush(vd);
sys/dev/vt/vt_core.c
2023
vtterm_cngrab_noswitch(struct vt_device *vd, struct vt_window *vw)
sys/dev/vt/vt_core.c
2030
if ((kbd = vd->vd_keyboard) == NULL)
sys/dev/vt/vt_core.c
2049
vtterm_cnungrab_noswitch(struct vt_device *vd, struct vt_window *vw)
sys/dev/vt/vt_core.c
2056
if ((kbd = vd->vd_keyboard) == NULL)
sys/dev/vt/vt_core.c
2070
struct vt_device *vd;
sys/dev/vt/vt_core.c
2074
vd = vw->vw_device;
sys/dev/vt/vt_core.c
2077
if (vd->vd_grabwindow == NULL)
sys/dev/vt/vt_core.c
2078
vd->vd_grabwindow = vd->vd_curwindow;
sys/dev/vt/vt_core.c
2083
vtterm_cngrab_noswitch(vd, vw);
sys/dev/vt/vt_core.c
2089
struct vt_device *vd;
sys/dev/vt/vt_core.c
2093
vd = vw->vw_device;
sys/dev/vt/vt_core.c
2095
MPASS(vd->vd_grabwindow != NULL);
sys/dev/vt/vt_core.c
2096
if (vtterm_cnungrab_noswitch(vd, vw) != 0)
sys/dev/vt/vt_core.c
2107
grabwindow = vd->vd_grabwindow;
sys/dev/vt/vt_core.c
2108
vd->vd_grabwindow = NULL;
sys/dev/vt/vt_core.c
2118
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
2120
VT_LOCK(vd);
sys/dev/vt/vt_core.c
2121
vd->vd_flags &= ~VDF_SPLASH;
sys/dev/vt/vt_core.c
2128
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2134
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
2152
VT_LOCK(vd);
sys/dev/vt/vt_core.c
2155
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2159
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2161
vt_termsize(vd, vf, &size);
sys/dev/vt/vt_core.c
2162
vt_winsize(vd, vf, &wsz);
sys/dev/vt/vt_core.c
2172
VT_LOCK(vd);
sys/dev/vt/vt_core.c
2187
vd->vd_mx = min(vd->vd_mx,
sys/dev/vt/vt_core.c
2190
vd->vd_my = min(vd->vd_my,
sys/dev/vt/vt_core.c
2195
if (vd->vd_curwindow == vw) {
sys/dev/vt/vt_core.c
2196
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
2200
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2293
vt_mouse_terminput_button(struct vt_device *vd, int button)
sys/dev/vt/vt_core.c
2300
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
2304
x = vd->vd_mx / vf->vf_width;
sys/dev/vt/vt_core.c
2305
y = vd->vd_my / vf->vf_height;
sys/dev/vt/vt_core.c
2319
vt_mouse_terminput(struct vt_device *vd, int type, int x, int y, int event,
sys/dev/vt/vt_core.c
2328
vt_mouse_terminput_button(vd, 0);
sys/dev/vt/vt_core.c
2330
vt_mouse_terminput_button(vd, 1);
sys/dev/vt/vt_core.c
2332
vt_mouse_terminput_button(vd, 2);
sys/dev/vt/vt_core.c
2335
vt_mouse_terminput_button(vd, 3);
sys/dev/vt/vt_core.c
2342
sc_mouse_input_button(vd, 64);
sys/dev/vt/vt_core.c
2345
sc_mouse_input_button(vd, 65);
sys/dev/vt/vt_core.c
2372
struct vt_device *vd;
sys/dev/vt/vt_core.c
2378
vd = main_vd;
sys/dev/vt/vt_core.c
2379
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
2399
vt_mouse_terminput(vd, type, x, y, event, cnt);
sys/dev/vt/vt_core.c
2405
x += vd->vd_mx;
sys/dev/vt/vt_core.c
2406
y += vd->vd_my;
sys/dev/vt/vt_core.c
2408
vt_termsize(vd, vf, &size);
sys/dev/vt/vt_core.c
2416
vd->vd_mx = x;
sys/dev/vt/vt_core.c
2417
vd->vd_my = y;
sys/dev/vt/vt_core.c
2418
if (vd->vd_mstate & (MOUSE_BUTTON1DOWN | VT_MOUSE_EXTENDBUTTON))
sys/dev/vt/vt_core.c
2420
vd->vd_mx / vf->vf_width,
sys/dev/vt/vt_core.c
2421
vd->vd_my / vf->vf_height);
sys/dev/vt/vt_core.c
2457
vd->vd_mx / vf->vf_width,
sys/dev/vt/vt_core.c
2458
vd->vd_my / vf->vf_height);
sys/dev/vt/vt_core.c
2465
if (!(vd->vd_mstate & MOUSE_BUTTON1DOWN))
sys/dev/vt/vt_core.c
2481
vd->vd_mstate |= event;
sys/dev/vt/vt_core.c
2483
vd->vd_mstate &= ~event;
sys/dev/vt/vt_core.c
2485
if (vtbuf_set_mark(&vw->vw_buf, mark, vd->vd_mx / vf->vf_width,
sys/dev/vt/vt_core.c
2486
vd->vd_my / vf->vf_height) == 1) {
sys/dev/vt/vt_core.c
2510
if (len > VD_PASTEBUFSZ(vd)) {
sys/dev/vt/vt_core.c
2511
VD_PASTEBUF(vd) = realloc(VD_PASTEBUF(vd), len, M_VT,
sys/dev/vt/vt_core.c
2514
VD_PASTEBUFSZ(vd) = len;
sys/dev/vt/vt_core.c
2517
vtbuf_extract_marked(&vw->vw_buf, VD_PASTEBUF(vd), len, mark);
sys/dev/vt/vt_core.c
2519
VD_PASTEBUFLEN(vd) = len;
sys/dev/vt/vt_core.c
2528
struct vt_device *vd;
sys/dev/vt/vt_core.c
2531
vd = main_vd;
sys/dev/vt/vt_core.c
2532
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
2544
vt_mark_mouse_position_as_dirty(vd, false);
sys/dev/vt/vt_core.c
2554
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
2556
if (vd->vd_driver->vd_fb_mmap)
sys/dev/vt/vt_core.c
2557
return (vd->vd_driver->vd_fb_mmap(vd, offset, paddr, nprot,
sys/dev/vt/vt_core.c
2568
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
2647
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2663
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2665
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2688
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2690
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2700
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2702
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2725
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2727
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2741
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2743
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2766
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2768
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2784
if (vd->vd_driver->vd_fb_ioctl)
sys/dev/vt/vt_core.c
2785
return (vd->vd_driver->vd_fb_ioctl(vd, cmd, data, td));
sys/dev/vt/vt_core.c
2804
VT_LOCK(vd);
sys/dev/vt/vt_core.c
2805
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2806
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
2809
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2817
vd->vd_flags |= VDF_QUIET_BELL;
sys/dev/vt/vt_core.c
2819
vd->vd_flags &= ~VDF_QUIET_BELL;
sys/dev/vt/vt_core.c
2826
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2828
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2833
vi->m_num = vd->vd_curwindow->vw_number + 1;
sys/dev/vt/vt_core.c
2854
if (vd->vd_flags & VDF_MOUSECURSOR) {
sys/dev/vt/vt_core.c
2855
vd->vd_flags &= ~VDF_MOUSECURSOR;
sys/dev/vt/vt_core.c
2862
if (!(vd->vd_flags & VDF_MOUSECURSOR)) {
sys/dev/vt/vt_core.c
2863
vd->vd_flags |= VDF_MOUSECURSOR;
sys/dev/vt/vt_core.c
2864
vd->vd_mx = vd->vd_width / 2;
sys/dev/vt/vt_core.c
2865
vd->vd_my = vd->vd_height / 2;
sys/dev/vt/vt_core.c
2878
if (vd->vd_flags & VDF_TEXTMODE)
sys/dev/vt/vt_core.c
2947
if (vd->vd_keyboard == NULL ||
sys/dev/vt/vt_core.c
2948
vd->vd_keyboard->kb_index != *(int *)data) {
sys/dev/vt/vt_core.c
2955
(void *)vd, vt_kbdevent, vd);
sys/dev/vt/vt_core.c
2957
if ((kbd = vd->vd_keyboard) != NULL) {
sys/dev/vt/vt_core.c
2958
vt_save_kbd_state(vd->vd_curwindow, kbd);
sys/dev/vt/vt_core.c
2959
kbd_release(kbd, (void *)vd);
sys/dev/vt/vt_core.c
2961
kbd = vd->vd_keyboard = kbd_get_keyboard(i);
sys/dev/vt/vt_core.c
2963
vt_update_kbd_mode(vd->vd_curwindow, kbd);
sys/dev/vt/vt_core.c
2964
vt_update_kbd_state(vd->vd_curwindow, kbd);
sys/dev/vt/vt_core.c
2974
if ((kbd = vd->vd_keyboard) != NULL) {
sys/dev/vt/vt_core.c
2975
vt_save_kbd_state(vd->vd_curwindow, kbd);
sys/dev/vt/vt_core.c
2976
error = kbd_release(kbd, (void *)vd);
sys/dev/vt/vt_core.c
2978
vd->vd_keyboard = NULL;
sys/dev/vt/vt_core.c
2990
return (vt_proc_window_switch(vd->vd_windows[win]));
sys/dev/vt/vt_core.c
2993
*(int *)data = vd->vd_curwindow->vw_number + 1;
sys/dev/vt/vt_core.c
3008
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3010
vw = vd->vd_windows[i];
sys/dev/vt/vt_core.c
3015
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3019
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
302
vt_schedule_flush(struct vt_device *vd, int ms)
sys/dev/vt/vt_core.c
3030
vw = vd->vd_windows[idx - 1];
sys/dev/vt/vt_core.c
3032
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3033
while (vd->vd_curwindow != vw && error == 0)
sys/dev/vt/vt_core.c
3034
error = cv_wait_sig(&vd->vd_winswitch, &vd->vd_lock);
sys/dev/vt/vt_core.c
3035
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
309
callout_schedule(&vd->vd_timer, hz / (1000 / ms));
sys/dev/vt/vt_core.c
3098
if ((vw != vd->vd_curwindow) || (vw->vw_smode.mode !=
sys/dev/vt/vt_core.c
3138
vt_allocate_window(struct vt_device *vd, unsigned int window)
sys/dev/vt/vt_core.c
3146
vw->vw_device = vd;
sys/dev/vt/vt_core.c
315
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
3150
if ((vd->vd_flags & VDF_TEXTMODE) == 0) {
sys/dev/vt/vt_core.c
3155
vt_termsize(vd, vw->vw_font, &size);
sys/dev/vt/vt_core.c
3156
vt_winsize(vd, vw->vw_font, &wsz);
sys/dev/vt/vt_core.c
3162
vd->vd_windows[window] = vw;
sys/dev/vt/vt_core.c
3169
vt_upgrade(struct vt_device *vd)
sys/dev/vt/vt_core.c
317
if (vd->vd_curwindow != vw)
sys/dev/vt/vt_core.c
3181
vw = vd->vd_windows[i];
sys/dev/vt/vt_core.c
3184
vw = vt_allocate_window(vd, i);
sys/dev/vt/vt_core.c
320
if (!(vd->vd_flags & VDF_ASYNC) ||
sys/dev/vt/vt_core.c
3201
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3202
if (vd->vd_curwindow == NULL)
sys/dev/vt/vt_core.c
3203
vd->vd_curwindow = vd->vd_windows[VT_CONSWINDOW];
sys/dev/vt/vt_core.c
3206
if (!(vd->vd_flags & VDF_ASYNC)) {
sys/dev/vt/vt_core.c
3208
vt_allocate_keyboard(vd);
sys/dev/vt/vt_core.c
321
!atomic_cmpset_int(&vd->vd_timer_armed, 0, 1))
sys/dev/vt/vt_core.c
3211
callout_init_mtx(&vd->vd_timer, &vd->vd_lock, 0);
sys/dev/vt/vt_core.c
3221
atomic_add_acq_int(&vd->vd_timer_armed, 1);
sys/dev/vt/vt_core.c
3222
vd->vd_flags |= VDF_ASYNC;
sys/dev/vt/vt_core.c
3223
callout_reset(&vd->vd_timer, hz / VT_TIMERFREQ, vt_timer, vd);
sys/dev/vt/vt_core.c
3227
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3230
vt_resize(vd);
sys/dev/vt/vt_core.c
3235
vd, EVENTHANDLER_PRI_ANY);
sys/dev/vt/vt_core.c
3236
EVENTHANDLER_REGISTER(power_resume, vt_resume_handler, vd,
sys/dev/vt/vt_core.c
324
vt_schedule_flush(vd, ms);
sys/dev/vt/vt_core.c
3242
vt_resize(struct vt_device *vd)
sys/dev/vt/vt_core.c
3248
vw = vd->vd_windows[i];
sys/dev/vt/vt_core.c
3249
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3251
if (!(vd->vd_flags & VDF_TEXTMODE) && vw->vw_font == NULL)
sys/dev/vt/vt_core.c
3253
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3266
struct vt_device *vd;
sys/dev/vt/vt_core.c
3268
vd = main_vd;
sys/dev/vt/vt_core.c
3270
if (vd->vd_flags & VDF_ASYNC) {
sys/dev/vt/vt_core.c
3272
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3273
vt_suspend_flush_timer(vd);
sys/dev/vt/vt_core.c
3274
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3279
terminal_mute(vd->vd_curwindow->vw_terminal, 1);
sys/dev/vt/vt_core.c
328
vt_suspend_flush_timer(struct vt_device *vd)
sys/dev/vt/vt_core.c
3286
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3287
vd->vd_flags &= ~VDF_TEXTMODE;
sys/dev/vt/vt_core.c
3295
vd->vd_prev_driver = vd->vd_driver;
sys/dev/vt/vt_core.c
3296
vd->vd_prev_softc = vd->vd_softc;
sys/dev/vt/vt_core.c
3297
vd->vd_driver = drv;
sys/dev/vt/vt_core.c
3298
vd->vd_softc = softc;
sys/dev/vt/vt_core.c
3300
vd->vd_driver->vd_init(vd);
sys/dev/vt/vt_core.c
3301
} else if (vd->vd_prev_driver != NULL && vd->vd_prev_softc != NULL) {
sys/dev/vt/vt_core.c
3309
old_drv = vd->vd_driver;
sys/dev/vt/vt_core.c
3310
old_softc = vd->vd_softc;
sys/dev/vt/vt_core.c
3312
vd->vd_driver = vd->vd_prev_driver;
sys/dev/vt/vt_core.c
3313
vd->vd_softc = vd->vd_prev_softc;
sys/dev/vt/vt_core.c
3314
vd->vd_prev_driver = NULL;
sys/dev/vt/vt_core.c
3315
vd->vd_prev_softc = NULL;
sys/dev/vt/vt_core.c
3317
vd->vd_flags |= VDF_DOWNGRADE;
sys/dev/vt/vt_core.c
3319
vd->vd_driver->vd_init(vd);
sys/dev/vt/vt_core.c
3322
old_drv->vd_fini(vd, old_softc);
sys/dev/vt/vt_core.c
3324
vd->vd_flags &= ~VDF_DOWNGRADE;
sys/dev/vt/vt_core.c
3327
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3330
vt_upgrade(vd);
sys/dev/vt/vt_core.c
3336
if (vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
3337
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
3340
if (vd->vd_flags & VDF_SPLASH)
sys/dev/vt/vt_core.c
3341
vtterm_splash(vd);
sys/dev/vt/vt_core.c
3344
if (vd->vd_flags & VDF_ASYNC) {
sys/dev/vt/vt_core.c
3346
terminal_mute(vd->vd_curwindow->vw_terminal, 0);
sys/dev/vt/vt_core.c
3348
vt_resume_flush_timer(vd->vd_curwindow, 0);
sys/dev/vt/vt_core.c
335
VT_LOCK_ASSERT(vd, MA_OWNED);
sys/dev/vt/vt_core.c
3355
termcn_cnregister(vd->vd_windows[VT_CONSWINDOW]->vw_terminal);
sys/dev/vt/vt_core.c
3361
struct vt_device *vd;
sys/dev/vt/vt_core.c
3363
vd = priv;
sys/dev/vt/vt_core.c
3364
vd->vd_flags |= VDF_SUSPENDED;
sys/dev/vt/vt_core.c
3365
if (vd->vd_driver != NULL && vd->vd_driver->vd_suspend != NULL)
sys/dev/vt/vt_core.c
3366
vd->vd_driver->vd_suspend(vd);
sys/dev/vt/vt_core.c
337
if (!(vd->vd_flags & VDF_ASYNC) ||
sys/dev/vt/vt_core.c
3372
struct vt_device *vd;
sys/dev/vt/vt_core.c
3374
vd = priv;
sys/dev/vt/vt_core.c
3375
if (vd->vd_driver != NULL && vd->vd_driver->vd_resume != NULL)
sys/dev/vt/vt_core.c
3376
vd->vd_driver->vd_resume(vd);
sys/dev/vt/vt_core.c
3377
vd->vd_flags &= ~VDF_SUSPENDED;
sys/dev/vt/vt_core.c
338
!atomic_cmpset_int(&vd->vd_timer_armed, 1, 0))
sys/dev/vt/vt_core.c
341
callout_stop(&vd->vd_timer);
sys/dev/vt/vt_core.c
3431
vt_suspend(struct vt_device *vd)
sys/dev/vt/vt_core.c
3438
vd->vd_savedwindow = vd->vd_curwindow;
sys/dev/vt/vt_core.c
3440
vt_proc_window_switch(vd->vd_windows[VT_CONSWINDOW]);
sys/dev/vt/vt_core.c
3444
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3445
while (vd->vd_curwindow != vd->vd_windows[VT_CONSWINDOW] && error == 0)
sys/dev/vt/vt_core.c
3446
error = cv_wait_sig(&vd->vd_winswitch, &vd->vd_lock);
sys/dev/vt/vt_core.c
3447
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3451
vt_resume(struct vt_device *vd)
sys/dev/vt/vt_core.c
3457
vt_proc_window_switch(vd->vd_savedwindow);
sys/dev/vt/vt_core.c
3458
vd->vd_savedwindow = NULL;
sys/dev/vt/vt_core.c
498
struct vt_device *vd;
sys/dev/vt/vt_core.c
506
vd = vw->vw_device;
sys/dev/vt/vt_core.c
507
curvw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
536
VT_LOCK(vd);
sys/dev/vt/vt_core.c
538
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
541
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
567
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
568
struct vt_window *curvw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
590
vd->vd_curwindow = vw;
sys/dev/vt/vt_core.c
591
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
592
if (vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
593
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
598
VT_LOCK(vd);
sys/dev/vt/vt_core.c
606
vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
607
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
609
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
614
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
618
vt_suspend_flush_timer(vd);
sys/dev/vt/vt_core.c
620
vd->vd_curwindow = vw;
sys/dev/vt/vt_core.c
621
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
622
cv_broadcast(&vd->vd_winswitch);
sys/dev/vt/vt_core.c
623
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
625
if (vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
626
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
632
if ((kbd = vd->vd_keyboard) != NULL) {
sys/dev/vt/vt_core.c
647
vt_termsize(struct vt_device *vd, struct vt_font *vf, term_pos_t *size)
sys/dev/vt/vt_core.c
650
size->tp_row = vd->vd_height;
sys/dev/vt/vt_core.c
653
size->tp_col = vd->vd_width;
sys/dev/vt/vt_core.c
663
vt_termrect(struct vt_device *vd, struct vt_font *vf, term_rect_t *rect)
sys/dev/vt/vt_core.c
670
rect->tr_end.tp_row = vd->vd_height;
sys/dev/vt/vt_core.c
671
rect->tr_end.tp_col = vd->vd_width;
sys/dev/vt/vt_core.c
685
vt_winsize(struct vt_device *vd, struct vt_font *vf, struct winsize *size)
sys/dev/vt/vt_core.c
688
size->ws_ypixel = vd->vd_height;
sys/dev/vt/vt_core.c
692
size->ws_col = size->ws_xpixel = vd->vd_width;
sys/dev/vt/vt_core.c
704
struct vt_device *vd;
sys/dev/vt/vt_core.c
708
vd = vw->vw_device;
sys/dev/vt/vt_core.c
715
vw->vw_draw_area.tr_end.tp_col = vd->vd_width;
sys/dev/vt/vt_core.c
716
vw->vw_draw_area.tr_end.tp_row = vd->vd_height;
sys/dev/vt/vt_core.c
727
height = vd->vd_height;
sys/dev/vt/vt_core.c
730
vw->vw_draw_area.tr_begin.tp_col = (vd->vd_width % vf->vf_width) / 2;
sys/dev/vt/vt_core.c
735
rounddown(vd->vd_width, vf->vf_width);
sys/dev/vt/vt_core.c
758
vt_machine_kbdevent(struct vt_device *vd, int c)
sys/dev/vt/vt_core.c
771
vd->vd_kbstate &= ~ALKED;
sys/dev/vt/vt_core.c
821
struct vt_device *vd;
sys/dev/vt/vt_core.c
824
vd = vw->vw_device;
sys/dev/vt/vt_core.c
833
vw = vd->vd_windows[c - F_SCR];
sys/dev/vt/vt_core.c
837
VT_LOCK(vd);
sys/dev/vt/vt_core.c
855
vt_termsize(vd, vw->vw_font, &size);
sys/dev/vt/vt_core.c
865
vt_termsize(vd, vw->vw_font, &size);
sys/dev/vt/vt_core.c
871
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
875
vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c)
sys/dev/vt/vt_core.c
877
struct vt_window *vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
889
vd->vd_kbstate &= ~ALKED;
sys/dev/vt/vt_core.c
899
vd->vd_kbstate |= ALKED;
sys/dev/vt/vt_core.c
908
if (vt_machine_kbdevent(vd, c))
sys/dev/vt/vt_core.c
921
vw = vd->vd_windows[c - F_SCR];
sys/dev/vt/vt_core.c
930
vw = vd->vd_windows[c];
sys/dev/vt/vt_core.c
936
vw = vd->vd_windows[c];
sys/dev/vt/vt_core.c
941
VT_LOCK(vd);
sys/dev/vt/vt_core.c
952
VT_UNLOCK(vd);
sys/dev/vt/vt_cpulogos.c
100
vt_draw_2_vga16_px(vd,
sys/dev/vt/vt_cpulogos.c
107
vt_draw_2_vga16_px(vd, left + (xy % vt_logo_sprite_width),
sys/dev/vt/vt_cpulogos.c
117
vtterm_draw_cpu_logos(struct vt_device *vd)
sys/dev/vt/vt_cpulogos.c
121
struct terminal *tm = vd->vd_curwindow->vw_terminal;
sys/dev/vt/vt_cpulogos.c
133
if (vd->vd_driver->vd_drawrect)
sys/dev/vt/vt_cpulogos.c
134
vd->vd_driver->vd_drawrect(vd, 0, 0, vd->vd_width - 1,
sys/dev/vt/vt_cpulogos.c
140
else if (vd->vd_driver->vd_blank)
sys/dev/vt/vt_cpulogos.c
141
vd->vd_driver->vd_blank(vd, a->ta_bgcolor);
sys/dev/vt/vt_cpulogos.c
143
ncpu = MIN(ncpu, vd->vd_width / vt_logo_sprite_width);
sys/dev/vt/vt_cpulogos.c
145
vt_draw_1_logo(vd, 0, left);
sys/dev/vt/vt_cpulogos.c
151
struct vt_device *vd;
sys/dev/vt/vt_cpulogos.c
166
vd = &vt_consdev;
sys/dev/vt/vt_cpulogos.c
167
VT_LOCK(vd);
sys/dev/vt/vt_cpulogos.c
168
if ((vd->vd_flags & (VDF_DEAD | VDF_TEXTMODE)) != 0) {
sys/dev/vt/vt_cpulogos.c
169
VT_UNLOCK(vd);
sys/dev/vt/vt_cpulogos.c
173
VT_UNLOCK(vd);
sys/dev/vt/vt_cpulogos.c
176
vw = vd->vd_windows[i];
sys/dev/vt/vt_cpulogos.c
184
vt_termsize(vd, vf, &size);
sys/dev/vt/vt_cpulogos.c
185
vt_winsize(vd, vf, &wsz);
sys/dev/vt/vt_cpulogos.c
194
VT_LOCK(vd);
sys/dev/vt/vt_cpulogos.c
197
if (vd->vd_curwindow == vw) {
sys/dev/vt/vt_cpulogos.c
198
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_cpulogos.c
201
VT_UNLOCK(vd);
sys/dev/vt/vt_cpulogos.c
208
struct vt_device *vd;
sys/dev/vt/vt_cpulogos.c
220
vd = &vt_consdev;
sys/dev/vt/vt_cpulogos.c
221
if (vd == NULL)
sys/dev/vt/vt_cpulogos.c
223
vw = vd->vd_curwindow;
sys/dev/vt/vt_cpulogos.c
233
VT_LOCK(vd);
sys/dev/vt/vt_cpulogos.c
234
if ((vd->vd_flags & VDF_INITIALIZED) == 0)
sys/dev/vt/vt_cpulogos.c
236
if ((vd->vd_flags & (VDF_DEAD | VDF_TEXTMODE)) != 0)
sys/dev/vt/vt_cpulogos.c
238
if (vd->vd_height <= vt_logo_sprite_height)
sys/dev/vt/vt_cpulogos.c
242
VT_UNLOCK(vd);
sys/dev/vt/vt_cpulogos.c
244
vt_termsize(vd, vf, &size);
sys/dev/vt/vt_cpulogos.c
245
vt_winsize(vd, vf, &wsz);
sys/dev/vt/vt_cpulogos.c
254
VT_LOCK(vd);
sys/dev/vt/vt_cpulogos.c
257
if (vd->vd_curwindow == vw) {
sys/dev/vt/vt_cpulogos.c
258
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_cpulogos.c
268
VT_UNLOCK(vd);
sys/dev/vt/vt_cpulogos.c
65
vt_draw_2_vga16_px(struct vt_device *vd, vt_axis_t x, vt_axis_t y,
sys/dev/vt/vt_cpulogos.c
69
vd->vd_driver->vd_setpixel(vd, x, y, vt_vga2bsd(color >> 4));
sys/dev/vt/vt_cpulogos.c
70
vd->vd_driver->vd_setpixel(vd, x + 1, y, vt_vga2bsd(color & 0xf));
sys/dev/vt/vt_cpulogos.c
74
vt_draw_1_logo(struct vt_device *vd, vt_axis_t top, vt_axis_t left)
sys/kern/uipc_mqueue.c
1029
struct mqfs_vdata *vd;
sys/kern/uipc_mqueue.c
1042
LIST_FOREACH(vd, &pn->mn_vnodes, mv_link) {
sys/kern/uipc_mqueue.c
1043
cache_purge(vd->mv_vnode);
sys/kern/uipc_mqueue.c
1044
vhold(vd->mv_vnode);
sys/kern/uipc_mqueue.c
1045
taskqueue_enqueue(taskqueue_thread, &vd->mv_task);
sys/kern/uipc_mqueue.c
1111
struct mqfs_vdata *vd;
sys/kern/uipc_mqueue.c
1113
vd = vp->v_data;
sys/kern/uipc_mqueue.c
1114
pn = vd->mv_node;
sys/kern/uipc_mqueue.c
1117
LIST_REMOVE(vd, mv_link);
sys/kern/uipc_mqueue.c
1120
uma_zfree(mvdata_zone, vd);
sys/kern/uipc_mqueue.c
739
struct mqfs_vdata *vd;
sys/kern/uipc_mqueue.c
747
LIST_FOREACH(vd, &pn->mn_vnodes, mv_link) {
sys/kern/uipc_mqueue.c
748
if (vd->mv_vnode->v_mount == mp) {
sys/kern/uipc_mqueue.c
749
vhold(vd->mv_vnode);
sys/kern/uipc_mqueue.c
754
if (vd != NULL) {
sys/kern/uipc_mqueue.c
756
*vpp = vd->mv_vnode;
sys/kern/uipc_mqueue.c
777
LIST_FOREACH(vd, &pn->mn_vnodes, mv_link) {
sys/kern/uipc_mqueue.c
778
if (vd->mv_vnode->v_mount == mp) {
sys/kern/uipc_mqueue.c
779
vhold(vd->mv_vnode);
sys/kern/uipc_mqueue.c
790
vd = uma_zalloc(mvdata_zone, M_WAITOK);
sys/kern/uipc_mqueue.c
791
(*vpp)->v_data = vd;
sys/kern/uipc_mqueue.c
792
vd->mv_vnode = *vpp;
sys/kern/uipc_mqueue.c
793
vd->mv_node = pn;
sys/kern/uipc_mqueue.c
794
TASK_INIT(&vd->mv_task, 0, do_recycle, *vpp);
sys/kern/uipc_mqueue.c
795
LIST_INSERT_HEAD(&pn->mn_vnodes, vd, mv_link);
sys/kern/vfs_subr.c
317
DPCPU_DEFINE_STATIC(struct vdbatch, vd);
sys/kern/vfs_subr.c
3849
vdbatch_process(struct vdbatch *vd)
sys/kern/vfs_subr.c
3854
mtx_assert(&vd->lock, MA_OWNED);
sys/kern/vfs_subr.c
3856
MPASS(vd->index == VDBATCH_SIZE);
sys/kern/vfs_subr.c
3874
vp = vd->tab[i];
sys/kern/vfs_subr.c
3875
vd->tab[i] = NULL;
sys/kern/vfs_subr.c
3879
vd->index = 0;
sys/kern/vfs_subr.c
3892
vp = vd->tab[i];
sys/kern/vfs_subr.c
3893
vd->tab[i] = NULL;
sys/kern/vfs_subr.c
3900
vd->index = 0;
sys/kern/vfs_subr.c
3907
struct vdbatch *vd;
sys/kern/vfs_subr.c
3918
vd = DPCPU_PTR(vd);
sys/kern/vfs_subr.c
3919
mtx_lock(&vd->lock);
sys/kern/vfs_subr.c
3920
MPASS(vd->index < VDBATCH_SIZE);
sys/kern/vfs_subr.c
3921
MPASS(vd->tab[vd->index] == NULL);
sys/kern/vfs_subr.c
3927
vd->tab[vd->index] = vp;
sys/kern/vfs_subr.c
3928
vd->index++;
sys/kern/vfs_subr.c
3930
if (vd->index == VDBATCH_SIZE)
sys/kern/vfs_subr.c
3931
vdbatch_process(vd);
sys/kern/vfs_subr.c
3932
mtx_unlock(&vd->lock);
sys/kern/vfs_subr.c
3944
struct vdbatch *vd;
sys/kern/vfs_subr.c
3954
vd = DPCPU_ID_PTR(cpu, vd);
sys/kern/vfs_subr.c
3955
mtx_lock(&vd->lock);
sys/kern/vfs_subr.c
3956
for (i = 0; i < vd->index; i++) {
sys/kern/vfs_subr.c
3957
if (vd->tab[i] != vp)
sys/kern/vfs_subr.c
3960
vd->index--;
sys/kern/vfs_subr.c
3961
vd->tab[i] = vd->tab[vd->index];
sys/kern/vfs_subr.c
3962
vd->tab[vd->index] = NULL;
sys/kern/vfs_subr.c
3965
mtx_unlock(&vd->lock);
sys/kern/vfs_subr.c
749
struct vdbatch *vd;
sys/kern/vfs_subr.c
826
vd = DPCPU_ID_PTR((cpu), vd);
sys/kern/vfs_subr.c
827
bzero(vd, sizeof(*vd));
sys/kern/vfs_subr.c
828
mtx_init(&vd->lock, "vdbatch", NULL, MTX_DEF);
sys/powerpc/ps3/ps3_syscons.c
153
ps3fb_init(struct vt_device *vd)
sys/powerpc/ps3/ps3_syscons.c
160
vd->vd_softc = sc = &ps3fb_softc;
sys/powerpc/ps3/ps3_syscons.c
234
vt_fb_init(vd);
sys/powerpc/ps3/ps3_syscons.c
90
ps3fb_probe(struct vt_device *vd)
tools/regression/usr.bin/cc/float.c
118
volatile double vd;
tools/regression/usr.bin/cc/float.c
126
vd = NAN;
tools/regression/usr.bin/cc/float.c
127
test("NaN equality", fpequal(NAN, NAN) && NAN != NAN && vd != vd);
tools/regression/usr.bin/cc/float.c
130
test("NaN comparison returns false", !(vd <= vd));
tools/regression/usr.bin/cc/float.c
138
vd = 0.0;
tools/regression/usr.bin/cc/float.c
139
run_zero_opt_test(vd, vd);
tools/regression/usr.bin/cc/float.c
141
vd = INFINITY;
tools/regression/usr.bin/cc/float.c
142
run_inf_opt_test(vd);
tools/regression/usr.bin/cc/float.c
145
vd = INFINITY;
tools/regression/usr.bin/cc/float.c
146
x = (int)vd;
tools/regression/usr.bin/cc/float.c
153
vd = 0.75;
tools/regression/usr.bin/cc/float.c
154
x = (int)vd;
tools/regression/usr.bin/cc/float.c
159
vd = -42.0;
tools/regression/usr.bin/cc/float.c
160
x = (int)vd;
tools/regression/usr.bin/cc/float.c
186
vd = DBL_EPSILON;
tools/regression/usr.bin/cc/float.c
189
1.0F + vf != 1.0F && 1.0 + vd != 1.0 && 1.0L + vld != 1.0L);
tools/regression/usr.bin/cc/float.c
203
(double)(1.0 + vd * 0.5) == 1.0);
tools/regression/usr.bin/cc/float.c
206
(double)(1.0L + vd * 0.5L) == 1.0);
tools/regression/usr.bin/cc/float.c
229
d = 1.0L + vd * 0.5L;
tools/regression/usr.bin/cc/float.c
233
d = 1.0 + vd * 0.5;
tools/regression/usr.bin/cc/float.c
239
todouble(1.0L + vd * 0.5L) == 1.0);
usr.sbin/bhyve/virtio.c
216
_vq_record(int i, struct vring_desc *vd, struct vmctx *ctx, struct iovec *iov,
usr.sbin/bhyve/virtio.c
224
len = atomic_load_32(&vd->len);
usr.sbin/bhyve/virtio.c
225
addr = atomic_load_64(&vd->addr);
usr.sbin/bhyve/virtio.c
228
if ((vd->flags & VRING_DESC_F_WRITE) == 0)