Lines Matching refs:sdata
229 char storage[SCSZ], *sdata;
239 sdata = kmem_alloc(SCSZ, KM_SLEEP);
240 if (sdata == NULL)
246 lp->uscsi_bufaddr = sdata;
254 kmem_free(sdata, SCSZ);
259 if (ses_cfghdr((uchar_t *)sdata, amt, &cf)) {
261 kmem_free(sdata, SCSZ);
266 kmem_free(sdata, SCSZ);
285 if (ses_enchdr((uchar_t *)sdata, amt, i, &hd)) {
288 kmem_free(sdata, SCSZ);
295 if (ses_encdesc((uchar_t *)sdata, amt, i, cdp)) {
298 kmem_free(sdata, SCSZ);
316 if (ses_getthdr((uchar_t *)sdata, amt, i, &thdr)) {
319 kmem_free(sdata, SCSZ);
360 kmem_free(sdata, SCSZ);
373 if (ses_getthdr((uchar_t *)sdata, amt, i, &thdr)) {
385 kmem_free(sdata, SCSZ);
447 char rqbuf[SENSE_LENGTH], *sdata;
476 sdata = kmem_alloc(bufsiz, slp);
477 if (sdata == NULL)
483 lp->uscsi_bufaddr = sdata;
491 kmem_free(sdata, bufsiz);
504 if (ses_decode(sdata, amt, cc->ses_eltmap, tidx, oidx, sp)) {
508 if (ses_encode(sdata, amt, cc->ses_eltmap, tidx, oidx, sp)) {
520 lp->uscsi_bufaddr = sdata;
528 kmem_free(sdata, bufsiz);