Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_virtio_input.c150 struct vtinput_config vsc_config; member
245 memset(sc->vsc_config.u.bitmap, 0, sizeof(sc->vsc_config.u.bitmap)); in pci_vtinput_get_bitmap()
246 if (ioctl(sc->vsc_fd, cmd, sc->vsc_config.u.bitmap) < 0) { in pci_vtinput_get_bitmap()
252 if (sc->vsc_config.u.bitmap[i]) { in pci_vtinput_get_bitmap()
268 memcpy(sc->vsc_config.u.string, name, sizeof(name)); in pci_vtinput_read_config_id_name()
269 sc->vsc_config.size = strnlen(name, sizeof(name)); in pci_vtinput_read_config_id_name()
278 sc->vsc_config.size = 0; in pci_vtinput_read_config_id_serial()
291 sc->vsc_config.u.ids.bustype = devids.bustype; in pci_vtinput_read_config_id_devids()
292 sc->vsc_config.u.ids.vendor = devids.vendor; in pci_vtinput_read_config_id_devids()
293 sc->vsc_config.u.ids.product = devids.product; in pci_vtinput_read_config_id_devids()
[all …]
H A Dpci_virtio_net.c128 struct virtio_net_config vsc_config; member
606 err = net_parsemac(value, sc->vsc_config.mac); in pci_vtnet_init()
612 net_genmac(pi, sc->vsc_config.mac); in pci_vtnet_init()
630 sc->vsc_config.mtu = mtu; in pci_vtnet_init()
640 size_t buflen = sizeof (sc->vsc_config.mac); in pci_vtnet_init()
642 err = netbe_get_mac(sc->vsc_be, sc->vsc_config.mac, &buflen); in pci_vtnet_init()
657 sc->vsc_config.max_virtqueue_pairs = 1; in pci_vtnet_init()
667 sc->vsc_config.status = 1; in pci_vtnet_init()
709 if (offset < (int)sizeof(sc->vsc_config.mac)) { in pci_vtnet_cfgwrite()
710 assert(offset + size <= (int)sizeof(sc->vsc_config.mac)); in pci_vtnet_cfgwrite()
[all …]
H A Dpci_virtio_9p.c83 struct pci_vt9p_config * vsc_config; member
152 ptr = (uint8_t *)sc->vsc_config + offset; in pci_vt9p_cfgread()
319 sc->vsc_config = calloc(1, sizeof(struct pci_vt9p_config) + in pci_vt9p_init()
327 sc->vsc_config = calloc(1, sizeof(struct pci_vt9p_config)); in pci_vt9p_init()
352 sc->vsc_config->tag_len = (uint16_t)strlen(sharename); in pci_vt9p_init()
353 memcpy(sc->vsc_config->tag, sharename, sc->vsc_config->tag_len); in pci_vt9p_init()
H A Dpci_virtio_console.c138 struct pci_vtcon_config *vsc_config; member
210 ptr = (uint8_t *)sc->vsc_config + offset; in pci_vtcon_cfgread()
717 sc->vsc_config = calloc(1, sizeof(struct pci_vtcon_config)); in pci_vtcon_init()
718 sc->vsc_config->max_nr_ports = VTCON_MAXPORTS; in pci_vtcon_init()
719 sc->vsc_config->cols = 80; in pci_vtcon_init()
720 sc->vsc_config->rows = 25; in pci_vtcon_init()