Lines Matching refs:write_point
479 u16 read_point = 0, write_point = 0, remind_cnt = 0; in rtl92ee_rx_desc_buff_remained_cnt() local
486 write_point = (u16)(tmp_4byte & 0x7ff); in rtl92ee_rx_desc_buff_remained_cnt()
488 if (write_point != rtlpci->rx_ring[queue_index].next_rx_rp) { in rtl92ee_rx_desc_buff_remained_cnt()
491 write_point, tmp_4byte); in rtl92ee_rx_desc_buff_remained_cnt()
494 write_point = (u16)(tmp_4byte & 0x7ff); in rtl92ee_rx_desc_buff_remained_cnt()
502 remind_cnt = calc_fifo_space(read_point, write_point); in rtl92ee_rx_desc_buff_remained_cnt()
507 rtlpci->rx_ring[queue_index].next_rx_rp = write_point; in rtl92ee_rx_desc_buff_remained_cnt()
1042 u16 read_point, write_point, available_desc_num; in rtl92ee_is_tx_desc_closed() local
1068 write_point = ring->cur_tx_wp; in rtl92ee_is_tx_desc_closed()
1071 if (write_point > read_point) { in rtl92ee_is_tx_desc_closed()
1072 if (index < write_point && index >= read_point) in rtl92ee_is_tx_desc_closed()
1076 } else if (write_point < read_point) { in rtl92ee_is_tx_desc_closed()
1077 if (index > write_point && index < read_point) in rtl92ee_is_tx_desc_closed()