Lines Matching refs:req_queue
61 static struct ccp_crypto_queue req_queue; variable
110 list_for_each_entry_continue(tmp, &req_queue.cmds, entry) { in ccp_crypto_cmd_complete()
121 if (req_queue.backlog != &req_queue.cmds) { 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()
126 *backlog = container_of(req_queue.backlog, in ccp_crypto_cmd_complete()
128 req_queue.backlog = req_queue.backlog->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()
136 req_queue.cmd_count--; in ccp_crypto_cmd_complete()
221 if (req_queue.cmd_count >= CCP_CRYPTO_MAX_QLEN) { in ccp_crypto_enqueue_cmd()
232 list_for_each_entry(tmp, &req_queue.cmds, entry) { in ccp_crypto_enqueue_cmd()
246 if (req_queue.cmd_count >= CCP_CRYPTO_MAX_QLEN) { in ccp_crypto_enqueue_cmd()
248 if (req_queue.backlog == &req_queue.cmds) in ccp_crypto_enqueue_cmd()
249 req_queue.backlog = &crypto_cmd->entry; in ccp_crypto_enqueue_cmd()
253 req_queue.cmd_count++; in ccp_crypto_enqueue_cmd()
254 list_add_tail(&crypto_cmd->entry, &req_queue.cmds); in ccp_crypto_enqueue_cmd()
413 INIT_LIST_HEAD(&req_queue.cmds); in ccp_crypto_init()
414 req_queue.backlog = &req_queue.cmds; in ccp_crypto_init()
415 req_queue.cmd_count = 0; in ccp_crypto_init()