Lines Matching refs:item

143 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item)  in to_o2nm_cluster()  argument
145 return item ? in to_o2nm_cluster()
146 container_of(to_config_group(item), struct o2nm_cluster, in to_o2nm_cluster()
151 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node() argument
153 return item ? container_of(item, struct o2nm_node, nd_item) : NULL; in to_o2nm_node()
156 static void o2nm_node_release(struct config_item *item) in o2nm_node_release() argument
158 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_release()
162 static ssize_t o2nm_node_num_show(struct config_item *item, char *page) in o2nm_node_num_show() argument
164 return sprintf(page, "%d\n", to_o2nm_node(item)->nd_num); in o2nm_node_num_show()
183 static ssize_t o2nm_node_num_store(struct config_item *item, const char *page, in o2nm_node_num_store() argument
186 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_num_store()
233 static ssize_t o2nm_node_ipv4_port_show(struct config_item *item, char *page) in o2nm_node_ipv4_port_show() argument
235 return sprintf(page, "%u\n", ntohs(to_o2nm_node(item)->nd_ipv4_port)); in o2nm_node_ipv4_port_show()
238 static ssize_t o2nm_node_ipv4_port_store(struct config_item *item, in o2nm_node_ipv4_port_store() argument
241 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_ipv4_port_store()
261 static ssize_t o2nm_node_ipv4_address_show(struct config_item *item, char *page) in o2nm_node_ipv4_address_show() argument
263 return sprintf(page, "%pI4\n", &to_o2nm_node(item)->nd_ipv4_address); in o2nm_node_ipv4_address_show()
266 static ssize_t o2nm_node_ipv4_address_store(struct config_item *item, in o2nm_node_ipv4_address_store() argument
270 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_ipv4_address_store()
317 static ssize_t o2nm_node_local_show(struct config_item *item, char *page) in o2nm_node_local_show() argument
319 return sprintf(page, "%d\n", to_o2nm_node(item)->nd_local); in o2nm_node_local_show()
322 static ssize_t o2nm_node_local_store(struct config_item *item, const char *page, in o2nm_node_local_store() argument
325 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_local_store()
444 static ssize_t o2nm_cluster_idle_timeout_ms_show(struct config_item *item, in o2nm_cluster_idle_timeout_ms_show() argument
447 return sprintf(page, "%u\n", to_o2nm_cluster(item)->cl_idle_timeout_ms); in o2nm_cluster_idle_timeout_ms_show()
450 static ssize_t o2nm_cluster_idle_timeout_ms_store(struct config_item *item, in o2nm_cluster_idle_timeout_ms_store() argument
453 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_idle_timeout_ms_store()
481 struct config_item *item, char *page) in o2nm_cluster_keepalive_delay_ms_show() argument
484 to_o2nm_cluster(item)->cl_keepalive_delay_ms); in o2nm_cluster_keepalive_delay_ms_show()
488 struct config_item *item, const char *page, size_t count) in o2nm_cluster_keepalive_delay_ms_store() argument
490 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_keepalive_delay_ms_store()
518 struct config_item *item, char *page) in o2nm_cluster_reconnect_delay_ms_show() argument
521 to_o2nm_cluster(item)->cl_reconnect_delay_ms); in o2nm_cluster_reconnect_delay_ms_show()
525 struct config_item *item, const char *page, size_t count) in o2nm_cluster_reconnect_delay_ms_store() argument
528 &to_o2nm_cluster(item)->cl_reconnect_delay_ms); in o2nm_cluster_reconnect_delay_ms_store()
532 struct config_item *item, char *page) in o2nm_cluster_fence_method_show() argument
534 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_fence_method_show()
544 struct config_item *item, const char *page, size_t count) in o2nm_cluster_fence_method_store() argument
556 if (to_o2nm_cluster(item)->cl_fence_method != i) { in o2nm_cluster_fence_method_store()
559 to_o2nm_cluster(item)->cl_fence_method = i; in o2nm_cluster_fence_method_store()
603 struct config_item *item) in o2nm_node_group_drop_item() argument
605 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_group_drop_item()
637 config_item_put(item); in o2nm_node_group_drop_item()
652 static void o2nm_cluster_release(struct config_item *item) in o2nm_cluster_release() argument
654 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_release()
732 static void o2nm_cluster_group_drop_item(struct config_group *group, struct config_item *item) in o2nm_cluster_group_drop_item() argument
734 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_group_drop_item()
740 config_item_put(item); in o2nm_cluster_group_drop_item()
774 int o2nm_depend_item(struct config_item *item) in o2nm_depend_item() argument
776 return configfs_depend_item(&o2nm_cluster_group.cs_subsys, item); in o2nm_depend_item()
779 void o2nm_undepend_item(struct config_item *item) in o2nm_undepend_item() argument
781 configfs_undepend_item(item); in o2nm_undepend_item()