• Home
  • Raw
  • Download

Lines Matching refs:cee

532 bfa_cee_get_attr_isr(struct bfa_cee_s *cee, bfa_status_t status)  in bfa_cee_get_attr_isr()  argument
534 struct bfa_cee_lldp_cfg_s *lldp_cfg = &cee->attr->lldp_remote; in bfa_cee_get_attr_isr()
536 cee->get_attr_status = status; in bfa_cee_get_attr_isr()
537 bfa_trc(cee, 0); in bfa_cee_get_attr_isr()
539 bfa_trc(cee, 0); in bfa_cee_get_attr_isr()
540 memcpy(cee->attr, cee->attr_dma.kva, in bfa_cee_get_attr_isr()
546 cee->get_attr_pending = BFA_FALSE; in bfa_cee_get_attr_isr()
547 if (cee->cbfn.get_attr_cbfn) { in bfa_cee_get_attr_isr()
548 bfa_trc(cee, 0); in bfa_cee_get_attr_isr()
549 cee->cbfn.get_attr_cbfn(cee->cbfn.get_attr_cbarg, status); in bfa_cee_get_attr_isr()
564 bfa_cee_get_stats_isr(struct bfa_cee_s *cee, bfa_status_t status) in bfa_cee_get_stats_isr() argument
569 cee->get_stats_status = status; in bfa_cee_get_stats_isr()
570 bfa_trc(cee, 0); in bfa_cee_get_stats_isr()
572 bfa_trc(cee, 0); in bfa_cee_get_stats_isr()
573 memcpy(cee->stats, cee->stats_dma.kva, in bfa_cee_get_stats_isr()
576 buffer = (u32 *)cee->stats; in bfa_cee_get_stats_isr()
581 cee->get_stats_pending = BFA_FALSE; in bfa_cee_get_stats_isr()
582 bfa_trc(cee, 0); in bfa_cee_get_stats_isr()
583 if (cee->cbfn.get_stats_cbfn) { in bfa_cee_get_stats_isr()
584 bfa_trc(cee, 0); in bfa_cee_get_stats_isr()
585 cee->cbfn.get_stats_cbfn(cee->cbfn.get_stats_cbarg, status); in bfa_cee_get_stats_isr()
600 bfa_cee_reset_stats_isr(struct bfa_cee_s *cee, bfa_status_t status) in bfa_cee_reset_stats_isr() argument
602 cee->reset_stats_status = status; in bfa_cee_reset_stats_isr()
603 cee->reset_stats_pending = BFA_FALSE; in bfa_cee_reset_stats_isr()
604 if (cee->cbfn.reset_stats_cbfn) in bfa_cee_reset_stats_isr()
605 cee->cbfn.reset_stats_cbfn(cee->cbfn.reset_stats_cbarg, status); in bfa_cee_reset_stats_isr()
636 bfa_cee_mem_claim(struct bfa_cee_s *cee, u8 *dma_kva, u64 dma_pa) in bfa_cee_mem_claim() argument
638 cee->attr_dma.kva = dma_kva; in bfa_cee_mem_claim()
639 cee->attr_dma.pa = dma_pa; in bfa_cee_mem_claim()
640 cee->stats_dma.kva = dma_kva + BFA_ROUNDUP( in bfa_cee_mem_claim()
642 cee->stats_dma.pa = dma_pa + BFA_ROUNDUP( in bfa_cee_mem_claim()
644 cee->attr = (struct bfa_cee_attr_s *) dma_kva; in bfa_cee_mem_claim()
645 cee->stats = (struct bfa_cee_stats_s *) (dma_kva + BFA_ROUNDUP( in bfa_cee_mem_claim()
661 bfa_cee_get_attr(struct bfa_cee_s *cee, struct bfa_cee_attr_s *attr, in bfa_cee_get_attr() argument
666 WARN_ON((cee == NULL) || (cee->ioc == NULL)); in bfa_cee_get_attr()
667 bfa_trc(cee, 0); in bfa_cee_get_attr()
668 if (!bfa_ioc_is_operational(cee->ioc)) { in bfa_cee_get_attr()
669 bfa_trc(cee, 0); in bfa_cee_get_attr()
672 if (cee->get_attr_pending == BFA_TRUE) { in bfa_cee_get_attr()
673 bfa_trc(cee, 0); in bfa_cee_get_attr()
676 cee->get_attr_pending = BFA_TRUE; in bfa_cee_get_attr()
677 cmd = (struct bfi_cee_get_req_s *) cee->get_cfg_mb.msg; in bfa_cee_get_attr()
678 cee->attr = attr; in bfa_cee_get_attr()
679 cee->cbfn.get_attr_cbfn = cbfn; in bfa_cee_get_attr()
680 cee->cbfn.get_attr_cbarg = cbarg; in bfa_cee_get_attr()
682 bfa_ioc_portid(cee->ioc)); in bfa_cee_get_attr()
683 bfa_dma_be_addr_set(cmd->dma_addr, cee->attr_dma.pa); in bfa_cee_get_attr()
684 bfa_ioc_mbox_queue(cee->ioc, &cee->get_cfg_mb); in bfa_cee_get_attr()
701 bfa_cee_get_stats(struct bfa_cee_s *cee, struct bfa_cee_stats_s *stats, in bfa_cee_get_stats() argument
706 WARN_ON((cee == NULL) || (cee->ioc == NULL)); in bfa_cee_get_stats()
708 if (!bfa_ioc_is_operational(cee->ioc)) { in bfa_cee_get_stats()
709 bfa_trc(cee, 0); in bfa_cee_get_stats()
712 if (cee->get_stats_pending == BFA_TRUE) { in bfa_cee_get_stats()
713 bfa_trc(cee, 0); in bfa_cee_get_stats()
716 cee->get_stats_pending = BFA_TRUE; in bfa_cee_get_stats()
717 cmd = (struct bfi_cee_get_req_s *) cee->get_stats_mb.msg; in bfa_cee_get_stats()
718 cee->stats = stats; in bfa_cee_get_stats()
719 cee->cbfn.get_stats_cbfn = cbfn; in bfa_cee_get_stats()
720 cee->cbfn.get_stats_cbarg = cbarg; in bfa_cee_get_stats()
722 bfa_ioc_portid(cee->ioc)); in bfa_cee_get_stats()
723 bfa_dma_be_addr_set(cmd->dma_addr, cee->stats_dma.pa); in bfa_cee_get_stats()
724 bfa_ioc_mbox_queue(cee->ioc, &cee->get_stats_mb); in bfa_cee_get_stats()
740 bfa_cee_reset_stats(struct bfa_cee_s *cee, in bfa_cee_reset_stats() argument
745 WARN_ON((cee == NULL) || (cee->ioc == NULL)); in bfa_cee_reset_stats()
746 if (!bfa_ioc_is_operational(cee->ioc)) { in bfa_cee_reset_stats()
747 bfa_trc(cee, 0); in bfa_cee_reset_stats()
750 if (cee->reset_stats_pending == BFA_TRUE) { in bfa_cee_reset_stats()
751 bfa_trc(cee, 0); in bfa_cee_reset_stats()
754 cee->reset_stats_pending = BFA_TRUE; in bfa_cee_reset_stats()
755 cmd = (struct bfi_cee_reset_stats_s *) cee->reset_stats_mb.msg; in bfa_cee_reset_stats()
756 cee->cbfn.reset_stats_cbfn = cbfn; in bfa_cee_reset_stats()
757 cee->cbfn.reset_stats_cbarg = cbarg; in bfa_cee_reset_stats()
759 bfa_ioc_portid(cee->ioc)); in bfa_cee_reset_stats()
760 bfa_ioc_mbox_queue(cee->ioc, &cee->reset_stats_mb); in bfa_cee_reset_stats()
780 struct bfa_cee_s *cee = (struct bfa_cee_s *) cbarg; in bfa_cee_isr() local
783 bfa_trc(cee, msg->mh.msg_id); in bfa_cee_isr()
786 bfa_trc(cee, get_rsp->cmd_status); in bfa_cee_isr()
787 bfa_cee_get_attr_isr(cee, get_rsp->cmd_status); in bfa_cee_isr()
790 bfa_cee_get_stats_isr(cee, get_rsp->cmd_status); in bfa_cee_isr()
793 bfa_cee_reset_stats_isr(cee, get_rsp->cmd_status); in bfa_cee_isr()
814 struct bfa_cee_s *cee = (struct bfa_cee_s *) arg; in bfa_cee_notify() local
816 bfa_trc(cee, event); in bfa_cee_notify()
821 if (cee->get_attr_pending == BFA_TRUE) { in bfa_cee_notify()
822 cee->get_attr_status = BFA_STATUS_FAILED; in bfa_cee_notify()
823 cee->get_attr_pending = BFA_FALSE; in bfa_cee_notify()
824 if (cee->cbfn.get_attr_cbfn) { in bfa_cee_notify()
825 cee->cbfn.get_attr_cbfn( in bfa_cee_notify()
826 cee->cbfn.get_attr_cbarg, in bfa_cee_notify()
830 if (cee->get_stats_pending == BFA_TRUE) { in bfa_cee_notify()
831 cee->get_stats_status = BFA_STATUS_FAILED; in bfa_cee_notify()
832 cee->get_stats_pending = BFA_FALSE; in bfa_cee_notify()
833 if (cee->cbfn.get_stats_cbfn) { in bfa_cee_notify()
834 cee->cbfn.get_stats_cbfn( in bfa_cee_notify()
835 cee->cbfn.get_stats_cbarg, in bfa_cee_notify()
839 if (cee->reset_stats_pending == BFA_TRUE) { in bfa_cee_notify()
840 cee->reset_stats_status = BFA_STATUS_FAILED; in bfa_cee_notify()
841 cee->reset_stats_pending = BFA_FALSE; in bfa_cee_notify()
842 if (cee->cbfn.reset_stats_cbfn) { in bfa_cee_notify()
843 cee->cbfn.reset_stats_cbfn( in bfa_cee_notify()
844 cee->cbfn.reset_stats_cbarg, in bfa_cee_notify()
869 bfa_cee_attach(struct bfa_cee_s *cee, struct bfa_ioc_s *ioc, in bfa_cee_attach() argument
872 WARN_ON(cee == NULL); in bfa_cee_attach()
873 cee->dev = dev; in bfa_cee_attach()
874 cee->ioc = ioc; in bfa_cee_attach()
876 bfa_ioc_mbox_regisr(cee->ioc, BFI_MC_CEE, bfa_cee_isr, cee); in bfa_cee_attach()
877 bfa_q_qe_init(&cee->ioc_notify); in bfa_cee_attach()
878 bfa_ioc_notify_init(&cee->ioc_notify, bfa_cee_notify, cee); in bfa_cee_attach()
879 list_add_tail(&cee->ioc_notify.qe, &cee->ioc->notify_q); in bfa_cee_attach()