Home | History | Annotate | Download | only in pci

Lines Matching defs:sc_seg_max

168 	uint32_t		sc_seg_max; /* max number of segs in xfer */
273 /*nseg*/sc->sc_seg_max,
351 sc->sc_seg_max = virtio_read_device_config_4(vsc,
353 if (sc->sc_seg_max == 0) {
355 "Invalid SEG_MAX %d\n", sc->sc_seg_max);
359 sc->sc_seg_max = 1;
361 "Unknown SEG_MAX, assuming %"PRIu32"\n", sc->sc_seg_max);
368 if (sc->sc_size_max < MAXPHYS/sc->sc_seg_max) {
371 sc->sc_size_max, MAXPHYS/sc->sc_seg_max);
373 sc->sc_size_max = MAXPHYS/sc->sc_seg_max;
389 sc->sc_seg_max, sc->sc_size_max);
395 sc->sc_seg_max + VIRTIO_BLK_CTRL_SEGMENTS, "I/O request") != 0)
413 ld->sc_maxxfer = MIN(MAXPHYS, sc->sc_size_max * sc->sc_seg_max);
522 KASSERT(vr->vr_payload->dm_nsegs <= sc->sc_seg_max);
628 KASSERT(vr->vr_payload->dm_nsegs <= sc->sc_seg_max);
1081 KASSERT(vr->vr_payload->dm_nsegs <= sc->sc_seg_max);