Lines Matching full:flows

76 	ss->flows[flow].stat_req++;  in sun8i_ss_run_task()
132 reinit_completion(&ss->flows[flow].complete); in sun8i_ss_run_task()
133 ss->flows[flow].status = 0; in sun8i_ss_run_task()
138 wait_for_completion_interruptible_timeout(&ss->flows[flow].complete, in sun8i_ss_run_task()
140 if (ss->flows[flow].status == 0) { in sun8i_ss_run_task()
159 ss->flows[flow].status = 1; in ss_irq_handler()
160 complete(&ss->flows[flow].complete); in ss_irq_handler()
478 ss->flows[i].stat_req); in sun8i_ss_debugfs_show()
536 crypto_engine_exit(ss->flows[i].engine); in sun8i_ss_free_flows()
548 ss->flows = devm_kcalloc(ss->dev, MAXFLOW, sizeof(struct sun8i_ss_flow), in allocate_flows()
550 if (!ss->flows) in allocate_flows()
554 init_completion(&ss->flows[i].complete); in allocate_flows()
556 ss->flows[i].biv = devm_kmalloc(ss->dev, AES_BLOCK_SIZE, in allocate_flows()
558 if (!ss->flows[i].biv) { in allocate_flows()
564 ss->flows[i].iv[j] = devm_kmalloc(ss->dev, AES_BLOCK_SIZE, in allocate_flows()
566 if (!ss->flows[i].iv[j]) { in allocate_flows()
573 ss->flows[i].pad = devm_kmalloc(ss->dev, MAX_PAD_SIZE, in allocate_flows()
575 if (!ss->flows[i].pad) { in allocate_flows()
579 ss->flows[i].result = in allocate_flows()
583 if (!ss->flows[i].result) { in allocate_flows()
588 ss->flows[i].engine = crypto_engine_alloc_init(ss->dev, true); in allocate_flows()
589 if (!ss->flows[i].engine) { in allocate_flows()
595 err = crypto_engine_start(ss->flows[i].engine); in allocate_flows()
642 /* enable interrupts for all flows */ in sun8i_ss_pm_resume()