Lines Matching refs:channel_ctx
125 struct apploader_channel_ctx* channel_ctx, in apploader_service_handle_cmd_get_memory() argument
130 if (channel_ctx->vmm_obj_slice.obj) { in apploader_service_handle_cmd_get_memory()
171 vmm_obj_slice_bind(&channel_ctx->vmm_obj_slice, vmm_obj, 0, in apploader_service_handle_cmd_get_memory()
191 struct apploader_channel_ctx* channel_ctx, in apploader_service_handle_cmd_load_application() argument
196 if (!channel_ctx->vmm_obj_slice.obj) { in apploader_service_handle_cmd_load_application()
202 if (!vmm_obj_has_only_ref(channel_ctx->vmm_obj_slice.obj, in apploader_service_handle_cmd_load_application()
203 &channel_ctx->vmm_obj_slice.obj_ref)) { in apploader_service_handle_cmd_load_application()
211 req->manifest_end > channel_ctx->vmm_obj_slice.size) { in apploader_service_handle_cmd_load_application()
220 req->img_end > channel_ctx->vmm_obj_slice.size) { in apploader_service_handle_cmd_load_application()
229 channel_ctx->vmm_obj_slice.size); in apploader_service_handle_cmd_load_application()
233 channel_ctx->vmm_obj_slice.obj, 0, in apploader_service_handle_cmd_load_application()
234 channel_ctx->vmm_obj_slice.size, &va, 0, 0, in apploader_service_handle_cmd_load_application()
276 vmm_obj_slice_release(&channel_ctx->vmm_obj_slice); in apploader_service_handle_cmd_load_application()
291 vmm_obj_slice_release(&channel_ctx->vmm_obj_slice); in apploader_service_handle_cmd_load_application()
300 struct apploader_channel_ctx* channel_ctx = ctx; in apploader_service_handle_msg() local
322 rc = apploader_service_handle_cmd_get_memory(chan, channel_ctx, in apploader_service_handle_msg()
337 rc = apploader_service_handle_cmd_load_application(chan, channel_ctx, in apploader_service_handle_msg()
360 struct apploader_channel_ctx* channel_ctx = calloc(1, sizeof(*channel_ctx)); in apploader_service_handle_connect() local
361 if (!channel_ctx) { in apploader_service_handle_connect()
366 vmm_obj_slice_init(&channel_ctx->vmm_obj_slice); in apploader_service_handle_connect()
368 *ctx_p = channel_ctx; in apploader_service_handle_connect()
374 struct apploader_channel_ctx* channel_ctx = ctx; in apploader_service_handle_channel_cleanup() local
376 vmm_obj_slice_release(&channel_ctx->vmm_obj_slice); in apploader_service_handle_channel_cleanup()
377 free(channel_ctx); in apploader_service_handle_channel_cleanup()