Lines Matching refs:cmd_q
327 if (ccp->cmd_q[i].active) in ccp_enqueue_cmd()
339 wake_up_process(ccp->cmd_q[i].kthread); in ccp_enqueue_cmd()
361 if (ccp->cmd_q[i].active) in ccp_do_cmd_backlog()
371 wake_up_process(ccp->cmd_q[i].kthread); in ccp_do_cmd_backlog()
374 static struct ccp_cmd *ccp_dequeue_cmd(struct ccp_cmd_queue *cmd_q) in ccp_dequeue_cmd() argument
376 struct ccp_device *ccp = cmd_q->ccp; in ccp_dequeue_cmd()
383 cmd_q->active = 0; in ccp_dequeue_cmd()
386 cmd_q->suspended = 1; in ccp_dequeue_cmd()
395 cmd_q->active = 1; in ccp_dequeue_cmd()
436 struct ccp_cmd_queue *cmd_q = (struct ccp_cmd_queue *)data; in ccp_cmd_queue_thread() local
449 cmd = ccp_dequeue_cmd(cmd_q); in ccp_cmd_queue_thread()
456 cmd->ret = ccp_run_cmd(cmd_q, cmd); in ccp_cmd_queue_thread()
543 if (ccp->cmd_q[i].suspended) in ccp_queues_suspended()
567 wake_up_process(ccp->cmd_q[i].kthread); in ccp_dev_suspend()
593 ccp->cmd_q[i].suspended = 0; in ccp_dev_resume()
594 wake_up_process(ccp->cmd_q[i].kthread); in ccp_dev_resume()