Home
last modified time | relevance | path

Searched refs:nsim_bus_dev (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/net/netdevsim/
Dbus.c25 static struct nsim_bus_dev *to_nsim_bus_dev(struct device *dev) in to_nsim_bus_dev()
27 return container_of(dev, struct nsim_bus_dev, dev); in to_nsim_bus_dev()
34 struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev); in nsim_bus_dev_numvfs_store() local
45 ret = nsim_drv_configure_vfs(nsim_bus_dev, num_vfs); in nsim_bus_dev_numvfs_store()
55 struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev); in nsim_bus_dev_numvfs_show() local
57 return sprintf(buf, "%u\n", nsim_bus_dev->num_vfs); in nsim_bus_dev_numvfs_show()
68 struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev); in new_port_store() local
73 if (!smp_load_acquire(&nsim_bus_dev->init)) in new_port_store()
79 ret = nsim_drv_port_add(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index); in new_port_store()
89 struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev); in del_port_store() local
[all …]
Dnetdevsim.h111 struct nsim_bus_dev *nsim_bus_dev; member
292 struct nsim_bus_dev *nsim_bus_dev; member
358 int nsim_drv_probe(struct nsim_bus_dev *nsim_bus_dev);
359 void nsim_drv_remove(struct nsim_bus_dev *nsim_bus_dev);
360 int nsim_drv_port_add(struct nsim_bus_dev *nsim_bus_dev,
363 int nsim_drv_port_del(struct nsim_bus_dev *nsim_bus_dev,
366 int nsim_drv_configure_vfs(struct nsim_bus_dev *nsim_bus_dev,
418 struct nsim_bus_dev { struct
Ddev.c64 return nsim_dev->nsim_bus_dev->num_vfs; in nsim_dev_get_vfs()
68 nsim_bus_dev_set_vfs(struct nsim_bus_dev *nsim_bus_dev, unsigned int num_vfs) in nsim_bus_dev_set_vfs() argument
71 nsim_bus_dev->num_vfs = num_vfs; in nsim_bus_dev_set_vfs()
235 READ_ONCE(nsim_dev->nsim_bus_dev->max_vfs)); in nsim_bus_dev_max_vfs_read()
281 WRITE_ONCE(nsim_dev->nsim_bus_dev->max_vfs, val); in nsim_bus_dev_max_vfs_write()
304 sprintf(dev_ddir_name, DRV_NAME "%u", nsim_dev->nsim_bus_dev->dev.id); in nsim_dev_debugfs_init()
394 struct nsim_bus_dev *nsim_bus_dev = nsim_dev->nsim_bus_dev; in nsim_dev_port_debugfs_init() local
405 sprintf(dev_link_name, "../../../" DRV_NAME "%u", nsim_bus_dev->dev.id); in nsim_dev_port_debugfs_init()
1463 struct nsim_bus_dev *nsim_bus_dev = nsim_dev->nsim_bus_dev; in nsim_dev_reload_create() local
1501 err = nsim_dev_port_add_all(nsim_dev, nsim_bus_dev->port_count); in nsim_dev_reload_create()
[all …]
Dnetdev.c666 phc = mock_phc_create(&ns->nsim_bus_dev->dev); in nsim_init_netdevsim()
735 nsim_dev->nsim_bus_dev->num_queues); in nsim_create()
745 ns->nsim_bus_dev = nsim_dev->nsim_bus_dev; in nsim_create()
746 SET_NETDEV_DEV(dev, &ns->nsim_bus_dev->dev); in nsim_create()
Dethtool.c96 ch->max_combined = ns->nsim_bus_dev->num_queues; in nsim_get_channels()
199 ns->ethtool.channels = ns->nsim_bus_dev->num_queues; in nsim_ethtool_init()
Dudp_tunnels.c137 dev_err(&nsim_dev->nsim_bus_dev->dev, in nsim_udp_tunnels_info_create()