Lines Matching refs:r_state
528 int ti_sci_device_is_idle(uint32_t id, bool *r_state) in ti_sci_device_is_idle() argument
533 if (!r_state) in ti_sci_device_is_idle()
540 *r_state = (state == MSG_DEVICE_SW_STATE_RETENTION); in ti_sci_device_is_idle()
554 int ti_sci_device_is_stop(uint32_t id, bool *r_state, bool *curr_state) in ti_sci_device_is_stop() argument
559 if (!r_state && !curr_state) in ti_sci_device_is_stop()
566 if (r_state) in ti_sci_device_is_stop()
567 *r_state = (p_state == MSG_DEVICE_SW_STATE_AUTO_OFF); in ti_sci_device_is_stop()
583 int ti_sci_device_is_on(uint32_t id, bool *r_state, bool *curr_state) in ti_sci_device_is_on() argument
588 if (!r_state && !curr_state) in ti_sci_device_is_on()
596 if (r_state) in ti_sci_device_is_on()
597 *r_state = (p_state == MSG_DEVICE_SW_STATE_ON); in ti_sci_device_is_on()
879 uint8_t c_state = 0, r_state = 0; in ti_sci_clock_is_on() local
885 ret = ti_sci_clock_get_state(dev_id, clk_id, &r_state, &c_state); in ti_sci_clock_is_on()
890 *req_state = (r_state == MSG_CLOCK_SW_STATE_REQ); in ti_sci_clock_is_on()
912 uint8_t c_state = 0, r_state = 0; in ti_sci_clock_is_off() local
918 ret = ti_sci_clock_get_state(dev_id, clk_id, &r_state, &c_state); in ti_sci_clock_is_off()
923 *req_state = (r_state == MSG_CLOCK_SW_STATE_UNREQ); in ti_sci_clock_is_off()