Lines Matching refs:char_count
444 u8 ivr, save_xir, channel, save_car, data, char_count; in cyy_chip_rx() local
538 char_count = cyy_readb(info, CyRDCR); in cyy_chip_rx()
542 info->mon.char_count += char_count; in cyy_chip_rx()
543 if (char_count > info->mon.char_max) in cyy_chip_rx()
544 info->mon.char_max = char_count; in cyy_chip_rx()
545 info->mon.char_last = char_count; in cyy_chip_rx()
547 len = tty_buffer_request_room(port, char_count); in cyy_chip_rx()
571 int char_count, index = cinfo->bus_index; in cyy_chip_tx() local
595 char_count = info->xmit_fifo_size; in cyy_chip_tx()
600 char_count--; in cyy_chip_tx()
610 char_count -= 2; in cyy_chip_tx()
616 char_count -= 2; in cyy_chip_tx()
620 while (char_count-- > 0) { in cyy_chip_tx()
658 if (char_count > 1) { in cyy_chip_tx()
665 char_count--; in cyy_chip_tx()
923 unsigned int char_count; in cyz_handle_rx() local
937 char_count = rx_put - rx_get; in cyz_handle_rx()
939 char_count = rx_put - rx_get + rx_bufsize; in cyz_handle_rx()
941 if (!char_count) in cyz_handle_rx()
946 info->mon.char_count += char_count; in cyz_handle_rx()
947 if (char_count > info->mon.char_max) in cyz_handle_rx()
948 info->mon.char_max = char_count; in cyz_handle_rx()
949 info->mon.char_last = char_count; in cyz_handle_rx()
958 char_count); in cyz_handle_rx()
962 len = min_t(unsigned int, min(len, char_count), in cyz_handle_rx()
970 char_count -= len; in cyz_handle_rx()
975 len = tty_buffer_request_room(port, char_count); in cyz_handle_rx()
991 char_count = rx_put - rx_get; in cyz_handle_rx()
993 char_count = rx_put - rx_get + rx_bufsize; in cyz_handle_rx()
994 if (char_count >= readl(&buf_ctrl->rx_threshold) && in cyz_handle_rx()
1011 unsigned int char_count; in cyz_handle_tx() local
1025 char_count = tx_get - tx_put - 1 + tx_bufsize; in cyz_handle_tx()
1027 char_count = tx_get - tx_put - 1; in cyz_handle_tx()
1029 if (!char_count) in cyz_handle_tx()
1042 char_count--; in cyz_handle_tx()
1050 char_count))))) { in cyz_handle_tx()
1057 char_count -= small_count; in cyz_handle_tx()
1064 while (info->xmit_cnt && char_count) { in cyz_handle_tx()
1072 char_count--; in cyz_handle_tx()
1907 int char_count; in cy_chars_in_buffer() local
1914 char_count = tx_put - tx_get; in cy_chars_in_buffer()
1916 char_count = tx_put - tx_get + tx_bufsize; in cy_chars_in_buffer()
1919 info->line, info->xmit_cnt + char_count); in cy_chars_in_buffer()
1921 return info->xmit_cnt + char_count; in cy_chars_in_buffer()