Lines Matching refs:trim
264 int trim = msg->sg.size - len;
267 if (trim <= 0) {
268 WARN_ON(trim < 0);
275 trim >= msg->sg.data[i].length) {
276 trim -= msg->sg.data[i].length;
279 if (!trim)
283 msg->sg.data[i].length -= trim;
284 sk_mem_uncharge(sk, trim);
292 /* If we trim data a full sg elem before curr pointer update
359 /* Revert iov_iter updates, msg will need to use 'trim' later if it
378 /* This is possible if a trim operation shrunk the buffer */