Lines Matching refs:k
118 int k, rem; in sg_init_aead() local
133 for (k = 0; k < np; k++) in sg_init_aead()
134 sg_set_buf(&sg[k + 1], xbuf[k], PAGE_SIZE); in sg_init_aead()
137 sg_set_buf(&sg[k + 1], xbuf[k], rem); in sg_init_aead()
817 unsigned int i, j, k; in test_mb_ahash_speed() local
871 for (k = 0; k < num_mb; k++) in test_mb_ahash_speed()
872 ahash_request_set_crypt(data[k].req, data[k].sg, in test_mb_ahash_speed()
873 data[k].result, speed[i].blen); in test_mb_ahash_speed()
896 for (k = 0; k < num_mb; ++k) in test_mb_ahash_speed()
897 ahash_request_free(data[k].req); in test_mb_ahash_speed()
899 for (k = 0; k < num_mb; ++k) in test_mb_ahash_speed()
900 testmgr_free_buf(data[k].xbuf); in test_mb_ahash_speed()
1347 unsigned int k = *b_size; in test_mb_skcipher_speed() local
1348 unsigned int pages = DIV_ROUND_UP(k, PAGE_SIZE); in test_mb_skcipher_speed()
1353 while (k > PAGE_SIZE) { in test_mb_skcipher_speed()
1358 k -= PAGE_SIZE; in test_mb_skcipher_speed()
1361 sg_set_buf(cur->sg + p, cur->xbuf[p], k); in test_mb_skcipher_speed()
1362 memset(cur->xbuf[p], 0xff, k); in test_mb_skcipher_speed()
1485 unsigned int ret, i, j, k, iv_len; in test_skcipher_speed() local
1559 k = *keysize + *b_size; in test_skcipher_speed()
1560 sg_init_table(sg, DIV_ROUND_UP(k, PAGE_SIZE)); in test_skcipher_speed()
1562 if (k > PAGE_SIZE) { in test_skcipher_speed()
1565 k -= PAGE_SIZE; in test_skcipher_speed()
1567 while (k > PAGE_SIZE) { in test_skcipher_speed()
1571 k -= PAGE_SIZE; in test_skcipher_speed()
1573 sg_set_buf(sg + j, tvmem[j], k); in test_skcipher_speed()
1574 memset(tvmem[j], 0xff, k); in test_skcipher_speed()