Lines Matching refs:q_sz
94 size_t q_sz = key->q_sz; in rsa_priv_f2_unmap() local
98 dma_unmap_single(dev, pdb->q_dma, q_sz, DMA_TO_DEVICE); in rsa_priv_f2_unmap()
100 dma_unmap_single(dev, pdb->tmp2_dma, q_sz, DMA_BIDIRECTIONAL); in rsa_priv_f2_unmap()
111 size_t q_sz = key->q_sz; in rsa_priv_f3_unmap() local
114 dma_unmap_single(dev, pdb->q_dma, q_sz, DMA_TO_DEVICE); in rsa_priv_f3_unmap()
116 dma_unmap_single(dev, pdb->dq_dma, q_sz, DMA_TO_DEVICE); in rsa_priv_f3_unmap()
119 dma_unmap_single(dev, pdb->tmp2_dma, q_sz, DMA_BIDIRECTIONAL); in rsa_priv_f3_unmap()
507 size_t q_sz = key->q_sz; in set_rsa_priv_f2_pdb() local
521 pdb->q_dma = dma_map_single(dev, key->q, q_sz, DMA_TO_DEVICE); in set_rsa_priv_f2_pdb()
533 pdb->tmp2_dma = dma_map_single(dev, key->tmp2, q_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()
565 dma_unmap_single(dev, pdb->q_dma, q_sz, DMA_TO_DEVICE); in set_rsa_priv_f2_pdb()
584 size_t q_sz = key->q_sz; in set_rsa_priv_f3_pdb() local
592 pdb->q_dma = dma_map_single(dev, key->q, q_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
604 pdb->dq_dma = dma_map_single(dev, key->dq, q_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
622 pdb->tmp2_dma = dma_map_single(dev, key->tmp2, q_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()
656 dma_unmap_single(dev, pdb->dq_dma, q_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
660 dma_unmap_single(dev, pdb->q_dma, q_sz, DMA_TO_DEVICE); in set_rsa_priv_f3_pdb()
992 size_t q_sz = raw_key->q_sz; in caam_rsa_set_priv_key_form() local
1000 rsa_key->q = caam_read_raw_data(raw_key->q, &q_sz); in caam_rsa_set_priv_key_form()
1003 rsa_key->q_sz = q_sz; in caam_rsa_set_priv_key_form()
1010 aligned_size = ALIGN(raw_key->q_sz, dma_get_cache_alignment()); in caam_rsa_set_priv_key_form()
1021 rsa_key->dq = caam_read_rsa_crt(raw_key->dq, raw_key->dq_sz, q_sz); in caam_rsa_set_priv_key_form()
1026 q_sz); in caam_rsa_set_priv_key_form()