Lines Matching defs:bytes
138 void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes)
145 if (bytes < sge->length) {
146 sge->length -= bytes;
147 sge->offset += bytes;
148 sk_mem_uncharge(sk, bytes);
153 bytes -= sge->length;
157 } while (bytes && i != msg->sg.end);
162 void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes)
168 int uncharge = (bytes < sge->length) ? bytes : sge->length;
171 bytes -= uncharge;
224 u32 bytes, bool charge)
229 while (bytes) {
233 if (bytes < sge->length) {
235 sk_mem_uncharge(sk, bytes);
236 sge->length -= bytes;
237 sge->offset += bytes;
238 msg->sg.size -= bytes;
243 bytes -= sge->length;
246 sk_msg_check_to_free(msg, i, bytes);
251 void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes)
253 __sk_msg_free_partial(sk, msg, bytes, true);
258 u32 bytes)
260 __sk_msg_free_partial(sk, msg, bytes, false);
312 struct sk_msg *msg, u32 bytes)
320 while (bytes > 0) {
328 copied = iov_iter_get_pages2(from, pages, bytes, maxpages,
335 bytes -= copied;
369 struct sk_msg *msg, u32 bytes)
388 copy = (buf_size > bytes) ? bytes : buf_size;
399 bytes -= copy;
400 if (!bytes)