/** * struct ocs_aes_dev - AES device context. * @list: List head for insertion into device list hold * by driver. * @dev: OCS AES device. * @irq: IRQ number. * @base_reg: IO base address of OCS AES. * @irq_copy_completion: Completion to indicate IRQ has been triggered. * @dma_err_mask: Error reported by OCS DMA interrupts. * @engine: Crypto engine for the device.
*/ struct ocs_aes_dev { struct list_head list; struct device *dev; int irq; void __iomem *base_reg; struct completion irq_completion;
u32 dma_err_mask; struct crypto_engine *engine;
};
/** * struct ocs_dll_desc - Descriptor of an OCS DMA Linked List. * @vaddr: Virtual address of the linked list head. * @dma_addr: DMA address of the linked list head. * @size: Size (in bytes) of the linked list.
*/ struct ocs_dll_desc { void *vaddr;
dma_addr_t dma_addr;
size_t size;
};
/** * ocs_aes_bypass_op() - Use OCS DMA to copy data. * @aes_dev: The OCS AES device to use. * @dst_dma_list: The OCS DMA list mapping the memory where input data * will be copied to. * @src_dma_list: The OCS DMA list mapping input data. * @src_size: The amount of data to copy.
*/ staticinlineint ocs_aes_bypass_op(struct ocs_aes_dev *aes_dev,
dma_addr_t dst_dma_list,
dma_addr_t src_dma_list, u32 src_size)
{ return ocs_aes_op(aes_dev, OCS_MODE_ECB, OCS_AES, OCS_BYPASS,
dst_dma_list, src_dma_list, src_size, NULL, 0);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.