Lines Matching refs:space_rem

139 	u32 new_swp, space_rem;  in saa7164_bus_set()  local
234 space_rem = bus->m_dwSizeSetRing - curr_swp; in saa7164_bus_set()
237 space_rem); in saa7164_bus_set()
242 if (space_rem < sizeof(*msg)) { in saa7164_bus_set()
246 memcpy(bus->m_pdwSetRing + curr_swp, msg, space_rem); in saa7164_bus_set()
247 memcpy(bus->m_pdwSetRing, (u8 *)msg + space_rem, in saa7164_bus_set()
248 sizeof(*msg) - space_rem); in saa7164_bus_set()
250 memcpy(bus->m_pdwSetRing + sizeof(*msg) - space_rem, in saa7164_bus_set()
253 } else if (space_rem == sizeof(*msg)) { in saa7164_bus_set()
265 sizeof(*msg), buf, space_rem - in saa7164_bus_set()
268 space_rem - sizeof(*msg), in saa7164_bus_set()
269 bytes_to_write - space_rem); in saa7164_bus_set()
312 new_grp, buf_size, space_rem; in saa7164_bus_get() local
370 space_rem = bus->m_dwSizeGetRing - curr_grp; in saa7164_bus_get()
372 memcpy(&msg_tmp, bus->m_pdwGetRing + curr_grp, space_rem); in saa7164_bus_get()
373 memcpy((u8 *)&msg_tmp + space_rem, bus->m_pdwGetRing, in saa7164_bus_get()
374 bytes_to_read - space_rem); in saa7164_bus_get()
426 space_rem = bus->m_dwSizeGetRing - curr_grp; in saa7164_bus_get()
428 if (space_rem < sizeof(*msg)) { in saa7164_bus_get()
430 memcpy(msg, bus->m_pdwGetRing + curr_grp, space_rem); in saa7164_bus_get()
431 memcpy((u8 *)msg + space_rem, bus->m_pdwGetRing, in saa7164_bus_get()
432 sizeof(*msg) - space_rem); in saa7164_bus_get()
435 space_rem, buf_size); in saa7164_bus_get()
437 } else if (space_rem == sizeof(*msg)) { in saa7164_bus_get()
446 sizeof(*msg), space_rem - sizeof(*msg)); in saa7164_bus_get()
447 memcpy(buf + space_rem - sizeof(*msg), in saa7164_bus_get()
449 space_rem); in saa7164_bus_get()