Lines Matching refs:msgq

93 	bfa_wc_down(&cmdq->msgq->init_wc);  in cmdq_sm_init_wait_entry()
195 if (!bfa_nw_ioc_mbox_queue(cmdq->msgq->ioc, &cmdq->dbell_mb, in bfa_msgq_cmdq_dbell()
296 if (!bfa_nw_ioc_mbox_queue(cmdq->msgq->ioc, &cmdq->copy_mb, in bfa_msgq_cmdq_copy_rsp()
303 bfa_msgq_cmdq_attach(struct bfa_msgq_cmdq *cmdq, struct bfa_msgq *msgq) in bfa_msgq_cmdq_attach() argument
307 cmdq->msgq = msgq; in bfa_msgq_cmdq_attach()
358 bfa_wc_down(&rspq->msgq->init_wc); in rspq_sm_init_wait_entry()
405 if (!bfa_nw_ioc_is_disabled(rspq->msgq->ioc)) in rspq_sm_dbell_wait_entry()
453 if (!bfa_nw_ioc_mbox_queue(rspq->msgq->ioc, &rspq->dbell_mb, in bfa_msgq_rspq_dbell()
491 bfa_msgq_rspq_attach(struct bfa_msgq_rspq *rspq, struct bfa_msgq *msgq) in bfa_msgq_rspq_attach() argument
494 rspq->msgq = msgq; in bfa_msgq_rspq_attach()
499 bfa_msgq_init_rsp(struct bfa_msgq *msgq, in bfa_msgq_init_rsp() argument
502 bfa_fsm_send_event(&msgq->cmdq, CMDQ_E_INIT_RESP); in bfa_msgq_init_rsp()
503 bfa_fsm_send_event(&msgq->rspq, RSPQ_E_INIT_RESP); in bfa_msgq_init_rsp()
509 struct bfa_msgq *msgq = (struct bfa_msgq *)arg; in bfa_msgq_init() local
511 (struct bfi_msgq_cfg_req *)&msgq->init_mb.msg[0]; in bfa_msgq_init()
517 bfa_dma_be_addr_set(msgq_cfg->cmdq.addr, msgq->cmdq.addr.pa); in bfa_msgq_init()
518 msgq_cfg->cmdq.q_depth = htons(msgq->cmdq.depth); in bfa_msgq_init()
519 bfa_dma_be_addr_set(msgq_cfg->rspq.addr, msgq->rspq.addr.pa); in bfa_msgq_init()
520 msgq_cfg->rspq.q_depth = htons(msgq->rspq.depth); in bfa_msgq_init()
522 bfa_nw_ioc_mbox_queue(msgq->ioc, &msgq->init_mb, NULL, NULL); in bfa_msgq_init()
528 struct bfa_msgq *msgq = (struct bfa_msgq *)cbarg; in bfa_msgq_isr() local
532 bfa_msgq_init_rsp(msgq, msg); in bfa_msgq_isr()
536 bfa_msgq_rspq_pi_update(&msgq->rspq, msg); in bfa_msgq_isr()
540 bfa_msgq_cmdq_ci_update(&msgq->cmdq, msg); in bfa_msgq_isr()
544 bfa_msgq_cmdq_copy_req(&msgq->cmdq, msg); in bfa_msgq_isr()
555 struct bfa_msgq *msgq = (struct bfa_msgq *)cbarg; in bfa_msgq_notify() local
559 bfa_wc_init(&msgq->init_wc, bfa_msgq_init, msgq); in bfa_msgq_notify()
560 bfa_wc_up(&msgq->init_wc); in bfa_msgq_notify()
561 bfa_fsm_send_event(&msgq->cmdq, CMDQ_E_START); in bfa_msgq_notify()
562 bfa_wc_up(&msgq->init_wc); in bfa_msgq_notify()
563 bfa_fsm_send_event(&msgq->rspq, RSPQ_E_START); in bfa_msgq_notify()
564 bfa_wc_wait(&msgq->init_wc); in bfa_msgq_notify()
568 bfa_fsm_send_event(&msgq->cmdq, CMDQ_E_STOP); in bfa_msgq_notify()
569 bfa_fsm_send_event(&msgq->rspq, RSPQ_E_STOP); in bfa_msgq_notify()
573 bfa_fsm_send_event(&msgq->cmdq, CMDQ_E_FAIL); in bfa_msgq_notify()
574 bfa_fsm_send_event(&msgq->rspq, RSPQ_E_FAIL); in bfa_msgq_notify()
590 bfa_msgq_memclaim(struct bfa_msgq *msgq, u8 *kva, u64 pa) in bfa_msgq_memclaim() argument
592 msgq->cmdq.addr.kva = kva; in bfa_msgq_memclaim()
593 msgq->cmdq.addr.pa = pa; in bfa_msgq_memclaim()
598 msgq->rspq.addr.kva = kva; in bfa_msgq_memclaim()
599 msgq->rspq.addr.pa = pa; in bfa_msgq_memclaim()
603 bfa_msgq_attach(struct bfa_msgq *msgq, struct bfa_ioc *ioc) in bfa_msgq_attach() argument
605 msgq->ioc = ioc; in bfa_msgq_attach()
607 bfa_msgq_cmdq_attach(&msgq->cmdq, msgq); in bfa_msgq_attach()
608 bfa_msgq_rspq_attach(&msgq->rspq, msgq); in bfa_msgq_attach()
610 bfa_nw_ioc_mbox_regisr(msgq->ioc, BFI_MC_MSGQ, bfa_msgq_isr, msgq); in bfa_msgq_attach()
611 bfa_ioc_notify_init(&msgq->ioc_notify, bfa_msgq_notify, msgq); in bfa_msgq_attach()
612 bfa_nw_ioc_notify_register(msgq->ioc, &msgq->ioc_notify); in bfa_msgq_attach()
616 bfa_msgq_regisr(struct bfa_msgq *msgq, enum bfi_mclass mc, in bfa_msgq_regisr() argument
619 msgq->rspq.rsphdlr[mc].cbfn = cbfn; in bfa_msgq_regisr()
620 msgq->rspq.rsphdlr[mc].cbarg = cbarg; in bfa_msgq_regisr()
624 bfa_msgq_cmd_post(struct bfa_msgq *msgq, struct bfa_msgq_cmd_entry *cmd) in bfa_msgq_cmd_post() argument
627 BFA_MSGQ_FREE_CNT(&msgq->cmdq)) { in bfa_msgq_cmd_post()
628 __cmd_copy(&msgq->cmdq, cmd); in bfa_msgq_cmd_post()
630 bfa_fsm_send_event(&msgq->cmdq, CMDQ_E_POST); in bfa_msgq_cmd_post()
632 list_add_tail(&cmd->qe, &msgq->cmdq.pending_q); in bfa_msgq_cmd_post()
637 bfa_msgq_rsp_copy(struct bfa_msgq *msgq, u8 *buf, size_t buf_len) in bfa_msgq_rsp_copy() argument
639 struct bfa_msgq_rspq *rspq = &msgq->rspq; in bfa_msgq_rsp_copy()