Searched refs:vsc_config (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_virtio_input.c | 149 struct vtinput_config vsc_config; member 244 memset(sc->vsc_config.u.bitmap, 0, sizeof(sc->vsc_config.u.bitmap)); in pci_vtinput_get_bitmap() 245 if (ioctl(sc->vsc_fd, cmd, sc->vsc_config.u.bitmap) < 0) { in pci_vtinput_get_bitmap() 251 if (sc->vsc_config.u.bitmap[i]) { in pci_vtinput_get_bitmap() 267 memcpy(sc->vsc_config.u.string, name, sizeof(name)); in pci_vtinput_read_config_id_name() 268 sc->vsc_config.size = strnlen(name, sizeof(name)); in pci_vtinput_read_config_id_name() 277 sc->vsc_config.size = 0; in pci_vtinput_read_config_id_serial() 290 sc->vsc_config.u.ids.bustype = devids.bustype; in pci_vtinput_read_config_id_devids() 291 sc->vsc_config.u.ids.vendor = devids.vendor; in pci_vtinput_read_config_id_devids() 292 sc->vsc_config.u.ids.product = devids.product; in pci_vtinput_read_config_id_devids() [all …]
|
H A D | pci_virtio_net.c | 127 struct virtio_net_config vsc_config; member 605 err = net_parsemac(value, sc->vsc_config.mac); in pci_vtnet_init() 611 net_genmac(pi, sc->vsc_config.mac); in pci_vtnet_init() 629 sc->vsc_config.mtu = mtu; in pci_vtnet_init() 639 size_t buflen = sizeof (sc->vsc_config.mac); in pci_vtnet_init() 641 err = netbe_get_mac(sc->vsc_be, sc->vsc_config.mac, &buflen); in pci_vtnet_init() 656 sc->vsc_config.max_virtqueue_pairs = 1; in pci_vtnet_init() 666 sc->vsc_config.status = 1; in pci_vtnet_init() 708 if (offset < (int)sizeof(sc->vsc_config.mac)) { in pci_vtnet_cfgwrite() 709 assert(offset + size <= (int)sizeof(sc->vsc_config.mac)); in pci_vtnet_cfgwrite() [all …]
|
H A D | pci_virtio_9p.c | 82 struct pci_vt9p_config * vsc_config; member 151 ptr = (uint8_t *)sc->vsc_config + offset; in pci_vt9p_cfgread() 318 sc->vsc_config = calloc(1, sizeof(struct pci_vt9p_config) + in pci_vt9p_init() 326 sc->vsc_config = calloc(1, sizeof(struct pci_vt9p_config)); in pci_vt9p_init() 351 sc->vsc_config->tag_len = (uint16_t)strlen(sharename); in pci_vt9p_init() 352 memcpy(sc->vsc_config->tag, sharename, sc->vsc_config->tag_len); in pci_vt9p_init()
|
H A D | pci_virtio_console.c | 137 struct pci_vtcon_config *vsc_config; member 209 ptr = (uint8_t *)sc->vsc_config + offset; in pci_vtcon_cfgread() 716 sc->vsc_config = calloc(1, sizeof(struct pci_vtcon_config)); in pci_vtcon_init() 717 sc->vsc_config->max_nr_ports = VTCON_MAXPORTS; in pci_vtcon_init() 718 sc->vsc_config->cols = 80; in pci_vtcon_init() 719 sc->vsc_config->rows = 25; in pci_vtcon_init()
|