aes_dd            422 drivers/crypto/atmel-aes.c 	struct atmel_aes_dev *aes_dd = NULL;
aes_dd            428 drivers/crypto/atmel-aes.c 			aes_dd = tmp;
aes_dd            431 drivers/crypto/atmel-aes.c 		ctx->dd = aes_dd;
aes_dd            433 drivers/crypto/atmel-aes.c 		aes_dd = ctx->dd;
aes_dd            438 drivers/crypto/atmel-aes.c 	return aes_dd;
aes_dd           2440 drivers/crypto/atmel-aes.c 	struct atmel_aes_dev *aes_dd = dev_id;
aes_dd           2443 drivers/crypto/atmel-aes.c 	reg = atmel_aes_read(aes_dd, AES_ISR);
aes_dd           2444 drivers/crypto/atmel-aes.c 	if (reg & atmel_aes_read(aes_dd, AES_IMR)) {
aes_dd           2445 drivers/crypto/atmel-aes.c 		atmel_aes_write(aes_dd, AES_IDR, reg);
aes_dd           2446 drivers/crypto/atmel-aes.c 		if (AES_FLAGS_BUSY & aes_dd->flags)
aes_dd           2447 drivers/crypto/atmel-aes.c 			tasklet_schedule(&aes_dd->done_task);
aes_dd           2449 drivers/crypto/atmel-aes.c 			dev_warn(aes_dd->dev, "AES interrupt when no active requests.\n");
aes_dd           2618 drivers/crypto/atmel-aes.c 	struct atmel_aes_dev *aes_dd;
aes_dd           2638 drivers/crypto/atmel-aes.c 	aes_dd = devm_kzalloc(&pdev->dev, sizeof(*aes_dd), GFP_KERNEL);
aes_dd           2639 drivers/crypto/atmel-aes.c 	if (aes_dd == NULL) {
aes_dd           2644 drivers/crypto/atmel-aes.c 	aes_dd->dev = dev;
aes_dd           2646 drivers/crypto/atmel-aes.c 	platform_set_drvdata(pdev, aes_dd);
aes_dd           2648 drivers/crypto/atmel-aes.c 	INIT_LIST_HEAD(&aes_dd->list);
aes_dd           2649 drivers/crypto/atmel-aes.c 	spin_lock_init(&aes_dd->lock);
aes_dd           2651 drivers/crypto/atmel-aes.c 	tasklet_init(&aes_dd->done_task, atmel_aes_done_task,
aes_dd           2652 drivers/crypto/atmel-aes.c 					(unsigned long)aes_dd);
aes_dd           2653 drivers/crypto/atmel-aes.c 	tasklet_init(&aes_dd->queue_task, atmel_aes_queue_task,
aes_dd           2654 drivers/crypto/atmel-aes.c 					(unsigned long)aes_dd);
aes_dd           2656 drivers/crypto/atmel-aes.c 	crypto_init_queue(&aes_dd->queue, ATMEL_AES_QUEUE_LENGTH);
aes_dd           2665 drivers/crypto/atmel-aes.c 	aes_dd->phys_base = aes_res->start;
aes_dd           2668 drivers/crypto/atmel-aes.c 	aes_dd->irq = platform_get_irq(pdev,  0);
aes_dd           2669 drivers/crypto/atmel-aes.c 	if (aes_dd->irq < 0) {
aes_dd           2670 drivers/crypto/atmel-aes.c 		err = aes_dd->irq;
aes_dd           2674 drivers/crypto/atmel-aes.c 	err = devm_request_irq(&pdev->dev, aes_dd->irq, atmel_aes_irq,
aes_dd           2675 drivers/crypto/atmel-aes.c 			       IRQF_SHARED, "atmel-aes", aes_dd);
aes_dd           2682 drivers/crypto/atmel-aes.c 	aes_dd->iclk = devm_clk_get(&pdev->dev, "aes_clk");
aes_dd           2683 drivers/crypto/atmel-aes.c 	if (IS_ERR(aes_dd->iclk)) {
aes_dd           2685 drivers/crypto/atmel-aes.c 		err = PTR_ERR(aes_dd->iclk);
aes_dd           2689 drivers/crypto/atmel-aes.c 	aes_dd->io_base = devm_ioremap_resource(&pdev->dev, aes_res);
aes_dd           2690 drivers/crypto/atmel-aes.c 	if (IS_ERR(aes_dd->io_base)) {
aes_dd           2692 drivers/crypto/atmel-aes.c 		err = PTR_ERR(aes_dd->io_base);
aes_dd           2696 drivers/crypto/atmel-aes.c 	err = clk_prepare(aes_dd->iclk);
aes_dd           2700 drivers/crypto/atmel-aes.c 	err = atmel_aes_hw_version_init(aes_dd);
aes_dd           2704 drivers/crypto/atmel-aes.c 	atmel_aes_get_cap(aes_dd);
aes_dd           2707 drivers/crypto/atmel-aes.c 	if (aes_dd->caps.has_authenc && !atmel_sha_authenc_is_ready()) {
aes_dd           2713 drivers/crypto/atmel-aes.c 	err = atmel_aes_buff_init(aes_dd);
aes_dd           2717 drivers/crypto/atmel-aes.c 	err = atmel_aes_dma_init(aes_dd, pdata);
aes_dd           2722 drivers/crypto/atmel-aes.c 	list_add_tail(&aes_dd->list, &atmel_aes.dev_list);
aes_dd           2725 drivers/crypto/atmel-aes.c 	err = atmel_aes_register_algs(aes_dd);
aes_dd           2730 drivers/crypto/atmel-aes.c 			dma_chan_name(aes_dd->src.chan),
aes_dd           2731 drivers/crypto/atmel-aes.c 			dma_chan_name(aes_dd->dst.chan));
aes_dd           2737 drivers/crypto/atmel-aes.c 	list_del(&aes_dd->list);
aes_dd           2739 drivers/crypto/atmel-aes.c 	atmel_aes_dma_cleanup(aes_dd);
aes_dd           2741 drivers/crypto/atmel-aes.c 	atmel_aes_buff_cleanup(aes_dd);
aes_dd           2744 drivers/crypto/atmel-aes.c 	clk_unprepare(aes_dd->iclk);
aes_dd           2746 drivers/crypto/atmel-aes.c 	tasklet_kill(&aes_dd->done_task);
aes_dd           2747 drivers/crypto/atmel-aes.c 	tasklet_kill(&aes_dd->queue_task);
aes_dd           2757 drivers/crypto/atmel-aes.c 	struct atmel_aes_dev *aes_dd;
aes_dd           2759 drivers/crypto/atmel-aes.c 	aes_dd = platform_get_drvdata(pdev);
aes_dd           2760 drivers/crypto/atmel-aes.c 	if (!aes_dd)
aes_dd           2763 drivers/crypto/atmel-aes.c 	list_del(&aes_dd->list);
aes_dd           2766 drivers/crypto/atmel-aes.c 	atmel_aes_unregister_algs(aes_dd);
aes_dd           2768 drivers/crypto/atmel-aes.c 	tasklet_kill(&aes_dd->done_task);
aes_dd           2769 drivers/crypto/atmel-aes.c 	tasklet_kill(&aes_dd->queue_task);
aes_dd           2771 drivers/crypto/atmel-aes.c 	atmel_aes_dma_cleanup(aes_dd);
aes_dd           2772 drivers/crypto/atmel-aes.c 	atmel_aes_buff_cleanup(aes_dd);
aes_dd           2774 drivers/crypto/atmel-aes.c 	clk_unprepare(aes_dd->iclk);