Lines Matching refs:ci
29 #define INIT_CANCEL_INFO(ci, what) \ argument
31 (ci)->reqs = (what); \
32 (ci)->nreqs = ARRAY_SIZE(what); \
33 (ci)->stride = sizeof((what)[0]); \
164 struct cancel_info* ci; in timer_cb() local
168 ci = container_of(handle, struct cancel_info, timer_handle); in timer_cb()
170 for (i = 0; i < ci->nreqs; i++) { in timer_cb()
171 req = (uv_req_t*) ((char*) ci->reqs + i * ci->stride); in timer_cb()
175 uv_close((uv_handle_t*) &ci->timer_handle, NULL); in timer_cb()
202 struct cancel_info ci; in TEST_IMPL() local
207 INIT_CANCEL_INFO(&ci, reqs); in TEST_IMPL()
223 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
224 ASSERT_OK(uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL()
236 struct cancel_info ci; in TEST_IMPL() local
243 INIT_CANCEL_INFO(&ci, reqs); in TEST_IMPL()
259 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
260 ASSERT_OK(uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL()
293 struct cancel_info ci; in TEST_IMPL() local
298 INIT_CANCEL_INFO(&ci, reqs); in TEST_IMPL()
305 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
306 ASSERT_OK(uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL()
317 struct cancel_info ci; in TEST_IMPL() local
323 INIT_CANCEL_INFO(&ci, reqs); in TEST_IMPL()
358 ASSERT_OK(uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
359 ASSERT_OK(uv_timer_start(&ci.timer_handle, timer_cb, 10, 0)); in TEST_IMPL()