Lines Matching refs:instruction
86 enum ocs_instruction instruction; member
313 enum ocs_instruction instruction, in kmb_ocs_sk_common() argument
331 if (instruction == OCS_ENCRYPT) in kmb_ocs_sk_common()
361 rctx->instruction = instruction; in kmb_ocs_sk_common()
416 if (rctx->mode == OCS_MODE_CBC && rctx->instruction == OCS_DECRYPT) in kmb_ocs_sk_prepare_inplace()
421 if (rctx->cts_swap && rctx->instruction == OCS_DECRYPT) in kmb_ocs_sk_prepare_inplace()
492 if (!(rctx->cts_swap && rctx->instruction == OCS_DECRYPT)) in kmb_ocs_sk_prepare_notinplace()
552 rc = ocs_aes_op(aes_dev, rctx->mode, tctx->cipher, rctx->instruction, in kmb_ocs_sk_run()
562 if (rctx->cts_swap && rctx->instruction == OCS_ENCRYPT) { in kmb_ocs_sk_run()
572 if (rctx->instruction == OCS_ENCRYPT) { in kmb_ocs_sk_run()
598 enum ocs_instruction instruction, in kmb_ocs_aead_validate_input() argument
606 if (instruction == OCS_DECRYPT && req->cryptlen < tag_size) in kmb_ocs_aead_validate_input()
640 enum ocs_instruction instruction, in kmb_ocs_aead_common() argument
662 return (instruction == OCS_ENCRYPT) ? in kmb_ocs_aead_common()
667 rc = kmb_ocs_aead_validate_input(req, instruction, mode); in kmb_ocs_aead_common()
679 rctx->instruction = instruction; in kmb_ocs_aead_common()
738 if (rctx->instruction == OCS_DECRYPT) { in kmb_ocs_aead_dma_prepare()
820 rctx->instruction == OCS_ENCRYPT)) { in kmb_ocs_aead_dma_prepare()
905 rctx->instruction, rctx->dst_dll.dma_addr, in kmb_ocs_aead_run()
914 rctx->instruction, in kmb_ocs_aead_run()
924 if (rctx->instruction == OCS_DECRYPT) { in kmb_ocs_aead_run()