Lines Matching refs:si
20 static int enetc_msg_vsi_send(struct enetc_si *si, struct enetc_msg_swbd *msg) in enetc_msg_vsi_send() argument
25 enetc_msg_vsi_write_msg(&si->hw, msg); in enetc_msg_vsi_send()
28 vsimsgsr = enetc_rd(&si->hw, ENETC_VSIMSGSR); in enetc_msg_vsi_send()
40 dev_err(&si->pdev->dev, "VSI command execute error: %d\n", in enetc_msg_vsi_send()
70 err = enetc_msg_vsi_send(priv->si, &msg); in enetc_msg_vsi_set_primary_mac_addr()
106 static void enetc_vf_netdev_setup(struct enetc_si *si, struct net_device *ndev, in enetc_vf_netdev_setup() argument
111 SET_NETDEV_DEV(ndev, &si->pdev->dev); in enetc_vf_netdev_setup()
113 priv->si = si; in enetc_vf_netdev_setup()
114 priv->dev = &si->pdev->dev; in enetc_vf_netdev_setup()
115 si->ndev = ndev; in enetc_vf_netdev_setup()
134 if (si->num_rss) in enetc_vf_netdev_setup()
138 enetc_load_primary_mac_addr(&si->hw, ndev); in enetc_vf_netdev_setup()
146 struct enetc_si *si; in enetc_vf_probe() local
153 si = pci_get_drvdata(pdev); in enetc_vf_probe()
155 enetc_get_si_caps(si); in enetc_vf_probe()
164 enetc_vf_netdev_setup(si, ndev, &enetc_ndev_ops); in enetc_vf_probe()
170 err = enetc_setup_cbdr(priv->dev, &si->hw, ENETC_CBDR_DEFAULT_SIZE, in enetc_vf_probe()
171 &si->cbd_ring); in enetc_vf_probe()
207 enetc_teardown_cbdr(&si->cbd_ring); in enetc_vf_probe()
209 si->ndev = NULL; in enetc_vf_probe()
219 struct enetc_si *si = pci_get_drvdata(pdev); in enetc_vf_remove() local
222 priv = netdev_priv(si->ndev); in enetc_vf_remove()
223 unregister_netdev(si->ndev); in enetc_vf_remove()
228 enetc_teardown_cbdr(&si->cbd_ring); in enetc_vf_remove()
230 free_netdev(si->ndev); in enetc_vf_remove()