• Home
  • Raw
  • Download

Lines Matching refs:dir

107 	enum dma_data_direction dir;  member
340 dma_unmap_single(dev, buf->phys_addr, buf->buf_len, buf->dir); in free_buf_chain()
589 static void reset_sa_dir(struct ix_sa_dir *dir) in reset_sa_dir() argument
591 memset(dir->npe_ctx, 0, NPE_CTX_LEN); in reset_sa_dir()
592 dir->npe_ctx_idx = 0; in reset_sa_dir()
593 dir->npe_mode = 0; in reset_sa_dir()
596 static int init_sa_dir(struct ix_sa_dir *dir) in init_sa_dir() argument
598 dir->npe_ctx = dma_pool_alloc(ctx_pool, GFP_KERNEL, &dir->npe_ctx_phys); in init_sa_dir()
599 if (!dir->npe_ctx) in init_sa_dir()
602 reset_sa_dir(dir); in init_sa_dir()
606 static void free_sa_dir(struct ix_sa_dir *dir) in free_sa_dir() argument
608 memset(dir->npe_ctx, 0, NPE_CTX_LEN); in free_sa_dir()
609 dma_pool_free(ctx_pool, dir->npe_ctx, dir->npe_ctx_phys); in free_sa_dir()
741 struct ix_sa_dir *dir; in setup_auth() local
745 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth()
746 cinfo = dir->npe_ctx + dir->npe_ctx_idx; in setup_auth()
761 itarget = dir->npe_ctx_phys + dir->npe_ctx_idx in setup_auth()
764 init_len = cinfo - (dir->npe_ctx + dir->npe_ctx_idx); in setup_auth()
765 npe_ctx_addr = dir->npe_ctx_phys + dir->npe_ctx_idx; in setup_auth()
767 dir->npe_ctx_idx += init_len; in setup_auth()
768 dir->npe_mode |= NPE_OP_HASH_ENABLE; in setup_auth()
771 dir->npe_mode |= NPE_OP_HASH_VERIFY; in setup_auth()
785 struct ix_sa_dir *dir = &ctx->decrypt; in gen_rev_aes_key() local
791 *(u32 *)dir->npe_ctx |= cpu_to_be32(CIPH_ENCR); in gen_rev_aes_key()
797 crypt->crypto_ctx = dir->npe_ctx_phys; in gen_rev_aes_key()
798 crypt->icv_rev_aes = dir->npe_ctx_phys + sizeof(u32); in gen_rev_aes_key()
800 crypt->init_len = dir->npe_ctx_idx; in gen_rev_aes_key()
815 struct ix_sa_dir *dir; in setup_cipher() local
819 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_cipher()
820 cinfo = dir->npe_ctx; in setup_cipher()
824 dir->npe_mode |= NPE_OP_CRYPT_ENCRYPT; in setup_cipher()
859 dir->npe_ctx_idx = sizeof(cipher_cfg) + key_len; in setup_cipher()
860 dir->npe_mode |= NPE_OP_CRYPT_ENABLE; in setup_cipher()
870 enum dma_data_direction dir) in chainup_buffers() argument
885 sg_dma_address(sg) = dma_map_single(dev, ptr, len, dir); in chainup_buffers()
892 buf->dir = dir; in chainup_buffers()
976 struct ix_sa_dir *dir; in ablk_perform() local
995 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in ablk_perform()
1003 crypt->crypto_ctx = dir->npe_ctx_phys; in ablk_perform()
1004 crypt->mode = dir->npe_mode; in ablk_perform()
1005 crypt->init_len = dir->npe_ctx_idx; in ablk_perform()
1093 struct ix_sa_dir *dir; in aead_perform() local
1110 dir = &ctx->encrypt; in aead_perform()
1113 dir = &ctx->decrypt; in aead_perform()
1123 crypt->crypto_ctx = dir->npe_ctx_phys; in aead_perform()
1124 crypt->mode = dir->npe_mode; in aead_perform()
1125 crypt->init_len = dir->npe_ctx_idx; in aead_perform()