| /rk3399_rockchip-uboot/include/linux/ |
| H A D | bitmap.h | 9 #define small_const_nbits(nbits) \ argument 10 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG) 12 static inline void bitmap_zero(unsigned long *dst, int nbits) in bitmap_zero() argument 14 if (small_const_nbits(nbits)) { in bitmap_zero() 17 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero()
|
| /rk3399_rockchip-uboot/include/usb/ |
| H A D | lin_gadget_compat.h | 20 #define small_const_nbits(nbits) \ argument 21 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG) 23 static inline void bitmap_zero(unsigned long *dst, int nbits) in bitmap_zero() argument 25 if (small_const_nbits(nbits)) in bitmap_zero() 28 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero()
|
| /rk3399_rockchip-uboot/drivers/crypto/rockchip/ |
| H A D | crypto_v1.c | 183 u32 nbits; in rockchip_crypto_sha_final() local 200 nbits = crypto_algo_nbits(ctx->algo); in rockchip_crypto_sha_final() 201 for (i = 0; i < BITS2WORD(nbits); i++) in rockchip_crypto_sha_final() 216 u32 nbits, *buf = (u32 *)output; in rockchip_crypto_rsa_verify() local 249 nbits = crypto_algo_nbits(ctx->algo); in rockchip_crypto_rsa_verify() 250 memcpy((void *)®->crypto_pka_m, (void *)sign, BITS2BYTE(nbits)); in rockchip_crypto_rsa_verify() 251 memcpy((void *)®->crypto_pka_n, (void *)ctx->n, BITS2BYTE(nbits)); in rockchip_crypto_rsa_verify() 252 memcpy((void *)®->crypto_pka_e, (void *)ctx->e, BITS2BYTE(nbits)); in rockchip_crypto_rsa_verify() 253 memcpy((void *)®->crypto_pka_c, (void *)ctx->c, BITS2BYTE(nbits)); in rockchip_crypto_rsa_verify() 263 for (i = 0; i < BITS2WORD(nbits); i++) in rockchip_crypto_rsa_verify()
|
| H A D | crypto_ce.c | 395 u32 nbits; in rockchip_crypto_sha_final() local 401 nbits = crypto_algo_nbits(ctx->algo); in rockchip_crypto_sha_final() 412 memcpy(output, hash_ctx->td_buf->hash, BITS2BYTE(nbits)); in rockchip_crypto_sha_final()
|
| H A D | crypto_v2.c | 660 u32 nbits; in rockchip_crypto_sha_final() local 663 nbits = crypto_algo_nbits(ctx->algo); in rockchip_crypto_sha_final() 672 ret = rk_hash_final(priv->hw_ctx, (u8 *)output, BITS2BYTE(nbits)); in rockchip_crypto_sha_final()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | crypto.h | 42 #define BITS2BYTE(nbits) ((nbits) / 8) argument 43 #define BITS2WORD(nbits) ((nbits) / 32) argument
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | crypto_sum.c | 10 u32 nbits, char *addr, int len) in dump_hash() argument 17 for (i = 0; i < BITS2BYTE(nbits); i++) in dump_hash()
|
| H A D | crypto.c | 150 #define RSA_TEST(nbits, bn, be, bc, bd, in, out) { \ argument 152 .mode_name = #nbits, \ 153 .algo = CRYPTO_RSA##nbits, \
|
| /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc8xx/ |
| H A D | immap.c | 93 static void binary(char *label, uint value, int nbits) in binary() argument 95 uint mask = 1 << (nbits - 1); in binary() 101 for (i = 32 + 1; i != nbits; i--) in binary()
|
| /rk3399_rockchip-uboot/lib/ |
| H A D | bch.c | 1031 unsigned int nbits; in decode_bch() local 1074 nbits = (len*8)+bch->ecc_bits; in decode_bch() 1076 if (errloc[i] >= nbits) { in decode_bch() 1080 errloc[i] = nbits-1-errloc[i]; in decode_bch() 1208 unsigned int i, j, nbits, r, word, *roots; in compute_generator_polynomial() local 1250 nbits = (n > 32) ? 32 : n; in compute_generator_polynomial() 1251 for (j = 0, word = 0; j < nbits; j++) { in compute_generator_polynomial() 1256 n -= nbits; in compute_generator_polynomial()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | edid.c | 34 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) argument
|