Searched refs:nsim_bus_dev (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/drivers/net/netdevsim/ |
D | bus.c | 21 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 …]
|
D | netdevsim.h | 81 struct nsim_bus_dev *nsim_bus_dev; member 256 struct nsim_bus_dev *nsim_bus_dev; member 322 int nsim_drv_probe(struct nsim_bus_dev *nsim_bus_dev); 323 void nsim_drv_remove(struct nsim_bus_dev *nsim_bus_dev); 324 int nsim_drv_port_add(struct nsim_bus_dev *nsim_bus_dev, 327 int nsim_drv_port_del(struct nsim_bus_dev *nsim_bus_dev, 330 int nsim_drv_configure_vfs(struct nsim_bus_dev *nsim_bus_dev, 369 struct nsim_bus_dev { struct
|
D | dev.c | 64 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() 238 READ_ONCE(nsim_dev->nsim_bus_dev->max_vfs)); in nsim_bus_dev_max_vfs_read() 284 WRITE_ONCE(nsim_dev->nsim_bus_dev->max_vfs, val); in nsim_bus_dev_max_vfs_write() 307 sprintf(dev_ddir_name, DRV_NAME "%u", nsim_dev->nsim_bus_dev->dev.id); in nsim_dev_debugfs_init() 397 struct nsim_bus_dev *nsim_bus_dev = nsim_dev->nsim_bus_dev; in nsim_dev_port_debugfs_init() local 408 sprintf(dev_link_name, "../../../" DRV_NAME "%u", nsim_bus_dev->dev.id); in nsim_dev_port_debugfs_init() 1468 struct nsim_bus_dev *nsim_bus_dev = nsim_dev->nsim_bus_dev; in nsim_dev_reload_create() local 1506 err = nsim_dev_port_add_all(nsim_dev, nsim_bus_dev->port_count); in nsim_dev_reload_create() [all …]
|
D | netdev.c | 351 nsim_dev->nsim_bus_dev->num_queues); in nsim_create() 361 ns->nsim_bus_dev = nsim_dev->nsim_bus_dev; in nsim_create() 362 SET_NETDEV_DEV(dev, &ns->nsim_bus_dev->dev); in nsim_create()
|
D | ethtool.c | 96 ch->max_combined = ns->nsim_bus_dev->num_queues; in nsim_get_channels() 177 ns->ethtool.channels = ns->nsim_bus_dev->num_queues; in nsim_ethtool_init()
|
D | udp_tunnels.c | 137 dev_err(&nsim_dev->nsim_bus_dev->dev, in nsim_udp_tunnels_info_create()
|