mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 13:41:55 +00:00
5c68361f57
Miscellaneous improvements: - Start comment blocks with "/**" to enable kerneldoc, - Mark parameters using "@" instead of "\param", - Fix copied is_dout parameter of cc_send_request(), - Add missing function names to kerneldoc headers, - Add missing parameter descriptions. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
|
|
|
|
/* \file cc_request_mgr.h
|
|
* Request Manager
|
|
*/
|
|
|
|
#ifndef __REQUEST_MGR_H__
|
|
#define __REQUEST_MGR_H__
|
|
|
|
#include "cc_hw_queue_defs.h"
|
|
|
|
int cc_req_mgr_init(struct cc_drvdata *drvdata);
|
|
|
|
/**
|
|
* cc_send_request() - Enqueue caller request to crypto hardware.
|
|
*
|
|
* @drvdata: Associated device driver context
|
|
* @cc_req: The request to enqueue
|
|
* @desc: The crypto sequence
|
|
* @len: The crypto sequence length
|
|
* @req: Asynchronous crypto request
|
|
*
|
|
* Return:
|
|
* Returns -EINPROGRESS or error
|
|
*/
|
|
int cc_send_request(struct cc_drvdata *drvdata, struct cc_crypto_req *cc_req,
|
|
struct cc_hw_desc *desc, unsigned int len,
|
|
struct crypto_async_request *req);
|
|
|
|
int cc_send_sync_request(struct cc_drvdata *drvdata,
|
|
struct cc_crypto_req *cc_req, struct cc_hw_desc *desc,
|
|
unsigned int len);
|
|
|
|
int send_request_init(struct cc_drvdata *drvdata, struct cc_hw_desc *desc,
|
|
unsigned int len);
|
|
|
|
void complete_request(struct cc_drvdata *drvdata);
|
|
|
|
void cc_req_mgr_fini(struct cc_drvdata *drvdata);
|
|
|
|
#endif /*__REQUEST_MGR_H__*/
|