Home
last modified time | relevance | path

Searched refs:dev_file (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/common_modules/tzdriver/core/
H A Dsession_manager.c189 unsigned int session_id, const struct tc_ns_dev_file *dev_file) in tc_find_session_withowner()
193 if (!session_list || !dev_file) { in tc_find_session_withowner()
200 session->owner == dev_file) in tc_find_session_withowner()
225 struct tc_ns_dev_file *dev_file = NULL; in tc_find_session_by_uuid() local
234 dev_file = tc_find_dev_file(dev_file_id); in tc_find_session_by_uuid()
235 if (!dev_file) { in tc_find_session_by_uuid()
240 mutex_lock(&dev_file->service_lock); in tc_find_session_by_uuid()
241 service = tc_find_service_in_dev(dev_file, cmd->uuid, UUID_LEN); in tc_find_session_by_uuid()
243 mutex_unlock(&dev_file->service_lock); in tc_find_session_by_uuid()
251 cmd->context_id, dev_file); in tc_find_session_by_uuid()
187 tc_find_session_withowner( const struct list_head *session_list, unsigned int session_id, const struct tc_ns_dev_file *dev_file) tc_find_session_withowner() argument
316 tc_ns_load_secfile(struct tc_ns_dev_file *dev_file, void __user *argp, bool is_from_client_node) tc_ns_load_secfile() argument
396 set_login_information_uname(struct tc_ns_dev_file *dev_file, uint32_t uid) set_login_information_uname() argument
414 set_login_information_uid(struct tc_ns_dev_file *dev_file, uint32_t ca_uid) set_login_information_uid() argument
431 set_login_information(struct tc_ns_dev_file *dev_file, struct tc_ns_client_context *context) set_login_information() argument
491 check_login_method(struct tc_ns_dev_file *dev_file, struct tc_ns_client_context *context, uint8_t *flags) check_login_method() argument
597 find_service(struct tc_ns_dev_file *dev_file, const struct tc_ns_client_context *context) find_service() argument
913 load_ta_image(struct tc_ns_dev_file *dev_file, struct tc_ns_client_context *context) load_ta_image() argument
952 init_new_sess_node(struct tc_ns_dev_file *dev_file, const struct tc_ns_client_context *context, struct tc_ns_service *service, struct tc_ns_session *session) init_new_sess_node() argument
969 proc_open_session(struct tc_ns_dev_file *dev_file, struct tc_ns_client_context *context, struct tc_ns_service *service, struct tc_ns_session *session, uint8_t flags) proc_open_session() argument
1016 tc_ns_open_session(struct tc_ns_dev_file *dev_file, struct tc_ns_client_context *context) tc_ns_open_session() argument
1075 get_session(struct tc_ns_service *service, const struct tc_ns_dev_file *dev_file, const struct tc_ns_client_context *context) get_session() argument
1090 get_service(struct tc_ns_dev_file *dev_file, const struct tc_ns_client_context *context) get_service() argument
1221 tc_ns_close_session(struct tc_ns_dev_file *dev_file, struct tc_ns_client_context *context) tc_ns_close_session() argument
1277 tc_ns_send_cmd(struct tc_ns_dev_file *dev_file, struct tc_ns_client_context *context) tc_ns_send_cmd() argument
1323 ioctl_session_send_cmd(struct tc_ns_dev_file *dev_file, struct tc_ns_client_context *context, void *argp) ioctl_session_send_cmd() argument
1343 struct tc_ns_dev_file *dev_file = NULL; tc_client_session_ioctl() local
1432 struct tc_ns_dev_file *dev_file = NULL; free_all_session() local
[all...]
H A Dtc_client_driver.c205 static int tc_ns_get_tee_version(const struct tc_ns_dev_file *dev_file, in tc_ns_get_tee_version() argument
227 smc_cmd.dev_file_id = dev_file->dev_file_id; in tc_ns_get_tee_version()
251 static int get_pack_name_len(struct tc_ns_dev_file *dev_file, in get_pack_name_len() argument
256 dev_file->pkg_name_len = 0; in get_pack_name_len()
264 dev_file->pkg_name_len = tmp_len; in get_pack_name_len()
265 tlogd("package name len is %u\n", dev_file->pkg_name_len); in get_pack_name_len()
270 static int get_public_key_len(struct tc_ns_dev_file *dev_file, in get_public_key_len() argument
275 dev_file->pub_key_len = 0; in get_public_key_len()
283 dev_file->pub_key_len = tmp_len; in get_public_key_len()
284 tlogd("publick key len is %u\n", dev_file in get_public_key_len()
289 get_public_key(struct tc_ns_dev_file *dev_file, const uint8_t *cert_buffer) get_public_key() argument
326 alloc_login_buf(struct tc_ns_dev_file *dev_file, uint8_t **cert_buffer, unsigned int *cert_buffer_size) alloc_login_buf() argument
356 tc_login_check(const struct tc_ns_dev_file *dev_file) tc_login_check() argument
374 tc_ns_client_login_func(struct tc_ns_dev_file *dev_file, const void __user *buffer) tc_ns_client_login_func() argument
440 tc_ns_client_open(struct tc_ns_dev_file **dev_file, uint8_t kernel_api) tc_ns_client_open() argument
533 struct tc_ns_dev_file *dev_file = NULL; shared_vma_close() local
577 find_sharedmem( const struct vm_area_struct *vma, const struct tc_ns_dev_file *dev_file, bool *only_remap) find_sharedmem() argument
656 struct tc_ns_dev_file *dev_file = NULL; tc_client_mmap() local
706 ioctl_register_agent(struct tc_ns_dev_file *dev_file, unsigned long arg) ioctl_register_agent() argument
731 ioctl_check_agent_owner(const struct tc_ns_dev_file *dev_file, unsigned int agent_id) ioctl_check_agent_owner() argument
756 struct tc_ns_dev_file *dev_file = file->private_data; public_ioctl() local
793 tc_ns_send_cancel_cmd(struct tc_ns_dev_file *dev_file, void *argp) tc_ns_send_cancel_cmd() argument
1032 struct tc_ns_dev_file *dev_file = NULL; tc_find_dev_file() local
1443 struct tc_ns_dev_file *dev_file = NULL, *temp = NULL; free_dev_list() local
[all...]
H A Dtz_update_crl.c27 int send_crl_to_tee(const char *crl_buffer, uint32_t crl_len, const struct tc_ns_dev_file *dev_file) in send_crl_to_tee() argument
34 /* dev_file not need check null */ in send_crl_to_tee()
58 if (dev_file != NULL) in send_crl_to_tee()
59 smc_cmd.dev_file_id = dev_file->dev_file_id; in send_crl_to_tee()
79 int tc_ns_update_ta_crl(const struct tc_ns_dev_file *dev_file, void __user *argp) in tc_ns_update_ta_crl() argument
86 if (!dev_file || !argp) { in tc_ns_update_ta_crl()
114 ret = send_crl_to_tee(crl_buffer, context.size, dev_file); in tc_ns_update_ta_crl()
151 int tz_update_crl(const char *file_path, const struct tc_ns_dev_file *dev_file) in tz_update_crl() argument
160 if (!dev_file || !file_path) { in tz_update_crl()
197 ret = send_crl_to_tee(crl_buffer, crl_len, dev_file); in tz_update_crl()
[all...]
H A Dsession_manager.h23 int tc_ns_open_session(struct tc_ns_dev_file *dev_file,
25 int tc_ns_close_session(struct tc_ns_dev_file *dev_file,
27 int tc_ns_send_cmd(struct tc_ns_dev_file *dev_file,
40 const struct tc_ns_dev_file *dev_file);
41 int tc_ns_load_secfile(struct tc_ns_dev_file *dev_file,
H A Dtz_update_crl.h19 int send_crl_to_tee(const char *crl_buffer, uint32_t crl_len, const struct tc_ns_dev_file *dev_file);
20 int tc_ns_update_ta_crl(const struct tc_ns_dev_file *dev_file, void __user *argp);
21 int tz_update_crl(const char *file_path, const struct tc_ns_dev_file *dev_file);
H A Dagent.h115 int tc_ns_register_agent(struct tc_ns_dev_file *dev_file, unsigned int agent_id,
118 void send_crashed_event_response_all(const struct tc_ns_dev_file *dev_file);
121 void send_event_response_single(const struct tc_ns_dev_file *dev_file);
127 bool is_system_agent(const struct tc_ns_dev_file *dev_file);
128 void tee_agent_clear_dev_owner(const struct tc_ns_dev_file *dev_file);
H A Dagent.c363 void send_event_response_single(const struct tc_ns_dev_file *dev_file) in send_event_response_single() argument
370 if (!dev_file) in send_event_response_single()
376 if (event_data->owner == dev_file) { in send_event_response_single()
735 static void init_restart_agent_node(struct tc_ns_dev_file *dev_file, in init_restart_agent_node() argument
740 event_data->owner = dev_file; in init_restart_agent_node()
748 static int create_new_agent_node(struct tc_ns_dev_file *dev_file, in create_new_agent_node() argument
769 (*event_data)->owner = dev_file; in create_new_agent_node()
867 struct smc_event_data **event_data, struct tc_ns_dev_file *dev_file, bool *find_flag) in is_agent_already_exist()
887 init_restart_agent_node(dev_file, agent_node); in is_agent_already_exist()
964 int tc_ns_register_agent(struct tc_ns_dev_file *dev_file, in tc_ns_register_agent() argument
866 is_agent_already_exist(unsigned int agent_id, struct smc_event_data **event_data, struct tc_ns_dev_file *dev_file, bool *find_flag) is_agent_already_exist() argument
1068 is_system_agent(const struct tc_ns_dev_file *dev_file) is_system_agent() argument
1091 send_crashed_event_response_all(const struct tc_ns_dev_file *dev_file) send_crashed_event_response_all() argument
1118 tee_agent_clear_dev_owner(const struct tc_ns_dev_file *dev_file) tee_agent_clear_dev_owner() argument
[all...]
H A Dteek_client_api.c395 struct tc_ns_dev_file *dev_file = NULL; in check_open_sess_params() local
407 dev_file = (struct tc_ns_dev_file *)(context->dev); in check_open_sess_params()
408 if (!dev_file) { in check_open_sess_params()
413 dev_file->pkg_name_len = operation->params[3].tmpref.size; in check_open_sess_params()
417 if (memset_s(dev_file->pkg_name, sizeof(dev_file->pkg_name), in check_open_sess_params()
422 if (memcpy_s(dev_file->pkg_name, sizeof(dev_file->pkg_name), in check_open_sess_params()
430 dev_file->pub_key_len = 0; in check_open_sess_params()
431 dev_file in check_open_sess_params()
[all...]
H A Dtc_client_driver.h33 int tc_ns_client_open(struct tc_ns_dev_file **dev_file, uint8_t kernel_api);
/kernel/linux/common_modules/tzdriver/auth/
H A Dclient_hash_auth.h27 int calc_client_auth_hash(struct tc_ns_dev_file *dev_file,
32 static inline int calc_client_auth_hash(struct tc_ns_dev_file *dev_file, in calc_client_auth_hash() argument
35 (void)dev_file; in calc_client_auth_hash()
H A Dclient_hash_auth.c301 int calc_client_auth_hash(struct tc_ns_dev_file *dev_file, in calc_client_auth_hash() argument
310 check = (!dev_file || !context || !session); in calc_client_auth_hash()
351 ret = proc_calc_hash(dev_file->kernel_api, session, cur_struct, dev_file->pub_key_len); in calc_client_auth_hash()
362 static int construct_hashdata(struct tc_ns_dev_file *dev_file, in construct_hashdata() argument
366 ret = memcpy_s(buf, buf_len, dev_file->pkg_name, dev_file->pkg_name_len); in construct_hashdata()
371 buf += dev_file->pkg_name_len; in construct_hashdata()
372 buf_len -= dev_file->pkg_name_len; in construct_hashdata()
373 ret = memcpy_s(buf, buf_len, dev_file in construct_hashdata()
[all...]
/kernel/linux/common_modules/tzdriver/
H A Dagent.h115 int tc_ns_register_agent(struct tc_ns_dev_file *dev_file, unsigned int agent_id,
118 void send_crashed_event_response_all(const struct tc_ns_dev_file *dev_file);
121 void send_event_response_single(const struct tc_ns_dev_file *dev_file);
127 bool is_system_agent(const struct tc_ns_dev_file *dev_file);
128 void tee_agent_clear_dev_owner(const struct tc_ns_dev_file *dev_file);
H A Dtui.h210 int tc_ns_tui_event(struct tc_ns_dev_file *dev_file, const void *argp);
267 static inline int tc_ns_tui_event(struct tc_ns_dev_file *dev_file, const void *argp) in tc_ns_tui_event() argument
269 (void)dev_file; in tc_ns_tui_event()
H A Dteek_ns_client.h216 struct tc_ns_dev_file *dev_file; member
/kernel/linux/common_modules/tzdriver/tui/
H A Dtui.h210 int tc_ns_tui_event(struct tc_ns_dev_file *dev_file, const void *argp);
267 static inline int tc_ns_tui_event(struct tc_ns_dev_file *dev_file, const void *argp) in tc_ns_tui_event() argument
269 (void)dev_file; in tc_ns_tui_event()
H A Dtui.c1985 int tc_ns_tui_event(struct tc_ns_dev_file *dev_file, const void *argp) argument
1990 if (!dev_file || !argp) {
/kernel/linux/common_modules/tzdriver/ion/
H A Ddynamic_ion_mem.c436 ret = load_app_use_configid(configid, params->dev_file->dev_file_id, in load_image_for_ion()

Completed in 12 milliseconds