Lines Matching refs:space_rem
125 u32 new_swp, space_rem; in saa7164_bus_set() local
227 space_rem = bus->m_dwSizeSetRing - curr_swp; in saa7164_bus_set()
230 space_rem); in saa7164_bus_set()
235 if (space_rem < sizeof(*msg)) { in saa7164_bus_set()
239 memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, space_rem); in saa7164_bus_set()
240 memcpy_toio(bus->m_pdwSetRing, (u8 *)msg + space_rem, in saa7164_bus_set()
241 sizeof(*msg) - space_rem); in saa7164_bus_set()
243 memcpy_toio(bus->m_pdwSetRing + sizeof(*msg) - space_rem, in saa7164_bus_set()
246 } else if (space_rem == sizeof(*msg)) { in saa7164_bus_set()
258 sizeof(*msg), buf, space_rem - in saa7164_bus_set()
261 space_rem - sizeof(*msg), in saa7164_bus_set()
262 bytes_to_write - space_rem); in saa7164_bus_set()
310 new_grp, buf_size, space_rem; in saa7164_bus_get() local
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()
371 memcpy_fromio((u8 *)&msg_tmp + space_rem, bus->m_pdwGetRing, in saa7164_bus_get()
372 bytes_to_read - space_rem); in saa7164_bus_get()
428 space_rem = bus->m_dwSizeGetRing - curr_grp; in saa7164_bus_get()
430 if (space_rem < sizeof(*msg)) { in saa7164_bus_get()
433 space_rem, buf_size); in saa7164_bus_get()
435 } else if (space_rem == sizeof(*msg)) { in saa7164_bus_get()
442 sizeof(*msg), space_rem - sizeof(*msg)); in saa7164_bus_get()
443 memcpy_fromio(buf + space_rem - sizeof(*msg), in saa7164_bus_get()
445 space_rem); in saa7164_bus_get()