Home
last modified time | relevance | path

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

/drivers/misc/ti-st/
Dst_ll.c30 static void send_ll_cmd(struct st_data_s *st_data, in send_ll_cmd() argument
35 st_int_write(st_data, &cmd, 1); in send_ll_cmd()
39 static void ll_device_want_to_sleep(struct st_data_s *st_data) in ll_device_want_to_sleep() argument
46 if (st_data->ll_state != ST_LL_AWAKE) in ll_device_want_to_sleep()
48 "in state %ld", st_data->ll_state); in ll_device_want_to_sleep()
50 send_ll_cmd(st_data, LL_SLEEP_ACK); in ll_device_want_to_sleep()
52 st_data->ll_state = ST_LL_ASLEEP; in ll_device_want_to_sleep()
55 kim_data = st_data->kim_data; in ll_device_want_to_sleep()
61 static void ll_device_want_to_wakeup(struct st_data_s *st_data) in ll_device_want_to_wakeup() argument
67 switch (st_data->ll_state) { in ll_device_want_to_wakeup()
[all …]
Dst_core.c449 void st_tx_wakeup(struct st_data_s *st_data) in st_tx_wakeup() argument
455 if (test_and_set_bit(ST_TX_SENDING, &st_data->tx_state)) { in st_tx_wakeup()
458 set_bit(ST_TX_WAKEUP, &st_data->tx_state); in st_tx_wakeup()
466 clear_bit(ST_TX_WAKEUP, &st_data->tx_state); in st_tx_wakeup()
467 while ((skb = st_int_dequeue(st_data))) { in st_tx_wakeup()
469 spin_lock_irqsave(&st_data->lock, flags); in st_tx_wakeup()
471 set_bit(TTY_DO_WRITE_WAKEUP, &st_data->tty->flags); in st_tx_wakeup()
472 len = st_int_write(st_data, skb->data, skb->len); in st_tx_wakeup()
477 st_data->tx_skb = skb; in st_tx_wakeup()
478 spin_unlock_irqrestore(&st_data->lock, flags); in st_tx_wakeup()
[all …]