Searched refs:nblocks (Results 1 – 2 of 2) sorted by relevance
883 unsigned int i, nblocks = 1; in inet_ehash_locks_alloc() local887 nblocks = max(2U * L1_CACHE_BYTES / locksz, 1U); in inet_ehash_locks_alloc()888 nblocks = roundup_pow_of_two(nblocks * num_possible_cpus()); in inet_ehash_locks_alloc()891 nblocks = min(nblocks, hashinfo->ehash_mask + 1); in inet_ehash_locks_alloc()893 hashinfo->ehash_locks = kvmalloc_array(nblocks, locksz, GFP_KERNEL); in inet_ehash_locks_alloc()897 for (i = 0; i < nblocks; i++) in inet_ehash_locks_alloc()900 hashinfo->ehash_locks_mask = nblocks - 1; in inet_ehash_locks_alloc()
743 int nblocks, nbytes; in gss_krb5_aes_encrypt() local804 nblocks = (nbytes + blocksize - 1) / blocksize; in gss_krb5_aes_encrypt()806 if (nblocks > 2) in gss_krb5_aes_encrypt()807 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_encrypt()864 int nblocks, blocksize, cbcbytes; in gss_krb5_aes_decrypt() local887 nblocks = (subbuf.len + blocksize - 1) / blocksize; in gss_krb5_aes_decrypt()890 if (nblocks > 2) in gss_krb5_aes_decrypt()891 cbcbytes = (nblocks - 2) * blocksize; in gss_krb5_aes_decrypt()