Lines Matching refs:req
54 static void getaddrinfo_do(struct getaddrinfo_req* req);
58 static void fs_do(struct fs_req* req);
65 static void getaddrinfo_do(struct getaddrinfo_req* req) { in getaddrinfo_do() argument
68 r = uv_getaddrinfo(req->loop, in getaddrinfo_do()
69 &req->handle, in getaddrinfo_do()
81 struct getaddrinfo_req* req; in getaddrinfo_cb() local
85 req = container_of(handle, struct getaddrinfo_req, handle); in getaddrinfo_cb()
88 if (--req->counter) in getaddrinfo_cb()
89 getaddrinfo_do(req); in getaddrinfo_cb()
93 static void fs_do(struct fs_req* req) { in fs_do() argument
96 r = uv_fs_stat(req->loop, &req->handle, ".", fs_cb); in fs_do()
102 struct fs_req* req = container_of(handle, struct fs_req, handle); in fs_cb() local
106 if (--req->counter) in fs_cb()
107 fs_do(req); in fs_cb()
121 struct getaddrinfo_req* req = getaddrinfo_reqs + i; in do_work() local
122 req->counter = 4; in do_work()
123 req->loop = &loop; in do_work()
124 getaddrinfo_do(req); in do_work()
128 struct fs_req* req = fs_reqs + i; in do_work() local
129 req->counter = 4; in do_work()
130 req->loop = &loop; in do_work()
131 fs_do(req); in do_work()