Lines Matching defs:trim
265 int trim = msg->sg.size - len;
268 if (trim <= 0) {
269 WARN_ON(trim < 0);
276 trim >= msg->sg.data[i].length) {
277 trim -= msg->sg.data[i].length;
280 if (!trim)
284 msg->sg.data[i].length -= trim;
285 sk_mem_uncharge(sk, trim);
293 /* 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 */