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

/linux-4.1.27/crypto/
H A Dcmac.c60 __be64 *consts = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); crypto_cmac_digest_setkey()
113 u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs; crypto_cmac_digest_init()
130 u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); crypto_cmac_digest_update()
176 u8 *consts = PTR_ALIGN((void *)tctx->ctx, alignmask + 1); crypto_cmac_digest_final()
177 u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); crypto_cmac_digest_final()
H A Dxcbc.c67 u8 *consts = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); crypto_xcbc_digest_setkey()
87 u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs; crypto_xcbc_digest_init()
104 u8 *odds = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); crypto_xcbc_digest_update()
150 u8 *consts = PTR_ALIGN(&tctx->ctx[0], alignmask + 1); crypto_xcbc_digest_final()
151 u8 *odds = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); crypto_xcbc_digest_final()
H A Dctr.c62 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); crypto_ctr_crypt_final()
111 u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); crypto_ctr_crypt_inplace()
285 (void *)PTR_ALIGN((u8 *)ablkcipher_request_ctx(req), align + 1); crypto_rfc3686_crypt()
H A Deseqiv.c47 memcpy(req->giv, PTR_ALIGN((u8 *)reqctx->tail, eseqiv_complete2()
102 giv = PTR_ALIGN((u8 *)reqctx->tail, eseqiv_givencrypt()
H A Dgcm.c90 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); crypto_gcm_reqctx()
904 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), crypto_rfc4106_crypt()
1066 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); crypto_rfc4543_reqctx()
1133 u8 *iv = PTR_ALIGN((u8 *)(rctx + 1) + crypto_aead_reqsize(ctx->child), crypto_rfc4543_crypt()
H A Dccm.c55 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); crypto_ccm_reqctx()
684 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), crypto_rfc4309_crypt()
H A Dshash.c84 u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); shash_update_unaligned()
120 u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); shash_final_unaligned()
H A Dahash.c279 req->result = PTR_ALIGN((u8 *)priv->ubuf, alignmask + 1); ahash_save_req()
/linux-4.1.27/lib/
H A Dearlycpio.c119 dptr = PTR_ALIGN(p + ch[C_NAMESIZE], 4); find_cpio_data()
120 nptr = PTR_ALIGN(dptr + ch[C_FILESIZE], 4); find_cpio_data()
H A Dvsprintf.c2168 str = PTR_ALIGN(str, sizeof(u32)); \ vbin_printf()
2176 str = PTR_ALIGN(str, sizeof(type)); \ vbin_printf()
2255 return (u32 *)(PTR_ALIGN(str, sizeof(u32))) - bin_buf; vbin_printf()
2298 args = PTR_ALIGN(args, sizeof(u32)); \ bstr_printf()
2302 args = PTR_ALIGN(args, sizeof(type)); \ bstr_printf()
H A Dbitmap.c469 ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE - 1, PAGE_SIZE) - buf - 2; bitmap_print_to_pagebuf()
/linux-4.1.27/arch/mips/lantiq/xway/
H A Dxrx200_phy_fw.c67 fw_addr = PTR_ALIGN(fw_addr, XRX200_GPHY_FW_ALIGN); xway_gphy_load()
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
H A Dxmit_linux.c36 pxmitbuf->pbuf = PTR_ALIGN(pxmitbuf->pallocated_buf, XMITBUF_ALIGN_SZ); rtw_os_xmit_resource_alloc23a()
/linux-4.1.27/drivers/crypto/
H A Dpadlock-sha.c87 char *result = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); padlock_sha1_finup()
153 char *result = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); padlock_sha256_finup()
314 u8 *dst = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); padlock_sha1_update_nano()
403 u8 *dst = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); padlock_sha256_update_nano()
H A Dpadlock-aes.c215 u8 *tmp = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); ecb_crypt_copy()
229 u8 *tmp = PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); cbc_crypt_copy()
H A Dmxs-dcp.c954 sdcp->coh = PTR_ALIGN(sdcp->coh, DCP_ALIGNMENT); mxs_dcp_probe()
/linux-4.1.27/arch/s390/kernel/
H A Dos_info.c91 buf_align = PTR_ALIGN(buf, align); os_info_old_alloc()
/linux-4.1.27/net/ipv4/
H A Desp4.c62 return PTR_ALIGN((__be32 *)tmp, __alignof__(__be32)); esp_tmp_seqhi()
67 PTR_ALIGN((u8 *)tmp + seqhilen, esp_tmp_iv()
76 req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead), esp_tmp_givreq()
86 req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead), esp_tmp_req()
H A Dah4.c50 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); ah_tmp_icv()
58 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), ah_tmp_req()
/linux-4.1.27/net/ipv6/
H A Desp6.c89 return PTR_ALIGN((__be32 *)tmp, __alignof__(__be32)); esp_tmp_seqhi()
95 PTR_ALIGN((u8 *)tmp + seqhilen, esp_tmp_iv()
104 req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead), esp_tmp_givreq()
114 req = (void *)PTR_ALIGN(iv + crypto_aead_ivsize(aead), esp_tmp_req()
H A Dah6.c92 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); ah_tmp_icv()
100 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), ah_tmp_req()
/linux-4.1.27/arch/x86/crypto/
H A Daesni-intel_glue.c288 PTR_ALIGN((u8 *) aesni_rfc4106_gcm_ctx_get()
797 PTR_ALIGN((u8 *)crypto_tfm_ctx(tfm), AESNI_ALIGN); rfc4106_init()
819 PTR_ALIGN((u8 *)crypto_tfm_ctx(tfm), AESNI_ALIGN); rfc4106_exit()
926 new_key_align = PTR_ALIGN(new_key_mem, AESNI_ALIGN); common_rfc4106_set_key()
1008 u8* iv = (u8 *) PTR_ALIGN((u8 *)iv_tab, AESNI_ALIGN); __driver_rfc4106_encrypt()
1094 u8 *iv = (u8 *) PTR_ALIGN((u8 *)iv_and_authTag, AESNI_ALIGN); __driver_rfc4106_decrypt()
/linux-4.1.27/drivers/net/ethernet/nxp/
H A Dlpc_eth.c568 tbuff = PTR_ALIGN(pldat->dma_buff_base_v, 16); __lpc_txrx_desc_setup()
577 tbuff = PTR_ALIGN(tbuff, 16); __lpc_txrx_desc_setup()
585 tbuff = PTR_ALIGN(tbuff, 16); __lpc_txrx_desc_setup()
589 tbuff = PTR_ALIGN(tbuff, 16); __lpc_txrx_desc_setup()
/linux-4.1.27/drivers/char/hw_random/
H A Dvia-rng.c95 u32 *via_rng_datum = (u32 *)PTR_ALIGN(&buf[0], PADLOCK_ALIGNMENT); via_rng_data_present()
/linux-4.1.27/include/crypto/
H A Dalgapi.h211 return PTR_ALIGN(crypto_tfm_ctx(tfm), crypto_tfm_ctx_aligned()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dce.c935 src_ring->base_addr_owner_space = PTR_ALIGN( ath10k_ce_alloc_src_ring()
959 src_ring->shadow_base = PTR_ALIGN( ath10k_ce_alloc_src_ring()
1009 dest_ring->base_addr_owner_space = PTR_ALIGN( ath10k_ce_alloc_dest_ring()
H A Dhtt_rx.c111 PTR_ALIGN(skb->data, HTT_RX_DESC_ALIGN) - __ath10k_htt_rx_ring_fill_n()
/linux-4.1.27/drivers/staging/rtl8723au/core/
H A Drtw_security.c203 pframe = PTR_ALIGN(pframe, 4); rtw_wep_encrypt23a()
700 pframe = PTR_ALIGN(pframe, 4); rtw_tkip_encrypt23a()
1350 pframe = PTR_ALIGN(pframe, 4); rtw_aes_encrypt23a()
H A Drtw_xmit.c723 payload = PTR_ALIGN(payload, 4); xmitframe_addmic()
1221 mem_start = PTR_ALIGN(pframe, 4) + hw_hdr_offset; rtw_xmitframe_coalesce23a()
/linux-4.1.27/drivers/staging/rtl8723au/hal/
H A Drtl8723au_xmit.c346 mem_addr = PTR_ALIGN(mem_addr, 4); rtw_dump_xframe()
/linux-4.1.27/drivers/usb/host/
H A Dehci-tegra.c342 temp = PTR_ALIGN(kmalloc_ptr + 1, TEGRA_USB_DMA_ALIGN) - 1; alloc_dma_aligned_buffer()
/linux-4.1.27/drivers/scsi/esas2r/
H A Desas2r_init.c69 mem_desc->virt_addr = PTR_ALIGN(mem_desc->esas2r_data, align); esas2r_initmem_alloc()
952 high = PTR_ALIGN(high, 8); esas2r_init_adapter_struct()
/linux-4.1.27/arch/arm/common/
H A DbL_switcher.c129 stack = PTR_ALIGN(stack, L1_CACHE_BYTES); bL_switchpoint()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A Dtxrx.c908 skb->data = PTR_ALIGN(skb->data - 4, 4); ath6kl_rx_refill()
934 skb->data = PTR_ALIGN(skb->data - 4, 4); ath6kl_refill_amsdu_rxbufs()
H A Dhtc_mbox.c353 align_addr = PTR_ALIGN(*buf - 4, 4); ath6kl_htc_tx_buf_align()
/linux-4.1.27/drivers/dma/
H A Dste_dma40.c653 d40d->lli_log.src = PTR_ALIGN(base, align); d40_pool_lli_alloc()
658 d40d->lli_phy.src = PTR_ALIGN(base, align); d40_pool_lli_alloc()
3468 base->lcla_pool.base = PTR_ALIGN(base->lcla_pool.base_unaligned, d40_lcla_allocate()
H A Dqcom_bam_dma.c888 struct bam_desc_hw *fifo = PTR_ALIGN(bchan->fifo_virt, bam_start_dma()
/linux-4.1.27/drivers/atm/
H A Dnicstar.c538 card->tsq.base = PTR_ALIGN(card->tsq.org, NS_TSQ_ALIGNMENT); ns_init_card()
557 card->rsq.base = PTR_ALIGN(card->rsq.org, NS_RSQ_ALIGNMENT); ns_init_card()
882 scq->base = PTR_ALIGN(scq->org, size); get_scq()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c1352 cmd->cmd_buf = PTR_ALIGN(cmd->cmd_alloc_buf, MLX5_ADAPTER_PAGE_SIZE); alloc_cmd_page()
/linux-4.1.27/drivers/staging/netlogic/
H A Dxlr_net.c437 spill = PTR_ALIGN(spill, SMP_CACHE_BYTES); xlr_config_spill()
/linux-4.1.27/drivers/of/
H A Dfdt.c156 *mem = PTR_ALIGN(*mem, align); unflatten_dt_alloc()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
H A Dmr.c794 pas = PTR_ALIGN(mr_pas, MLX5_UMR_ALIGN); reg_umr()
/linux-4.1.27/drivers/usb/dwc3/
H A Dcore.c750 dwc = PTR_ALIGN(mem, DWC3_ALIGN_MASK + 1); dwc3_probe()
/linux-4.1.27/drivers/virt/
H A Dfsl_hypervisor.c243 sg_list = PTR_ALIGN(sg_list_unaligned, sizeof(struct fh_sg_list)); ioctl_memcpy()
/linux-4.1.27/include/linux/
H A Dkernel.h51 #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) macro
/linux-4.1.27/drivers/net/ethernet/marvell/
H A Dmvneta.c2241 PTR_ALIGN(rxq->descs, MVNETA_CPU_D_CACHE_LINE_SIZE)); mvneta_rxq_init()
2305 PTR_ALIGN(txq->descs, MVNETA_CPU_D_CACHE_LINE_SIZE)); mvneta_txq_init()
H A Dmvpp2.c4480 PTR_ALIGN(aggr_txq->descs, MVPP2_CPU_D_CACHE_LINE_SIZE)); mvpp2_aggr_txq_init()
4512 PTR_ALIGN(rxq->descs, MVPP2_CPU_D_CACHE_LINE_SIZE)); mvpp2_rxq_init()
4603 PTR_ALIGN(txq->descs, MVPP2_CPU_D_CACHE_LINE_SIZE)); mvpp2_txq_init()
H A Dsky2.c1473 start = PTR_ALIGN(skb->data, 8); sky2_rx_alloc()
/linux-4.1.27/drivers/net/ethernet/toshiba/
H A Dps3_gelic_net.c1557 card = PTR_ALIGN(p, GELIC_ALIGN); gelic_alloc_card_net()
/linux-4.1.27/drivers/spi/
H A Dspi-pxa2xx.c1366 drv_data->null_dma_buf = (u32 *)PTR_ALIGN(&drv_data[1], DMA_ALIGNMENT); pxa2xx_spi_probe()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
H A Dtxrx.c308 void *pa = PTR_ALIGN(p, 8); wil_rx_add_radiotap_header()
/linux-4.1.27/drivers/net/ethernet/natsemi/
H A Dns83820.c574 skb_reserve(skb, skb->data - PTR_ALIGN(skb->data, 16)); rx_refill()
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Dsb1250-mac.c762 unsigned char *newaddr = PTR_ALIGN(addr, power2); sbdma_align_skb()
H A Dbnx2.h6633 return (struct l2_fhdr *)(PTR_ALIGN(data, BNX2_RX_ALIGN) + NET_SKB_PAD); get_l2_fhdr()
/linux-4.1.27/mm/
H A Dkmemleak.c1157 unsigned long *start = PTR_ALIGN(_start, BYTES_PER_POINTER); scan_block()
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
H A Dbe_main.c5301 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); be_drv_init()
5302 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); be_drv_init()
/linux-4.1.27/drivers/scsi/be2iscsi/
H A Dbe_main.c715 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); be_ctrl_init()
716 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); be_ctrl_init()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c1026 p = PTR_ALIGN(pos, 8); inline_tx_skb()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dsge.c1078 p = PTR_ALIGN(pos, 8); inline_tx_skb()
/linux-4.1.27/drivers/s390/block/
H A Ddasd_3990_erp.c2340 erp->cpaddr = PTR_ALIGN(erp->data, 64); dasd_3990_erp_add_erp()
/linux-4.1.27/drivers/usb/musb/
H A Dmusb_host.c2557 temp = PTR_ALIGN(kmalloc_ptr, MUSB_USB_DMA_ALIGN); musb_alloc_temp_buffer()
/linux-4.1.27/net/core/
H A Ddev.c6820 dev = PTR_ALIGN(p, NETDEV_ALIGN); alloc_netdev_mqs()
/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_init.c6758 phba->sli4_hba.bmbx.avirt = PTR_ALIGN(dmabuf->virt, lpfc_create_bootstrap_mbox()

Completed in 1913 milliseconds