Home
last modified time | relevance | path

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

/linux-4.1.27/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()
Deseqiv.c47 memcpy(req->giv, PTR_ALIGN((u8 *)reqctx->tail, in eseqiv_complete2()
102 giv = PTR_ALIGN((u8 *)reqctx->tail, in eseqiv_givencrypt()
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.c90 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); in crypto_gcm_reqctx()
904 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt()
1066 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); in crypto_rfc4543_reqctx()
1133 u8 *iv = PTR_ALIGN((u8 *)(rctx + 1) + crypto_aead_reqsize(ctx->child), in crypto_rfc4543_crypt()
Dccm.c55 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); in crypto_ccm_reqctx()
684 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.1.27/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.c2168 str = PTR_ALIGN(str, sizeof(u32)); \ in vbin_printf()
2176 str = PTR_ALIGN(str, sizeof(type)); \ in vbin_printf()
2255 return (u32 *)(PTR_ALIGN(str, sizeof(u32))) - bin_buf; in vbin_printf()
2298 args = PTR_ALIGN(args, sizeof(u32)); \ in bstr_printf()
2302 args = PTR_ALIGN(args, sizeof(type)); \ in bstr_printf()
Dbitmap.c469 ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE - 1, PAGE_SIZE) - buf - 2; in bitmap_print_to_pagebuf()
/linux-4.1.27/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.1.27/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()
104 req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead), in esp_tmp_givreq()
114 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.1.27/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()
76 req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead), in esp_tmp_givreq()
86 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.1.27/arch/mips/lantiq/xway/
Dxrx200_phy_fw.c67 fw_addr = PTR_ALIGN(fw_addr, XRX200_GPHY_FW_ALIGN); in xway_gphy_load()
/linux-4.1.27/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.1.27/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.1.27/arch/s390/kernel/
Dos_info.c91 buf_align = PTR_ALIGN(buf, align); in os_info_old_alloc()
/linux-4.1.27/arch/x86/crypto/
Daesni-intel_glue.c288 PTR_ALIGN((u8 *) in aesni_rfc4106_gcm_ctx_get()
797 PTR_ALIGN((u8 *)crypto_tfm_ctx(tfm), AESNI_ALIGN); in rfc4106_init()
819 PTR_ALIGN((u8 *)crypto_tfm_ctx(tfm), AESNI_ALIGN); in rfc4106_exit()
926 new_key_align = PTR_ALIGN(new_key_mem, AESNI_ALIGN); in common_rfc4106_set_key()
1008 u8* iv = (u8 *) PTR_ALIGN((u8 *)iv_tab, AESNI_ALIGN); in __driver_rfc4106_encrypt()
1094 u8 *iv = (u8 *) PTR_ALIGN((u8 *)iv_and_authTag, AESNI_ALIGN); in __driver_rfc4106_decrypt()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dce.c935 src_ring->base_addr_owner_space = PTR_ALIGN( in ath10k_ce_alloc_src_ring()
959 src_ring->shadow_base = PTR_ALIGN( in ath10k_ce_alloc_src_ring()
1009 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.1.27/drivers/net/ethernet/nxp/
Dlpc_eth.c568 tbuff = PTR_ALIGN(pldat->dma_buff_base_v, 16); in __lpc_txrx_desc_setup()
577 tbuff = PTR_ALIGN(tbuff, 16); in __lpc_txrx_desc_setup()
585 tbuff = PTR_ALIGN(tbuff, 16); in __lpc_txrx_desc_setup()
589 tbuff = PTR_ALIGN(tbuff, 16); in __lpc_txrx_desc_setup()
/linux-4.1.27/include/crypto/
Dalgapi.h211 return PTR_ALIGN(crypto_tfm_ctx(tfm), in crypto_tfm_ctx_aligned()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_security.c203 pframe = PTR_ALIGN(pframe, 4); in rtw_wep_encrypt23a()
700 pframe = PTR_ALIGN(pframe, 4); in rtw_tkip_encrypt23a()
1350 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.1.27/drivers/staging/rtl8723au/hal/
Drtl8723au_xmit.c346 mem_addr = PTR_ALIGN(mem_addr, 4); in rtw_dump_xframe()
/linux-4.1.27/drivers/usb/host/
Dehci-tegra.c342 temp = PTR_ALIGN(kmalloc_ptr + 1, TEGRA_USB_DMA_ALIGN) - 1; in alloc_dma_aligned_buffer()
/linux-4.1.27/arch/arm/common/
DbL_switcher.c129 stack = PTR_ALIGN(stack, L1_CACHE_BYTES); in bL_switchpoint()
/linux-4.1.27/drivers/virt/
Dfsl_hypervisor.c243 sg_list = PTR_ALIGN(sg_list_unaligned, sizeof(struct fh_sg_list)); in ioctl_memcpy()
/linux-4.1.27/include/linux/
Dkernel.h51 #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) macro
/linux-4.1.27/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.1.27/drivers/of/
Dfdt.c156 *mem = PTR_ALIGN(*mem, align); in unflatten_dt_alloc()
/linux-4.1.27/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.1.27/drivers/usb/dwc3/
Dcore.c750 dwc = PTR_ALIGN(mem, DWC3_ALIGN_MASK + 1); in dwc3_probe()
/linux-4.1.27/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.1.27/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.1.27/drivers/staging/netlogic/
Dxlr_net.c437 spill = PTR_ALIGN(spill, SMP_CACHE_BYTES); in xlr_config_spill()
/linux-4.1.27/mm/
Dkmemleak.c1157 unsigned long *start = PTR_ALIGN(_start, BYTES_PER_POINTER); in scan_block()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dmvneta.c2241 PTR_ALIGN(rxq->descs, MVNETA_CPU_D_CACHE_LINE_SIZE)); in mvneta_rxq_init()
2305 PTR_ALIGN(txq->descs, MVNETA_CPU_D_CACHE_LINE_SIZE)); in mvneta_txq_init()
Dmvpp2.c4480 PTR_ALIGN(aggr_txq->descs, MVPP2_CPU_D_CACHE_LINE_SIZE)); in mvpp2_aggr_txq_init()
4512 PTR_ALIGN(rxq->descs, MVPP2_CPU_D_CACHE_LINE_SIZE)); in mvpp2_rxq_init()
4603 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.1.27/drivers/net/wireless/ath/wil6210/
Dtxrx.c308 void *pa = PTR_ALIGN(p, 8); in wil_rx_add_radiotap_header()
/linux-4.1.27/drivers/spi/
Dspi-pxa2xx.c1366 drv_data->null_dma_buf = (u32 *)PTR_ALIGN(&drv_data[1], DMA_ALIGNMENT); in pxa2xx_spi_probe()
/linux-4.1.27/drivers/s390/block/
Ddasd_3990_erp.c2340 erp->cpaddr = PTR_ALIGN(erp->data, 64); in dasd_3990_erp_add_erp()
/linux-4.1.27/drivers/net/ethernet/toshiba/
Dps3_gelic_net.c1557 card = PTR_ALIGN(p, GELIC_ALIGN); in gelic_alloc_card_net()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c1352 cmd->cmd_buf = PTR_ALIGN(cmd->cmd_alloc_buf, MLX5_ADAPTER_PAGE_SIZE); in alloc_cmd_page()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmr.c794 pas = PTR_ALIGN(mr_pas, MLX5_UMR_ALIGN); in reg_umr()
/linux-4.1.27/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.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1078 p = PTR_ALIGN(pos, 8); in inline_tx_skb()
/linux-4.1.27/drivers/net/ethernet/natsemi/
Dns83820.c574 skb_reserve(skb, skb->data - PTR_ALIGN(skb->data, 16)); in rx_refill()
/linux-4.1.27/drivers/usb/musb/
Dmusb_host.c2557 temp = PTR_ALIGN(kmalloc_ptr, MUSB_USB_DMA_ALIGN); in musb_alloc_temp_buffer()
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_main.c5301 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_drv_init()
5302 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_drv_init()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1026 p = PTR_ALIGN(pos, 8); in inline_tx_skb()
/linux-4.1.27/drivers/scsi/be2iscsi/
Dbe_main.c715 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_ctrl_init()
716 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_ctrl_init()
/linux-4.1.27/net/core/
Ddev.c6820 dev = PTR_ALIGN(p, NETDEV_ALIGN); in alloc_netdev_mqs()
/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_init.c6758 phba->sli4_hba.bmbx.avirt = PTR_ALIGN(dmabuf->virt, in lpfc_create_bootstrap_mbox()