Lines Matching full:context
43 struct backend_context *context = (struct backend_context *)backend->cb->ctx; in backend_process() local
52 zassert_equal(strcmp(str, context->exp_str[context->cnt]), 0, in backend_process()
53 "Unexpected string %s (exp:%s)", str, context->exp_str[context->cnt]); in backend_process()
55 context->cnt++; in backend_process()
66 struct backend_context *context = (struct backend_context *)ctx; in expire_cb() local
68 context->active = true; in expire_cb()
73 struct backend_context *context = (struct backend_context *)backend->cb->ctx; in backend_init() local
75 k_timer_init(&context->timer, expire_cb, NULL); in backend_init()
76 k_timer_user_data_set(&context->timer, (void *)context); in backend_init()
77 k_timer_start(&context->timer, K_MSEC(context->delay), K_NO_WAIT); in backend_init()
82 struct backend_context *context = (struct backend_context *)backend->cb->ctx; in backend_is_ready() local
84 return context->active ? 0 : -EBUSY; in backend_is_ready()