Lines Matching refs:item
106 static ssize_t cluster_cluster_name_show(struct config_item *item, char *buf) in cluster_cluster_name_show() argument
108 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_show()
112 static ssize_t cluster_cluster_name_store(struct config_item *item, in cluster_cluster_name_store() argument
115 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_store()
148 static ssize_t cluster_##name##_store(struct config_item *item, \
151 struct dlm_cluster *cl = config_item_to_cluster(item); \
155 static ssize_t cluster_##name##_show(struct config_item *item, char *buf) \
157 struct dlm_cluster *cl = config_item_to_cluster(item); \
224 struct config_item item; member
237 struct config_item item; member
332 return i ? container_of(i, struct dlm_comm, item) : NULL; in config_item_to_comm()
337 return i ? container_of(i, struct dlm_node, item) : NULL; in config_item_to_node()
481 config_item_init_type_name(&cm->item, name, &comm_type); in make_comm()
490 return &cm->item; in make_comm()
519 config_item_init_type_name(&nd->item, name, &node_type); in make_node()
529 return &nd->item; in make_node()
578 static ssize_t comm_nodeid_show(struct config_item *item, char *buf) in comm_nodeid_show() argument
580 return sprintf(buf, "%d\n", config_item_to_comm(item)->nodeid); in comm_nodeid_show()
583 static ssize_t comm_nodeid_store(struct config_item *item, const char *buf, in comm_nodeid_store() argument
586 int rc = kstrtoint(buf, 0, &config_item_to_comm(item)->nodeid); in comm_nodeid_store()
593 static ssize_t comm_local_show(struct config_item *item, char *buf) in comm_local_show() argument
595 return sprintf(buf, "%d\n", config_item_to_comm(item)->local); in comm_local_show()
598 static ssize_t comm_local_store(struct config_item *item, const char *buf, in comm_local_store() argument
601 struct dlm_comm *cm = config_item_to_comm(item); in comm_local_store()
611 static ssize_t comm_addr_store(struct config_item *item, const char *buf, in comm_addr_store() argument
614 struct dlm_comm *cm = config_item_to_comm(item); in comm_addr_store()
640 static ssize_t comm_addr_list_show(struct config_item *item, char *buf) in comm_addr_list_show() argument
642 struct dlm_comm *cm = config_item_to_comm(item); in comm_addr_list_show()
698 static ssize_t node_nodeid_show(struct config_item *item, char *buf) in node_nodeid_show() argument
700 return sprintf(buf, "%d\n", config_item_to_node(item)->nodeid); in node_nodeid_show()
703 static ssize_t node_nodeid_store(struct config_item *item, const char *buf, in node_nodeid_store() argument
706 struct dlm_node *nd = config_item_to_node(item); in node_nodeid_store()
717 static ssize_t node_weight_show(struct config_item *item, char *buf) in node_weight_show() argument
719 return sprintf(buf, "%d\n", config_item_to_node(item)->weight); in node_weight_show()
722 static ssize_t node_weight_store(struct config_item *item, const char *buf, in node_weight_store() argument
725 int rc = kstrtoint(buf, 0, &config_item_to_node(item)->weight); in node_weight_store()
793 config_item_put(&cm->item); in put_comm()