Lines Matching full:item
145 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) in to_o2nm_cluster() argument
147 return item ? in to_o2nm_cluster()
148 container_of(to_config_group(item), struct o2nm_cluster, in to_o2nm_cluster()
153 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node() argument
155 return item ? container_of(item, struct o2nm_node, nd_item) : NULL; in to_o2nm_node()
158 static void o2nm_node_release(struct config_item *item) in o2nm_node_release() argument
160 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_release()
164 static ssize_t o2nm_node_num_show(struct config_item *item, char *page) in o2nm_node_num_show() argument
166 return sprintf(page, "%d\n", to_o2nm_node(item)->nd_num); in o2nm_node_num_show()
185 static ssize_t o2nm_node_num_store(struct config_item *item, const char *page, in o2nm_node_num_store() argument
188 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_num_store()
235 static ssize_t o2nm_node_ipv4_port_show(struct config_item *item, char *page) in o2nm_node_ipv4_port_show() argument
237 return sprintf(page, "%u\n", ntohs(to_o2nm_node(item)->nd_ipv4_port)); in o2nm_node_ipv4_port_show()
240 static ssize_t o2nm_node_ipv4_port_store(struct config_item *item, in o2nm_node_ipv4_port_store() argument
243 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_ipv4_port_store()
263 static ssize_t o2nm_node_ipv4_address_show(struct config_item *item, char *page) in o2nm_node_ipv4_address_show() argument
265 return sprintf(page, "%pI4\n", &to_o2nm_node(item)->nd_ipv4_address); in o2nm_node_ipv4_address_show()
268 static ssize_t o2nm_node_ipv4_address_store(struct config_item *item, in o2nm_node_ipv4_address_store() argument
272 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_ipv4_address_store()
319 static ssize_t o2nm_node_local_show(struct config_item *item, char *page) in o2nm_node_local_show() argument
321 return sprintf(page, "%d\n", to_o2nm_node(item)->nd_local); in o2nm_node_local_show()
324 static ssize_t o2nm_node_local_store(struct config_item *item, const char *page, in o2nm_node_local_store() argument
327 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_local_store()
446 static ssize_t o2nm_cluster_idle_timeout_ms_show(struct config_item *item, in o2nm_cluster_idle_timeout_ms_show() argument
449 return sprintf(page, "%u\n", to_o2nm_cluster(item)->cl_idle_timeout_ms); in o2nm_cluster_idle_timeout_ms_show()
452 static ssize_t o2nm_cluster_idle_timeout_ms_store(struct config_item *item, in o2nm_cluster_idle_timeout_ms_store() argument
455 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_idle_timeout_ms_store()
483 struct config_item *item, char *page) in o2nm_cluster_keepalive_delay_ms_show() argument
486 to_o2nm_cluster(item)->cl_keepalive_delay_ms); in o2nm_cluster_keepalive_delay_ms_show()
490 struct config_item *item, const char *page, size_t count) in o2nm_cluster_keepalive_delay_ms_store() argument
492 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_keepalive_delay_ms_store()
520 struct config_item *item, char *page) in o2nm_cluster_reconnect_delay_ms_show() argument
523 to_o2nm_cluster(item)->cl_reconnect_delay_ms); in o2nm_cluster_reconnect_delay_ms_show()
527 struct config_item *item, const char *page, size_t count) in o2nm_cluster_reconnect_delay_ms_store() argument
530 &to_o2nm_cluster(item)->cl_reconnect_delay_ms); in o2nm_cluster_reconnect_delay_ms_store()
534 struct config_item *item, char *page) in o2nm_cluster_fence_method_show() argument
536 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_fence_method_show()
546 struct config_item *item, const char *page, size_t count) in o2nm_cluster_fence_method_store() argument
558 if (to_o2nm_cluster(item)->cl_fence_method != i) { in o2nm_cluster_fence_method_store()
561 to_o2nm_cluster(item)->cl_fence_method = i; in o2nm_cluster_fence_method_store()
595 strcpy(node->nd_name, name); /* use item.ci_namebuf instead? */ in o2nm_node_group_make_item()
605 struct config_item *item) in o2nm_node_group_drop_item() argument
607 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_group_drop_item()
639 config_item_put(item); in o2nm_node_group_drop_item()
654 static void o2nm_cluster_release(struct config_item *item) in o2nm_cluster_release() argument
656 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_release()
734 static void o2nm_cluster_group_drop_item(struct config_group *group, struct config_item *item) in o2nm_cluster_group_drop_item() argument
736 struct o2nm_cluster *cluster = to_o2nm_cluster(item); in o2nm_cluster_group_drop_item()
742 config_item_put(item); in o2nm_cluster_group_drop_item()
776 int o2nm_depend_item(struct config_item *item) in o2nm_depend_item() argument
778 return configfs_depend_item(&o2nm_cluster_group.cs_subsys, item); in o2nm_depend_item()
781 void o2nm_undepend_item(struct config_item *item) in o2nm_undepend_item() argument
783 configfs_undepend_item(item); in o2nm_undepend_item()