Lines Matching refs:cmd
406 static int aspeed_des_crypt(struct skcipher_request *req, u32 cmd) in aspeed_des_crypt() argument
412 u32 crypto_alg = cmd & HACE_CMD_OP_MODE_MASK; in aspeed_des_crypt()
421 rctx->enc_cmd = cmd | HACE_CMD_DES_SELECT | HACE_CMD_RI_WO_DATA_ENABLE | in aspeed_des_crypt()
584 static int aspeed_aes_crypt(struct skcipher_request *req, u32 cmd) in aspeed_aes_crypt() argument
590 u32 crypto_alg = cmd & HACE_CMD_OP_MODE_MASK; in aspeed_aes_crypt()
598 (cmd & HACE_CMD_ENCRYPT) ? "encrypt" : "decrypt"); in aspeed_aes_crypt()
600 cmd |= HACE_CMD_AES_SELECT | HACE_CMD_RI_WO_DATA_ENABLE | in aspeed_aes_crypt()
605 cmd |= HACE_CMD_AES128; in aspeed_aes_crypt()
608 cmd |= HACE_CMD_AES192; in aspeed_aes_crypt()
611 cmd |= HACE_CMD_AES256; in aspeed_aes_crypt()
617 rctx->enc_cmd = cmd; in aspeed_aes_crypt()