/openbmc/linux/crypto/ |
H A D | xcbc.c | 56 u8 *consts = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_setkey() 77 u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs; in crypto_xcbc_digest_init() 94 u8 *odds = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_update() 140 u8 *consts = PTR_ALIGN(&tctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_final() 141 u8 *odds = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_final()
|
H A D | cmac.c | 56 __be64 *consts = PTR_ALIGN((void *)ctx->ctx, in crypto_cmac_digest_setkey() 110 u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs; in crypto_cmac_digest_init() 127 u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); in crypto_cmac_digest_update() 173 u8 *consts = PTR_ALIGN((void *)tctx->ctx, in crypto_cmac_digest_final() 175 u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); in crypto_cmac_digest_final()
|
H A D | ctr.c | 35 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_ctr_crypt_final() 83 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_ctr_crypt_inplace() 197 (void *)PTR_ALIGN((u8 *)skcipher_request_ctx(req), align + 1); in crypto_rfc3686_crypt()
|
H A D | authencesn.c | 93 u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_genicv_tail() 125 u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_genicv() 227 u8 *ohash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_decrypt_tail() 275 u8 *ohash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_decrypt()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | unwind_guess.c | 42 state->sp = PTR_ALIGN(info->next_sp, sizeof(long)); in unwind_next_frame() 57 state->sp = PTR_ALIGN(first_frame, sizeof(long)); in __unwind_start()
|
H A D | unwind_frame.c | 48 for (sp = PTR_ALIGN(state->orig_sp, sizeof(long)); sp; in unwind_dump() 49 sp = PTR_ALIGN(stack_info.next_sp, sizeof(long))) { in unwind_dump()
|
/openbmc/linux/lib/ |
H A D | earlycpio.c | 111 dptr = PTR_ALIGN(p + ch[C_NAMESIZE], 4); in find_cpio_data() 112 nptr = PTR_ALIGN(dptr + ch[C_FILESIZE], 4); in find_cpio_data()
|
/openbmc/linux/arch/powerpc/crypto/ |
H A D | aes-gcm-p10-glue.c | 145 unsigned char *aclen = PTR_ALIGN((void *)len_ac, PPC_ALIGN); in finish_tag() 206 struct gcm_ctx *gctx = PTR_ALIGN((void *)databuf, PPC_ALIGN); in p10_aes_gcm_crypt() 208 struct Hash_ctx *hash = PTR_ALIGN((void *)hashbuf, PPC_ALIGN); in p10_aes_gcm_crypt() 216 unsigned char *iv = PTR_ALIGN((void *)ivbuf, PPC_ALIGN); in p10_aes_gcm_crypt()
|
/openbmc/linux/drivers/crypto/ |
H A D | padlock-sha.c | 80 char *result = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in padlock_sha1_finup() 141 char *result = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in padlock_sha256_finup() 289 u8 *dst = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in padlock_sha1_update_nano() 373 u8 *dst = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in padlock_sha256_update_nano()
|
/openbmc/linux/include/linux/ |
H A D | align.h | 11 #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) macro
|
/openbmc/linux/arch/x86/platform/efi/ |
H A D | efi_64.c | 610 efi_guid_t *vnd = PTR_ALIGN((efi_guid_t *)buf, sizeof(*vnd)); in efi_thunk_get_variable() 642 efi_guid_t *vnd = PTR_ALIGN((efi_guid_t *)buf, sizeof(*vnd)); in efi_thunk_set_variable() 672 efi_guid_t *vnd = PTR_ALIGN((efi_guid_t *)buf, sizeof(*vnd)); in efi_thunk_set_variable_nonblocking() 703 efi_guid_t *vnd = PTR_ALIGN((efi_guid_t *)buf, sizeof(*vnd)); in efi_thunk_get_next_variable()
|
/openbmc/linux/drivers/iio/common/st_sensors/ |
H A D | st_sensors_buffer.c | 36 buf = PTR_ALIGN(buf, storage_bytes); in st_sensors_get_buffer_element()
|
/openbmc/linux/drivers/net/ethernet/amd/pds_core/ |
H A D | core.c | 247 q_base = PTR_ALIGN(qcq->q_base, PDS_PAGE_SIZE); in pdsc_qcq_alloc() 251 cq_base = PTR_ALIGN(q_base + in pdsc_qcq_alloc() 268 q_base = PTR_ALIGN(qcq->q_base, PDS_PAGE_SIZE); in pdsc_qcq_alloc() 281 cq_base = PTR_ALIGN(qcq->cq_base, PDS_PAGE_SIZE); in pdsc_qcq_alloc()
|
/openbmc/linux/arch/x86/crypto/ |
H A D | aesni-intel_glue.c | 208 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in aesni_rfc4106_gcm_ctx_get() 218 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in generic_gcmaes_ctx_get() 675 struct gcm_context_data *data = PTR_ALIGN((void *)databuf, AESNI_ALIGN); in gcmaes_crypt_by_sg() 831 u8 *iv = PTR_ALIGN(&ivbuf[0], AESNI_ALIGN); in helper_rfc4106_encrypt() 859 u8 *iv = PTR_ALIGN(&ivbuf[0], AESNI_ALIGN); in helper_rfc4106_decrypt() 1160 u8 *iv = PTR_ALIGN(&ivbuf[0], AESNI_ALIGN); in generic_gcmaes_encrypt() 1177 u8 *iv = PTR_ALIGN(&ivbuf[0], AESNI_ALIGN); in generic_gcmaes_decrypt()
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptlf.h | 164 iq->vaddr = PTR_ALIGN(iq->vaddr, OTX2_CPT_INST_Q_ALIGNMENT); in otx2_cpt_alloc_instruction_queues() 165 iq->dma_addr = PTR_ALIGN(iq->dma_addr, in otx2_cpt_alloc_instruction_queues()
|
/openbmc/linux/include/crypto/internal/ |
H A D | kpp.h | 60 return PTR_ALIGN(kpp_request_ctx(req), align); in kpp_request_ctx_dma()
|
H A D | akcipher.h | 43 return PTR_ALIGN(akcipher_request_ctx(req), align); in akcipher_request_ctx_dma()
|
H A D | aead.h | 80 return PTR_ALIGN(aead_request_ctx(req), align); in aead_request_ctx_dma()
|
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_common.h | 73 p = PTR_ALIGN(pos, 8); in chcr_copy_to_txd()
|
/openbmc/linux/drivers/char/hw_random/ |
H A D | via-rng.c | 91 u32 *via_rng_datum = (u32 *)PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in via_rng_data_present()
|
/openbmc/linux/drivers/misc/ |
H A D | pci_endpoint_test.c | 410 src_phys_addr = PTR_ALIGN(orig_src_phys_addr, alignment); in pci_endpoint_test_copy() 442 dst_phys_addr = PTR_ALIGN(orig_dst_phys_addr, alignment); in pci_endpoint_test_copy() 547 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_write() 645 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_read()
|
/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A D | dbring.c | 30 ptr_aligned = PTR_ALIGN(ptr_unaligned, ring->buf_align); in ath12k_dbring_bufs_replenish() 318 handler_data.data = PTR_ALIGN(vaddr_unalign, in ath12k_dbring_buffer_release_event()
|
/openbmc/linux/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 530 h_req = PTR_ALIGN(tmp, hpre_align_sz()); in hpre_msg_request_set() 544 h_req = PTR_ALIGN(tmp, hpre_align_sz()); in hpre_msg_request_set() 595 struct hpre_asym_request *hpre_req = PTR_ALIGN(tmp, hpre_align_sz()); in hpre_dh_compute_value() 798 struct hpre_asym_request *hpre_req = PTR_ALIGN(tmp, hpre_align_sz()); in hpre_rsa_enc() 846 struct hpre_asym_request *hpre_req = PTR_ALIGN(tmp, hpre_align_sz()); in hpre_rsa_dec() 1509 h_req = PTR_ALIGN(tmp, hpre_align_sz()); in hpre_ecdh_msg_request_set() 1590 struct hpre_asym_request *hpre_req = PTR_ALIGN(tmp, hpre_align_sz()); in hpre_ecdh_compute_value() 1821 h_req = PTR_ALIGN(tmp, hpre_align_sz()); in hpre_curve25519_msg_request_set() 1942 struct hpre_asym_request *hpre_req = PTR_ALIGN(tmp, hpre_align_sz()); in hpre_curve25519_compute_value()
|
/openbmc/linux/arch/s390/hypfs/ |
H A D | hypfs_diag.c | 172 d204 = PTR_ALIGN(base + sizeof(d204->hdr), PAGE_SIZE) - sizeof(d204->hdr); in dbfs_d204_create()
|
/openbmc/linux/drivers/crypto/stm32/ |
H A D | stm32-crc32.c | 181 if (d8 != PTR_ALIGN(d8, sizeof(u32))) { in burst_update() 185 while (d8 != PTR_ALIGN(d8, sizeof(u32)) && length) { in burst_update()
|