Home
last modified time | relevance | path

Searched refs:simdev (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/vdpa/vdpa_sim/
Dvdpa_sim_net.c245 struct vdpasim *simdev; in vdpasim_net_dev_add() local
260 simdev = vdpasim_create(&dev_attr, config); in vdpasim_net_dev_add()
261 if (IS_ERR(simdev)) in vdpasim_net_dev_add()
262 return PTR_ERR(simdev); in vdpasim_net_dev_add()
264 vdpasim_net_setup_config(simdev, config); in vdpasim_net_dev_add()
266 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_NET_VQ_NUM); in vdpasim_net_dev_add()
273 put_device(&simdev->vdpa.dev); in vdpasim_net_dev_add()
280 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_dev_del() local
282 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_net_dev_del()
Dvdpa_sim_blk.c371 struct vdpasim *simdev; in vdpasim_blk_dev_add() local
386 simdev = vdpasim_create(&dev_attr, config); in vdpasim_blk_dev_add()
387 if (IS_ERR(simdev)) in vdpasim_blk_dev_add()
388 return PTR_ERR(simdev); in vdpasim_blk_dev_add()
390 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_BLK_VQ_NUM); in vdpasim_blk_dev_add()
397 put_device(&simdev->vdpa.dev); in vdpasim_blk_dev_add()
404 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_blk_dev_del() local
406 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_blk_dev_del()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_offload.py691 def test_multi_prog(simdev, sim, obj, modename, modeid): argument
745 simdev.remove()
747 simdev = NetdevSimDev()
748 sim, = simdev.nsims
750 return [simdev, sim]
810 simdev = NetdevSimDev() variable
811 sim, = simdev.nsims
813 simdev.remove()
816 simdev = NetdevSimDev() variable
817 sim, = simdev.nsims
[all …]
/linux-6.1.9/drivers/gpio/
Dgpio-sim.c509 struct gpio_sim_device *simdev = container_of(nb, in gpio_sim_bus_notifier_call() local
515 snprintf(devname, sizeof(devname), "gpio-sim.%u", simdev->id); in gpio_sim_bus_notifier_call()
519 simdev->driver_bound = true; in gpio_sim_bus_notifier_call()
521 simdev->driver_bound = false; in gpio_sim_bus_notifier_call()
525 complete(&simdev->probe_completion); in gpio_sim_bus_notifier_call()