Lines Matching refs:msg

231 	struct imx_sc_msg_get_clock_rate msg;  in clk_scu_recalc_rate()  local
232 struct imx_sc_rpc_msg *hdr = &msg.hdr; in clk_scu_recalc_rate()
240 msg.data.req.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_recalc_rate()
241 msg.data.req.clk = clk->clk_type; in clk_scu_recalc_rate()
243 ret = imx_scu_call_rpc(ccm_ipc_handle, &msg, true); in clk_scu_recalc_rate()
250 return le32_to_cpu(msg.data.resp.rate); in clk_scu_recalc_rate()
322 struct imx_sc_msg_req_set_clock_rate msg; in clk_scu_set_rate() local
323 struct imx_sc_rpc_msg *hdr = &msg.hdr; in clk_scu_set_rate()
330 msg.rate = cpu_to_le32(rate); in clk_scu_set_rate()
331 msg.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_set_rate()
332 msg.clk = clk->clk_type; in clk_scu_set_rate()
334 return imx_scu_call_rpc(ccm_ipc_handle, &msg, true); in clk_scu_set_rate()
340 struct imx_sc_msg_get_clock_parent msg; in clk_scu_get_parent() local
341 struct imx_sc_rpc_msg *hdr = &msg.hdr; in clk_scu_get_parent()
349 msg.data.req.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_get_parent()
350 msg.data.req.clk = clk->clk_type; in clk_scu_get_parent()
352 ret = imx_scu_call_rpc(ccm_ipc_handle, &msg, true); in clk_scu_get_parent()
359 clk->parent_index = msg.data.resp.parent; in clk_scu_get_parent()
361 return msg.data.resp.parent; in clk_scu_get_parent()
367 struct imx_sc_msg_set_clock_parent msg; in clk_scu_set_parent() local
368 struct imx_sc_rpc_msg *hdr = &msg.hdr; in clk_scu_set_parent()
376 msg.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_set_parent()
377 msg.clk = clk->clk_type; in clk_scu_set_parent()
378 msg.parent = index; in clk_scu_set_parent()
380 ret = imx_scu_call_rpc(ccm_ipc_handle, &msg, true); in clk_scu_set_parent()
395 struct imx_sc_msg_req_clock_enable msg; in sc_pm_clock_enable() local
396 struct imx_sc_rpc_msg *hdr = &msg.hdr; in sc_pm_clock_enable()
403 msg.resource = cpu_to_le16(resource); in sc_pm_clock_enable()
404 msg.clk = clk; in sc_pm_clock_enable()
405 msg.enable = enable; in sc_pm_clock_enable()
406 msg.autog = autog; in sc_pm_clock_enable()
408 return imx_scu_call_rpc(ccm_ipc_handle, &msg, true); in sc_pm_clock_enable()