| /OK3568_Linux_fs/kernel/fs/jbd2/ |
| H A D | revoke.c | 115 int hash_size; member 218 static struct jbd2_revoke_table_s *jbd2_journal_init_revoke_table(int hash_size) in jbd2_journal_init_revoke_table() argument 221 int tmp = hash_size; in jbd2_journal_init_revoke_table() 231 table->hash_size = hash_size; in jbd2_journal_init_revoke_table() 234 kmalloc_array(hash_size, sizeof(struct list_head), GFP_KERNEL); in jbd2_journal_init_revoke_table() 241 for (tmp = 0; tmp < hash_size; tmp++) in jbd2_journal_init_revoke_table() 253 for (i = 0; i < table->hash_size; i++) { in jbd2_journal_destroy_revoke_table() 263 int jbd2_journal_init_revoke(journal_t *journal, int hash_size) in jbd2_journal_init_revoke() argument 266 J_ASSERT(is_power_of_2(hash_size)); in jbd2_journal_init_revoke() 268 journal->j_revoke_table[0] = jbd2_journal_init_revoke_table(hash_size); in jbd2_journal_init_revoke() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/ |
| H A D | boot_rkimg.c | 419 char *hash_cmp, u32 hash_size) in fdt_check_hash() argument 423 if (!hash_size) in fdt_check_hash() 426 if (hash_size == 20) in fdt_check_hash() 428 else if (hash_size == 32) in fdt_check_hash() 434 if (memcmp(hash, hash_cmp, hash_size)) { in fdt_check_hash() 446 char *hash_cmp, u32 hash_size) in fdt_check_hash() argument 450 if (!hash_size) in fdt_check_hash() 453 if (hash_size == 20) in fdt_check_hash() 455 else if (hash_size == 32) in fdt_check_hash() 461 if (memcmp(hash, hash_cmp, hash_size)) { in fdt_check_hash() [all …]
|
| H A D | resource_img.c | 90 uint32_t hash_size; member 109 printf(" hash_size: %d\n\n", f->hash_size); in resource_dump() 114 char *hash, u32 hash_size, in resource_add_file() argument 143 f->hash_size = hash_size; in resource_add_file() 144 memcpy(f->hash, hash, hash_size); in resource_add_file() 169 et->hash, et->hash_size, in_ram); in resource_setup_list() 462 int rockchip_read_resource_dtb(void *fdt_addr, char **hash, int *hash_size) in rockchip_read_resource_dtb() argument 488 *hash_size = f->hash_size; in rockchip_read_resource_dtb()
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | dcookies.c | 45 static size_t hash_size __read_mostly; 62 return (dcookie >> L1_CACHE_SHIFT) & (hash_size - 1); in dcookie_hash() 247 hash_size = PAGE_SIZE / sizeof(struct list_head); in dcookie_init() 251 } while ((hash_size >> hash_bits) != 0); in dcookie_init() 258 hash_size = 1UL << hash_bits; in dcookie_init() 262 i = hash_size; in dcookie_init() 298 for (i = 0; i < hash_size; ++i) { in dcookie_exit()
|
| /OK3568_Linux_fs/u-boot/drivers/crypto/ |
| H A D | crypto-uclass.c | 136 u32 hash_size = 0; in crypto_sha_final() local 142 hash_size = sizeof(null_hash_md5_value); in crypto_sha_final() 146 hash_size = sizeof(null_hash_sha1_value); in crypto_sha_final() 150 hash_size = sizeof(null_hash_sha256_value); in crypto_sha_final() 154 hash_size = sizeof(null_hash_sha512_value); in crypto_sha_final() 158 hash_size = sizeof(null_hash_sm3_value); in crypto_sha_final() 164 memcpy(output, null_hash, hash_size); in crypto_sha_final()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/ |
| H A D | signed_hdr.h | 55 uint16_t hash_size; member 69 #define SHDR_GET_SIZE(x) (sizeof(struct shdr) + (x)->hash_size + \ 72 #define SHDR_GET_SIG(x) (SHDR_GET_HASH(x) + (x)->hash_size)
|
| /OK3568_Linux_fs/u-boot/lib/avb/libavb/ |
| H A D | avb_vbmeta_image.c | 116 if (!avb_safe_add(&hash_end, h.hash_offset, h.hash_size) || in avb_vbmeta_image_verify() 163 if (h.hash_size != algorithm->hash_len) { in avb_vbmeta_image_verify() 211 h.hash_size) != 0) { in avb_vbmeta_image_verify() 223 h.hash_size, in avb_vbmeta_image_verify() 264 dest->hash_size = avb_be64toh(dest->hash_size); in avb_vbmeta_image_header_to_host_byte_order()
|
| /OK3568_Linux_fs/kernel/drivers/soc/qcom/ |
| H A D | mdt_loader.c | 91 size_t hash_size; in qcom_mdt_read_metadata() local 108 hash_size = phdrs[1].p_filesz; in qcom_mdt_read_metadata() 110 data = kmalloc(ehdr_size + hash_size, GFP_KERNEL); in qcom_mdt_read_metadata() 115 if (ehdr_size + hash_size == fw->size) in qcom_mdt_read_metadata() 121 memcpy(data + ehdr_size, fw->data + hash_offset, hash_size); in qcom_mdt_read_metadata() 123 *data_len = ehdr_size + hash_size; in qcom_mdt_read_metadata()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/ |
| H A D | signed_hdr.h | 38 uint16_t hash_size; member 56 if (ADD_OVERFLOW(s, shdr->hash_size, &s) || in shdr_get_size() 65 #define SHDR_GET_SIG(x) (SHDR_GET_HASH(x) + (x)->hash_size)
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/ |
| H A D | signed_hdr.h | 38 uint16_t hash_size; member 56 if (ADD_OVERFLOW(s, shdr->hash_size, &s) || in shdr_get_size() 65 #define SHDR_GET_SIG(x) (SHDR_GET_HASH(x) + (x)->hash_size)
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-rockchip/ |
| H A D | resource_img.h | 21 uint32_t hash_size; member 58 int rockchip_read_resource_dtb(void *fdt_addr, char **hash, int *hash_size);
|
| H A D | spl_resource_img.h | 83 uint32_t hash_size; member
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/fman/ |
| H A D | fman_keygen.c | 716 u32 hash_base_fqid, u32 hash_size) in keygen_port_hashing_init() argument 727 if (hash_size == 0 || (hash_size & (hash_size - 1)) != 0) { in keygen_port_hashing_init() 760 scheme->hash_fqid_count = hash_size; in keygen_port_hashing_init()
|
| H A D | fman_keygen.h | 44 u32 hash_base_fqid, u32 hash_size);
|
| /OK3568_Linux_fs/kernel/drivers/net/ |
| H A D | gtp.c | 73 unsigned int hash_size; member 110 head = >p->tid_hash[gtp0_hashfn(tid) % gtp->hash_size]; in gtp0_pdp_find() 126 head = >p->tid_hash[gtp1u_hashfn(tid) % gtp->hash_size]; in gtp1_pdp_find() 142 head = >p->addr_hash[ipv4_hashfn(ms_addr) % gtp->hash_size]; in ipv4_pdp_find() 703 for (i = 0; i < gtp->hash_size; i++) in gtp_dellink() 736 if (nla_put_u32(skb, IFLA_GTP_PDP_HASHSIZE, gtp->hash_size)) in gtp_fill_info() 772 gtp->hash_size = hsize; in gtp_hashtable_new() 935 hash_ms = ipv4_hashfn(ms_addr) % gtp->hash_size; in gtp_pdp_add() 991 hash_tid = gtp0_hashfn(pctx->u.v0.tid) % gtp->hash_size; in gtp_pdp_add() 994 hash_tid = gtp1u_hashfn(pctx->u.v1.i_tei) % gtp->hash_size; in gtp_pdp_add() [all …]
|
| /OK3568_Linux_fs/kernel/net/sunrpc/ |
| H A D | cache.c | 433 current_index >= current_detail->hash_size) { in cache_clean() 445 current_index = current_detail->hash_size; in cache_clean() 454 current_index < current_detail->hash_size && in cache_clean() 460 if (current_detail && current_index < current_detail->hash_size) { in cache_clean() 542 for (i = 0; i < detail->hash_size; i++) { in cache_purge() 1363 } while(hash < cd->hash_size && in __cache_seq_start() 1365 if (hash >= cd->hash_size) in __cache_seq_start() 1391 while (hash < cd->hash_size && in cache_seq_next() 1396 if (hash >= cd->hash_size) in cache_seq_next() 1752 cd->hash_table = kcalloc(cd->hash_size, sizeof(struct hlist_head), in cache_create_net() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | sa2ul.c | 115 u8 hash_size; member 522 memcpy(&sc_buf[32], ipad, ad->hash_size); in sa_set_sc_auth() 524 memcpy(&sc_buf[64], opad, ad->hash_size); in sa_set_sc_auth() 668 u8 hash_size, u32 *swinfo) in sa_set_swinfo() argument 680 swinfo[2] |= (hash_size << __ffs(SA_SW2_EGRESS_LENGTH)); in sa_set_swinfo() 715 if (!ad->hash_size) in sa_init_sc() 717 ad->hash_size = roundup(ad->hash_size, 8); in sa_init_sc() 723 ad->hash_size = ad->iv_out_size; in sa_init_sc() 753 SA_SW_INFO_FLAG_EVICT, ad->hash_size, swinfo); in sa_init_sc() 1611 ad.hash_size = SHA1_DIGEST_SIZE; in sa_sha1_cra_init() [all …]
|
| /OK3568_Linux_fs/kernel/fs/incfs/ |
| H A D | verity.c | 404 __le32 hash_size; in incfs_add_signature_record() member 416 .hash_size = cpu_to_le32(SHA256_DIGEST_SIZE), in incfs_add_signature_record() 427 int hash_size = alg->digest_size; in incfs_add_signature_record() local 428 struct mem_range hash = range(hash_buf, hash_size); in incfs_add_signature_record() 497 .hash_size = hash_tree->hash_tree_area_size, in incfs_add_signature_record()
|
| /OK3568_Linux_fs/kernel/drivers/net/ipa/ |
| H A D | ipa_cmd.c | 375 dma_addr_t addr, u16 hash_size, u32 hash_offset, in ipa_cmd_table_init_add() argument 391 if (hash_size) { in ipa_cmd_table_init_add() 396 val |= u64_encode_bits(hash_size, in ipa_cmd_table_init_add() 404 if (hash_size) in ipa_cmd_table_init_add()
|
| H A D | ipa_table.c | 442 u16 hash_size; in ipa_table_init_add() local 460 hash_size = hash_count * sizeof(__le64); in ipa_table_init_add() 466 hash_size, hash_mem->offset, hash_addr); in ipa_table_init_add()
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-snap.c | 884 sector_t hash_size, cow_dev_size, max_buckets; in init_hash_tables() local 893 hash_size = cow_dev_size >> s->store->chunk_shift; in init_hash_tables() 894 hash_size = min(hash_size, max_buckets); in init_hash_tables() 896 if (hash_size < 64) in init_hash_tables() 897 hash_size = 64; in init_hash_tables() 898 hash_size = rounddown_pow_of_two(hash_size); in init_hash_tables() 899 if (dm_exception_table_init(&s->complete, hash_size, in init_hash_tables() 907 hash_size >>= 3; in init_hash_tables() 908 if (hash_size < 64) in init_hash_tables() 909 hash_size = 64; in init_hash_tables() [all …]
|
| /OK3568_Linux_fs/u-boot/include/dm/ |
| H A D | of_extra.h | 32 int hash_size; /* Hash size */ member
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/ |
| H A D | sha_perf.c | 126 static int hash_size(uint32_t algo) in hash_size() function 158 out_shm.size = hash_size(algo); in alloc_shm() 321 op.params[1].memref.size = hash_size(algo); in sha_perf_run_test()
|
| /OK3568_Linux_fs/u-boot/drivers/core/ |
| H A D | of_extra.c | 32 entry->hash_size = strlen(prop); in of_read_fmap_entry()
|
| /OK3568_Linux_fs/kernel/drivers/nfc/s3fwrn5/ |
| H A D | firmware.c | 110 const void *hash_data, u16 hash_size, in s3fwrn5_fw_enter_update_mode() argument 120 args.hashcode_size = hash_size; in s3fwrn5_fw_enter_update_mode() 144 hash_data, hash_size); in s3fwrn5_fw_enter_update_mode()
|