Lines Matching refs:curr_grp
309 u32 bytes_to_read, write_distance, curr_grp, curr_gwp, in saa7164_bus_get() local
338 curr_grp = saa7164_readl(bus->m_dwGetReadPos); in saa7164_bus_get()
340 if (curr_gwp == curr_grp) { in saa7164_bus_get()
349 if (curr_gwp >= curr_grp) in saa7164_bus_get()
351 write_distance = curr_gwp - curr_grp; in saa7164_bus_get()
354 write_distance = curr_gwp + bus->m_dwSizeGetRing - curr_grp; in saa7164_bus_get()
363 new_grp = curr_grp + bytes_to_read; in saa7164_bus_get()
368 space_rem = bus->m_dwSizeGetRing - curr_grp; in saa7164_bus_get()
370 memcpy_fromio(&msg_tmp, bus->m_pdwGetRing + curr_grp, space_rem); in saa7164_bus_get()
376 memcpy_fromio(&msg_tmp, bus->m_pdwGetRing + curr_grp, bytes_to_read); in saa7164_bus_get()
408 if (curr_gwp >= curr_grp) in saa7164_bus_get()
410 write_distance = curr_gwp - curr_grp; in saa7164_bus_get()
413 write_distance = curr_gwp + bus->m_dwSizeGetRing - curr_grp; in saa7164_bus_get()
423 new_grp = curr_grp + bytes_to_read; in saa7164_bus_get()
428 space_rem = bus->m_dwSizeGetRing - curr_grp; in saa7164_bus_get()
441 memcpy_fromio(buf, bus->m_pdwGetRing + curr_grp + in saa7164_bus_get()
453 memcpy_fromio(buf, bus->m_pdwGetRing + curr_grp + sizeof(*msg), in saa7164_bus_get()