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()
316 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_get_max_id() local
319 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_get_max_id()
320 msg.cmd = CMD_CLK_GET_MAX_CLK_ID; in tegra_bpmp_clk_get_max_id()
321 msg.rx.data = &response; in tegra_bpmp_clk_get_max_id()
322 msg.rx.size = sizeof(response); in tegra_bpmp_clk_get_max_id()
324 err = tegra_bpmp_clk_transfer(bpmp, &msg); in tegra_bpmp_clk_get_max_id()
338 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_get_info() local
342 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_get_info()
343 msg.cmd = CMD_CLK_GET_ALL_INFO; in tegra_bpmp_clk_get_info()
344 msg.id = id; in tegra_bpmp_clk_get_info()
345 msg.rx.data = &response; in tegra_bpmp_clk_get_info()
346 msg.rx.size = sizeof(response); in tegra_bpmp_clk_get_info()
348 err = tegra_bpmp_clk_transfer(bpmp, &msg); in tegra_bpmp_clk_get_info()