Home
last modified time | relevance | path

Searched refs:p_size (Results 1 – 25 of 32) sorted by relevance

12

/OK3568_Linux_fs/kernel/include/linux/
H A Dstring.h295 size_t p_size = __builtin_object_size(p, 0); in strncpy() local
296 if (__builtin_constant_p(size) && p_size < size) in strncpy()
298 if (p_size < size) in strncpy()
305 size_t p_size = __builtin_object_size(p, 0); in strcat() local
306 if (p_size == (size_t)-1) in strcat()
308 if (strlcat(p, q, p_size) >= p_size) in strcat()
316 size_t p_size = __builtin_object_size(p, 0); in strlen() local
319 if (p_size == (size_t)-1 || in strlen()
320 (__builtin_constant_p(p[p_size - 1]) && p[p_size - 1] == '\0')) in strlen()
322 ret = strnlen(p, p_size); in strlen()
[all …]
/OK3568_Linux_fs/kernel/crypto/
H A Ddh_helper.c31 return p->key_size + p->p_size + p->q_size + p->g_size; in dh_data_size()
55 ptr = dh_pack_data(ptr, end, &params->p_size, sizeof(params->p_size)); in crypto_dh_encode_key()
59 ptr = dh_pack_data(ptr, end, params->p, params->p_size); in crypto_dh_encode_key()
81 ptr = dh_unpack_data(&params->p_size, ptr, sizeof(params->p_size)); in crypto_dh_decode_key()
91 if (params->key_size > params->p_size || in crypto_dh_decode_key()
92 params->g_size > params->p_size || params->q_size > params->p_size) in crypto_dh_decode_key()
100 params->q = (void *)(ptr + params->key_size + params->p_size); in crypto_dh_decode_key()
101 params->g = (void *)(ptr + params->key_size + params->p_size + in crypto_dh_decode_key()
109 if (memchr_inv(params->p, 0, params->p_size) == NULL) in crypto_dh_decode_key()
H A Ddh.c55 if (dh_check_params_length(params->p_size << 3)) in dh_set_params()
58 ctx->p = mpi_read_raw_data(params->p, params->p_size); in dh_set_params()
/OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/
H A Dqat_asym_algs.c109 unsigned int p_size; member
152 dma_free_coherent(dev, req->ctx.dh->p_size, in qat_dh_cb()
156 req->ctx.dh->p_size, DMA_TO_DEVICE); in qat_dh_cb()
159 areq->dst_len = req->ctx.dh->p_size; in qat_dh_cb()
164 dma_free_coherent(dev, req->ctx.dh->p_size, req->dst_align, in qat_dh_cb()
167 dma_unmap_single(dev, req->out.dh.r, req->ctx.dh->p_size, in qat_dh_cb()
227 if (req->dst_len < ctx->p_size) { in qat_dh_compute_value()
228 req->dst_len = ctx->p_size; in qat_dh_compute_value()
235 msg->pke_hdr.cd_pars.func_id = qat_dh_fn_id(ctx->p_size, in qat_dh_compute_value()
277 if (sg_is_last(req->src) && req->src_len == ctx->p_size) { in qat_dh_compute_value()
[all …]
/OK3568_Linux_fs/kernel/block/partitions/
H A Dkarma.c28 __le32 p_size; in karma_partition() member
50 if (p->p_fstype == 0x4d && le32_to_cpu(p->p_size)) { in karma_partition()
52 le32_to_cpu(p->p_size)); in karma_partition()
H A Dosf.c46 __le32 p_size; in osf_partition() member
78 if (le32_to_cpu(partition->p_size)) in osf_partition()
81 le32_to_cpu(partition->p_size)); in osf_partition()
H A Dmsdos.c340 __le32 p_size; /* number of sectors in partition */ member
384 bsd_size = le32_to_cpu(p->p_size); in parse_bsd()
/OK3568_Linux_fs/u-boot/arch/arm/mach-keystone/
H A Dmon.c105 void board_fit_image_post_process(void **p_image, size_t *p_size) in board_fit_image_post_process() argument
126 *p_size -= KS2_HS_SEC_HEADER_LEN; in board_fit_image_post_process()
127 memcpy(image, image + KS2_HS_SEC_HEADER_LEN, *p_size); in board_fit_image_post_process()
/OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dcpu.c608 phys_size_t p_size = min(gd->ram_size, CONFIG_MAX_MEM_MAPPED); in arch_memory_test_advance() local
613 test_cap = p_size; in arch_memory_test_advance()
619 p_size = min(test_cap - p_addr, CONFIG_MAX_MEM_MAPPED); in arch_memory_test_advance()
620 if (reset_tlb(p_addr, p_size, phys_offset) == -1) in arch_memory_test_advance()
623 *size = (u32) p_size; in arch_memory_test_advance()
636 phys_size_t p_size = min(gd->ram_size, CONFIG_MAX_MEM_MAPPED); in arch_memory_test_prepare() local
639 *size = (u32) p_size; /* CONFIG_MAX_MEM_MAPPED < 4G */ in arch_memory_test_prepare()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/ttm/
H A Dttm_range_manager.c117 unsigned long p_size) in ttm_range_man_init() argument
131 ttm_resource_manager_init(man, p_size); in ttm_range_man_init()
133 drm_mm_init(&rman->mm, 0, p_size); in ttm_range_man_init()
H A Dttm_resource.c64 unsigned long p_size) in ttm_resource_manager_init() argument
69 man->size = p_size; in ttm_resource_manager_init()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/
H A Dqed_cxt.c286 return ILT_PAGE_IN_BYTES(p_cli->p_size.val); in qed_cxt_get_ilt_page_size()
319 u32 page_sz = p_mgr->clients[ILT_CLI_CDUC].p_size.val; in qed_cxt_set_proto_cid_count()
372 u32 ilt_size = ILT_PAGE_IN_BYTES(p_cli->p_size.val); in qed_ilt_cli_blk_fill()
418 cxts_per_p = ILT_PAGE_IN_BYTES(p_cli->p_size.val) / in qed_ilt_get_dynamic_line_cnt()
753 ilt_page_size = ILT_PAGE_IN_BYTES(p_cli->p_size.val); in qed_cxt_cfg_ilt_compute_excess()
843 psz = ILT_PAGE_IN_BYTES(p_src->p_size.val); in qed_cxt_src_t2_alloc()
1129 clients[ILT_CLI_CDUC].p_size.reg = ILT_CFG_REG(CDUC, P_SIZE); in qed_cxt_mngr_alloc()
1133 clients[ILT_CLI_QM].p_size.reg = ILT_CFG_REG(QM, P_SIZE); in qed_cxt_mngr_alloc()
1137 clients[ILT_CLI_TM].p_size.reg = ILT_CFG_REG(TM, P_SIZE); in qed_cxt_mngr_alloc()
1141 clients[ILT_CLI_SRC].p_size.reg = ILT_CFG_REG(SRC, P_SIZE); in qed_cxt_mngr_alloc()
[all …]
H A Dqed_cxt.h273 struct ilt_cfg_pair p_size; member
/OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/microcode/
H A Damd.c158 u32 p_type, p_size; in __verify_patch_section() local
170 p_size = hdr[1]; in __verify_patch_section()
180 if (p_size < sizeof(struct microcode_header_amd)) { in __verify_patch_section()
182 pr_debug("Patch of size %u too short.\n", p_size); in __verify_patch_section()
187 *sh_psize = p_size; in __verify_patch_section()
/OK3568_Linux_fs/kernel/include/crypto/
H A Ddh.h40 unsigned int p_size; member
/OK3568_Linux_fs/u-boot/arch/arm/include/asm/
H A Domap_sec_common.h28 int secure_boot_verify_image(void **p_image, size_t *p_size);
/OK3568_Linux_fs/kernel/include/drm/ttm/
H A Dttm_resource.h229 unsigned long p_size);
H A Dttm_bo_driver.h712 unsigned long p_size);
/OK3568_Linux_fs/kernel/arch/alpha/boot/tools/
H A Dmkbb.c60 u32 p_size; member
/OK3568_Linux_fs/u-boot/board/ti/am43xx/
H A Dboard.c867 void board_fit_image_post_process(void **p_image, size_t *p_size) in board_fit_image_post_process() argument
869 secure_boot_verify_image(p_image, p_size); in board_fit_image_post_process()
/OK3568_Linux_fs/u-boot/board/ti/am335x/
H A Dboard.c946 void board_fit_image_post_process(void **p_image, size_t *p_size) in board_fit_image_post_process() argument
948 secure_boot_verify_image(p_image, p_size); in board_fit_image_post_process()
/OK3568_Linux_fs/u-boot/board/ti/dra7xx/
H A Devm.c994 void board_fit_image_post_process(void **p_image, size_t *p_size) in board_fit_image_post_process() argument
996 secure_boot_verify_image(p_image, p_size); in board_fit_image_post_process()
/OK3568_Linux_fs/u-boot/board/ti/am57xx/
H A Dboard.c1052 void board_fit_image_post_process(void **p_image, size_t *p_size) in board_fit_image_post_process() argument
1054 secure_boot_verify_image(p_image, p_size); in board_fit_image_post_process()
/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Decp.c1084 size_t p_size = ( grp->pbits + 7 ) / 8; in ecp_randomize_jac() local
1092 mbedtls_mpi_fill_random( &l, p_size, f_rng, p_rng ); in ecp_randomize_jac()
1466 size_t p_size = ( grp->pbits + 7 ) / 8; in ecp_randomize_mxz() local
1474 mbedtls_mpi_fill_random( &l, p_size, f_rng, p_rng ); in ecp_randomize_mxz()
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c582 if (params->p_size > HPRE_DH_MAX_P_SZ) in hpre_dh_set_params()
585 if (hpre_is_dh_params_length_valid(params->p_size << in hpre_dh_set_params()
589 sz = ctx->key_sz = params->p_size; in hpre_dh_set_params()

12