Lines Matching defs:index

150 virtio_read_device_config_1(struct virtio_softc *sc, unsigned int index)
154 (uint8_t *)(sc->sc_io_addr + sc->sc_config_offset + index));
158 virtio_read_device_config_2(struct virtio_softc *sc, unsigned int index)
163 (uint16_t *)(sc->sc_io_addr + sc->sc_config_offset + index));
167 virtio_read_device_config_4(struct virtio_softc *sc, unsigned int index)
172 (uint32_t *)(sc->sc_io_addr + sc->sc_config_offset + index));
176 virtio_read_device_config_8(struct virtio_softc *sc, unsigned int index)
184 index + sizeof (uint32_t)));
190 (uint32_t *)(sc->sc_io_addr + sc->sc_config_offset + index));
195 virtio_write_device_config_1(struct virtio_softc *sc, unsigned int index,
200 (uint8_t *)(sc->sc_io_addr + sc->sc_config_offset + index), value);
204 virtio_write_device_config_2(struct virtio_softc *sc, unsigned int index,
210 (uint16_t *)(sc->sc_io_addr + sc->sc_config_offset + index), value);
214 virtio_write_device_config_4(struct virtio_softc *sc, unsigned int index,
220 (uint32_t *)(sc->sc_io_addr + sc->sc_config_offset + index), value);
224 virtio_write_device_config_8(struct virtio_softc *sc, unsigned int index,
230 (uint32_t *)(sc->sc_io_addr + sc->sc_config_offset + index),
235 index + sizeof (uint32_t)), value >> 32);
419 virtio_alloc_vq(struct virtio_softc *sc, unsigned int index, unsigned int size,
430 (uint16_t *)(sc->sc_io_addr + VIRTIO_CONFIG_QUEUE_SELECT), index);
436 "virtqueue dest not exist, index %d for %s\n", index, name);
459 "Failed to allocate dma handle for vq %d", index);
468 "Failed to allocate dma memory for vq %d", index);
477 "Failed to bind dma memory for vq %d", index);
500 vq->vq_index = index;
521 vq_size, index, name, indirect_num * vq_size);
731 /* For all but the last one, add the next index/flag */