Lines Matching refs:st_data
17 static void send_ll_cmd(struct st_data_s *st_data, in send_ll_cmd() argument
22 st_int_write(st_data, &cmd, 1); in send_ll_cmd()
26 static void ll_device_want_to_sleep(struct st_data_s *st_data) in ll_device_want_to_sleep() argument
33 if (st_data->ll_state != ST_LL_AWAKE) in ll_device_want_to_sleep()
35 "in state %ld", st_data->ll_state); in ll_device_want_to_sleep()
37 send_ll_cmd(st_data, LL_SLEEP_ACK); in ll_device_want_to_sleep()
39 st_data->ll_state = ST_LL_ASLEEP; in ll_device_want_to_sleep()
42 kim_data = st_data->kim_data; in ll_device_want_to_sleep()
48 static void ll_device_want_to_wakeup(struct st_data_s *st_data) in ll_device_want_to_wakeup() argument
54 switch (st_data->ll_state) { in ll_device_want_to_wakeup()
56 send_ll_cmd(st_data, LL_WAKE_UP_ACK); /* send wake_ack */ in ll_device_want_to_wakeup()
72 st_data->ll_state = ST_LL_AWAKE; in ll_device_want_to_wakeup()
75 kim_data = st_data->kim_data; in ll_device_want_to_wakeup()
118 unsigned long st_ll_sleep_state(struct st_data_s *st_data, in st_ll_sleep_state() argument
124 ll_device_want_to_sleep(st_data); in st_ll_sleep_state()
131 ll_device_want_to_wakeup(st_data); in st_ll_sleep_state()
135 st_data->ll_state = ST_LL_AWAKE; in st_ll_sleep_state()