Lines Matching refs:sf_dev
97 struct ice_sf_dev *sf_dev = ice_adev_to_sf_dev(adev); in ice_sf_dev_probe() local
98 struct ice_dynamic_port *dyn_port = sf_dev->dyn_port; in ice_sf_dev_probe()
116 priv->dev = sf_dev; in ice_sf_dev_probe()
117 sf_dev->priv = priv; in ice_sf_dev_probe()
131 err = ice_devlink_create_sf_dev_port(sf_dev); in ice_sf_dev_probe()
137 err = ice_sf_cfg_netdev(dyn_port, &sf_dev->priv->devlink_port); in ice_sf_dev_probe()
161 ice_devlink_destroy_sf_dev_port(sf_dev); in ice_sf_dev_probe()
178 struct ice_sf_dev *sf_dev = ice_adev_to_sf_dev(adev); in ice_sf_dev_remove() local
179 struct ice_dynamic_port *dyn_port = sf_dev->dyn_port; in ice_sf_dev_remove()
183 devlink = priv_to_devlink(sf_dev->priv); in ice_sf_dev_remove()
189 ice_devlink_destroy_sf_dev_port(sf_dev); in ice_sf_dev_remove()
243 struct ice_sf_dev *sf_dev = ice_adev_to_sf_dev(adev); in ice_sf_dev_release() local
246 kfree(sf_dev); in ice_sf_dev_release()
264 struct ice_sf_dev *sf_dev; in ice_sf_eth_activate() local
276 sf_dev = kzalloc(sizeof(*sf_dev), GFP_KERNEL); in ice_sf_eth_activate()
277 if (!sf_dev) { in ice_sf_eth_activate()
284 sf_dev->dyn_port = dyn_port; in ice_sf_eth_activate()
285 sf_dev->adev.id = id; in ice_sf_eth_activate()
286 sf_dev->adev.name = "sf"; in ice_sf_eth_activate()
287 sf_dev->adev.dev.release = ice_sf_dev_release; in ice_sf_eth_activate()
288 sf_dev->adev.dev.parent = &pdev->dev; in ice_sf_eth_activate()
290 err = auxiliary_device_init(&sf_dev->adev); in ice_sf_eth_activate()
296 err = auxiliary_device_add(&sf_dev->adev); in ice_sf_eth_activate()
302 dyn_port->sf_dev = sf_dev; in ice_sf_eth_activate()
307 auxiliary_device_uninit(&sf_dev->adev); in ice_sf_eth_activate()
309 kfree(sf_dev); in ice_sf_eth_activate()
325 struct ice_sf_dev *sf_dev = dyn_port->sf_dev; in ice_sf_eth_deactivate() local
327 auxiliary_device_delete(&sf_dev->adev); in ice_sf_eth_deactivate()
328 auxiliary_device_uninit(&sf_dev->adev); in ice_sf_eth_deactivate()