Symbol: vd
cddl/usr.sbin/zfsd/case_file.cc
1216
Vdev vd(zhp, CaseVdev(zhp));
cddl/usr.sbin/zfsd/case_file.cc
1220
Vdev parent(vd.Parent());
cddl/usr.sbin/zfsd/case_file.cc
1272
Vdev vd(zhp, CaseVdev(zhp));
cddl/usr.sbin/zfsd/case_file.cc
1275
if (isspare && !vd.IsSpare() && !replaced.DoesNotExist()) {
cddl/usr.sbin/zfsd/case_file.cc
253
Vdev vd(casePool, CaseVdev(casePool));
cddl/usr.sbin/zfsd/case_file.cc
254
if (vd.DoesNotExist())
cddl/usr.sbin/zfsd/case_file.cc
257
m_vdevState = vd.State();
cddl/usr.sbin/zfsd/case_file.cc
258
m_vdevPhysPath = vd.PhysicalPath();
cddl/usr.sbin/zfsd/case_file.cc
259
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
6027
const Elf_Verdef *vd;
libexec/rtld-elf/rtld.c
6031
vd = depobj->verdef;
libexec/rtld-elf/rtld.c
6032
if (vd == NULL) {
libexec/rtld-elf/rtld.c
6038
if (vd->vd_version != VER_DEF_CURRENT) {
libexec/rtld-elf/rtld.c
6041
depobj->path, vd->vd_version);
libexec/rtld-elf/rtld.c
6044
if (vna->vna_hash == vd->vd_hash) {
libexec/rtld-elf/rtld.c
6046
(const Elf_Verdaux *)((const char *)vd +
libexec/rtld-elf/rtld.c
6047
vd->vd_aux);
libexec/rtld-elf/rtld.c
6052
if (vd->vd_next == 0)
libexec/rtld-elf/rtld.c
6054
vd = (const Elf_Verdef *)((const char *)vd + vd->vd_next);
libexec/rtld-elf/rtld.c
6067
const Elf_Verdef *vd;
libexec/rtld-elf/rtld.c
6106
vd = obj->verdef;
libexec/rtld-elf/rtld.c
6107
while (vd != NULL) {
libexec/rtld-elf/rtld.c
6108
if (vd->vd_version != VER_DEF_CURRENT) {
libexec/rtld-elf/rtld.c
6111
obj->path, vd->vd_version);
libexec/rtld-elf/rtld.c
6114
vernum = VER_DEF_IDX(vd->vd_ndx);
libexec/rtld-elf/rtld.c
6117
if (vd->vd_next == 0)
libexec/rtld-elf/rtld.c
6119
vd = (const Elf_Verdef *)((const char *)vd + vd->vd_next);
libexec/rtld-elf/rtld.c
6133
vd = obj->verdef;
libexec/rtld-elf/rtld.c
6134
while (vd != NULL) {
libexec/rtld-elf/rtld.c
6135
if ((vd->vd_flags & VER_FLG_BASE) == 0) {
libexec/rtld-elf/rtld.c
6136
vernum = VER_DEF_IDX(vd->vd_ndx);
libexec/rtld-elf/rtld.c
6138
vda = (const Elf_Verdaux *)((const char *)vd +
libexec/rtld-elf/rtld.c
6139
vd->vd_aux);
libexec/rtld-elf/rtld.c
6140
obj->vertab[vernum].hash = vd->vd_hash;
libexec/rtld-elf/rtld.c
6145
if (vd->vd_next == 0)
libexec/rtld-elf/rtld.c
6147
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/uio_machdep.c
120
void *p, *vd;
sys/amd64/amd64/uio_machdep.c
187
vd = PHYS_TO_DMAP(v);
sys/amd64/amd64/uio_machdep.c
188
error = uiomove(vd, c, uio);
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
336
typedef int vd_init_t(struct vt_device *vd);
sys/dev/vt/vt.h
337
typedef int vd_probe_t(struct vt_device *vd);
sys/dev/vt/vt.h
338
typedef void vd_fini_t(struct vt_device *vd, void *softc);
sys/dev/vt/vt.h
339
typedef void vd_postswitch_t(struct vt_device *vd);
sys/dev/vt/vt.h
340
typedef void vd_blank_t(struct vt_device *vd, term_color_t color);
sys/dev/vt/vt.h
341
typedef void vd_bitblt_text_t(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/vt.h
343
typedef void vd_invalidate_text_t(struct vt_device *vd,
sys/dev/vt/vt.h
345
typedef void vd_bitblt_bmp_t(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/vt.h
349
typedef int vd_bitblt_argb_t(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/vt.h
413
void vt_upgrade(struct vt_device *vd);
sys/dev/vt/vt.h
455
int vt_is_cursor_in_area(const struct vt_device *vd,
sys/dev/vt/vt_core.c
1002
if (vd->vd_kbstate & ALKED) {
sys/dev/vt/vt_core.c
1010
kdb_alt_break(c, &vd->vd_altbrk);
sys/dev/vt/vt_core.c
1022
struct vt_device *vd = arg;
sys/dev/vt/vt_core.c
1030
vd->vd_keyboard = NULL;
sys/dev/vt/vt_core.c
1031
kbd_release(kbd, (void *)vd);
sys/dev/vt/vt_core.c
1039
vt_processkey(kbd, vd, c);
sys/dev/vt/vt_core.c
1045
vt_allocate_keyboard(struct vt_device *vd)
sys/dev/vt/vt_core.c
1057
if (vd->vd_curwindow == &vt_conswindow) {
sys/dev/vt/vt_core.c
1058
grabbed = vd->vd_curwindow->vw_grabbed;
sys/dev/vt/vt_core.c
1060
vtterm_cnungrab_noswitch(vd, vd->vd_curwindow);
sys/dev/vt/vt_core.c
1063
idx0 = kbd_allocate("kbdmux", -1, vd, vt_kbdevent, vd);
sys/dev/vt/vt_core.c
1085
idx0 = kbd_allocate("*", -1, vd, vt_kbdevent, vd);
sys/dev/vt/vt_core.c
1092
vd->vd_keyboard = k0;
sys/dev/vt/vt_core.c
1094
vd->vd_keyboard->kb_index);
sys/dev/vt/vt_core.c
1096
if (vd->vd_curwindow == &vt_conswindow) {
sys/dev/vt/vt_core.c
1098
vtterm_cngrab_noswitch(vd, vd->vd_curwindow);
sys/dev/vt/vt_core.c
1129
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1131
vtterm_devctl(vt_enable_bell, vd->vd_flags & VDF_QUIET_BELL,
sys/dev/vt/vt_core.c
1137
if (vd->vd_flags & VDF_QUIET_BELL)
sys/dev/vt/vt_core.c
1160
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1171
vtterm_devctl(vt_enable_bell, vd->vd_flags & VDF_QUIET_BELL,
sys/dev/vt/vt_core.c
1277
vt_is_cursor_in_area(const struct vt_device *vd, const term_rect_t *area)
sys/dev/vt/vt_core.c
1285
mx = vd->vd_mx_drawn + vd->vd_curwindow->vw_draw_area.tr_begin.tp_col;
sys/dev/vt/vt_core.c
1286
my = vd->vd_my_drawn + vd->vd_curwindow->vw_draw_area.tr_begin.tp_row;
sys/dev/vt/vt_core.c
1289
mx + vd->vd_mcursor->width <= area->tr_begin.tp_col ||
sys/dev/vt/vt_core.c
1291
my + vd->vd_mcursor->height <= area->tr_begin.tp_row)
sys/dev/vt/vt_core.c
1297
vt_mark_mouse_position_as_dirty(struct vt_device *vd, int locked)
sys/dev/vt/vt_core.c
1304
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
1307
x = vd->vd_mx_drawn;
sys/dev/vt/vt_core.c
1308
y = vd->vd_my_drawn;
sys/dev/vt/vt_core.c
1314
((x + vd->vd_mcursor->width) / vf->vf_width) + 1;
sys/dev/vt/vt_core.c
1316
((y + vd->vd_mcursor->height) / vf->vf_height) + 1;
sys/dev/vt/vt_core.c
1332
if (vd->vd_driver->vd_invalidate_text)
sys/dev/vt/vt_core.c
1333
vd->vd_driver->vd_invalidate_text(vd, &area);
sys/dev/vt/vt_core.c
1341
vt_set_border(struct vt_device *vd, const term_rect_t *area,
sys/dev/vt/vt_core.c
1344
vd_drawrect_t *drawrect = vd->vd_driver->vd_drawrect;
sys/dev/vt/vt_core.c
1351
drawrect(vd, 0, 0, vd->vd_width - 1,
sys/dev/vt/vt_core.c
1356
drawrect(vd, 0, area->tr_begin.tp_row,
sys/dev/vt/vt_core.c
1360
if (area->tr_end.tp_col < vd->vd_width)
sys/dev/vt/vt_core.c
1361
drawrect(vd, area->tr_end.tp_col, area->tr_begin.tp_row,
sys/dev/vt/vt_core.c
1362
vd->vd_width - 1, area->tr_end.tp_row - 1, 1, c);
sys/dev/vt/vt_core.c
1365
if (area->tr_end.tp_row < vd->vd_height)
sys/dev/vt/vt_core.c
1366
drawrect(vd, 0, area->tr_end.tp_row, vd->vd_width - 1,
sys/dev/vt/vt_core.c
1367
vd->vd_height - 1, 1, c);
sys/dev/vt/vt_core.c
1371
vt_flush_to_buffer(struct vt_device *vd,
sys/dev/vt/vt_core.c
1391
if (vd->vd_drawn && (vd->vd_drawn[z] == c) &&
sys/dev/vt/vt_core.c
1392
vd->vd_drawnfg && (vd->vd_drawnfg[z] == fg) &&
sys/dev/vt/vt_core.c
1393
vd->vd_drawnbg && (vd->vd_drawnbg[z] == bg)) {
sys/dev/vt/vt_core.c
1394
vd->vd_pos_to_flush[z] = false;
sys/dev/vt/vt_core.c
1398
vd->vd_pos_to_flush[z] = true;
sys/dev/vt/vt_core.c
1400
if (vd->vd_drawn)
sys/dev/vt/vt_core.c
1401
vd->vd_drawn[z] = c;
sys/dev/vt/vt_core.c
1402
if (vd->vd_drawnfg)
sys/dev/vt/vt_core.c
1403
vd->vd_drawnfg[z] = fg;
sys/dev/vt/vt_core.c
1404
if (vd->vd_drawnbg)
sys/dev/vt/vt_core.c
1405
vd->vd_drawnbg[z] = bg;
sys/dev/vt/vt_core.c
1411
vt_bitblt_buffer(struct vt_device *vd, const struct vt_window *vw,
sys/dev/vt/vt_core.c
1435
if (!vd->vd_pos_to_flush[z])
sys/dev/vt/vt_core.c
1438
c = vd->vd_drawn[z];
sys/dev/vt/vt_core.c
1439
fg = vd->vd_drawnfg[z];
sys/dev/vt/vt_core.c
1440
bg = vd->vd_drawnbg[z];
sys/dev/vt/vt_core.c
1443
vd->vd_driver->vd_bitblt_bmp(vd, vw,
sys/dev/vt/vt_core.c
1450
if (!vd->vd_mshown)
sys/dev/vt/vt_core.c
1460
if (vt_is_cursor_in_area(vd, &drawn_area)) {
sys/dev/vt/vt_core.c
1461
vd->vd_driver->vd_bitblt_bmp(vd, vw,
sys/dev/vt/vt_core.c
1462
vd->vd_mcursor->map, vd->vd_mcursor->mask,
sys/dev/vt/vt_core.c
1463
vd->vd_mcursor->width, vd->vd_mcursor->height,
sys/dev/vt/vt_core.c
1464
vd->vd_mx_drawn + vw->vw_draw_area.tr_begin.tp_col,
sys/dev/vt/vt_core.c
1465
vd->vd_my_drawn + vw->vw_draw_area.tr_begin.tp_row,
sys/dev/vt/vt_core.c
1466
vd->vd_mcursor_fg, vd->vd_mcursor_bg);
sys/dev/vt/vt_core.c
1472
vt_draw_decorations(struct vt_device *vd)
sys/dev/vt/vt_core.c
1477
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
1480
vt_set_border(vd, &vw->vw_draw_area, a->ta_bgcolor);
sys/dev/vt/vt_core.c
1483
vtterm_draw_cpu_logos(vd);
sys/dev/vt/vt_core.c
1487
vt_flush(struct vt_device *vd)
sys/dev/vt/vt_core.c
1500
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
1504
if (vd->vd_flags & VDF_SPLASH || vw->vw_flags & VWF_BUSY)
sys/dev/vt/vt_core.c
1508
if (((vd->vd_flags & VDF_TEXTMODE) == 0) && (vf == NULL))
sys/dev/vt/vt_core.c
1511
VT_FLUSH_LOCK(vd);
sys/dev/vt/vt_core.c
1517
cursor_was_shown = vd->vd_mshown;
sys/dev/vt/vt_core.c
1518
cursor_moved = (vd->vd_mx != vd->vd_mx_drawn ||
sys/dev/vt/vt_core.c
1519
vd->vd_my != vd->vd_my_drawn);
sys/dev/vt/vt_core.c
1522
if ((vd->vd_flags & VDF_MOUSECURSOR) && /* Mouse support enabled. */
sys/dev/vt/vt_core.c
1525
vd->vd_mshown = 1;
sys/dev/vt/vt_core.c
1527
vd->vd_mshown = 0;
sys/dev/vt/vt_core.c
1534
if (cursor_was_shown != vd->vd_mshown ||
sys/dev/vt/vt_core.c
1535
(vd->vd_mshown && cursor_moved))
sys/dev/vt/vt_core.c
1536
vt_mark_mouse_position_as_dirty(vd, true);
sys/dev/vt/vt_core.c
1543
vd->vd_mx_drawn = vd->vd_mx;
sys/dev/vt/vt_core.c
1544
vd->vd_my_drawn = vd->vd_my;
sys/dev/vt/vt_core.c
1550
if (vd->vd_mshown && cursor_moved)
sys/dev/vt/vt_core.c
1551
vt_mark_mouse_position_as_dirty(vd, true);
sys/dev/vt/vt_core.c
1558
if (vd->vd_flags & (VDF_INVALID | VDF_SUSPENDED)) {
sys/dev/vt/vt_core.c
1560
vd->vd_flags &= ~VDF_INVALID;
sys/dev/vt/vt_core.c
1562
vt_termrect(vd, vf, &tarea);
sys/dev/vt/vt_core.c
1563
if (vd->vd_driver->vd_invalidate_text)
sys/dev/vt/vt_core.c
1564
vd->vd_driver->vd_invalidate_text(vd, &tarea);
sys/dev/vt/vt_core.c
1568
if (vd->vd_driver->vd_bitblt_after_vtbuf_unlock) {
sys/dev/vt/vt_core.c
1577
vt_flush_to_buffer(vd, vw, &tarea);
sys/dev/vt/vt_core.c
1579
vt_bitblt_buffer(vd, vw, &tarea);
sys/dev/vt/vt_core.c
1582
vt_draw_decorations(vd);
sys/dev/vt/vt_core.c
1595
vd->vd_driver->vd_bitblt_text(vd, vw, &tarea);
sys/dev/vt/vt_core.c
1598
vt_draw_decorations(vd);
sys/dev/vt/vt_core.c
1604
VT_FLUSH_UNLOCK(vd);
sys/dev/vt/vt_core.c
1612
VT_FLUSH_UNLOCK(vd);
sys/dev/vt/vt_core.c
1620
struct vt_device *vd;
sys/dev/vt/vt_core.c
1623
vd = arg;
sys/dev/vt/vt_core.c
1625
changed = vt_flush(vd);
sys/dev/vt/vt_core.c
1629
vt_schedule_flush(vd, 0);
sys/dev/vt/vt_core.c
1631
vd->vd_timer_armed = 0;
sys/dev/vt/vt_core.c
1661
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1665
if (vd->vd_curwindow != vw) {
sys/dev/vt/vt_core.c
1666
vd->vd_curwindow = vw;
sys/dev/vt/vt_core.c
1667
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
1668
if (vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
1669
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
1671
vd->vd_flags &= ~VDF_SPLASH;
sys/dev/vt/vt_core.c
1672
vt_flush(vd);
sys/dev/vt/vt_core.c
1677
vt_flush(vd);
sys/dev/vt/vt_core.c
1679
} else if (!(vd->vd_flags & VDF_ASYNC)) {
sys/dev/vt/vt_core.c
1680
vt_flush(vd);
sys/dev/vt/vt_core.c
1686
vtterm_splash(struct vt_device *vd)
sys/dev/vt/vt_core.c
1695
if ((vd->vd_flags & VDF_TEXTMODE) != 0 || (boothowto & RB_MUTE) == 0)
sys/dev/vt/vt_core.c
1701
if (vd->vd_driver->vd_bitblt_bmp == NULL)
sys/dev/vt/vt_core.c
1703
} else if (vd->vd_driver->vd_bitblt_argb == NULL)
sys/dev/vt/vt_core.c
1707
if (vd->vd_driver->vd_blank == NULL)
sys/dev/vt/vt_core.c
1709
vd->vd_driver->vd_blank(vd, TC_BLACK);
sys/dev/vt/vt_core.c
1713
top = (vd->vd_height - vt_logo_height) / 2;
sys/dev/vt/vt_core.c
1714
left = (vd->vd_width - vt_logo_width) / 2;
sys/dev/vt/vt_core.c
1715
vd->vd_driver->vd_bitblt_bmp(vd,
sys/dev/vt/vt_core.c
1716
vd->vd_curwindow, vt_logo_image, NULL, vt_logo_width,
sys/dev/vt/vt_core.c
1723
top = (vd->vd_height - si->si_height) / 2;
sys/dev/vt/vt_core.c
1724
left = (vd->vd_width - si->si_width) / 2;
sys/dev/vt/vt_core.c
1725
vd->vd_driver->vd_bitblt_argb(vd, vd->vd_curwindow,
sys/dev/vt/vt_core.c
1729
vd->vd_flags |= VDF_SPLASH;
sys/dev/vt/vt_core.c
1871
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1878
if (vd->vd_flags & VDF_INITIALIZED)
sys/dev/vt/vt_core.c
1886
if (vtd->vd_probe(vd) == CN_DEAD)
sys/dev/vt/vt_core.c
1894
vd->vd_flags |= VDF_DEAD;
sys/dev/vt/vt_core.c
1896
vd->vd_driver = vtdbest;
sys/dev/vt/vt_core.c
1897
cp->cn_pri = vd->vd_driver->vd_init(vd);
sys/dev/vt/vt_core.c
1902
vd->vd_flags |= VDF_DEAD;
sys/dev/vt/vt_core.c
1908
vd->vd_unit = atomic_fetchadd_int(&vt_unit, 1);
sys/dev/vt/vt_core.c
1909
vd->vd_windows[VT_CONSWINDOW] = vw;
sys/dev/vt/vt_core.c
1915
if ((vd->vd_flags & VDF_TEXTMODE) == 0) {
sys/dev/vt/vt_core.c
1925
if (vd->vd_width != 0 && vd->vd_height != 0)
sys/dev/vt/vt_core.c
1926
vt_termsize(vd, vw->vw_font, &vw->vw_buf.vb_scr_size);
sys/dev/vt/vt_core.c
1931
vt_winsize(vd, vw->vw_font, &wsz);
sys/dev/vt/vt_core.c
1938
vtterm_splash(vd);
sys/dev/vt/vt_core.c
1940
vd->vd_flags |= VDF_INITIALIZED;
sys/dev/vt/vt_core.c
1948
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
1956
if (vd->vd_flags & VDF_SPLASH) {
sys/dev/vt/vt_core.c
1958
vd->vd_flags &= ~VDF_SPLASH;
sys/dev/vt/vt_core.c
1960
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
1961
vt_flush(vd);
sys/dev/vt/vt_core.c
1965
if ((kbd = vd->vd_keyboard) == NULL)
sys/dev/vt/vt_core.c
1981
vt_flush(vd);
sys/dev/vt/vt_core.c
2020
vt_flush(vd);
sys/dev/vt/vt_core.c
2040
vtterm_cngrab_noswitch(struct vt_device *vd, struct vt_window *vw)
sys/dev/vt/vt_core.c
2047
if ((kbd = vd->vd_keyboard) == NULL)
sys/dev/vt/vt_core.c
2066
vtterm_cnungrab_noswitch(struct vt_device *vd, struct vt_window *vw)
sys/dev/vt/vt_core.c
2073
if ((kbd = vd->vd_keyboard) == NULL)
sys/dev/vt/vt_core.c
2087
struct vt_device *vd;
sys/dev/vt/vt_core.c
2091
vd = vw->vw_device;
sys/dev/vt/vt_core.c
2094
if (vd->vd_grabwindow == NULL)
sys/dev/vt/vt_core.c
2095
vd->vd_grabwindow = vd->vd_curwindow;
sys/dev/vt/vt_core.c
2100
vtterm_cngrab_noswitch(vd, vw);
sys/dev/vt/vt_core.c
2106
struct vt_device *vd;
sys/dev/vt/vt_core.c
2110
vd = vw->vw_device;
sys/dev/vt/vt_core.c
2112
MPASS(vd->vd_grabwindow != NULL);
sys/dev/vt/vt_core.c
2113
if (vtterm_cnungrab_noswitch(vd, vw) != 0)
sys/dev/vt/vt_core.c
2124
grabwindow = vd->vd_grabwindow;
sys/dev/vt/vt_core.c
2125
vd->vd_grabwindow = NULL;
sys/dev/vt/vt_core.c
2135
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
2137
VT_LOCK(vd);
sys/dev/vt/vt_core.c
2138
vd->vd_flags &= ~VDF_SPLASH;
sys/dev/vt/vt_core.c
2145
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2151
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
2169
VT_LOCK(vd);
sys/dev/vt/vt_core.c
2172
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2176
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2178
vt_termsize(vd, vf, &size);
sys/dev/vt/vt_core.c
2179
vt_winsize(vd, vf, &wsz);
sys/dev/vt/vt_core.c
2189
VT_LOCK(vd);
sys/dev/vt/vt_core.c
2204
vd->vd_mx = min(vd->vd_mx,
sys/dev/vt/vt_core.c
2207
vd->vd_my = min(vd->vd_my,
sys/dev/vt/vt_core.c
2212
if (vd->vd_curwindow == vw) {
sys/dev/vt/vt_core.c
2213
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
2217
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2310
vt_mouse_terminput_button(struct vt_device *vd, int button)
sys/dev/vt/vt_core.c
2317
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
2321
x = vd->vd_mx / vf->vf_width;
sys/dev/vt/vt_core.c
2322
y = vd->vd_my / vf->vf_height;
sys/dev/vt/vt_core.c
2336
vt_mouse_terminput(struct vt_device *vd, int type, int x, int y, int event,
sys/dev/vt/vt_core.c
2345
vt_mouse_terminput_button(vd, 0);
sys/dev/vt/vt_core.c
2347
vt_mouse_terminput_button(vd, 1);
sys/dev/vt/vt_core.c
2349
vt_mouse_terminput_button(vd, 2);
sys/dev/vt/vt_core.c
2352
vt_mouse_terminput_button(vd, 3);
sys/dev/vt/vt_core.c
2359
sc_mouse_input_button(vd, 64);
sys/dev/vt/vt_core.c
2362
sc_mouse_input_button(vd, 65);
sys/dev/vt/vt_core.c
2389
struct vt_device *vd;
sys/dev/vt/vt_core.c
2395
vd = main_vd;
sys/dev/vt/vt_core.c
2396
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
2416
vt_mouse_terminput(vd, type, x, y, event, cnt);
sys/dev/vt/vt_core.c
2422
x += vd->vd_mx;
sys/dev/vt/vt_core.c
2423
y += vd->vd_my;
sys/dev/vt/vt_core.c
2425
vt_termsize(vd, vf, &size);
sys/dev/vt/vt_core.c
2433
vd->vd_mx = x;
sys/dev/vt/vt_core.c
2434
vd->vd_my = y;
sys/dev/vt/vt_core.c
2435
if (vd->vd_mstate & (MOUSE_BUTTON1DOWN | VT_MOUSE_EXTENDBUTTON))
sys/dev/vt/vt_core.c
2437
vd->vd_mx / vf->vf_width,
sys/dev/vt/vt_core.c
2438
vd->vd_my / vf->vf_height);
sys/dev/vt/vt_core.c
2480
if (!(vd->vd_mstate & MOUSE_BUTTON1DOWN))
sys/dev/vt/vt_core.c
2496
vd->vd_mstate |= event;
sys/dev/vt/vt_core.c
2498
vd->vd_mstate &= ~event;
sys/dev/vt/vt_core.c
2500
if (vtbuf_set_mark(&vw->vw_buf, mark, vd->vd_mx / vf->vf_width,
sys/dev/vt/vt_core.c
2501
vd->vd_my / vf->vf_height) == 1) {
sys/dev/vt/vt_core.c
2525
if (len > VD_PASTEBUFSZ(vd)) {
sys/dev/vt/vt_core.c
2526
VD_PASTEBUF(vd) = realloc(VD_PASTEBUF(vd), len, M_VT,
sys/dev/vt/vt_core.c
2529
VD_PASTEBUFSZ(vd) = len;
sys/dev/vt/vt_core.c
2532
vtbuf_extract_marked(&vw->vw_buf, VD_PASTEBUF(vd), len, mark);
sys/dev/vt/vt_core.c
2534
VD_PASTEBUFLEN(vd) = len;
sys/dev/vt/vt_core.c
2543
struct vt_device *vd;
sys/dev/vt/vt_core.c
2546
vd = main_vd;
sys/dev/vt/vt_core.c
2547
vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
2559
vt_mark_mouse_position_as_dirty(vd, false);
sys/dev/vt/vt_core.c
2569
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
2571
if (vd->vd_driver->vd_fb_mmap)
sys/dev/vt/vt_core.c
2572
return (vd->vd_driver->vd_fb_mmap(vd, offset, paddr, nprot,
sys/dev/vt/vt_core.c
2583
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
2662
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2678
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2680
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2703
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2705
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2715
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2717
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2740
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2742
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2756
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2758
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2781
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2783
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2799
if (vd->vd_driver->vd_fb_ioctl)
sys/dev/vt/vt_core.c
2800
return (vd->vd_driver->vd_fb_ioctl(vd, cmd, data, td));
sys/dev/vt/vt_core.c
2820
VT_LOCK(vd);
sys/dev/vt/vt_core.c
2821
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2822
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
2825
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
2833
vd->vd_flags |= VDF_QUIET_BELL;
sys/dev/vt/vt_core.c
2835
vd->vd_flags &= ~VDF_QUIET_BELL;
sys/dev/vt/vt_core.c
2842
if (vw == vd->vd_curwindow) {
sys/dev/vt/vt_core.c
2844
if ((kbd = vd->vd_keyboard) != NULL)
sys/dev/vt/vt_core.c
2849
vi->m_num = vd->vd_curwindow->vw_number + 1;
sys/dev/vt/vt_core.c
2870
if (vd->vd_flags & VDF_MOUSECURSOR) {
sys/dev/vt/vt_core.c
2871
vd->vd_flags &= ~VDF_MOUSECURSOR;
sys/dev/vt/vt_core.c
2878
if (!(vd->vd_flags & VDF_MOUSECURSOR)) {
sys/dev/vt/vt_core.c
2879
vd->vd_flags |= VDF_MOUSECURSOR;
sys/dev/vt/vt_core.c
2880
vd->vd_mx = vd->vd_width / 2;
sys/dev/vt/vt_core.c
2881
vd->vd_my = vd->vd_height / 2;
sys/dev/vt/vt_core.c
2894
if (vd->vd_flags & VDF_TEXTMODE)
sys/dev/vt/vt_core.c
2963
if (vd->vd_keyboard == NULL ||
sys/dev/vt/vt_core.c
2964
vd->vd_keyboard->kb_index != *(int *)data) {
sys/dev/vt/vt_core.c
2971
(void *)vd, vt_kbdevent, vd);
sys/dev/vt/vt_core.c
2973
if ((kbd = vd->vd_keyboard) != NULL) {
sys/dev/vt/vt_core.c
2974
vt_save_kbd_state(vd->vd_curwindow, kbd);
sys/dev/vt/vt_core.c
2975
kbd_release(kbd, (void *)vd);
sys/dev/vt/vt_core.c
2977
kbd = vd->vd_keyboard = kbd_get_keyboard(i);
sys/dev/vt/vt_core.c
2979
vt_update_kbd_mode(vd->vd_curwindow, kbd);
sys/dev/vt/vt_core.c
2980
vt_update_kbd_state(vd->vd_curwindow, kbd);
sys/dev/vt/vt_core.c
2990
if ((kbd = vd->vd_keyboard) != NULL) {
sys/dev/vt/vt_core.c
2991
vt_save_kbd_state(vd->vd_curwindow, kbd);
sys/dev/vt/vt_core.c
2992
error = kbd_release(kbd, (void *)vd);
sys/dev/vt/vt_core.c
2994
vd->vd_keyboard = NULL;
sys/dev/vt/vt_core.c
3006
return (vt_proc_window_switch(vd->vd_windows[win]));
sys/dev/vt/vt_core.c
3009
*(int *)data = vd->vd_curwindow->vw_number + 1;
sys/dev/vt/vt_core.c
3024
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3026
vw = vd->vd_windows[i];
sys/dev/vt/vt_core.c
303
vt_schedule_flush(struct vt_device *vd, int ms)
sys/dev/vt/vt_core.c
3031
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3035
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3046
vw = vd->vd_windows[idx - 1];
sys/dev/vt/vt_core.c
3048
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3049
while (vd->vd_curwindow != vw && error == 0)
sys/dev/vt/vt_core.c
3050
error = cv_wait_sig(&vd->vd_winswitch, &vd->vd_lock);
sys/dev/vt/vt_core.c
3051
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
310
callout_schedule(&vd->vd_timer, hz / (1000 / ms));
sys/dev/vt/vt_core.c
3114
if ((vw != vd->vd_curwindow) || (vw->vw_smode.mode !=
sys/dev/vt/vt_core.c
3154
vt_allocate_window(struct vt_device *vd, unsigned int window)
sys/dev/vt/vt_core.c
316
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
3162
vw->vw_device = vd;
sys/dev/vt/vt_core.c
3166
if ((vd->vd_flags & VDF_TEXTMODE) == 0) {
sys/dev/vt/vt_core.c
3171
vt_termsize(vd, vw->vw_font, &size);
sys/dev/vt/vt_core.c
3172
vt_winsize(vd, vw->vw_font, &wsz);
sys/dev/vt/vt_core.c
3178
vd->vd_windows[window] = vw;
sys/dev/vt/vt_core.c
318
if (vd->vd_curwindow != vw)
sys/dev/vt/vt_core.c
3185
vt_upgrade(struct vt_device *vd)
sys/dev/vt/vt_core.c
3197
vw = vd->vd_windows[i];
sys/dev/vt/vt_core.c
3200
vw = vt_allocate_window(vd, i);
sys/dev/vt/vt_core.c
321
if (!(vd->vd_flags & VDF_ASYNC) ||
sys/dev/vt/vt_core.c
3217
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3218
if (vd->vd_curwindow == NULL)
sys/dev/vt/vt_core.c
3219
vd->vd_curwindow = vd->vd_windows[VT_CONSWINDOW];
sys/dev/vt/vt_core.c
322
!atomic_cmpset_int(&vd->vd_timer_armed, 0, 1))
sys/dev/vt/vt_core.c
3222
if (!(vd->vd_flags & VDF_ASYNC)) {
sys/dev/vt/vt_core.c
3224
vt_allocate_keyboard(vd);
sys/dev/vt/vt_core.c
3227
callout_init_mtx(&vd->vd_timer, &vd->vd_lock, 0);
sys/dev/vt/vt_core.c
3237
atomic_add_acq_int(&vd->vd_timer_armed, 1);
sys/dev/vt/vt_core.c
3238
vd->vd_flags |= VDF_ASYNC;
sys/dev/vt/vt_core.c
3239
callout_reset(&vd->vd_timer, hz / VT_TIMERFREQ, vt_timer, vd);
sys/dev/vt/vt_core.c
3243
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3246
vt_resize(vd);
sys/dev/vt/vt_core.c
325
vt_schedule_flush(vd, ms);
sys/dev/vt/vt_core.c
3251
vd, EVENTHANDLER_PRI_ANY);
sys/dev/vt/vt_core.c
3252
EVENTHANDLER_REGISTER(power_resume, vt_resume_handler, vd,
sys/dev/vt/vt_core.c
3258
vt_resize(struct vt_device *vd)
sys/dev/vt/vt_core.c
3264
vw = vd->vd_windows[i];
sys/dev/vt/vt_core.c
3265
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3267
if (!(vd->vd_flags & VDF_TEXTMODE) && vw->vw_font == NULL)
sys/dev/vt/vt_core.c
3269
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3282
struct vt_device *vd;
sys/dev/vt/vt_core.c
3284
vd = main_vd;
sys/dev/vt/vt_core.c
3286
if (vd->vd_flags & VDF_ASYNC) {
sys/dev/vt/vt_core.c
3288
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3289
vt_suspend_flush_timer(vd);
sys/dev/vt/vt_core.c
329
vt_suspend_flush_timer(struct vt_device *vd)
sys/dev/vt/vt_core.c
3290
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3295
terminal_mute(vd->vd_curwindow->vw_terminal, 1);
sys/dev/vt/vt_core.c
3302
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3303
vd->vd_flags &= ~VDF_TEXTMODE;
sys/dev/vt/vt_core.c
3311
vd->vd_prev_driver = vd->vd_driver;
sys/dev/vt/vt_core.c
3312
vd->vd_prev_softc = vd->vd_softc;
sys/dev/vt/vt_core.c
3313
vd->vd_driver = drv;
sys/dev/vt/vt_core.c
3314
vd->vd_softc = softc;
sys/dev/vt/vt_core.c
3316
vd->vd_driver->vd_init(vd);
sys/dev/vt/vt_core.c
3317
} else if (vd->vd_prev_driver != NULL && vd->vd_prev_softc != NULL) {
sys/dev/vt/vt_core.c
3325
old_drv = vd->vd_driver;
sys/dev/vt/vt_core.c
3326
old_softc = vd->vd_softc;
sys/dev/vt/vt_core.c
3328
vd->vd_driver = vd->vd_prev_driver;
sys/dev/vt/vt_core.c
3329
vd->vd_softc = vd->vd_prev_softc;
sys/dev/vt/vt_core.c
3330
vd->vd_prev_driver = NULL;
sys/dev/vt/vt_core.c
3331
vd->vd_prev_softc = NULL;
sys/dev/vt/vt_core.c
3333
vd->vd_flags |= VDF_DOWNGRADE;
sys/dev/vt/vt_core.c
3335
vd->vd_driver->vd_init(vd);
sys/dev/vt/vt_core.c
3338
old_drv->vd_fini(vd, old_softc);
sys/dev/vt/vt_core.c
3340
vd->vd_flags &= ~VDF_DOWNGRADE;
sys/dev/vt/vt_core.c
3343
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3346
vt_upgrade(vd);
sys/dev/vt/vt_core.c
3352
if (vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
3353
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
3356
if (vd->vd_flags & VDF_SPLASH)
sys/dev/vt/vt_core.c
3357
vtterm_splash(vd);
sys/dev/vt/vt_core.c
336
VT_LOCK_ASSERT(vd, MA_OWNED);
sys/dev/vt/vt_core.c
3360
if (vd->vd_flags & VDF_ASYNC) {
sys/dev/vt/vt_core.c
3362
terminal_mute(vd->vd_curwindow->vw_terminal, 0);
sys/dev/vt/vt_core.c
3364
vt_resume_flush_timer(vd->vd_curwindow, 0);
sys/dev/vt/vt_core.c
3371
termcn_cnregister(vd->vd_windows[VT_CONSWINDOW]->vw_terminal);
sys/dev/vt/vt_core.c
3377
struct vt_device *vd;
sys/dev/vt/vt_core.c
3379
vd = priv;
sys/dev/vt/vt_core.c
338
if (!(vd->vd_flags & VDF_ASYNC) ||
sys/dev/vt/vt_core.c
3380
vd->vd_flags |= VDF_SUSPENDED;
sys/dev/vt/vt_core.c
3381
if (vd->vd_driver != NULL && vd->vd_driver->vd_suspend != NULL)
sys/dev/vt/vt_core.c
3382
vd->vd_driver->vd_suspend(vd);
sys/dev/vt/vt_core.c
3388
struct vt_device *vd;
sys/dev/vt/vt_core.c
339
!atomic_cmpset_int(&vd->vd_timer_armed, 1, 0))
sys/dev/vt/vt_core.c
3390
vd = priv;
sys/dev/vt/vt_core.c
3391
if (vd->vd_driver != NULL && vd->vd_driver->vd_resume != NULL)
sys/dev/vt/vt_core.c
3392
vd->vd_driver->vd_resume(vd);
sys/dev/vt/vt_core.c
3393
vd->vd_flags &= ~VDF_SUSPENDED;
sys/dev/vt/vt_core.c
342
callout_stop(&vd->vd_timer);
sys/dev/vt/vt_core.c
3447
vt_suspend(struct vt_device *vd)
sys/dev/vt/vt_core.c
3454
vd->vd_savedwindow = vd->vd_curwindow;
sys/dev/vt/vt_core.c
3456
vt_proc_window_switch(vd->vd_windows[VT_CONSWINDOW]);
sys/dev/vt/vt_core.c
3460
VT_LOCK(vd);
sys/dev/vt/vt_core.c
3461
while (vd->vd_curwindow != vd->vd_windows[VT_CONSWINDOW] && error == 0)
sys/dev/vt/vt_core.c
3462
error = cv_wait_sig(&vd->vd_winswitch, &vd->vd_lock);
sys/dev/vt/vt_core.c
3463
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
3467
vt_resume(struct vt_device *vd)
sys/dev/vt/vt_core.c
3473
vt_proc_window_switch(vd->vd_savedwindow);
sys/dev/vt/vt_core.c
3474
vd->vd_savedwindow = NULL;
sys/dev/vt/vt_core.c
499
struct vt_device *vd;
sys/dev/vt/vt_core.c
507
vd = vw->vw_device;
sys/dev/vt/vt_core.c
508
curvw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
537
VT_LOCK(vd);
sys/dev/vt/vt_core.c
539
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
542
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
568
struct vt_device *vd = vw->vw_device;
sys/dev/vt/vt_core.c
569
struct vt_window *curvw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
591
vd->vd_curwindow = vw;
sys/dev/vt/vt_core.c
592
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
593
if (vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
594
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
599
VT_LOCK(vd);
sys/dev/vt/vt_core.c
607
vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
608
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
610
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
615
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
619
vt_suspend_flush_timer(vd);
sys/dev/vt/vt_core.c
621
vd->vd_curwindow = vw;
sys/dev/vt/vt_core.c
622
vd->vd_flags |= VDF_INVALID;
sys/dev/vt/vt_core.c
623
cv_broadcast(&vd->vd_winswitch);
sys/dev/vt/vt_core.c
624
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
626
if (vd->vd_driver->vd_postswitch)
sys/dev/vt/vt_core.c
627
vd->vd_driver->vd_postswitch(vd);
sys/dev/vt/vt_core.c
633
if ((kbd = vd->vd_keyboard) != NULL) {
sys/dev/vt/vt_core.c
648
vt_termsize(struct vt_device *vd, struct vt_font *vf, term_pos_t *size)
sys/dev/vt/vt_core.c
651
size->tp_row = vd->vd_height;
sys/dev/vt/vt_core.c
654
size->tp_col = vd->vd_width;
sys/dev/vt/vt_core.c
664
vt_termrect(struct vt_device *vd, struct vt_font *vf, term_rect_t *rect)
sys/dev/vt/vt_core.c
671
rect->tr_end.tp_row = vd->vd_height;
sys/dev/vt/vt_core.c
672
rect->tr_end.tp_col = vd->vd_width;
sys/dev/vt/vt_core.c
686
vt_winsize(struct vt_device *vd, struct vt_font *vf, struct winsize *size)
sys/dev/vt/vt_core.c
689
size->ws_ypixel = vd->vd_height;
sys/dev/vt/vt_core.c
693
size->ws_col = size->ws_xpixel = vd->vd_width;
sys/dev/vt/vt_core.c
705
struct vt_device *vd;
sys/dev/vt/vt_core.c
709
vd = vw->vw_device;
sys/dev/vt/vt_core.c
716
vw->vw_draw_area.tr_end.tp_col = vd->vd_width;
sys/dev/vt/vt_core.c
717
vw->vw_draw_area.tr_end.tp_row = vd->vd_height;
sys/dev/vt/vt_core.c
728
height = vd->vd_height;
sys/dev/vt/vt_core.c
731
vw->vw_draw_area.tr_begin.tp_col = (vd->vd_width % vf->vf_width) / 2;
sys/dev/vt/vt_core.c
736
rounddown(vd->vd_width, vf->vf_width);
sys/dev/vt/vt_core.c
759
vt_machine_kbdevent(struct vt_device *vd, int c)
sys/dev/vt/vt_core.c
772
vd->vd_kbstate &= ~ALKED;
sys/dev/vt/vt_core.c
822
struct vt_device *vd;
sys/dev/vt/vt_core.c
825
vd = vw->vw_device;
sys/dev/vt/vt_core.c
834
vw = vd->vd_windows[c - F_SCR];
sys/dev/vt/vt_core.c
838
VT_LOCK(vd);
sys/dev/vt/vt_core.c
856
vt_termsize(vd, vw->vw_font, &size);
sys/dev/vt/vt_core.c
866
vt_termsize(vd, vw->vw_font, &size);
sys/dev/vt/vt_core.c
872
VT_UNLOCK(vd);
sys/dev/vt/vt_core.c
876
vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c)
sys/dev/vt/vt_core.c
878
struct vt_window *vw = vd->vd_curwindow;
sys/dev/vt/vt_core.c
890
vd->vd_kbstate &= ~ALKED;
sys/dev/vt/vt_core.c
900
vd->vd_kbstate |= ALKED;
sys/dev/vt/vt_core.c
909
if (vt_machine_kbdevent(vd, c))
sys/dev/vt/vt_core.c
922
vw = vd->vd_windows[c - F_SCR];
sys/dev/vt/vt_core.c
931
vw = vd->vd_windows[c];
sys/dev/vt/vt_core.c
937
vw = vd->vd_windows[c];
sys/dev/vt/vt_core.c
942
VT_LOCK(vd);
sys/dev/vt/vt_core.c
953
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
307
DPCPU_DEFINE_STATIC(struct vdbatch, vd);
sys/kern/vfs_subr.c
3874
vdbatch_process(struct vdbatch *vd)
sys/kern/vfs_subr.c
3879
mtx_assert(&vd->lock, MA_OWNED);
sys/kern/vfs_subr.c
3881
MPASS(vd->index == VDBATCH_SIZE);
sys/kern/vfs_subr.c
3899
vp = vd->tab[i];
sys/kern/vfs_subr.c
3900
vd->tab[i] = NULL;
sys/kern/vfs_subr.c
3904
vd->index = 0;
sys/kern/vfs_subr.c
3917
vp = vd->tab[i];
sys/kern/vfs_subr.c
3918
vd->tab[i] = NULL;
sys/kern/vfs_subr.c
3925
vd->index = 0;
sys/kern/vfs_subr.c
3932
struct vdbatch *vd;
sys/kern/vfs_subr.c
3943
vd = DPCPU_PTR(vd);
sys/kern/vfs_subr.c
3944
mtx_lock(&vd->lock);
sys/kern/vfs_subr.c
3945
MPASS(vd->index < VDBATCH_SIZE);
sys/kern/vfs_subr.c
3946
MPASS(vd->tab[vd->index] == NULL);
sys/kern/vfs_subr.c
3952
vd->tab[vd->index] = vp;
sys/kern/vfs_subr.c
3953
vd->index++;
sys/kern/vfs_subr.c
3955
if (vd->index == VDBATCH_SIZE)
sys/kern/vfs_subr.c
3956
vdbatch_process(vd);
sys/kern/vfs_subr.c
3957
mtx_unlock(&vd->lock);
sys/kern/vfs_subr.c
3969
struct vdbatch *vd;
sys/kern/vfs_subr.c
3979
vd = DPCPU_ID_PTR(cpu, vd);
sys/kern/vfs_subr.c
3980
mtx_lock(&vd->lock);
sys/kern/vfs_subr.c
3981
for (i = 0; i < vd->index; i++) {
sys/kern/vfs_subr.c
3982
if (vd->tab[i] != vp)
sys/kern/vfs_subr.c
3985
vd->index--;
sys/kern/vfs_subr.c
3986
vd->tab[i] = vd->tab[vd->index];
sys/kern/vfs_subr.c
3987
vd->tab[vd->index] = NULL;
sys/kern/vfs_subr.c
3990
mtx_unlock(&vd->lock);
sys/kern/vfs_subr.c
753
struct vdbatch *vd;
sys/kern/vfs_subr.c
830
vd = DPCPU_ID_PTR((cpu), vd);
sys/kern/vfs_subr.c
831
bzero(vd, sizeof(*vd));
sys/kern/vfs_subr.c
832
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)