Lines Matching refs:curr_srp
114 u32 bytes_to_write, read_distance, timeout, curr_srp, curr_swp;
146 curr_srp = le32_to_cpu(*bus->m_pdwSetReadPos);
150 if (curr_srp > curr_swp)
152 read_distance = curr_srp - curr_swp;
155 read_distance = (curr_srp + bus->m_dwSizeSetRing) - curr_swp;
163 dprintk(DBGLVL_BUS, "%s() curr_srp = %x\n", __func__, curr_srp);
180 curr_srp = le32_to_cpu(*bus->m_pdwSetReadPos);
183 if (curr_srp > curr_swp)
185 read_distance = curr_srp - curr_swp;
188 read_distance = (curr_srp + bus->m_dwSizeSetRing) -