Lines Matching refs:rinfo

283 } rinfo;  variable
289 (*rinfo.req_op->op_done)(rinfo.resp_biov); in fwctl_response_done()
292 memset(&rinfo, 0, sizeof(rinfo)); in fwctl_response_done()
299 rinfo.resp_error = (*rinfo.req_op->op_result)(&rinfo.resp_biov); in fwctl_request_done()
302 rinfo.resp_off = 0; in fwctl_request_done()
303 if (rinfo.resp_biov == NULL) { in fwctl_request_done()
304 rinfo.resp_size = 0; in fwctl_request_done()
306 rinfo.resp_size = rinfo.resp_biov[0].iov_len; in fwctl_request_done()
316 rinfo.req_size -= 12; in fwctl_request_start()
318 rinfo.req_op = &errop_info; in fwctl_request_start()
319 if (rinfo.req_type <= OP_MAX && ops[rinfo.req_type] != NULL) in fwctl_request_start()
320 rinfo.req_op = ops[rinfo.req_type]; in fwctl_request_start()
322 err = (*rinfo.req_op->op_start)(rinfo.req_size); in fwctl_request_start()
326 rinfo.req_op = &errop_info; in fwctl_request_start()
330 if (rinfo.req_size == 0) { in fwctl_request_start()
343 assert(rinfo.req_size > 0); in fwctl_request_data()
344 if (rinfo.req_size <= sizeof(uint32_t)) in fwctl_request_data()
345 rinfo.req_size = 0; in fwctl_request_data()
347 rinfo.req_size -= sizeof(uint32_t); in fwctl_request_data()
349 (*rinfo.req_op->op_data)(value); in fwctl_request_data()
351 if (rinfo.req_size < sizeof(uint32_t)) { in fwctl_request_data()
366 switch (rinfo.req_count) { in fwctl_request()
373 rinfo.req_size = value; in fwctl_request()
374 rinfo.req_count = 1; in fwctl_request()
377 rinfo.req_type = value; in fwctl_request()
378 rinfo.req_count++; in fwctl_request()
381 rinfo.req_txid = value; in fwctl_request()
382 rinfo.req_count++; in fwctl_request()
399 switch(rinfo.resp_count) { in fwctl_response()
403 roundup(rinfo.resp_size, sizeof(uint32_t)); in fwctl_response()
404 rinfo.resp_count++; in fwctl_response()
407 *retval = rinfo.req_type; in fwctl_response()
408 rinfo.resp_count++; in fwctl_response()
411 *retval = rinfo.req_txid; in fwctl_response()
412 rinfo.resp_count++; in fwctl_response()
415 *retval = rinfo.resp_error; in fwctl_response()
416 rinfo.resp_count++; in fwctl_response()
419 remlen = rinfo.resp_size - rinfo.resp_off; in fwctl_response()
420 dp = (uint8_t *)rinfo.resp_biov->iov_base + rinfo.resp_off; in fwctl_response()
426 rinfo.resp_off += sizeof(uint32_t); in fwctl_response()
430 if (rinfo.resp_count > 3 && in fwctl_response()
431 rinfo.resp_off >= rinfo.resp_size) { in fwctl_response()
450 memset(&rinfo, 0, sizeof(rinfo)); in fwctl_reset()