Searched refs:simdev (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/net/ |
H A D | bpf_offload.py | 627 def test_multi_prog(simdev, sim, obj, modename, modeid): argument 681 simdev.remove() 683 simdev = BpfNetdevSimDev() 684 sim, = simdev.nsims 686 return [simdev, sim] 748 simdev = BpfNetdevSimDev() variable 749 sim, = simdev.nsims 751 simdev.remove() 754 simdev = BpfNetdevSimDev() variable 755 sim, = simdev.nsims [all …]
|
/linux/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_blk.c | 414 struct vdpasim *simdev; in vdpasim_blk_dev_add() local 430 simdev = vdpasim_create(&dev_attr, config); in vdpasim_blk_dev_add() 431 if (IS_ERR(simdev)) in vdpasim_blk_dev_add() 432 return PTR_ERR(simdev); in vdpasim_blk_dev_add() 434 blk = sim_to_blk(simdev); in vdpasim_blk_dev_add() 448 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_BLK_VQ_NUM); in vdpasim_blk_dev_add() 455 put_device(&simdev->vdpa.dev); in vdpasim_blk_dev_add() 462 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_blk_dev_del() local 464 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_blk_dev_del()
|
H A D | vdpa_sim_net.c | 470 struct vdpasim *simdev; in vdpasim_net_dev_add() local 487 simdev = vdpasim_create(&dev_attr, config); in vdpasim_net_dev_add() 488 if (IS_ERR(simdev)) in vdpasim_net_dev_add() 489 return PTR_ERR(simdev); in vdpasim_net_dev_add() 491 vdpasim_net_setup_config(simdev, config); in vdpasim_net_dev_add() 493 net = sim_to_net(simdev); in vdpasim_net_dev_add() 510 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_NET_VQ_NUM); in vdpasim_net_dev_add() 517 put_device(&simdev->vdpa.dev); in vdpasim_net_dev_add() 524 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_dev_del() local 526 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_net_dev_del()
|
/linux/drivers/gpio/ |
H A D | gpio-sim.c | 590 struct gpio_sim_device *simdev = container_of(nb, in gpio_sim_bus_notifier_call() local 596 snprintf(devname, sizeof(devname), "gpio-sim.%u", simdev->id); in gpio_sim_bus_notifier_call() 602 simdev->driver_bound = true; in gpio_sim_bus_notifier_call() 604 simdev->driver_bound = false; in gpio_sim_bus_notifier_call() 608 complete(&simdev->probe_completion); in gpio_sim_bus_notifier_call()
|