Home
last modified time | relevance | path

Searched refs:PTR_ALIGN (Results 1 – 77 of 77) sorted by relevance

/linux-4.4.14/crypto/
Dxcbc.c67 u8 *consts = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_setkey()
87 u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs; in crypto_xcbc_digest_init()
104 u8 *odds = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_update()
150 u8 *consts = PTR_ALIGN(&tctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_final()
151 u8 *odds = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_final()
Dcmac.c60 __be64 *consts = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); in crypto_cmac_digest_setkey()
113 u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs; in crypto_cmac_digest_init()
130 u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); in crypto_cmac_digest_update()
176 u8 *consts = PTR_ALIGN((void *)tctx->ctx, alignmask + 1); in crypto_cmac_digest_final()
177 u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); in crypto_cmac_digest_final()
Dkeywrap.c149 PTR_ALIGN(blockbuf + 0, alignmask + 1); in crypto_kw_decrypt()
176 u8 *tbe = PTR_ALIGN(tbe_buffer + 0, alignmask + 1); in crypto_kw_decrypt()
234 PTR_ALIGN(blockbuf + 0, alignmask + 1); in crypto_kw_encrypt()
264 u8 *tbe = PTR_ALIGN(tbe_buffer + 0, alignmask + 1); in crypto_kw_encrypt()
Deseqiv.c47 memcpy(req->giv, PTR_ALIGN((u8 *)reqctx->tail, in eseqiv_complete2()
102 giv = PTR_ALIGN((u8 *)reqctx->tail, in eseqiv_givencrypt()
Dauthencesn.c107 u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_genicv_tail()
140 u8 *hash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_genicv()
240 u8 *ohash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_decrypt_tail()
284 u8 *ohash = PTR_ALIGN((u8 *)areq_ctx->tail, in crypto_authenc_esn_decrypt()
Dctr.c62 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_ctr_crypt_final()
111 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); in crypto_ctr_crypt_inplace()
285 (void *)PTR_ALIGN((u8 *)ablkcipher_request_ctx(req), align + 1); in crypto_rfc3686_crypt()
Dshash.c84 u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); in shash_update_unaligned()
120 u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); in shash_final_unaligned()
Dgcm.c98 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); in crypto_gcm_reqctx()
831 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt()
1056 u8 *iv = PTR_ALIGN((u8 *)(rctx + 1) + crypto_aead_reqsize(ctx->child), in crypto_rfc4543_crypt()
Dccm.c61 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); in crypto_ccm_reqctx()
713 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt()
Dahash.c279 req->result = PTR_ALIGN((u8 *)priv->ubuf, alignmask + 1); in ahash_save_req()
/linux-4.4.14/lib/
Dearlycpio.c119 dptr = PTR_ALIGN(p + ch[C_NAMESIZE], 4); in find_cpio_data()
120 nptr = PTR_ALIGN(dptr + ch[C_FILESIZE], 4); in find_cpio_data()
Dvsprintf.c2152 str = PTR_ALIGN(str, sizeof(u32)); \ in vbin_printf()
2160 str = PTR_ALIGN(str, sizeof(type)); \ in vbin_printf()
2241 return (u32 *)(PTR_ALIGN(str, sizeof(u32))) - bin_buf; in vbin_printf()
2284 args = PTR_ALIGN(args, sizeof(u32)); \ in bstr_printf()
2288 args = PTR_ALIGN(args, sizeof(type)); \ in bstr_printf()
Dbitmap.c474 ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE - 1, PAGE_SIZE) - buf; in bitmap_print_to_pagebuf()
/linux-4.4.14/drivers/crypto/
Dpadlock-sha.c87 char *result = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in padlock_sha1_finup()
153 char *result = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in padlock_sha256_finup()
314 u8 *dst = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in padlock_sha1_update_nano()
403 u8 *dst = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in padlock_sha256_update_nano()
Dpadlock-aes.c215 u8 *tmp = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in ecb_crypt_copy()
229 u8 *tmp = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in cbc_crypt_copy()
Dmxs-dcp.c954 sdcp->coh = PTR_ALIGN(sdcp->coh, DCP_ALIGNMENT); in mxs_dcp_probe()
/linux-4.4.14/arch/mips/lantiq/xway/
Dxrx200_phy_fw.c67 fw_addr = PTR_ALIGN(fw_addr, XRX200_GPHY_FW_ALIGN); in xway_gphy_load()
/linux-4.4.14/drivers/char/hw_random/
Dvia-rng.c95 u32 *via_rng_datum = (u32 *)PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); in via_rng_data_present()
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
Dxmit_linux.c36 pxmitbuf->pbuf = PTR_ALIGN(pxmitbuf->pallocated_buf, XMITBUF_ALIGN_SZ); in rtw_os_xmit_resource_alloc23a()
/linux-4.4.14/arch/s390/kernel/
Dos_info.c91 buf_align = PTR_ALIGN(buf, align); in os_info_old_alloc()
/linux-4.4.14/net/ipv6/
Desp6.c89 return PTR_ALIGN((__be32 *)tmp, __alignof__(__be32)); in esp_tmp_seqhi()
95 PTR_ALIGN((u8 *)tmp + seqhilen, in esp_tmp_iv()
103 req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead), in esp_tmp_req()
Dah6.c92 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv()
100 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req()
/linux-4.4.14/drivers/soc/qcom/
Dsmd-rpm.c190 buf = PTR_ALIGN(buf + 2 * sizeof(u32) + msg_length, 4); in qcom_smd_rpm_callback()
/linux-4.4.14/net/ipv4/
Desp4.c62 return PTR_ALIGN((__be32 *)tmp, __alignof__(__be32)); in esp_tmp_seqhi()
67 PTR_ALIGN((u8 *)tmp + seqhilen, in esp_tmp_iv()
75 req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead), in esp_tmp_req()
Dah4.c50 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv()
58 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c120 struct qat_rsa_request *req = PTR_ALIGN(akcipher_request_ctx(areq), 64); in qat_rsa_cb()
247 PTR_ALIGN(akcipher_request_ctx(req), 64); in qat_rsa_enc()
378 PTR_ALIGN(akcipher_request_ctx(req), 64); in qat_rsa_dec()
/linux-4.4.14/drivers/net/ethernet/nxp/
Dlpc_eth.c567 tbuff = PTR_ALIGN(pldat->dma_buff_base_v, 16); in __lpc_txrx_desc_setup()
576 tbuff = PTR_ALIGN(tbuff, 16); in __lpc_txrx_desc_setup()
584 tbuff = PTR_ALIGN(tbuff, 16); in __lpc_txrx_desc_setup()
588 tbuff = PTR_ALIGN(tbuff, 16); in __lpc_txrx_desc_setup()
/linux-4.4.14/crypto/asymmetric_keys/
Dx509_public_key.c205 desc = PTR_ALIGN(digest + digest_size, __alignof__(*desc)); in x509_get_sig_params()
Dpkcs7_verify.c57 desc = PTR_ALIGN(digest + digest_size, __alignof__(*desc)); in pkcs7_digest()
/linux-4.4.14/include/crypto/
Dalgapi.h214 return PTR_ALIGN(crypto_tfm_ctx(tfm), in crypto_tfm_ctx_aligned()
/linux-4.4.14/drivers/crypto/nx/
Dnx-842-pseries.c326 workmem = PTR_ALIGN(wmem, WORKMEM_ALIGN); in nx842_pseries_compress()
457 workmem = PTR_ALIGN(wmem, WORKMEM_ALIGN); in nx842_pseries_decompress()
Dnx-842-powernv.c399 wmem = PTR_ALIGN(workmem, WORKMEM_ALIGN); in nx842_powernv_function()
Dnx-842.c207 dskip = (int)(PTR_ALIGN(dst, c->alignment) - dst); in compress()
/linux-4.4.14/drivers/staging/rtl8723au/core/
Drtw_security.c205 pframe = PTR_ALIGN(pframe, 4); in rtw_wep_encrypt23a()
701 pframe = PTR_ALIGN(pframe, 4); in rtw_tkip_encrypt23a()
1345 pframe = PTR_ALIGN(pframe, 4); in rtw_aes_encrypt23a()
Drtw_xmit.c723 payload = PTR_ALIGN(payload, 4); in xmitframe_addmic()
1221 mem_start = PTR_ALIGN(pframe, 4) + hw_hdr_offset; in rtw_xmitframe_coalesce23a()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dce.c917 src_ring->base_addr_owner_space = PTR_ALIGN( in ath10k_ce_alloc_src_ring()
970 dest_ring->base_addr_owner_space = PTR_ALIGN( in ath10k_ce_alloc_dest_ring()
Dhtt_rx.c111 PTR_ALIGN(skb->data, HTT_RX_DESC_ALIGN) - in __ath10k_htt_rx_ring_fill_n()
/linux-4.4.14/drivers/staging/rtl8723au/hal/
Drtl8723au_xmit.c346 mem_addr = PTR_ALIGN(mem_addr, 4); in rtw_dump_xframe()
/linux-4.4.14/drivers/usb/host/
Dehci-tegra.c348 temp = PTR_ALIGN(kmalloc_ptr + 1, TEGRA_USB_DMA_ALIGN) - 1; in alloc_dma_aligned_buffer()
/linux-4.4.14/arch/arm/common/
DbL_switcher.c129 stack = PTR_ALIGN(stack, L1_CACHE_BYTES); in bL_switchpoint()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dmr.c289 mr->pages = PTR_ALIGN(mr->pages_alloc, MLX4_MR_PAGES_ALIGN); in mlx4_alloc_priv_pages()
/linux-4.4.14/include/linux/
Dkernel.h51 #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) macro
/linux-4.4.14/drivers/virt/
Dfsl_hypervisor.c243 sg_list = PTR_ALIGN(sg_list_unaligned, sizeof(struct fh_sg_list)); in ioctl_memcpy()
/linux-4.4.14/drivers/mtd/nand/
Dmxc_nand.c291 if (PTR_ALIGN(trg, 4) == trg && IS_ALIGNED(size, 4)) { in memcpy16_fromio()
313 if (PTR_ALIGN(src, 4) == src && IS_ALIGNED(size, 4)) { in memcpy16_toio()
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_init.c69 mem_desc->virt_addr = PTR_ALIGN(mem_desc->esas2r_data, align); in esas2r_initmem_alloc()
952 high = PTR_ALIGN(high, 8); in esas2r_init_adapter_struct()
/linux-4.4.14/drivers/infiniband/hw/mlx5/
Dmr.c803 pas = PTR_ALIGN(mr_pas, MLX5_UMR_ALIGN); in reg_umr()
1184 mr->descs = PTR_ALIGN(mr->descs_alloc, MLX5_UMR_ALIGN); in mlx5_alloc_priv_descs()
/linux-4.4.14/drivers/of/
Dfdt.c157 *mem = PTR_ALIGN(*mem, align); in unflatten_dt_alloc()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dtxrx.c908 skb->data = PTR_ALIGN(skb->data - 4, 4); in ath6kl_rx_refill()
934 skb->data = PTR_ALIGN(skb->data - 4, 4); in ath6kl_refill_amsdu_rxbufs()
Dhtc_mbox.c353 align_addr = PTR_ALIGN(*buf - 4, 4); in ath6kl_htc_tx_buf_align()
/linux-4.4.14/drivers/net/ethernet/renesas/
Dravb_main.c1330 buffer = PTR_ALIGN(priv->tx_align[q], DPTR_ALIGN) + in ravb_start_xmit()
1332 len = PTR_ALIGN(skb->data, DPTR_ALIGN) - skb->data; in ravb_start_xmit()
Dsh_eth.c2407 sh_eth_soft_swap(PTR_ALIGN(skb->data, 4), skb->len + 2); in sh_eth_start_xmit()
/linux-4.4.14/drivers/atm/
Dnicstar.c538 card->tsq.base = PTR_ALIGN(card->tsq.org, NS_TSQ_ALIGNMENT); in ns_init_card()
557 card->rsq.base = PTR_ALIGN(card->rsq.org, NS_RSQ_ALIGNMENT); in ns_init_card()
882 scq->base = PTR_ALIGN(scq->org, size); in get_scq()
/linux-4.4.14/drivers/dma/
Dqcom_bam_dma.c888 struct bam_desc_hw *fifo = PTR_ALIGN(bchan->fifo_virt, in bam_start_dma()
Dste_dma40.c653 d40d->lli_log.src = PTR_ALIGN(base, align); in d40_pool_lli_alloc()
658 d40d->lli_phy.src = PTR_ALIGN(base, align); in d40_pool_lli_alloc()
3468 base->lcla_pool.base = PTR_ALIGN(base->lcla_pool.base_unaligned, in d40_lcla_allocate()
/linux-4.4.14/drivers/usb/dwc3/
Dcore.c828 dwc = PTR_ALIGN(mem, DWC3_ALIGN_MASK + 1); in dwc3_probe()
/linux-4.4.14/drivers/staging/netlogic/
Dxlr_net.c437 spill = PTR_ALIGN(spill, SMP_CACHE_BYTES); in xlr_config_spill()
/linux-4.4.14/mm/
Dkmemleak.c1170 unsigned long *start = PTR_ALIGN(_start, BYTES_PER_POINTER); in scan_block()
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dps3_gelic_net.c1557 card = PTR_ALIGN(p, GELIC_ALIGN); in gelic_alloc_card_net()
/linux-4.4.14/drivers/s390/block/
Ddasd_3990_erp.c2340 erp->cpaddr = PTR_ALIGN(erp->data, 64); in dasd_3990_erp_add_erp()
/linux-4.4.14/drivers/net/ethernet/marvell/
Dmvneta.c2261 PTR_ALIGN(rxq->descs, MVNETA_CPU_D_CACHE_LINE_SIZE)); in mvneta_rxq_init()
2325 PTR_ALIGN(txq->descs, MVNETA_CPU_D_CACHE_LINE_SIZE)); in mvneta_txq_init()
Dmvpp2.c4498 PTR_ALIGN(aggr_txq->descs, MVPP2_CPU_D_CACHE_LINE_SIZE)); in mvpp2_aggr_txq_init()
4530 PTR_ALIGN(rxq->descs, MVPP2_CPU_D_CACHE_LINE_SIZE)); in mvpp2_rxq_init()
4621 PTR_ALIGN(txq->descs, MVPP2_CPU_D_CACHE_LINE_SIZE)); in mvpp2_txq_init()
Dsky2.c1473 start = PTR_ALIGN(skb->data, 8); in sky2_rx_alloc()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c1529 cmd->cmd_buf = PTR_ALIGN(cmd->cmd_alloc_buf, MLX5_ADAPTER_PAGE_SIZE); in alloc_cmd_page()
/linux-4.4.14/net/mpls/
Daf_mpls.c64 u8 *nh0_via = PTR_ALIGN((u8 *)&rt->rt_nh[rt->rt_nhn], VIA_ALEN_ALIGN); in __mpls_nh_via()
/linux-4.4.14/arch/x86/crypto/
Daesni-intel_glue.c290 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in aesni_rfc4106_gcm_ctx_get()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dsb1250-mac.c762 unsigned char *newaddr = PTR_ALIGN(addr, power2); in sbdma_align_skb()
Dbnx2.h6633 return (struct l2_fhdr *)(PTR_ALIGN(data, BNX2_RX_ALIGN) + NET_SKB_PAD); in get_l2_fhdr()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dtxrx.c308 void *pa = PTR_ALIGN(p, 8); in wil_rx_add_radiotap_header()
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_dma.c1616 temp = PTR_ALIGN(temp, L1_CACHE_BYTES); in scif_rma_list_dma_copy_wrapper()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1076 p = PTR_ALIGN(pos, 8); in inline_tx_skb()
/linux-4.4.14/drivers/net/ethernet/natsemi/
Dns83820.c574 skb_reserve(skb, skb->data - PTR_ALIGN(skb->data, 16)); in rx_refill()
/linux-4.4.14/drivers/usb/musb/
Dmusb_host.c2681 temp = PTR_ALIGN(kmalloc_ptr, MUSB_USB_DMA_ALIGN); in musb_alloc_temp_buffer()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_main.c5623 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_drv_init()
5624 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_drv_init()
/linux-4.4.14/drivers/scsi/be2iscsi/
Dbe_main.c727 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_ctrl_init()
728 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_ctrl_init()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1027 p = PTR_ALIGN(pos, 8); in inline_tx_skb()
/linux-4.4.14/net/core/
Ddev.c7099 dev = PTR_ALIGN(p, NETDEV_ALIGN); in alloc_netdev_mqs()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_init.c6777 phba->sli4_hba.bmbx.avirt = PTR_ALIGN(dmabuf->virt, in lpfc_create_bootstrap_mbox()