Lines Matching full:amount
334 crypto_cursor_advance(struct crypto_buffer_cursor *cc, size_t amount) in crypto_cursor_advance() argument
340 MPASS(cc->cc_buf_len >= amount); in crypto_cursor_advance()
341 cc->cc_buf += amount; in crypto_cursor_advance()
342 cc->cc_buf_len -= amount; in crypto_cursor_advance()
347 if (amount < remain) { in crypto_cursor_advance()
348 cc->cc_offset += amount; in crypto_cursor_advance()
351 amount -= remain; in crypto_cursor_advance()
354 if (amount == 0) in crypto_cursor_advance()
359 MPASS(cc->cc_mbuf->m_len >= cc->cc_offset + amount); in crypto_cursor_advance()
360 cc->cc_offset += amount; in crypto_cursor_advance()
365 cc, amount); in crypto_cursor_advance()
367 if (amount < remain) { in crypto_cursor_advance()
368 cc->cc_buf_len -= amount; in crypto_cursor_advance()
369 cc->cc_offset += amount; in crypto_cursor_advance()
373 amount -= remain; in crypto_cursor_advance()
376 if (amount == 0 || cc->cc_buf_len == 0) in crypto_cursor_advance()
383 if (amount < remain) { in crypto_cursor_advance()
384 cc->cc_offset += amount; in crypto_cursor_advance()
388 amount -= remain; in crypto_cursor_advance()
391 if (amount == 0) in crypto_cursor_advance()