Lines Matching full: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()
119 static void enetc_vf_netdev_setup(struct enetc_si *si, struct net_device *ndev, in enetc_vf_netdev_setup() argument
124 SET_NETDEV_DEV(ndev, &si->pdev->dev); in enetc_vf_netdev_setup()
126 priv->si = si; in enetc_vf_netdev_setup()
127 priv->dev = &si->pdev->dev; in enetc_vf_netdev_setup()
128 si->ndev = ndev; in enetc_vf_netdev_setup()
147 if (si->num_rss) in enetc_vf_netdev_setup()
150 /* pick up primary MAC address from SI */ in enetc_vf_netdev_setup()
151 enetc_load_primary_mac_addr(&si->hw, ndev); in enetc_vf_netdev_setup()
159 struct enetc_si *si; in enetc_vf_probe() local
166 si = pci_get_drvdata(pdev); in enetc_vf_probe()
168 enetc_get_si_caps(si); in enetc_vf_probe()
177 enetc_vf_netdev_setup(si, ndev, &enetc_ndev_ops); in enetc_vf_probe()
183 err = enetc_setup_cbdr(priv->dev, &si->hw, ENETC_CBDR_DEFAULT_SIZE, in enetc_vf_probe()
184 &si->cbd_ring); in enetc_vf_probe()
190 dev_err(&pdev->dev, "SI resource alloc failed\n"); in enetc_vf_probe()
196 dev_err(&pdev->dev, "Failed to configure SI\n"); in enetc_vf_probe()
220 enetc_teardown_cbdr(&si->cbd_ring); in enetc_vf_probe()
222 si->ndev = NULL; in enetc_vf_probe()
232 struct enetc_si *si = pci_get_drvdata(pdev); in enetc_vf_remove() local
235 priv = netdev_priv(si->ndev); in enetc_vf_remove()
236 unregister_netdev(si->ndev); in enetc_vf_remove()
241 enetc_teardown_cbdr(&si->cbd_ring); in enetc_vf_remove()
243 free_netdev(si->ndev); in enetc_vf_remove()