/openbmc/linux/include/linux/ |
H A D | fortify-string.h | 159 const size_t p_size = __member_size(p); in strncpy() local 161 if (__compiletime_lessthan(p_size, size)) in strncpy() 163 if (p_size < size) in strncpy() 181 const size_t p_size = __member_size(p); in strnlen() local 188 if (maxlen >= p_size) in strnlen() 193 ret = __real_strnlen(p, maxlen < p_size ? maxlen : p_size); in strnlen() 194 if (p_size <= ret && maxlen != ret) in strnlen() 223 const size_t p_size = __member_size(p); in __fortify_strlen() local 227 if (p_size == SIZE_MAX) in __fortify_strlen() 229 ret = strnlen(p, p_size); in __fortify_strlen() [all …]
|
/openbmc/linux/crypto/ |
H A D | dh_helper.c | 31 return p->key_size + p->p_size + p->g_size; in dh_data_size() 55 ptr = dh_pack_data(ptr, end, ¶ms->p_size, sizeof(params->p_size)); in crypto_dh_encode_key() 58 ptr = dh_pack_data(ptr, end, params->p, params->p_size); in crypto_dh_encode_key() 79 ptr = dh_unpack_data(¶ms->p_size, ptr, sizeof(params->p_size)); in __crypto_dh_decode_key() 89 params->g = (void *)(ptr + params->key_size + params->p_size); in __crypto_dh_decode_key() 106 if (params->key_size > params->p_size || in crypto_dh_decode_key() 107 params->g_size > params->p_size) in crypto_dh_decode_key() 115 if (memchr_inv(params->p, 0, params->p_size) == NULL) in crypto_dh_decode_key()
|
H A D | dh.c | 57 if (dh_check_params_length(params->p_size << 3)) in dh_set_params() 60 ctx->p = mpi_read_raw_data(params->p, params->p_size); in dh_set_params() 282 unsigned int p_size; member 471 if (params.p_size || params.g_size) in dh_safe_prime_set_secret() 476 params.p_size = inst_ctx->safe_prime->p_size; in dh_safe_prime_set_secret() 620 .p_size = 256, 642 .p_size = 384, 672 .p_size = 512, 710 .p_size = 768, 764 .p_size = 1024,
|
/openbmc/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_asym_algs.c | 110 unsigned int p_size; member 167 dma_unmap_single(dev, req->in.dh.in.b, req->ctx.dh->p_size, in qat_dh_cb() 172 areq->dst_len = req->ctx.dh->p_size; in qat_dh_cb() 173 dma_unmap_single(dev, req->out.dh.r, req->ctx.dh->p_size, in qat_dh_cb() 234 if (req->dst_len < ctx->p_size) { in qat_dh_compute_value() 235 req->dst_len = ctx->p_size; in qat_dh_compute_value() 239 if (req->src_len > ctx->p_size) in qat_dh_compute_value() 246 msg->pke_hdr.cd_pars.func_id = qat_dh_fn_id(ctx->p_size, in qat_dh_compute_value() 288 if (sg_is_last(req->src) && req->src_len == ctx->p_size) { in qat_dh_compute_value() 292 int shift = ctx->p_size - req->src_len; in qat_dh_compute_value() [all …]
|
/openbmc/linux/include/drm/ttm/ |
H A D | ttm_range_manager.h | 39 unsigned long p_size); 44 unsigned long p_size) in ttm_range_man_init() argument 47 return ttm_range_man_init_nocheck(bdev, type, use_tt, p_size); in ttm_range_man_init()
|
/openbmc/u-boot/arch/arm/mach-keystone/ |
H A D | mon.c | 104 void board_fit_image_post_process(const void *fit, int node, void **p_image, size_t *p_size) in board_fit_image_post_process() argument 125 *p_size -= KS2_HS_SEC_HEADER_LEN; in board_fit_image_post_process() 126 memcpy(image, image + KS2_HS_SEC_HEADER_LEN, *p_size); in board_fit_image_post_process()
|
/openbmc/linux/block/partitions/ |
H A D | karma.c | 28 __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 D | osf.c | 46 __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 D | msdos.c | 341 __le32 p_size; /* number of sectors in partition */ member 385 bsd_size = le32_to_cpu(p->p_size); in parse_bsd()
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | cpu.c | 607 phys_size_t p_size = min(gd->ram_size, CONFIG_MAX_MEM_MAPPED); in arch_memory_test_advance() local 612 test_cap = p_size; in arch_memory_test_advance() 618 p_size = min(test_cap - p_addr, CONFIG_MAX_MEM_MAPPED); in arch_memory_test_advance() 619 if (reset_tlb(p_addr, p_size, phys_offset) == -1) in arch_memory_test_advance() 622 *size = (u32) p_size; in arch_memory_test_advance() 635 phys_size_t p_size = min(gd->ram_size, CONFIG_MAX_MEM_MAPPED); in arch_memory_test_prepare() local 638 *size = (u32) p_size; /* CONFIG_MAX_MEM_MAPPED < 4G */ in arch_memory_test_prepare()
|
/openbmc/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_range_manager.c | 180 unsigned long p_size) in ttm_range_man_init_nocheck() argument 194 ttm_resource_manager_init(man, bdev, p_size); in ttm_range_man_init_nocheck() 196 drm_mm_init(&rman->mm, 0, p_size); in ttm_range_man_init_nocheck()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_cxt.c | 286 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() 1125 clients[ILT_CLI_CDUC].p_size.reg = ILT_CFG_REG(CDUC, P_SIZE); in qed_cxt_mngr_alloc() 1129 clients[ILT_CLI_QM].p_size.reg = ILT_CFG_REG(QM, P_SIZE); in qed_cxt_mngr_alloc() 1133 clients[ILT_CLI_TM].p_size.reg = ILT_CFG_REG(TM, P_SIZE); in qed_cxt_mngr_alloc() 1137 clients[ILT_CLI_SRC].p_size.reg = ILT_CFG_REG(SRC, P_SIZE); in qed_cxt_mngr_alloc() [all …]
|
H A D | qed_cxt.h | 285 struct ilt_cfg_pair p_size; member
|
/openbmc/linux/arch/x86/kernel/cpu/microcode/ |
H A D | amd.c | 359 u32 p_type, p_size; in parse_container() 369 p_size = hdr[1]; in parse_container() 377 if (p_size < sizeof(struct microcode_header_amd)) { in parse_container() 378 pr_debug("Patch of size %u too short.\n", p_size); in parse_container() 382 *sh_psize = p_size; in parse_container() 195 u32 p_type, p_size; __verify_patch_section() local
|
/openbmc/linux/include/crypto/ |
H A D | dh.h | 37 unsigned int p_size; member
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | omap_sec_common.h | 27 int secure_boot_verify_image(void **p_image, size_t *p_size);
|
/openbmc/u-boot/arch/arm/mach-aspeed/ast2600/ |
H A D | spl.c | 86 void board_fit_image_post_process(const void *fit, int node, void **p_image, size_t *p_size) in board_fit_image_post_process() argument
|
/openbmc/qemu/scripts/ |
H A D | dump-guest-memory.py | 159 def add_segment(self, p_type, p_paddr, p_size): argument 166 phdr.p_filesz = p_size 167 phdr.p_memsz = p_size
|
/openbmc/linux/arch/alpha/boot/tools/ |
H A D | mkbb.c | 60 u32 p_size; member
|
/openbmc/u-boot/board/ti/am43xx/ |
H A D | board.c | 993 void board_fit_image_post_process(const void *fit, int node, void **p_image, size_t *p_size) in board_fit_image_post_process() argument 995 secure_boot_verify_image(p_image, p_size); in board_fit_image_post_process()
|
/openbmc/u-boot/board/ti/am335x/ |
H A D | board.c | 1052 void board_fit_image_post_process(const void *fit, int node, 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()
|
/openbmc/linux/security/keys/ |
H A D | dh.c | 184 dh_inputs.p_size = dlen; in __keyctl_dh_compute()
|
/openbmc/u-boot/board/ti/am57xx/ |
H A D | board.c | 1110 void board_fit_image_post_process(const void *fit, int node, void **p_image, size_t *p_size) in board_fit_image_post_process() argument 1112 secure_boot_verify_image(p_image, p_size); in board_fit_image_post_process()
|
/openbmc/u-boot/board/ti/dra7xx/ |
H A D | evm.c | 1106 void board_fit_image_post_process(const void *fit, int node, void **p_image, size_t *p_size) in board_fit_image_post_process() argument 1108 secure_boot_verify_image(p_image, p_size); in board_fit_image_post_process()
|
/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_nl.c | 1097 sector_t p_size = device->p_size; /* partner's disk size. */ in drbd_new_dev_size() local 1106 p_size = m_size; in drbd_new_dev_size() 1109 if (p_size && m_size) { in drbd_new_dev_size() 1110 size = min_t(sector_t, p_size, m_size); in drbd_new_dev_size() 1116 if (p_size && p_size < size) in drbd_new_dev_size() 1117 size = p_size; in drbd_new_dev_size() 1121 if (p_size) in drbd_new_dev_size() 1122 size = p_size; in drbd_new_dev_size()
|