Lines Matching refs:backlog
55 struct list_head *backlog;
97 struct ccp_crypto_cmd *crypto_cmd, struct ccp_crypto_cmd **backlog)
102 *backlog = NULL;
117 /* Process the backlog:
119 * special precautions have to be taken when handling the backlog.
121 if (req_queue.backlog != &req_queue.cmds) {
122 /* Skip over this cmd if it is the next backlog cmd */
123 if (req_queue.backlog == &crypto_cmd->entry)
124 req_queue.backlog = crypto_cmd->entry.next;
126 *backlog = container_of(req_queue.backlog,
128 req_queue.backlog = req_queue.backlog->next;
130 /* Skip over this cmd if it is now the next backlog cmd */
131 if (req_queue.backlog == &crypto_cmd->entry)
132 req_queue.backlog = crypto_cmd->entry.next;
147 struct ccp_crypto_cmd *held, *next, *backlog;
166 held = ccp_crypto_cmd_complete(crypto_cmd, &backlog);
167 if (backlog) {
168 backlog->ret = -EINPROGRESS;
169 backlog->req->complete(backlog->req, -EINPROGRESS);
185 * we can backlog so as not to "lose" this request.
198 next = ccp_crypto_cmd_complete(held, &backlog);
199 if (backlog) {
200 backlog->ret = -EINPROGRESS;
201 backlog->req->complete(backlog->req, -EINPROGRESS);
248 if (req_queue.backlog == &req_queue.cmds)
249 req_queue.backlog = &crypto_cmd->entry;
415 req_queue.backlog = &req_queue.cmds;