Lines Matching refs:nsim_node

1218 	struct nsim_rate_node *nsim_node = priv;  in nsim_node_tx_share_set()  local
1225 nsim_node->tx_share = tx_share; in nsim_node_tx_share_set()
1232 struct nsim_rate_node *nsim_node = priv; in nsim_node_tx_max_set() local
1239 nsim_node->tx_max = tx_max; in nsim_node_tx_max_set()
1247 struct nsim_rate_node *nsim_node; in nsim_rate_node_new() local
1254 nsim_node = kzalloc(sizeof(*nsim_node), GFP_KERNEL); in nsim_rate_node_new()
1255 if (!nsim_node) in nsim_rate_node_new()
1258 nsim_node->ddir = debugfs_create_dir(node->name, nsim_dev->nodes_ddir); in nsim_rate_node_new()
1260 debugfs_create_u16("tx_share", 0400, nsim_node->ddir, &nsim_node->tx_share); in nsim_rate_node_new()
1261 debugfs_create_u16("tx_max", 0400, nsim_node->ddir, &nsim_node->tx_max); in nsim_rate_node_new()
1262 nsim_node->rate_parent = debugfs_create_file("rate_parent", 0400, in nsim_rate_node_new()
1263 nsim_node->ddir, in nsim_rate_node_new()
1264 &nsim_node->parent_name, in nsim_rate_node_new()
1267 *priv = nsim_node; in nsim_rate_node_new()
1274 struct nsim_rate_node *nsim_node = priv; in nsim_rate_node_del() local
1276 debugfs_remove(nsim_node->rate_parent); in nsim_rate_node_del()
1277 debugfs_remove_recursive(nsim_node->ddir); in nsim_rate_node_del()
1278 kfree(nsim_node); in nsim_rate_node_del()
1301 struct nsim_rate_node *nsim_node = priv_child; in nsim_rate_node_parent_set() local
1304 nsim_node->parent_name = parent->name; in nsim_rate_node_parent_set()
1306 nsim_node->parent_name = NULL; in nsim_rate_node_parent_set()