Lines Matching full:msg

63 	struct tegra_bpmp_message msg;  in tegra_bpmp_clk_transfer()  local
79 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_transfer()
80 msg.mrq = MRQ_CLK; in tegra_bpmp_clk_transfer()
81 msg.tx.data = &request; in tegra_bpmp_clk_transfer()
82 msg.tx.size = sizeof(request); in tegra_bpmp_clk_transfer()
83 msg.rx.data = clk->rx.data; in tegra_bpmp_clk_transfer()
84 msg.rx.size = clk->rx.size; in tegra_bpmp_clk_transfer()
86 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_clk_transfer()
89 else if (msg.rx.ret < 0) in tegra_bpmp_clk_transfer()
98 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_prepare() local
100 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_prepare()
101 msg.cmd = CMD_CLK_ENABLE; in tegra_bpmp_clk_prepare()
102 msg.id = clk->id; in tegra_bpmp_clk_prepare()
104 return tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_prepare()
110 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_unprepare() local
113 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_unprepare()
114 msg.cmd = CMD_CLK_DISABLE; in tegra_bpmp_clk_unprepare()
115 msg.id = clk->id; in tegra_bpmp_clk_unprepare()
117 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_unprepare()
127 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_is_prepared() local
130 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_is_prepared()
131 msg.cmd = CMD_CLK_IS_ENABLED; in tegra_bpmp_clk_is_prepared()
132 msg.id = clk->id; in tegra_bpmp_clk_is_prepared()
133 msg.rx.data = &response; in tegra_bpmp_clk_is_prepared()
134 msg.rx.size = sizeof(response); in tegra_bpmp_clk_is_prepared()
136 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_is_prepared()
149 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_recalc_rate() local
152 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_recalc_rate()
153 msg.cmd = CMD_CLK_GET_RATE; in tegra_bpmp_clk_recalc_rate()
154 msg.id = clk->id; in tegra_bpmp_clk_recalc_rate()
155 msg.tx.data = &request; in tegra_bpmp_clk_recalc_rate()
156 msg.tx.size = sizeof(request); in tegra_bpmp_clk_recalc_rate()
157 msg.rx.data = &response; in tegra_bpmp_clk_recalc_rate()
158 msg.rx.size = sizeof(response); in tegra_bpmp_clk_recalc_rate()
160 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_recalc_rate()
173 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_determine_rate() local
182 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_determine_rate()
183 msg.cmd = CMD_CLK_ROUND_RATE; in tegra_bpmp_clk_determine_rate()
184 msg.id = clk->id; in tegra_bpmp_clk_determine_rate()
185 msg.tx.data = &request; in tegra_bpmp_clk_determine_rate()
186 msg.tx.size = sizeof(request); in tegra_bpmp_clk_determine_rate()
187 msg.rx.data = &response; in tegra_bpmp_clk_determine_rate()
188 msg.rx.size = sizeof(response); in tegra_bpmp_clk_determine_rate()
190 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_determine_rate()
204 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_set_parent() local
210 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_set_parent()
211 msg.cmd = CMD_CLK_SET_PARENT; in tegra_bpmp_clk_set_parent()
212 msg.id = clk->id; in tegra_bpmp_clk_set_parent()
213 msg.tx.data = &request; in tegra_bpmp_clk_set_parent()
214 msg.tx.size = sizeof(request); in tegra_bpmp_clk_set_parent()
215 msg.rx.data = &response; in tegra_bpmp_clk_set_parent()
216 msg.rx.size = sizeof(response); in tegra_bpmp_clk_set_parent()
218 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_set_parent()
231 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_get_parent() local
235 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_get_parent()
236 msg.cmd = CMD_CLK_GET_PARENT; in tegra_bpmp_clk_get_parent()
237 msg.id = clk->id; in tegra_bpmp_clk_get_parent()
238 msg.rx.data = &response; in tegra_bpmp_clk_get_parent()
239 msg.rx.size = sizeof(response); in tegra_bpmp_clk_get_parent()
241 err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_get_parent()
261 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_set_rate() local
266 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_set_rate()
267 msg.cmd = CMD_CLK_SET_RATE; in tegra_bpmp_clk_set_rate()
268 msg.id = clk->id; in tegra_bpmp_clk_set_rate()
269 msg.tx.data = &request; in tegra_bpmp_clk_set_rate()
270 msg.tx.size = sizeof(request); in tegra_bpmp_clk_set_rate()
271 msg.rx.data = &response; in tegra_bpmp_clk_set_rate()
272 msg.rx.size = sizeof(response); in tegra_bpmp_clk_set_rate()
274 return tegra_bpmp_clk_transfer(clk->bpmp, &msg); in tegra_bpmp_clk_set_rate()
334 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_get_max_id() local
337 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_get_max_id()
338 msg.cmd = CMD_CLK_GET_MAX_CLK_ID; in tegra_bpmp_clk_get_max_id()
339 msg.rx.data = &response; in tegra_bpmp_clk_get_max_id()
340 msg.rx.size = sizeof(response); in tegra_bpmp_clk_get_max_id()
342 err = tegra_bpmp_clk_transfer(bpmp, &msg); in tegra_bpmp_clk_get_max_id()
356 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_get_info() local
360 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_get_info()
361 msg.cmd = CMD_CLK_GET_ALL_INFO; in tegra_bpmp_clk_get_info()
362 msg.id = id; in tegra_bpmp_clk_get_info()
363 msg.rx.data = &response; in tegra_bpmp_clk_get_info()
364 msg.rx.size = sizeof(response); in tegra_bpmp_clk_get_info()
366 err = tegra_bpmp_clk_transfer(bpmp, &msg); in tegra_bpmp_clk_get_info()