Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/netdevsim/
Dbus.c21 static struct nsim_bus_dev *to_nsim_bus_dev(struct device *dev) in to_nsim_bus_dev()
23 return container_of(dev, struct nsim_bus_dev, dev); in to_nsim_bus_dev()
30 struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev); in nsim_bus_dev_numvfs_store() local
41 ret = nsim_drv_configure_vfs(nsim_bus_dev, num_vfs); in nsim_bus_dev_numvfs_store()
51 struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev); in nsim_bus_dev_numvfs_show() local
53 return sprintf(buf, "%u\n", nsim_bus_dev->num_vfs); in nsim_bus_dev_numvfs_show()
64 struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev); in new_port_store() local
69 if (!smp_load_acquire(&nsim_bus_dev->init)) in new_port_store()
75 ret = nsim_drv_port_add(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index); in new_port_store()
85 struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev); in del_port_store() local
[all …]
Dnetdevsim.h103 struct nsim_bus_dev *nsim_bus_dev; member
279 struct nsim_bus_dev *nsim_bus_dev; member
345 int nsim_drv_probe(struct nsim_bus_dev *nsim_bus_dev);
346 void nsim_drv_remove(struct nsim_bus_dev *nsim_bus_dev);
347 int nsim_drv_port_add(struct nsim_bus_dev *nsim_bus_dev,
350 int nsim_drv_port_del(struct nsim_bus_dev *nsim_bus_dev,
353 int nsim_drv_configure_vfs(struct nsim_bus_dev *nsim_bus_dev,
405 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()
1460 struct nsim_bus_dev *nsim_bus_dev = nsim_dev->nsim_bus_dev; in nsim_dev_reload_create() local
1498 err = nsim_dev_port_add_all(nsim_dev, nsim_bus_dev->port_count); in nsim_dev_reload_create()
[all …]
Dnetdev.c324 phc = mock_phc_create(&ns->nsim_bus_dev->dev); in nsim_init_netdevsim()
386 nsim_dev->nsim_bus_dev->num_queues); in nsim_create()
396 ns->nsim_bus_dev = nsim_dev->nsim_bus_dev; in nsim_create()
397 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()
188 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()