Lines Matching refs:mqe_ctx
148 return dev->mq.sq.va + (dev->mqe_ctx.tag * sizeof(struct ocrdma_mqe)); in ocrdma_get_mqe_rsp()
619 memset(&dev->mqe_ctx, 0, sizeof(dev->mqe_ctx)); in ocrdma_create_mq()
620 init_waitqueue_head(&dev->mqe_ctx.cmd_wait); in ocrdma_create_mq()
621 mutex_init(&dev->mqe_ctx.lock); in ocrdma_create_mq()
649 mutex_lock(&dev->mqe_ctx.lock); in ocrdma_destroy_mq()
655 mutex_unlock(&dev->mqe_ctx.lock); in ocrdma_destroy_mq()
867 if (dev->mqe_ctx.tag == cqe->tag_lo && dev->mqe_ctx.cmd_done == false) { in ocrdma_process_mcqe()
868 dev->mqe_ctx.cqe_status = (cqe->status & in ocrdma_process_mcqe()
870 dev->mqe_ctx.ext_status = in ocrdma_process_mcqe()
873 dev->mqe_ctx.cmd_done = true; in ocrdma_process_mcqe()
874 wake_up(&dev->mqe_ctx.cmd_wait); in ocrdma_process_mcqe()
877 __func__, cqe->tag_lo, dev->mqe_ctx.tag); in ocrdma_process_mcqe()
1043 dev->mqe_ctx.tag = dev->mq.sq.head; in ocrdma_post_mqe()
1044 dev->mqe_ctx.cmd_done = false; in ocrdma_post_mqe()
1058 status = wait_event_timeout(dev->mqe_ctx.cmd_wait, in ocrdma_wait_mqe_cmpl()
1059 (dev->mqe_ctx.cmd_done != false), in ocrdma_wait_mqe_cmpl()
1064 dev->mqe_ctx.fw_error_state = true; in ocrdma_wait_mqe_cmpl()
1079 mutex_lock(&dev->mqe_ctx.lock); in ocrdma_mbx_cmd()
1080 if (dev->mqe_ctx.fw_error_state) in ocrdma_mbx_cmd()
1086 cqe_status = dev->mqe_ctx.cqe_status; in ocrdma_mbx_cmd()
1087 ext_status = dev->mqe_ctx.ext_status; in ocrdma_mbx_cmd()
1112 mutex_unlock(&dev->mqe_ctx.lock); in ocrdma_mbx_cmd()