Lines Matching refs:op
305 struct mv_cesa_op_ctx *op; member
548 struct mv_cesa_op_ctx op; member
625 static inline void mv_cesa_update_op_cfg(struct mv_cesa_op_ctx *op, in mv_cesa_update_op_cfg() argument
628 op->desc.config &= cpu_to_le32(~mask); in mv_cesa_update_op_cfg()
629 op->desc.config |= cpu_to_le32(cfg); in mv_cesa_update_op_cfg()
632 static inline u32 mv_cesa_get_op_cfg(const struct mv_cesa_op_ctx *op) in mv_cesa_get_op_cfg() argument
634 return le32_to_cpu(op->desc.config); in mv_cesa_get_op_cfg()
637 static inline void mv_cesa_set_op_cfg(struct mv_cesa_op_ctx *op, u32 cfg) in mv_cesa_set_op_cfg() argument
639 op->desc.config = cpu_to_le32(cfg); in mv_cesa_set_op_cfg()
643 struct mv_cesa_op_ctx *op) in mv_cesa_adjust_op() argument
647 op->desc.enc_p = CESA_SA_DESC_CRYPT_DATA(offset); in mv_cesa_adjust_op()
648 op->desc.enc_key_p = CESA_SA_DESC_CRYPT_KEY(offset); in mv_cesa_adjust_op()
649 op->desc.enc_iv = CESA_SA_DESC_CRYPT_IV(offset); in mv_cesa_adjust_op()
650 op->desc.mac_src_p &= ~CESA_SA_DESC_MAC_DATA_MSK; in mv_cesa_adjust_op()
651 op->desc.mac_src_p |= CESA_SA_DESC_MAC_DATA(offset); in mv_cesa_adjust_op()
652 op->desc.mac_digest &= ~CESA_SA_DESC_MAC_DIGEST_MSK; in mv_cesa_adjust_op()
653 op->desc.mac_digest |= CESA_SA_DESC_MAC_DIGEST(offset); in mv_cesa_adjust_op()
654 op->desc.mac_iv = CESA_SA_DESC_MAC_IV(offset); in mv_cesa_adjust_op()
657 static inline void mv_cesa_set_crypt_op_len(struct mv_cesa_op_ctx *op, int len) in mv_cesa_set_crypt_op_len() argument
659 op->desc.enc_len = cpu_to_le32(len); in mv_cesa_set_crypt_op_len()
662 static inline void mv_cesa_set_mac_op_total_len(struct mv_cesa_op_ctx *op, in mv_cesa_set_mac_op_total_len() argument
665 op->desc.mac_src_p &= ~CESA_SA_DESC_MAC_TOTAL_LEN_MSK; in mv_cesa_set_mac_op_total_len()
666 op->desc.mac_src_p |= CESA_SA_DESC_MAC_TOTAL_LEN(len); in mv_cesa_set_mac_op_total_len()
669 static inline void mv_cesa_set_mac_op_frag_len(struct mv_cesa_op_ctx *op, in mv_cesa_set_mac_op_frag_len() argument
672 op->desc.mac_digest &= ~CESA_SA_DESC_MAC_FRAG_LEN_MSK; in mv_cesa_set_mac_op_frag_len()
673 op->desc.mac_digest |= CESA_SA_DESC_MAC_FRAG_LEN(len); in mv_cesa_set_mac_op_frag_len()
691 static inline bool mv_cesa_mac_op_is_first_frag(const struct mv_cesa_op_ctx *op) in mv_cesa_mac_op_is_first_frag() argument
693 return (mv_cesa_get_op_cfg(op) & CESA_SA_DESC_CFG_FRAG_MSK) == in mv_cesa_mac_op_is_first_frag()