Lines Matching refs:krq
221 smbioc_t2rq_t *krq;
230 if ((krq = malloc(sizeof (smbioc_t2rq_t))) == NULL) {
235 bzero(krq, sizeof (*krq));
238 krq->ioc_setup[i] = setup[i];
239 krq->ioc_setupcnt = setupcount;
240 (void) strcpy(krq->ioc_name, name);
241 krq->ioc_tparamcnt = tparamcnt;
242 krq->ioc_tparam = tparam;
243 krq->ioc_tdatacnt = tdatacnt;
244 krq->ioc_tdata = tdata;
246 krq->ioc_rparamcnt = *rparamcnt;
247 krq->ioc_rdatacnt = *rdatacnt;
248 krq->ioc_rparam = rparam;
249 krq->ioc_rdata = rdata;
251 if (ioctl(dev_fd, SMBIOC_T2RQ, krq) == -1) {
252 free(krq);
258 *rparamcnt = krq->ioc_rparamcnt;
259 *rdatacnt = krq->ioc_rdatacnt;
260 *buffer_oflow = (krq->ioc_rpflags2 & SMB_FLAGS2_NT_STATUS) &&
261 (krq->ioc_error == NT_STATUS_BUFFER_OVERFLOW);
262 free(krq);