Searched refs:maxnsegs (Results 1 – 2 of 2) sorted by relevance
/netbsd/sys/dev/pci/ |
H A D | ld_virtio.c | 267 int qsize, maxxfersize, maxnsegs; in ld_virtio_attach() local 320 maxnsegs = virtio_read_device_config_4(vsc, in ld_virtio_attach() 322 if (maxnsegs < VIRTIO_BLK_MIN_SEGMENTS) { in ld_virtio_attach() 325 maxnsegs, VIRTIO_BLK_MIN_SEGMENTS); in ld_virtio_attach() 326 maxnsegs = maxxfersize / NBPG; in ld_virtio_attach() 330 maxnsegs = maxxfersize / NBPG; in ld_virtio_attach() 333 maxnsegs += VIRTIO_BLK_MIN_SEGMENTS; in ld_virtio_attach() 338 if (virtio_alloc_vq(vsc, &sc->sc_vq, maxxfersize, maxnsegs, in ld_virtio_attach()
|
H A D | virtio.c | 774 int maxsegsize, int maxnsegs, const char *name) in virtio_alloc_vq() argument 798 size_indirect = (sc->sc_indirect && maxnsegs >= MINSEG_INDIRECT) ? in virtio_alloc_vq() 799 sizeof(struct vring_desc) * maxnsegs * vq_num : 0; in virtio_alloc_vq() 845 vq->vq_maxnsegs = maxnsegs; in virtio_alloc_vq() 881 "descriptors\n", size_indirect, maxnsegs * vq_num); in virtio_alloc_vq()
|