OSIOP_NSG
if (n < 0 || n >= OSIOP_NSG)
for (i = 0; i < OSIOP_NSG; i++) {
if (i >= OSIOP_NSG || ds->data[i].count == 0) {
i < OSIOP_NSG && ds->data[i].count > 0;
if (j < OSIOP_NSG) {
err = bus_dmamap_create(sc->sc_dmat, OSIOP_MAX_XFER, OSIOP_NSG,
buf_table_t data[OSIOP_NSG]; /* DMA S/G buffers */
#if MAXPHYS > (PAGE_SIZE * (OSIOP_NSG - 1))
#define OSIOP_MAX_XFER (PAGE_SIZE * (OSIOP_NSG - 1))