Home
last modified time | relevance | path

Searched refs:new_context (Results 1 – 6 of 6) sorted by relevance

/trusted-services/components/service/locator/sp/ffa/
A Dspffa_service_context.c21 struct sp_ts_service_context *new_context = in spffa_service_context_create() local
25 if (!new_context) in spffa_service_context_create()
28 rpc_status = ts_rpc_caller_sp_init(&new_context->caller); in spffa_service_context_create()
30 free(new_context); in spffa_service_context_create()
34 memcpy(&new_context->service_uuid, service_uuid, sizeof(new_context->service_uuid)); in spffa_service_context_create()
36 new_context->service_context.context = new_context; in spffa_service_context_create()
37 new_context->service_context.open = sp_ts_service_context_open; in spffa_service_context_create()
38 new_context->service_context.close = sp_ts_service_context_close; in spffa_service_context_create()
39 new_context->service_context.relinquish = sp_ts_service_context_relinquish; in spffa_service_context_create()
41 return new_context; in spffa_service_context_create()
A Dspffa_location_strategy.c37 struct sp_ts_service_context *new_context = NULL; in query() local
53 new_context = spffa_service_context_create(&service_uuid); in query()
54 if (!new_context) { in query()
59 return &new_context->service_context; in query()
/trusted-services/components/service/locator/linux/ffa/
A Dlinuxffa_service_context.c28 struct linux_ts_service_context *new_context = NULL; in linux_ts_service_context_create() local
34 new_context = (struct linux_ts_service_context *) in linux_ts_service_context_create()
36 if (!new_context) in linux_ts_service_context_create()
39 rpc_status = ts_rpc_caller_linux_init(&new_context->caller); in linux_ts_service_context_create()
41 free(new_context); in linux_ts_service_context_create()
45 memcpy(&new_context->service_uuid, service_uuid, sizeof(new_context->service_uuid)); in linux_ts_service_context_create()
47 new_context->service_context.context = new_context; in linux_ts_service_context_create()
48 new_context->service_context.open = linux_ts_service_context_open; in linux_ts_service_context_create()
49 new_context->service_context.close = linux_ts_service_context_close; in linux_ts_service_context_create()
50 new_context->service_context.relinquish = linux_ts_service_context_relinquish; in linux_ts_service_context_create()
[all …]
/trusted-services/components/service/locator/linux/mm_communicate/
A Dmm_communicate_service_context.c36 struct mm_communicate_service_context *new_context = in mm_communicate_service_context_create() local
40 if (!new_context) in mm_communicate_service_context_create()
43 rpc_status = mm_communicate_caller_init(&new_context->caller, dev_path); in mm_communicate_service_context_create()
45 free(new_context); in mm_communicate_service_context_create()
49 new_context->partition_id = partition_id; in mm_communicate_service_context_create()
50 new_context->svc_guid = *svc_guid; in mm_communicate_service_context_create()
52 new_context->service_context.context = new_context; in mm_communicate_service_context_create()
53 new_context->service_context.open = mm_communicate_service_context_open; in mm_communicate_service_context_create()
54 new_context->service_context.close = mm_communicate_service_context_close; in mm_communicate_service_context_create()
55 new_context->service_context.relinquish = mm_communicate_service_context_relinquish; in mm_communicate_service_context_create()
[all …]
A Dmm_communicate_location_strategy.c73 struct mm_communicate_service_context *new_context = NULL; in query() local
83 new_context = mm_communicate_service_context_create( in query()
87 if (!new_context) in query()
90 return &new_context->service_context; in query()
/trusted-services/components/service/locator/remote/restapi/
A Drestapi_service_context.c31 struct restapi_service_context *new_context = in restapi_service_context_create() local
34 if (!new_context) { in restapi_service_context_create()
39 strncpy(new_context->rpc_call_url, service_url, HTTP_CALLER_MAX_URL_LEN - 1); in restapi_service_context_create()
40 strncat(new_context->rpc_call_url, "call/", HTTP_CALLER_MAX_URL_LEN - 1); in restapi_service_context_create()
42 new_context->service_context.context = new_context; in restapi_service_context_create()
43 new_context->service_context.open = restapi_service_context_open; in restapi_service_context_create()
44 new_context->service_context.close = restapi_service_context_close; in restapi_service_context_create()
45 new_context->service_context.relinquish = restapi_service_context_relinquish; in restapi_service_context_create()
47 return &new_context->service_context; in restapi_service_context_create()

Completed in 15 milliseconds