Lines Matching defs:state
137 int32_t ari_enter_cstate(uint32_t ari_base, uint32_t state, uint32_t wake_time)
141 /* check for allowed power state */
142 if ((state != TEGRA_ARI_CORE_C0) &&
143 (state != TEGRA_ARI_CORE_C1) &&
144 (state != TEGRA_ARI_CORE_C6) &&
145 (state != TEGRA_ARI_CORE_C7)) {
146 ERROR("%s: unknown cstate (%d)\n", __func__, state);
149 /* clean the previous response state */
154 (uint32_t)TEGRA_ARI_ENTER_CSTATE, state, wake_time);
166 /* clean the previous response state */
207 /* clean the previous response state */
218 uint64_t ari_read_cstate_stats(uint32_t ari_base, uint32_t state)
224 if (state == 0U) {
227 /* clean the previous response state */
231 (uint32_t)TEGRA_ARI_CSTATE_STATS, state, 0U);
241 int32_t ari_write_cstate_stats(uint32_t ari_base, uint32_t state, uint32_t stats)
243 /* clean the previous response state */
248 state, stats);
257 /* clean the previous response state */
277 int32_t ari_is_ccx_allowed(uint32_t ari_base, uint32_t state, uint32_t wake_time)
282 /* clean the previous response state */
286 state & 0x7U, wake_time);
298 int32_t ari_is_sc7_allowed(uint32_t ari_base, uint32_t state, uint32_t wake_time)
302 /* check for allowed power state */
303 if ((state != TEGRA_ARI_CORE_C0) && (state != TEGRA_ARI_CORE_C1) &&
304 (state != TEGRA_ARI_CORE_C6) && (state != TEGRA_ARI_CORE_C7)) {
305 ERROR("%s: unknown cstate (%d)\n", __func__, state);
308 /* clean the previous response state */
312 (uint32_t)TEGRA_ARI_IS_SC7_ALLOWED, state, wake_time);
348 /* clean the previous response state */
362 /* clean the previous response state */
385 /* clean the previous response state */
400 /* clean the previous response state */
409 /* clean the previous response state */
418 /* clean the previous response state */
472 /* clean the previous response state */
489 /* clean the previous response state */
508 /* clean the previous response state */
559 /* clean the previous response state */