Lines Matching refs:p_sz

93 	size_t p_sz = key->p_sz;  in rsa_priv_f2_unmap()  local
97 dma_unmap_single(dev, pdb->p_dma, p_sz, DMA_TO_DEVICE); in rsa_priv_f2_unmap()
99 dma_unmap_single(dev, pdb->tmp1_dma, p_sz, DMA_BIDIRECTIONAL); in rsa_priv_f2_unmap()
110 size_t p_sz = key->p_sz; in rsa_priv_f3_unmap() local
113 dma_unmap_single(dev, pdb->p_dma, p_sz, DMA_TO_DEVICE); in rsa_priv_f3_unmap()
115 dma_unmap_single(dev, pdb->dp_dma, p_sz, DMA_TO_DEVICE); in rsa_priv_f3_unmap()
117 dma_unmap_single(dev, pdb->c_dma, p_sz, DMA_TO_DEVICE); in rsa_priv_f3_unmap()
118 dma_unmap_single(dev, pdb->tmp1_dma, p_sz, DMA_BIDIRECTIONAL); in rsa_priv_f3_unmap()
506 size_t p_sz = key->p_sz; in set_rsa_priv_f2_pdb() local
515 pdb->p_dma = dma_map_single(dev, key->p, p_sz, DMA_TO_DEVICE); in set_rsa_priv_f2_pdb()
527 pdb->tmp1_dma = dma_map_single(dev, key->tmp1, p_sz, DMA_BIDIRECTIONAL); in set_rsa_priv_f2_pdb()
558 pdb->p_q_len = (q_sz << RSA_PDB_Q_SHIFT) | p_sz; in set_rsa_priv_f2_pdb()
563 dma_unmap_single(dev, pdb->tmp1_dma, p_sz, DMA_BIDIRECTIONAL); in set_rsa_priv_f2_pdb()
567 dma_unmap_single(dev, pdb->p_dma, p_sz, DMA_TO_DEVICE); in set_rsa_priv_f2_pdb()
583 size_t p_sz = key->p_sz; in set_rsa_priv_f3_pdb() local
586 pdb->p_dma = dma_map_single(dev, key->p, p_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
598 pdb->dp_dma = dma_map_single(dev, key->dp, p_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
610 pdb->c_dma = dma_map_single(dev, key->qinv, p_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
616 pdb->tmp1_dma = dma_map_single(dev, key->tmp1, p_sz, DMA_BIDIRECTIONAL); in set_rsa_priv_f3_pdb()
647 pdb->p_q_len = (q_sz << RSA_PDB_Q_SHIFT) | p_sz; in set_rsa_priv_f3_pdb()
652 dma_unmap_single(dev, pdb->tmp1_dma, p_sz, DMA_BIDIRECTIONAL); in set_rsa_priv_f3_pdb()
654 dma_unmap_single(dev, pdb->c_dma, p_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
658 dma_unmap_single(dev, pdb->dp_dma, p_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
662 dma_unmap_single(dev, pdb->p_dma, p_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
991 size_t p_sz = raw_key->p_sz; in caam_rsa_set_priv_key_form() local
995 rsa_key->p = caam_read_raw_data(raw_key->p, &p_sz); in caam_rsa_set_priv_key_form()
998 rsa_key->p_sz = p_sz; in caam_rsa_set_priv_key_form()
1005 aligned_size = ALIGN(raw_key->p_sz, dma_get_cache_alignment()); in caam_rsa_set_priv_key_form()
1017 rsa_key->dp = caam_read_rsa_crt(raw_key->dp, raw_key->dp_sz, p_sz); in caam_rsa_set_priv_key_form()