Home
last modified time | relevance | path

Searched refs:st_data (Results 1 – 2 of 2) sorted by relevance

/drivers/misc/ti-st/
Dst_ll.c17 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()
[all …]
Dst_core.c470 void st_tx_wakeup(struct st_data_s *st_data) in st_tx_wakeup() argument
476 if (test_and_set_bit(ST_TX_SENDING, &st_data->tx_state)) { in st_tx_wakeup()
479 set_bit(ST_TX_WAKEUP, &st_data->tx_state); in st_tx_wakeup()
487 clear_bit(ST_TX_WAKEUP, &st_data->tx_state); in st_tx_wakeup()
488 while ((skb = st_int_dequeue(st_data))) { in st_tx_wakeup()
490 spin_lock_irqsave(&st_data->lock, flags); in st_tx_wakeup()
492 set_bit(TTY_DO_WRITE_WAKEUP, &st_data->tty->flags); in st_tx_wakeup()
493 len = st_int_write(st_data, skb->data, skb->len); in st_tx_wakeup()
498 st_data->tx_skb = skb; in st_tx_wakeup()
499 spin_unlock_irqrestore(&st_data->lock, flags); in st_tx_wakeup()
[all …]