Lines Matching refs:total
138 int error, i, total, rseg, maxfer;
221 total = sc->ccblen * sc->maxcmd;
222 if ((error = bus_dmamem_alloc(sc->sc_dmat, total, PAGE_SIZE, 0,
228 if ((error = bus_dmamem_map(sc->sc_dmat, sc->cmdseg, rseg, total,
233 memset(sc->ccbs, 0, total);
235 if ((error = bus_dmamap_create(sc->sc_dmat, total, 1,
236 total, 0, BUS_DMA_NOWAIT | BUS_DMA_ALLOCNOW, &sc->cmdmap))) {
242 if ((error = bus_dmamap_load(sc->sc_dmat, sc->cmdmap, sc->ccbs, total,
255 for (i = 0; total > 0 && i < sc->maxcmd; i++, total -= sc->ccblen) {
737 int total, rv;
742 total = sizeof(*lmap) + (sc->maxunits - 1) * sizeof(lmap->map);
745 ccb->ccb_len = total;
756 cmd->cdb[8] = total >> 8; /* biiiig endian */
757 cmd->cdb[9] = total & 0xff;