Lines Matching defs:sp
242 struct sc_p *sp = &slp->sl_scp;
256 if (sp->scp_direction == SCSI_LOW_READ &&
261 if (count > (u_int) sp->scp_datalen)
264 sp->scp_data += count;
265 sp->scp_datalen -= count;
289 struct sc_p *sp = &slp->sl_scp;
303 datalen = sp->scp_datalen;
318 data = sp->scp_data;
322 bshw_lc_smit_start(ct, datalen, sp->scp_direction);
324 if (sp->scp_direction == SCSI_LOW_READ)
390 struct sc_p *sp = &slp->sl_scp;
397 if ((io_control & BSHW_DMA_BLOCK) != 0 && sp->scp_datalen < 256)
401 phys = vtophys((vaddr_t) sp->scp_data);
407 bs->sc_seglen = sp->scp_datalen;
412 if (sp->scp_direction == SCSI_LOW_WRITE)
413 bcopy(sp->scp_data, bs->sc_bufp, bs->sc_seglen);
420 endva = (vaddr_t) round_page((vaddr_t) sp->scp_data + sp->scp_datalen);
421 for (va = (vaddr_t) sp->scp_data; ; phys = nphys)
425 bs->sc_seglen = sp->scp_datalen;
433 (u_int8_t *) trunc_page(va) - sp->scp_data;
451 struct sc_p *sp = &slp->sl_scp;
469 sp->scp_direction == SCSI_LOW_READ)
470 bcopy(bs->sc_bufp, sp->scp_data, transbytes);
472 sp->scp_data += transbytes;
473 sp->scp_datalen -= transbytes;