• Home
  • Raw
  • Download

Lines Matching refs:crypto_cmd

84 	struct ccp_crypto_cmd *crypto_cmd;  member
97 struct ccp_crypto_cmd *crypto_cmd, struct ccp_crypto_cmd **backlog) in ccp_crypto_cmd_complete() argument
109 tmp = crypto_cmd; in ccp_crypto_cmd_complete()
111 if (crypto_cmd->tfm != tmp->tfm) in ccp_crypto_cmd_complete()
123 if (req_queue.backlog == &crypto_cmd->entry) in ccp_crypto_cmd_complete()
124 req_queue.backlog = crypto_cmd->entry.next; in ccp_crypto_cmd_complete()
131 if (req_queue.backlog == &crypto_cmd->entry) in ccp_crypto_cmd_complete()
132 req_queue.backlog = crypto_cmd->entry.next; in ccp_crypto_cmd_complete()
137 list_del(&crypto_cmd->entry); in ccp_crypto_cmd_complete()
146 struct ccp_crypto_cmd *crypto_cmd = data; in ccp_crypto_complete() local
148 struct crypto_async_request *req = crypto_cmd->req; in ccp_crypto_complete()
154 if (crypto_cmd->ret == -EBUSY) { in ccp_crypto_complete()
155 crypto_cmd->ret = -EINPROGRESS; in ccp_crypto_complete()
166 held = ccp_crypto_cmd_complete(crypto_cmd, &backlog); in ccp_crypto_complete()
173 if (crypto_cmd->ret == -EBUSY) in ccp_crypto_complete()
208 kfree(crypto_cmd); in ccp_crypto_complete()
211 static int ccp_crypto_enqueue_cmd(struct ccp_crypto_cmd *crypto_cmd) in ccp_crypto_enqueue_cmd() argument
222 if (!(crypto_cmd->cmd->flags & CCP_CMD_MAY_BACKLOG)) { in ccp_crypto_enqueue_cmd()
233 if (crypto_cmd->tfm != tmp->tfm) in ccp_crypto_enqueue_cmd()
241 ret = ccp_enqueue_cmd(crypto_cmd->cmd); in ccp_crypto_enqueue_cmd()
249 req_queue.backlog = &crypto_cmd->entry; in ccp_crypto_enqueue_cmd()
251 crypto_cmd->ret = ret; in ccp_crypto_enqueue_cmd()
254 list_add_tail(&crypto_cmd->entry, &req_queue.cmds); in ccp_crypto_enqueue_cmd()
262 kfree(crypto_cmd); in ccp_crypto_enqueue_cmd()
277 struct ccp_crypto_cmd *crypto_cmd; in ccp_crypto_enqueue_request() local
282 crypto_cmd = kzalloc(sizeof(*crypto_cmd), gfp); in ccp_crypto_enqueue_request()
283 if (!crypto_cmd) in ccp_crypto_enqueue_request()
291 crypto_cmd->cmd = cmd; in ccp_crypto_enqueue_request()
292 crypto_cmd->req = req; in ccp_crypto_enqueue_request()
293 crypto_cmd->tfm = req->tfm; in ccp_crypto_enqueue_request()
296 cmd->data = crypto_cmd; in ccp_crypto_enqueue_request()
303 return ccp_crypto_enqueue_cmd(crypto_cmd); in ccp_crypto_enqueue_request()