Lines Matching defs:nsim_dev
59 unsigned int nsim_dev_get_vfs(struct nsim_dev *nsim_dev) in nsim_dev_get_vfs()
100 struct nsim_dev *nsim_dev = file->private_data; in nsim_dev_take_snapshot_write() local
141 struct nsim_dev *nsim_dev = file->private_data; in nsim_dev_trap_fa_cookie_read() local
176 struct nsim_dev *nsim_dev = file->private_data; in nsim_dev_trap_fa_cookie_write() local
230 struct nsim_dev *nsim_dev = file->private_data; in nsim_bus_dev_max_vfs_read() local
245 struct nsim_dev *nsim_dev; in nsim_bus_dev_max_vfs_write() local
299 static int nsim_dev_debugfs_init(struct nsim_dev *nsim_dev) in nsim_dev_debugfs_init()
363 static void nsim_dev_debugfs_exit(struct nsim_dev *nsim_dev) in nsim_dev_debugfs_exit()
391 static int nsim_dev_port_debugfs_init(struct nsim_dev *nsim_dev, in nsim_dev_port_debugfs_init()
521 static void nsim_devlink_set_params_init_values(struct nsim_dev *nsim_dev, in nsim_devlink_set_params_init_values()
538 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_devlink_param_load_driverinit_values() local
562 static int nsim_dev_dummy_region_init(struct nsim_dev *nsim_dev, in nsim_dev_dummy_region_init()
572 static void nsim_dev_dummy_region_exit(struct nsim_dev *nsim_dev) in nsim_dev_dummy_region_exit()
582 static int nsim_esw_legacy_enable(struct nsim_dev *nsim_dev, in nsim_esw_legacy_enable()
596 static int nsim_esw_switchdev_enable(struct nsim_dev *nsim_dev, in nsim_esw_switchdev_enable()
623 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_devlink_eswitch_mode_set() local
638 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_devlink_eswitch_mode_get() local
654 struct nsim_dev *nsim_dev; member
784 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_dev_trap_report() local
832 struct nsim_dev *nsim_dev; in nsim_dev_trap_report_work() local
863 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_traps_init() local
935 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_traps_exit() local
958 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_reload_down() local
976 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_reload_up() local
1013 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_flash_update() local
1049 nsim_dev_trap_item_lookup(struct nsim_dev *nsim_dev, u16 trap_id) in nsim_dev_trap_item_lookup()
1066 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_devlink_trap_init() local
1085 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_devlink_trap_action_set() local
1105 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_devlink_trap_group_set() local
1119 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_devlink_trap_policer_set() local
1134 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_devlink_trap_policer_counter_get() local
1179 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_leaf_tx_share_set() local
1195 struct nsim_dev *nsim_dev = nsim_dev_port->ns->nsim_dev; in nsim_leaf_tx_max_set() local
1246 struct nsim_dev *nsim_dev = devlink_priv(node->devlink); in nsim_rate_node_new() local
1315 struct nsim_dev *nsim_dev = devlink_priv(devlink); in nsim_dev_devlink_trap_drop_counter_get() local
1355 static int __nsim_dev_port_add(struct nsim_dev *nsim_dev, enum nsim_dev_port_type type, in __nsim_dev_port_add()
1434 static void nsim_dev_port_del_all(struct nsim_dev *nsim_dev) in nsim_dev_port_del_all()
1443 static int nsim_dev_port_add_all(struct nsim_dev *nsim_dev, in nsim_dev_port_add_all()
1460 static int nsim_dev_reload_create(struct nsim_dev *nsim_dev, in nsim_dev_reload_create()
1529 struct nsim_dev *nsim_dev; in nsim_drv_probe() local
1647 static void nsim_dev_reload_destroy(struct nsim_dev *nsim_dev) in nsim_dev_reload_destroy()
1672 struct nsim_dev *nsim_dev = dev_get_drvdata(&nsim_bus_dev->dev); in nsim_drv_remove() local
1692 __nsim_dev_port_lookup(struct nsim_dev *nsim_dev, enum nsim_dev_port_type type, in __nsim_dev_port_lookup()
1707 struct nsim_dev *nsim_dev = dev_get_drvdata(&nsim_bus_dev->dev); in nsim_drv_port_add() local
1722 struct nsim_dev *nsim_dev = dev_get_drvdata(&nsim_bus_dev->dev); in nsim_drv_port_del() local
1739 struct nsim_dev *nsim_dev = dev_get_drvdata(&nsim_bus_dev->dev); in nsim_drv_configure_vfs() local