Lines Matching defs:state
251 * ti_sci_device_set_state() - Set device state
255 * @state: State to move the device to
259 static int ti_sci_device_set_state(uint32_t id, uint32_t flags, uint8_t state)
277 req.state = state;
289 * ti_sci_device_get_state() - Get device state
463 req.state = MSG_DEVICE_SW_STATE_AUTO_OFF;
486 /* check the device state which will also tell us if the ID is valid */
514 uint8_t state;
519 ret = ti_sci_device_get_state(id, NULL, NULL, &state, NULL);
523 *r_state = (state == MSG_DEVICE_SW_STATE_RETENTION);
598 uint8_t state;
603 ret = ti_sci_device_get_state(id, NULL, NULL, NULL, &state);
607 *curr_state = (state == MSG_DEVICE_HW_STATE_TRANS);
650 * ti_sci_device_get_resets() - Get reset state for device managed by TISCI
653 * @reset_state: Pointer to reset state to populate
663 * ti_sci_clock_set_state() - Set clock state helper
670 * @state: State to request for the clock
675 uint32_t flags, uint8_t state)
694 req.request_state = state;
706 * ti_sci_clock_get_state() - Get clock state helper
826 * @req_state: state indicating if the clock is auto managed
832 uint8_t state = 0;
838 ret = ti_sci_clock_get_state(dev_id, clk_id, &state, NULL);
842 *req_state = (state == MSG_CLOCK_SW_STATE_AUTO);
854 * @req_state: state indicating if the clock is managed by us and enabled
855 * @curr_state: state indicating if the clock is ready for operation
887 * @req_state: state indicating if the clock is managed by us and disabled
888 * @curr_state: state indicating if the clock is NOT ready for operation