Lines Matching refs:copylen
1105 unsigned int copylen = avail; in copy_from_ring() local
1115 if (copylen > len) { in copy_from_ring()
1116 copylen = len; in copy_from_ring()
1118 if (copylen > XENSTORE_RING_SIZE - offset) { in copy_from_ring()
1119 copylen = XENSTORE_RING_SIZE - offset; in copy_from_ring()
1122 memcpy(ptr, &s->xs->req[offset], copylen); in copy_from_ring()
1123 copied += copylen; in copy_from_ring()
1125 ptr += copylen; in copy_from_ring()
1126 len -= copylen; in copy_from_ring()
1128 cons += copylen; in copy_from_ring()
1172 unsigned int copylen = len; in copy_to_ring() local
1182 if (copylen > avail) { in copy_to_ring()
1183 copylen = avail; in copy_to_ring()
1185 if (copylen > XENSTORE_RING_SIZE - offset) { in copy_to_ring()
1186 copylen = XENSTORE_RING_SIZE - offset; in copy_to_ring()
1190 memcpy(&s->xs->rsp[offset], ptr, copylen); in copy_to_ring()
1191 copied += copylen; in copy_to_ring()
1193 ptr += copylen; in copy_to_ring()
1194 len -= copylen; in copy_to_ring()
1196 prod += copylen; in copy_to_ring()
1220 unsigned int copylen = copy_from_ring(s, ptr, len); in get_req() local
1222 copied += copylen; in get_req()
1223 s->req_offset += copylen; in get_req()
1237 unsigned int copylen = copy_from_ring(s, ptr, len); in get_req() local
1239 copied += copylen; in get_req()
1240 s->req_offset += copylen; in get_req()
1259 unsigned int copylen = copy_to_ring(s, ptr, len); in put_rsp() local
1261 s->rsp_offset += copylen; in put_rsp()
1268 return copylen; in put_rsp()