Searched refs:cur_wp (Results 1 – 2 of 2) sorted by relevance
80 unsigned int cur_wp, remain_data; in rt5514_spi_copy_work() local103 cur_wp = buf[0] | buf[1] << 8 | buf[2] << 16 | in rt5514_spi_copy_work()106 if (cur_wp >= rt5514_dsp->buf_rp) in rt5514_spi_copy_work()107 remain_data = (cur_wp - rt5514_dsp->buf_rp); in rt5514_spi_copy_work()111 (cur_wp - rt5514_dsp->buf_base); in rt5514_spi_copy_work()
1060 u32 tmp, cur_wp; in rtw_pci_get_hw_rx_ring_nr() local1064 cur_wp = u32_get_bits(tmp, TRX_BD_HW_IDX_MASK); in rtw_pci_get_hw_rx_ring_nr()1065 if (cur_wp >= ring->r.wp) in rtw_pci_get_hw_rx_ring_nr()1066 count = cur_wp - ring->r.wp; in rtw_pci_get_hw_rx_ring_nr()1068 count = ring->r.len - (ring->r.wp - cur_wp); in rtw_pci_get_hw_rx_ring_nr()