Lines Matching refs:indev_ctx

54 static void _simple_text_input_context_free(lv_uefi_simple_text_input_context_t * indev_ctx);
58 static void _simple_text_input_read(lv_uefi_simple_text_input_context_t * indev_ctx,
85 lv_uefi_simple_text_input_context_t * indev_ctx = NULL; in lv_uefi_simple_text_input_indev_create() local
87 indev_ctx = lv_calloc(1, sizeof(lv_uefi_simple_text_input_context_t)); in lv_uefi_simple_text_input_indev_create()
88 LV_ASSERT_MALLOC(indev_ctx); in lv_uefi_simple_text_input_indev_create()
90 indev_ctx->signature = SIMPLE_TEXT_INPUT_INDEV_SIGNATURE; in lv_uefi_simple_text_input_indev_create()
92 lv_ll_init(&indev_ctx->handles, sizeof(lv_uefi_simple_text_input_handle_context_t)); in lv_uefi_simple_text_input_indev_create()
93 lv_ll_init(&indev_ctx->key_cache, sizeof(lv_uefi_simple_text_input_key_cache_t)); in lv_uefi_simple_text_input_indev_create()
97 lv_indev_set_user_data(indev, indev_ctx); in lv_uefi_simple_text_input_indev_create()
115 …lv_uefi_simple_text_input_context_t * indev_ctx = (lv_uefi_simple_text_input_context_t *)lv_indev_… in lv_uefi_simple_text_input_indev_add_handle() local
116 LV_ASSERT_NULL(indev_ctx); in lv_uefi_simple_text_input_indev_add_handle()
118 if(indev_ctx->signature != SIMPLE_TEXT_INPUT_INDEV_SIGNATURE) return false; in lv_uefi_simple_text_input_indev_add_handle()
127 handle_ctx = (lv_uefi_simple_text_input_handle_context_t *) lv_ll_ins_head(&indev_ctx->handles); in lv_uefi_simple_text_input_indev_add_handle()
147 …lv_uefi_simple_text_input_context_t * indev_ctx = (lv_uefi_simple_text_input_context_t *)lv_indev_… in lv_uefi_simple_text_input_indev_add_all() local
148 LV_ASSERT_NULL(indev_ctx); in lv_uefi_simple_text_input_indev_add_all()
150 if(indev_ctx->signature != SIMPLE_TEXT_INPUT_INDEV_SIGNATURE) return; in lv_uefi_simple_text_input_indev_add_all()
172 lv_uefi_simple_text_input_context_t * indev_ctx; in _simple_text_input_event_cb() local
179 indev_ctx = (lv_uefi_simple_text_input_context_t *)lv_indev_get_user_data(indev); in _simple_text_input_event_cb()
182 if(indev_ctx != NULL) _simple_text_input_context_free(indev_ctx); in _simple_text_input_event_cb()
191 …lv_uefi_simple_text_input_context_t * indev_ctx = (lv_uefi_simple_text_input_context_t *)lv_indev_… in _simple_text_input_read_cb() local
192 LV_ASSERT_NULL(indev_ctx); in _simple_text_input_read_cb()
195 if(lv_ll_is_empty(&indev_ctx->key_cache)) { in _simple_text_input_read_cb()
197 …for(node = lv_ll_get_head(&indev_ctx->handles); node != NULL; node = lv_ll_get_next(&indev_ctx->ha… in _simple_text_input_read_cb()
199 _simple_text_input_read(indev_ctx, handle_ctx); in _simple_text_input_read_cb()
204 node = lv_ll_get_head(&indev_ctx->key_cache); in _simple_text_input_read_cb()
209 lv_ll_remove(&indev_ctx->key_cache, node); in _simple_text_input_read_cb()
214 data->continue_reading = !lv_ll_is_empty(&indev_ctx->key_cache); in _simple_text_input_read_cb()
217 static void _simple_text_input_context_free(lv_uefi_simple_text_input_context_t * indev_ctx) in _simple_text_input_context_free() argument
219 if(indev_ctx == NULL) return; in _simple_text_input_context_free()
220 lv_ll_clear_custom(&indev_ctx->handles, _simple_text_input_handle_context_free); in _simple_text_input_context_free()
221 lv_ll_clear(&indev_ctx->key_cache); in _simple_text_input_context_free()
222 lv_free(indev_ctx); in _simple_text_input_context_free()
240 static void _simple_text_input_read(lv_uefi_simple_text_input_context_t * indev_ctx, in _simple_text_input_read() argument
248 LV_ASSERT_NULL(indev_ctx); in _simple_text_input_read()
263 cache = (lv_uefi_simple_text_input_key_cache_t *) lv_ll_ins_tail(&indev_ctx->key_cache); in _simple_text_input_read()
269 cache = (lv_uefi_simple_text_input_key_cache_t *) lv_ll_ins_tail(&indev_ctx->key_cache); in _simple_text_input_read()