Lines Matching refs:prm
52 static int q6prm_send_cmd_sync(struct q6prm *prm, struct gpr_pkt *pkt, uint32_t rsp_opcode) in q6prm_send_cmd_sync() argument
54 return audioreach_send_cmd_sync(prm->dev, prm->gdev, &prm->result, &prm->lock, in q6prm_send_cmd_sync()
55 NULL, &prm->wait, pkt, rsp_opcode); in q6prm_send_cmd_sync()
60 struct q6prm *prm = dev_get_drvdata(dev->parent); in q6prm_set_hw_core_req() local
63 gpr_device_t *gdev = prm->gdev; in q6prm_set_hw_core_req()
91 rc = q6prm_send_cmd_sync(prm, pkt, rsp_opcode); in q6prm_set_hw_core_req()
115 struct q6prm *prm = dev_get_drvdata(dev->parent); in q6prm_request_lpass_clock() local
118 gpr_device_t *gdev = prm->gdev; in q6prm_request_lpass_clock()
142 rc = q6prm_send_cmd_sync(prm, pkt, PRM_CMD_RSP_REQUEST_HW_RSC); in q6prm_request_lpass_clock()
152 struct q6prm *prm = dev_get_drvdata(dev->parent); in q6prm_release_lpass_clock() local
155 gpr_device_t *gdev = prm->gdev; in q6prm_release_lpass_clock()
176 rc = q6prm_send_cmd_sync(prm, pkt, PRM_CMD_RSP_RELEASE_HW_RSC); in q6prm_release_lpass_clock()
196 struct q6prm *prm = dev_get_drvdata(&gdev->dev); in prm_callback() local
204 prm->result.opcode = hdr->opcode; in prm_callback()
205 prm->result.status = result->status; in prm_callback()
206 wake_up(&prm->wait); in prm_callback()