Lines Matching refs:handle
127 struct qmi_handle *handle; member
355 rc = qmi_txn_init(ctrl->qmi.handle, &txn, in qcom_slim_qmi_send_select_inst_req()
362 rc = qmi_send_request(ctrl->qmi.handle, NULL, &txn, in qcom_slim_qmi_send_select_inst_req()
387 static void qcom_slim_qmi_power_resp_cb(struct qmi_handle *handle, in qcom_slim_qmi_power_resp_cb() argument
408 rc = qmi_txn_init(ctrl->qmi.handle, &txn, in qcom_slim_qmi_send_power_request()
411 rc = qmi_send_request(ctrl->qmi.handle, NULL, &txn, in qcom_slim_qmi_send_power_request()
452 struct qmi_handle *handle; in qcom_slim_qmi_init() local
455 handle = devm_kzalloc(ctrl->dev, sizeof(*handle), GFP_KERNEL); in qcom_slim_qmi_init()
456 if (!handle) in qcom_slim_qmi_init()
459 rc = qmi_handle_init(handle, SLIMBUS_QMI_POWER_REQ_MAX_MSG_LEN, in qcom_slim_qmi_init()
466 rc = kernel_connect(handle->sock, in qcom_slim_qmi_init()
484 ctrl->qmi.handle = handle; in qcom_slim_qmi_init()
495 ctrl->qmi.handle = NULL; in qcom_slim_qmi_init()
497 qmi_handle_release(handle); in qcom_slim_qmi_init()
499 devm_kfree(ctrl->dev, handle); in qcom_slim_qmi_init()
505 if (!ctrl->qmi.handle) in qcom_slim_qmi_exit()
508 qmi_handle_release(ctrl->qmi.handle); in qcom_slim_qmi_exit()
509 devm_kfree(ctrl->dev, ctrl->qmi.handle); in qcom_slim_qmi_exit()
510 ctrl->qmi.handle = NULL; in qcom_slim_qmi_exit()
1307 if (!ctrl->qmi.handle) in qcom_slim_ngd_runtime_resume()
1723 if (!ctrl->qmi.handle) in qcom_slim_ngd_runtime_suspend()