Lines Matching refs:req
34 struct test_req *req = CONTAINER_OF(cli, struct test_req, cli); in basic_cb() local
36 req->res = res; in basic_cb()
37 req->state = state; in basic_cb()
38 k_sem_give(&req->sem); in basic_cb()
104 struct test_req *req = k_timer_user_data_get(timer); in timeout() local
108 sys_notify_init_callback(&req->cli.notify, basic_cb); in timeout()
110 rv = mram_no_latency_request(&req->cli); in timeout()
116 struct test_req req; in ZTEST() local
121 k_sem_init(&req.sem, 0, 1); in ZTEST()
123 k_timer_user_data_set(&timer, &req); in ZTEST()
128 rv = k_sem_take(&req.sem, K_MSEC(TIMEOUT_MS)); in ZTEST()
130 zassert_equal(req.res, 0, "Unexpected res:%d", req.res); in ZTEST()
131 zassert_equal(req.state, exp_state); in ZTEST()
133 rv = mram_no_latency_cancel_or_release(&req.cli); in ZTEST()