Lines Matching refs:qmi_client
249 struct cnss_plat_ipc_qmi_client_ctx *qmi_client = in cnss_plat_ipc_qmi_update_user() local
253 for (i = 0; i < qmi_client->num_user; i++) { in cnss_plat_ipc_qmi_update_user()
254 if (qmi_client->connection_update_cb[i]) in cnss_plat_ipc_qmi_update_user()
255 qmi_client->connection_update_cb[i] in cnss_plat_ipc_qmi_update_user()
256 (qmi_client->cb_ctx[i], in cnss_plat_ipc_qmi_update_user()
257 qmi_client->client_connected); in cnss_plat_ipc_qmi_update_user()
277 struct cnss_plat_ipc_qmi_client_ctx *qmi_client; in cnss_plat_ipc_qmi_file_upload() local
286 qmi_client = &svc->qmi_client_ctx[client_id]; in cnss_plat_ipc_qmi_file_upload()
288 if (!qmi_client->client_connected || !file_name || !file_buf) in cnss_plat_ipc_qmi_file_upload()
308 (svc->svc_hdl, &qmi_client->client_sq, in cnss_plat_ipc_qmi_file_upload()
427 struct cnss_plat_ipc_qmi_client_ctx *qmi_client; in cnss_plat_ipc_qmi_file_download() local
436 qmi_client = &svc->qmi_client_ctx[client_id]; in cnss_plat_ipc_qmi_file_download()
438 if (!qmi_client->client_connected || !file_name || !buf) in cnss_plat_ipc_qmi_file_download()
452 (svc->svc_hdl, &qmi_client->client_sq, in cnss_plat_ipc_qmi_file_download()
627 struct cnss_plat_ipc_qmi_client_ctx *qmi_client = svc->qmi_client_ctx; in cnss_plat_ipc_qmi_reg_client_req_handler() local
635 !qmi_client[req_msg->client_id].client_connected) { in cnss_plat_ipc_qmi_reg_client_req_handler()
640 qmi_client[req_msg->client_id].client_sq = *sq; in cnss_plat_ipc_qmi_reg_client_req_handler()
641 qmi_client[req_msg->client_id].client_connected = true; in cnss_plat_ipc_qmi_reg_client_req_handler()
675 struct cnss_plat_ipc_qmi_client_ctx *qmi_client = in cnss_plat_ipc_qmi_disconnect_cb() local
687 if (qmi_client[i].client_connected && in cnss_plat_ipc_qmi_disconnect_cb()
688 qmi_client[i].client_sq.sq_node == node && in cnss_plat_ipc_qmi_disconnect_cb()
689 qmi_client[i].client_sq.sq_port == port) { in cnss_plat_ipc_qmi_disconnect_cb()
693 qmi_client[i].client_sq.sq_node = 0; in cnss_plat_ipc_qmi_disconnect_cb()
694 qmi_client[i].client_sq.sq_port = 0; in cnss_plat_ipc_qmi_disconnect_cb()
695 qmi_client[i].client_sq.sq_family = 0; in cnss_plat_ipc_qmi_disconnect_cb()
696 qmi_client[i].client_connected = false; in cnss_plat_ipc_qmi_disconnect_cb()
722 struct cnss_plat_ipc_qmi_client_ctx *qmi_client = in cnss_plat_ipc_qmi_bye_cb() local
729 qmi_client[i].client_sq.sq_port); in cnss_plat_ipc_qmi_bye_cb()
784 struct cnss_plat_ipc_qmi_client_ctx *qmi_client = in cnss_plat_ipc_qmi_daemon_config() local
787 if (!qmi_client->client_connected) in cnss_plat_ipc_qmi_daemon_config()
815 struct cnss_plat_ipc_qmi_client_ctx *qmi_client; in cnss_plat_ipc_register() local
823 qmi_client = &svc->qmi_client_ctx[client_id]; in cnss_plat_ipc_register()
824 num_user = qmi_client->num_user; in cnss_plat_ipc_register()
831 qmi_client->connection_update_cb[num_user] = connection_update_cb; in cnss_plat_ipc_register()
832 qmi_client->cb_ctx[num_user] = cb_ctx; in cnss_plat_ipc_register()
833 qmi_client->num_user++; in cnss_plat_ipc_register()
851 struct cnss_plat_ipc_qmi_client_ctx *qmi_client; in cnss_plat_ipc_unregister() local
859 qmi_client = &svc->qmi_client_ctx[client_id]; in cnss_plat_ipc_unregister()
861 for (i = 0; i < qmi_client->num_user; i++) { in cnss_plat_ipc_unregister()
862 if (qmi_client->cb_ctx[i] == cb_ctx) { in cnss_plat_ipc_unregister()
863 qmi_client->cb_ctx[i] = NULL; in cnss_plat_ipc_unregister()
864 qmi_client->connection_update_cb[i] = NULL; in cnss_plat_ipc_unregister()
865 qmi_client->num_user--; in cnss_plat_ipc_unregister()