Lines Matching refs:state

97 IIC_DVFS_FUNC(check_error, enum dvfs_state_t *state, uint32_t *err, uint8_t mode)  in IIC_DVFS_FUNC()  argument
118 if (*state == DVFS_SET_SLAVE) { in IIC_DVFS_FUNC()
153 *state = DVFS_START; in IIC_DVFS_FUNC()
183 *state = DVFS_START; in IIC_DVFS_FUNC()
188 IIC_DVFS_FUNC(start, enum dvfs_state_t *state) in IIC_DVFS_FUNC() argument
234 *state = DVFS_SET_SLAVE; in IIC_DVFS_FUNC()
239 IIC_DVFS_FUNC(set_slave, enum dvfs_state_t *state, uint32_t *err, uint8_t slave) in IIC_DVFS_FUNC() argument
245 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC()
261 *state = DVFS_WRITE_ADDR; in IIC_DVFS_FUNC()
266 IIC_DVFS_FUNC(write_addr, enum dvfs_state_t *state, uint32_t *err, uint8_t reg_addr) in IIC_DVFS_FUNC() argument
271 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC()
286 *state = DVFS_WRITE_DATA; in IIC_DVFS_FUNC()
291 IIC_DVFS_FUNC(write_data, enum dvfs_state_t *state, uint32_t *err, in IIC_DVFS_FUNC() argument
297 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC()
312 *state = DVFS_STOP; in IIC_DVFS_FUNC()
317 IIC_DVFS_FUNC(stop, enum dvfs_state_t *state, uint32_t *err) in IIC_DVFS_FUNC() argument
322 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC()
337 *state = DVFS_DONE; in IIC_DVFS_FUNC()
360 IIC_DVFS_FUNC(write_reg_addr_read, enum dvfs_state_t *state, uint32_t *err, in IIC_DVFS_FUNC() argument
366 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC()
381 *state = DVFS_RETRANSMIT; in IIC_DVFS_FUNC()
386 IIC_DVFS_FUNC(retransmit, enum dvfs_state_t *state, uint32_t *err) in IIC_DVFS_FUNC() argument
391 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC()
409 *state = DVFS_SET_SLAVE_READ; in IIC_DVFS_FUNC()
414 IIC_DVFS_FUNC(set_slave_read, enum dvfs_state_t *state, uint32_t *err, in IIC_DVFS_FUNC() argument
421 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC()
437 *state = DVFS_CHANGE_SEND_TO_RECEIVE; in IIC_DVFS_FUNC()
442 IIC_DVFS_FUNC(change_send_to_receive, enum dvfs_state_t *state, uint32_t *err) in IIC_DVFS_FUNC() argument
447 result = dvfs_check_error(state, err, DVFS_WRITE_MODE); in IIC_DVFS_FUNC()
462 *state = DVFS_STOP_READ; in IIC_DVFS_FUNC()
467 IIC_DVFS_FUNC(stop_read, enum dvfs_state_t *state, uint32_t *err) in IIC_DVFS_FUNC() argument
472 result = dvfs_check_error(state, err, DVFS_READ_MODE); in IIC_DVFS_FUNC()
490 *state = DVFS_READ; in IIC_DVFS_FUNC()
495 IIC_DVFS_FUNC(read, enum dvfs_state_t *state, uint8_t *reg_data) in IIC_DVFS_FUNC() argument
508 *state = DVFS_DONE; in IIC_DVFS_FUNC()
515 enum dvfs_state_t state = DVFS_START; in RCAR_DVFS_API() local
522 switch (state) { in RCAR_DVFS_API()
524 result = dvfs_start(&state); in RCAR_DVFS_API()
527 result = dvfs_set_slave(&state, &err, slave); in RCAR_DVFS_API()
530 result = dvfs_write_addr(&state, &err, reg_addr); in RCAR_DVFS_API()
533 result = dvfs_write_data(&state, &err, reg_data); in RCAR_DVFS_API()
536 result = dvfs_stop(&state, &err); in RCAR_DVFS_API()
555 enum dvfs_state_t state = DVFS_START; in RCAR_DVFS_API() local
562 switch (state) { in RCAR_DVFS_API()
564 result = dvfs_start(&state); in RCAR_DVFS_API()
567 result = dvfs_set_slave(&state, &err, slave); in RCAR_DVFS_API()
570 result = dvfs_write_reg_addr_read(&state, &err, reg); in RCAR_DVFS_API()
573 result = dvfs_retransmit(&state, &err); in RCAR_DVFS_API()
576 result = dvfs_set_slave_read(&state, &err, slave); in RCAR_DVFS_API()
579 result = dvfs_change_send_to_receive(&state, &err); in RCAR_DVFS_API()
582 result = dvfs_stop_read(&state, &err); in RCAR_DVFS_API()
585 result = dvfs_read(&state, data); in RCAR_DVFS_API()