Home
last modified time | relevance | path

Searched refs:vsc_config (Results 1 – 4 of 4) sorted by relevance

/freebsd/usr.sbin/bhyve/
H A Dpci_virtio_input.c148 struct vtinput_config vsc_config; member
243 memset(sc->vsc_config.u.bitmap, 0, sizeof(sc->vsc_config.u.bitmap)); in pci_vtinput_get_bitmap()
244 if (ioctl(sc->vsc_fd, cmd, sc->vsc_config.u.bitmap) < 0) { in pci_vtinput_get_bitmap()
250 if (sc->vsc_config.u.bitmap[i]) { in pci_vtinput_get_bitmap()
266 memcpy(sc->vsc_config.u.string, name, sizeof(name)); in pci_vtinput_read_config_id_name()
267 sc->vsc_config.size = strnlen(name, sizeof(name)); in pci_vtinput_read_config_id_name()
276 sc->vsc_config.size = 0; in pci_vtinput_read_config_id_serial()
289 sc->vsc_config.u.ids.bustype = devids.bustype; in pci_vtinput_read_config_id_devids()
290 sc->vsc_config.u.ids.vendor = devids.vendor; in pci_vtinput_read_config_id_devids()
291 sc->vsc_config.u.ids.product = devids.product; in pci_vtinput_read_config_id_devids()
[all …]
H A Dpci_virtio_net.c127 struct virtio_net_config vsc_config; member
587 err = net_parsemac(value, sc->vsc_config.mac); in pci_vtnet_init()
593 net_genmac(pi, sc->vsc_config.mac); in pci_vtnet_init()
611 sc->vsc_config.mtu = mtu; in pci_vtnet_init()
629 sc->vsc_config.max_virtqueue_pairs = 1; in pci_vtnet_init()
639 sc->vsc_config.status = 1; in pci_vtnet_init()
681 if (offset < (int)sizeof(sc->vsc_config.mac)) { in pci_vtnet_cfgwrite()
682 assert(offset + size <= (int)sizeof(sc->vsc_config.mac)); in pci_vtnet_cfgwrite()
686 ptr = &sc->vsc_config.mac[offset]; in pci_vtnet_cfgwrite()
702 ptr = (uint8_t *)&sc->vsc_config + offset; in pci_vtnet_cfgread()
[all …]
H A Dpci_virtio_9p.c75 struct pci_vt9p_config * vsc_config; member
140 ptr = (uint8_t *)sc->vsc_config + offset; in pci_vt9p_cfgread()
282 sc->vsc_config = calloc(1, sizeof(struct pci_vt9p_config) + in pci_vt9p_init()
300 sc->vsc_config->tag_len = (uint16_t)strlen(sharename); in pci_vt9p_init()
301 memcpy(sc->vsc_config->tag, sharename, sc->vsc_config->tag_len); in pci_vt9p_init()
H A Dpci_virtio_console.c132 struct pci_vtcon_config *vsc_config; member
204 ptr = (uint8_t *)sc->vsc_config + offset; in pci_vtcon_cfgread()
698 sc->vsc_config = calloc(1, sizeof(struct pci_vtcon_config)); in pci_vtcon_init()
699 sc->vsc_config->max_nr_ports = VTCON_MAXPORTS; in pci_vtcon_init()
700 sc->vsc_config->cols = 80; in pci_vtcon_init()
701 sc->vsc_config->rows = 25; in pci_vtcon_init()