Lines Matching refs:krq
218 struct smbioc_rq krq;
226 bzero(&krq, sizeof (krq));
227 krq.ioc_cmd = rqp->rq_cmd;
248 krq.ioc_tbufsz = len - SMB_HDRLEN;
249 krq.ioc_tbuf = data + SMB_HDRLEN;
263 krq.ioc_rbufsz = rpbufsz;
264 krq.ioc_rbuf = mtod(m, char *);
269 if (ioctl(rqp->rq_ctx->ct_dev_fd, SMBIOC_REQUEST, &krq) == -1)
276 m->m_len = krq.ioc_rbufsz;
291 smbioc_t2rq_t *krq;
294 krq = (smbioc_t2rq_t *)malloc(sizeof (smbioc_t2rq_t));
295 bzero(krq, sizeof (*krq));
302 krq->ioc_setup[i] = setup[i];
303 krq->ioc_setupcnt = setupcount;
304 strcpy(krq->ioc_name, name);
305 krq->ioc_tparamcnt = tparamcnt;
306 krq->ioc_tparam = tparam;
307 krq->ioc_tdatacnt = tdatacnt;
308 krq->ioc_tdata = tdata;
310 krq->ioc_rparamcnt = *rparamcnt;
311 krq->ioc_rdatacnt = *rdatacnt;
312 krq->ioc_rparam = rparam;
313 krq->ioc_rdata = rdata;
315 if (ioctl(dev_fd, SMBIOC_T2RQ, krq) == -1) {
319 *rparamcnt = krq->ioc_rparamcnt;
320 *rdatacnt = krq->ioc_rdatacnt;
321 *buffer_oflow = (krq->ioc_rpflags2 & SMB_FLAGS2_ERR_STATUS) &&
322 (krq->ioc_error == NT_STATUS_BUFFER_OVERFLOW);
323 free(krq);