Lines Matching refs:req
74 uv_random_t* req; in uv__random_work() local
76 req = container_of(w, uv_random_t, work_req); in uv__random_work()
77 req->status = uv__random(req->buf, req->buflen); in uv__random_work()
82 uv_random_t* req; in uv__random_done() local
84 req = container_of(w, uv_random_t, work_req); in uv__random_done()
85 uv__req_unregister(req->loop); in uv__random_done()
88 status = req->status; in uv__random_done()
90 req->cb(req, status, req->buf, req->buflen); in uv__random_done()
95 uv_random_t* req, in uv_random() argument
109 uv__req_init(loop, req, UV_RANDOM); in uv_random()
110 req->loop = loop; in uv_random()
111 req->status = 0; in uv_random()
112 req->cb = cb; in uv_random()
113 req->buf = buf; in uv_random()
114 req->buflen = buflen; in uv_random()
117 &req->work_req, in uv_random()