Lines Matching refs:svc

183 	struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc;  in cnss_plat_ipc_init_file_data()  local
202 mutex_lock(&svc->file_idr_lock); in cnss_plat_ipc_init_file_data()
203 fd->id = idr_alloc_cyclic(&svc->file_idr, fd, 0, U32_MAX, GFP_KERNEL); in cnss_plat_ipc_init_file_data()
208 mutex_unlock(&svc->file_idr_lock); in cnss_plat_ipc_init_file_data()
221 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_deinit_file_data() local
227 mutex_lock(&svc->file_idr_lock); in cnss_plat_ipc_deinit_file_data()
228 idr_remove(&svc->file_idr, fd->id); in cnss_plat_ipc_deinit_file_data()
229 mutex_unlock(&svc->file_idr_lock); in cnss_plat_ipc_deinit_file_data()
248 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_update_user() local
250 &svc->qmi_client_ctx[client_id]; in cnss_plat_ipc_qmi_update_user()
276 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_file_upload() local
286 qmi_client = &svc->qmi_client_ctx[client_id]; in cnss_plat_ipc_qmi_file_upload()
308 (svc->svc_hdl, &qmi_client->client_sq, in cnss_plat_ipc_qmi_file_upload()
351 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_file_upload_req_handler() local
362 mutex_lock(&svc->file_idr_lock); in cnss_plat_ipc_qmi_file_upload_req_handler()
363 fd = idr_find(&svc->file_idr, req_msg->file_id); in cnss_plat_ipc_qmi_file_upload_req_handler()
364 mutex_unlock(&svc->file_idr_lock); in cnss_plat_ipc_qmi_file_upload_req_handler()
391 (svc->svc_hdl, sq, txn, in cnss_plat_ipc_qmi_file_upload_req_handler()
426 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_file_download() local
436 qmi_client = &svc->qmi_client_ctx[client_id]; in cnss_plat_ipc_qmi_file_download()
452 (svc->svc_hdl, &qmi_client->client_sq, in cnss_plat_ipc_qmi_file_download()
497 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_file_download_req_handler() local
510 mutex_lock(&svc->file_idr_lock); in cnss_plat_ipc_qmi_file_download_req_handler()
511 fd = idr_find(&svc->file_idr, req_msg->file_id); in cnss_plat_ipc_qmi_file_download_req_handler()
512 mutex_unlock(&svc->file_idr_lock); in cnss_plat_ipc_qmi_file_download_req_handler()
543 (svc->svc_hdl, sq, txn, in cnss_plat_ipc_qmi_file_download_req_handler()
582 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_init_setup_req_handler() local
599 (svc->svc_hdl, sq, txn, in cnss_plat_ipc_qmi_init_setup_req_handler()
626 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_reg_client_req_handler() local
627 struct cnss_plat_ipc_qmi_client_ctx *qmi_client = svc->qmi_client_ctx; in cnss_plat_ipc_qmi_reg_client_req_handler()
652 (svc->svc_hdl, sq, txn, in cnss_plat_ipc_qmi_reg_client_req_handler()
674 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_disconnect_cb() local
676 svc->qmi_client_ctx; in cnss_plat_ipc_qmi_disconnect_cb()
681 if (svc->svc_hdl != handle) { in cnss_plat_ipc_qmi_disconnect_cb()
701 mutex_lock(&svc->file_idr_lock); in cnss_plat_ipc_qmi_disconnect_cb()
702 idr_for_each_entry(&svc->file_idr, fd, file_id) in cnss_plat_ipc_qmi_disconnect_cb()
704 mutex_unlock(&svc->file_idr_lock); in cnss_plat_ipc_qmi_disconnect_cb()
721 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_bye_cb() local
723 svc->qmi_client_ctx; in cnss_plat_ipc_qmi_bye_cb()
783 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_daemon_config() local
785 &svc->qmi_client_ctx[CNSS_PLAT_IPC_DAEMON_QMI_CLIENT_V01]; in cnss_plat_ipc_qmi_daemon_config()
814 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_register() local
823 qmi_client = &svc->qmi_client_ctx[client_id]; in cnss_plat_ipc_register()
850 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_unregister() local
859 qmi_client = &svc->qmi_client_ctx[client_id]; in cnss_plat_ipc_unregister()
882 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_init_fn() local
884 svc->svc_hdl = kzalloc(sizeof(*svc->svc_hdl), GFP_KERNEL); in cnss_plat_ipc_init_fn()
885 if (!svc->svc_hdl) in cnss_plat_ipc_init_fn()
889 ret = qmi_handle_init(svc->svc_hdl, in cnss_plat_ipc_init_fn()
907 ret = qmi_add_server(svc->svc_hdl, in cnss_plat_ipc_init_fn()
916 idr_init(&svc->file_idr); in cnss_plat_ipc_init_fn()
917 mutex_init(&svc->file_idr_lock); in cnss_plat_ipc_init_fn()
921 qmi_handle_release(svc->svc_hdl); in cnss_plat_ipc_init_fn()
923 kfree(svc->svc_hdl); in cnss_plat_ipc_init_fn()
972 struct cnss_plat_ipc_qmi_svc_ctx *svc = &plat_ipc_qmi_svc; in cnss_plat_ipc_qmi_svc_exit() local
976 if (svc->svc_hdl) { in cnss_plat_ipc_qmi_svc_exit()
977 qmi_handle_release(svc->svc_hdl); in cnss_plat_ipc_qmi_svc_exit()
978 kfree(svc->svc_hdl); in cnss_plat_ipc_qmi_svc_exit()
979 idr_destroy(&svc->file_idr); in cnss_plat_ipc_qmi_svc_exit()