Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dfortify-string.h138 size_t p_size = __member_size(p); in strncpy() local
140 if (__compiletime_lessthan(p_size, size)) in strncpy()
142 if (p_size < size) in strncpy()
150 size_t p_size = __member_size(p); in strcat() local
152 if (p_size == SIZE_MAX) in strcat()
154 if (strlcat(p, q, p_size) >= p_size) in strcat()
162 size_t p_size = __member_size(p); in strnlen() local
169 if (maxlen >= p_size) in strnlen()
174 ret = __real_strnlen(p, maxlen < p_size ? maxlen : p_size); in strnlen()
175 if (p_size <= ret && maxlen != ret) in strnlen()
[all …]
/linux-6.1.9/crypto/
Ddh_helper.c31 return p->key_size + p->p_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()
58 ptr = dh_pack_data(ptr, end, params->p, params->p_size); in crypto_dh_encode_key()
79 ptr = dh_unpack_data(&params->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()
Ddh.c57 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
468 if (params.p_size || params.g_size) in dh_safe_prime_set_secret()
473 params.p_size = inst_ctx->safe_prime->p_size; in dh_safe_prime_set_secret()
619 .p_size = 256,
641 .p_size = 384,
671 .p_size = 512,
709 .p_size = 768,
763 .p_size = 1024,
/linux-6.1.9/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c110 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()
179 dma_unmap_single(dev, req->out.dh.r, req->ctx.dh->p_size, in qat_dh_cb()
235 if (req->dst_len < ctx->p_size) { in qat_dh_compute_value()
236 req->dst_len = ctx->p_size; in qat_dh_compute_value()
240 if (req->src_len > ctx->p_size) in qat_dh_compute_value()
247 msg->pke_hdr.cd_pars.func_id = qat_dh_fn_id(ctx->p_size, in qat_dh_compute_value()
289 if (sg_is_last(req->src) && req->src_len == ctx->p_size) { in qat_dh_compute_value()
293 int shift = ctx->p_size - req->src_len; in qat_dh_compute_value()
[all …]
/linux-6.1.9/include/drm/ttm/
Dttm_range_manager.h39 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()
/linux-6.1.9/block/partitions/
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()
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()
Dmsdos.c341 __le32 p_size; /* number of sectors in partition */ member
385 bsd_size = le32_to_cpu(p->p_size); in parse_bsd()
/linux-6.1.9/drivers/gpu/drm/ttm/
Dttm_range_manager.c180 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()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
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()
1124 clients[ILT_CLI_CDUC].p_size.reg = ILT_CFG_REG(CDUC, P_SIZE); in qed_cxt_mngr_alloc()
1128 clients[ILT_CLI_QM].p_size.reg = ILT_CFG_REG(QM, P_SIZE); in qed_cxt_mngr_alloc()
1132 clients[ILT_CLI_TM].p_size.reg = ILT_CFG_REG(TM, P_SIZE); in qed_cxt_mngr_alloc()
1136 clients[ILT_CLI_SRC].p_size.reg = ILT_CFG_REG(SRC, P_SIZE); in qed_cxt_mngr_alloc()
[all …]
Dqed_cxt.h285 struct ilt_cfg_pair p_size; member
Dqed_debug.c5019 (clients[ILT_CLI_CDUC].p_size.val + PXP_ILT_PAGE_SIZE_NUM_BITS_MIN); in qed_ilt_dump()
5021 (clients[ILT_CLI_CDUT].p_size.val + PXP_ILT_PAGE_SIZE_NUM_BITS_MIN); in qed_ilt_dump()
5604 u32 needed_buf_size_in_dwords, *p_size = &needed_buf_size_in_dwords; in qed_dbg_protection_override_dump() local
5612 p_size); in qed_dbg_protection_override_dump()
5658 u32 needed_buf_size_in_dwords, *p_size = &needed_buf_size_in_dwords; in qed_dbg_fw_asserts_dump() local
5666 p_size); in qed_dbg_fw_asserts_dump()
/linux-6.1.9/include/crypto/
Ddh.h37 unsigned int p_size; member
/linux-6.1.9/arch/x86/kernel/cpu/microcode/
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()
/linux-6.1.9/arch/alpha/boot/tools/
Dmkbb.c60 u32 p_size; member
/linux-6.1.9/security/keys/
Ddh.c200 dh_inputs.p_size = dlen; in __keyctl_dh_compute()
/linux-6.1.9/fs/btrfs/
Dtree-mod-log.c663 unsigned long p_size = sizeof(struct btrfs_key_ptr); in tree_mod_log_rewind() local
700 tm->move.nr_items * p_size); in tree_mod_log_rewind()
/linux-6.1.9/drivers/block/drbd/
Ddrbd_nl.c1097 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()
Ddrbd_receiver.c4053 sector_t p_size, p_usize, p_csize, my_usize; in receive_sizes() local
4064 p_size = be64_to_cpu(p->d_size); in receive_sizes()
4070 device->p_size = p_size; in receive_sizes()
4078 p_size, drbd_get_max_capacity(device->ldev)); in receive_sizes()
4157 sector_t new_size = p_csize ?: p_usize ?: p_size; in receive_sizes()
4163 } else if (cur_size != 0 && p_size == 0) { in receive_sizes()
Ddrbd_int.h838 sector_t p_size; /* partner's disk size */ member
Ddrbd_main.c2020 device->p_size = in drbd_device_cleanup()
/linux-6.1.9/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c648 if (params->p_size > HPRE_DH_MAX_P_SZ) in hpre_dh_set_params()
651 if (hpre_is_dh_params_length_valid(params->p_size << in hpre_dh_set_params()
655 sz = ctx->key_sz = params->p_size; in hpre_dh_set_params()