Searched refs:hash_context (Results 1 – 6 of 6) sorted by relevance
/openbmc/google-misc/subprojects/libcr51sign/src/ |
H A D | libcr51sign_support.c | 44 struct hash_ctx* hash_context = (struct hash_ctx*)context->priv; in hash_init() local 45 hash_context->hash_type = type; in hash_init() 47 SHA256_Init(&hash_context->sha256_ctx); in hash_init() 49 SHA512_Init(&hash_context->sha512_ctx); in hash_init() 69 struct hash_ctx* hash_context = (struct hash_ctx*)context->priv; in hash_update() local 71 if (hash_context->hash_type == HASH_SHA2_256) // SHA256_Update returns 1 in hash_update() 72 SHA256_Update(&hash_context->sha256_ctx, data, size); in hash_update() 73 else if (hash_context->hash_type == HASH_SHA2_512) in hash_update() 74 SHA512_Update(&hash_context->sha512_ctx, data, size); in hash_update() 92 struct hash_ctx* hash_context = (struct hash_ctx*)context->priv; in hash_final() local [all …]
|
/openbmc/linux/arch/powerpc/include/asm/book3s/64/ |
H A D | mmu.h | 114 struct hash_mm_context *hash_context; member 141 return ctx->hash_context->user_psize; in mm_ctx_user_psize() 146 ctx->hash_context->user_psize = user_psize; in mm_ctx_set_user_psize() 151 return ctx->hash_context->low_slices_psize; in mm_ctx_low_slices() 156 return ctx->hash_context->high_slices_psize; in mm_ctx_high_slices() 161 return ctx->hash_context->slb_addr_limit; in mm_ctx_slb_addr_limit() 166 ctx->hash_context->slb_addr_limit = limit; in mm_ctx_set_slb_addr_limit() 173 return &ctx->hash_context->mask_64k; in slice_mask_for_size() 177 return &ctx->hash_context->mask_16m; in slice_mask_for_size() 179 return &ctx->hash_context->mask_16g; in slice_mask_for_size() [all …]
|
H A D | mmu-hash.h | 670 #define TASK_SLICE_ARRAY_SZ(x) ((x)->hash_context->slb_addr_limit >> 41)
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A D | mmu_context.c | 99 mm->context.hash_context = kmalloc(sizeof(struct hash_mm_context), in hash__init_new_context() 101 if (!mm->context.hash_context) in hash__init_new_context() 119 memset(mm->context.hash_context, 0, sizeof(struct hash_mm_context)); in hash__init_new_context() 123 …memcpy(mm->context.hash_context, current->mm->context.hash_context, sizeof(struct hash_mm_context)… in hash__init_new_context() 126 if (current->mm->context.hash_context->spt) { in hash__init_new_context() 127 mm->context.hash_context->spt = kmalloc(sizeof(struct subpage_prot_table), in hash__init_new_context() 129 if (!mm->context.hash_context->spt) { in hash__init_new_context() 130 kfree(mm->context.hash_context); in hash__init_new_context() 140 kfree(mm->context.hash_context->spt); in hash__init_new_context() 142 kfree(mm->context.hash_context); in hash__init_new_context() [all …]
|
H A D | subpage_prot.c | 229 mm->context.hash_context->spt = spt; in SYSCALL_DEFINE3()
|
H A D | hash_utils.c | 1267 init_mm.context.hash_context = &init_hash_mm_context; in hash__early_init_mmu()
|