Lines Matching refs:curr_swp
124 u32 bytes_to_write, free_write_space, timeout, curr_srp, curr_swp; in saa7164_bus_set() local
156 curr_swp = saa7164_readl(bus->m_dwSetWritePos); in saa7164_bus_set()
159 if (curr_srp > curr_swp) in saa7164_bus_set()
161 free_write_space = curr_srp - curr_swp; in saa7164_bus_set()
164 free_write_space = (curr_srp + bus->m_dwSizeSetRing) - curr_swp; in saa7164_bus_set()
173 dprintk(DBGLVL_BUS, "%s() curr_swp = %x\n", __func__, curr_swp); in saa7164_bus_set()
192 if (curr_srp > curr_swp) in saa7164_bus_set()
194 free_write_space = curr_srp - curr_swp; in saa7164_bus_set()
198 curr_swp; in saa7164_bus_set()
203 new_swp = curr_swp + bytes_to_write; in saa7164_bus_set()
227 space_rem = bus->m_dwSizeSetRing - curr_swp; in saa7164_bus_set()
239 memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, space_rem); in saa7164_bus_set()
250 memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, sizeof(*msg)); in saa7164_bus_set()
255 memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, sizeof(*msg)); in saa7164_bus_set()
257 memcpy_toio(bus->m_pdwSetRing + curr_swp + in saa7164_bus_set()
272 memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, sizeof(*msg)); in saa7164_bus_set()
273 memcpy_toio(bus->m_pdwSetRing + curr_swp + sizeof(*msg), buf, in saa7164_bus_set()