Lines Matching refs:req_queue
61 static struct ccp_crypto_queue req_queue; variable
103 list_for_each_entry_continue(tmp, &req_queue.cmds, entry) { in ccp_crypto_cmd_complete()
114 if (req_queue.backlog != &req_queue.cmds) { in ccp_crypto_cmd_complete()
116 if (req_queue.backlog == &crypto_cmd->entry) in ccp_crypto_cmd_complete()
117 req_queue.backlog = crypto_cmd->entry.next; in ccp_crypto_cmd_complete()
119 *backlog = container_of(req_queue.backlog, in ccp_crypto_cmd_complete()
121 req_queue.backlog = req_queue.backlog->next; in ccp_crypto_cmd_complete()
124 if (req_queue.backlog == &crypto_cmd->entry) in ccp_crypto_cmd_complete()
125 req_queue.backlog = crypto_cmd->entry.next; in ccp_crypto_cmd_complete()
129 req_queue.cmd_count--; in ccp_crypto_cmd_complete()
214 if (req_queue.cmd_count >= CCP_CRYPTO_MAX_QLEN) { in ccp_crypto_enqueue_cmd()
225 list_for_each_entry(tmp, &req_queue.cmds, entry) { in ccp_crypto_enqueue_cmd()
239 if (req_queue.cmd_count >= CCP_CRYPTO_MAX_QLEN) { in ccp_crypto_enqueue_cmd()
241 if (req_queue.backlog == &req_queue.cmds) in ccp_crypto_enqueue_cmd()
242 req_queue.backlog = &crypto_cmd->entry; in ccp_crypto_enqueue_cmd()
246 req_queue.cmd_count++; in ccp_crypto_enqueue_cmd()
247 list_add_tail(&crypto_cmd->entry, &req_queue.cmds); in ccp_crypto_enqueue_cmd()
406 INIT_LIST_HEAD(&req_queue.cmds); in ccp_crypto_init()
407 req_queue.backlog = &req_queue.cmds; in ccp_crypto_init()
408 req_queue.cmd_count = 0; in ccp_crypto_init()