Lines Matching refs:si
22 struct enetc_si *si = (struct enetc_si *)data; in enetc_msg_psi_msix() local
23 struct enetc_pf *pf = enetc_si_priv(si); in enetc_msg_psi_msix()
25 enetc_msg_disable_mr_int(&si->hw); in enetc_msg_psi_msix()
34 struct enetc_hw *hw = &pf->si->hw; in enetc_msg_task()
64 static int enetc_msg_alloc_mbx(struct enetc_si *si, int idx) in enetc_msg_alloc_mbx() argument
66 struct enetc_pf *pf = enetc_si_priv(si); in enetc_msg_alloc_mbx()
67 struct device *dev = &si->pdev->dev; in enetc_msg_alloc_mbx()
68 struct enetc_hw *hw = &si->hw; in enetc_msg_alloc_mbx()
93 static void enetc_msg_free_mbx(struct enetc_si *si, int idx) in enetc_msg_free_mbx() argument
95 struct enetc_pf *pf = enetc_si_priv(si); in enetc_msg_free_mbx()
96 struct enetc_hw *hw = &si->hw; in enetc_msg_free_mbx()
100 dma_free_coherent(&si->pdev->dev, msg->size, msg->vaddr, msg->dma); in enetc_msg_free_mbx()
109 struct enetc_si *si = pf->si; in enetc_msg_psi_init() local
114 si->ndev->name); in enetc_msg_psi_init()
115 vector = pci_irq_vector(si->pdev, ENETC_SI_INT_IDX); in enetc_msg_psi_init()
116 err = request_irq(vector, enetc_msg_psi_msix, 0, pf->msg_int_name, si); in enetc_msg_psi_init()
118 dev_err(&si->pdev->dev, in enetc_msg_psi_init()
124 enetc_wr(&si->hw, ENETC_SIMSIVR, ENETC_SI_INT_IDX); in enetc_msg_psi_init()
130 err = enetc_msg_alloc_mbx(si, i); in enetc_msg_psi_init()
136 enetc_msg_enable_mr_int(&si->hw); in enetc_msg_psi_init()
142 enetc_msg_free_mbx(si, i); in enetc_msg_psi_init()
144 free_irq(vector, si); in enetc_msg_psi_init()
151 struct enetc_si *si = pf->si; in enetc_msg_psi_free() local
157 enetc_msg_disable_mr_int(&si->hw); in enetc_msg_psi_free()
160 enetc_msg_free_mbx(si, i); in enetc_msg_psi_free()
163 free_irq(pci_irq_vector(si->pdev, ENETC_SI_INT_IDX), si); in enetc_msg_psi_free()