Lines Matching refs:item
157 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item)
159 return item ?
160 container_of(to_config_group(item), struct o2nm_cluster,
165 static struct o2nm_node *to_o2nm_node(struct config_item *item)
167 return item ? container_of(item, struct o2nm_node, nd_item) : NULL;
170 static void o2nm_node_release(struct config_item *item)
172 struct o2nm_node *node = to_o2nm_node(item);
410 static ssize_t o2nm_node_show(struct config_item *item,
414 struct o2nm_node *node = to_o2nm_node(item);
424 static ssize_t o2nm_node_store(struct config_item *item,
428 struct o2nm_node *node = to_o2nm_node(item);
655 static ssize_t o2nm_cluster_show(struct config_item *item,
659 struct o2nm_cluster *cluster = to_o2nm_cluster(item);
669 static ssize_t o2nm_cluster_store(struct config_item *item,
673 struct o2nm_cluster *cluster = to_o2nm_cluster(item);
702 strcpy(node->nd_name, name); /* use item.ci_namebuf instead? */
710 struct config_item *item)
712 struct o2nm_node *node = to_o2nm_node(item);
737 config_item_put(item);
752 static void o2nm_cluster_release(struct config_item *item)
754 struct o2nm_cluster *cluster = to_o2nm_cluster(item);
831 static void o2nm_cluster_group_drop_item(struct config_group *group, struct config_item *item)
833 struct o2nm_cluster *cluster = to_o2nm_cluster(item);
846 config_item_put(item);
870 int o2nm_depend_item(struct config_item *item)
872 return configfs_depend_item(&o2nm_cluster_group.cs_subsys, item);
875 void o2nm_undepend_item(struct config_item *item)
877 configfs_undepend_item(&o2nm_cluster_group.cs_subsys, item);