Lines Matching refs:item
111 static ssize_t cluster_cluster_name_show(struct config_item *item, char *buf) in cluster_cluster_name_show() argument
113 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_show()
117 static ssize_t cluster_cluster_name_store(struct config_item *item, in cluster_cluster_name_store() argument
120 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_store()
156 static ssize_t cluster_##name##_store(struct config_item *item, \
159 struct dlm_cluster *cl = config_item_to_cluster(item); \
163 static ssize_t cluster_##name##_show(struct config_item *item, char *buf) \
165 struct dlm_cluster *cl = config_item_to_cluster(item); \
254 struct config_item item; member
268 struct config_item item; member
363 return i ? container_of(i, struct dlm_comm, item) : NULL; in config_item_to_comm()
368 return i ? container_of(i, struct dlm_node, item) : NULL; in config_item_to_node()
496 config_item_init_type_name(&cm->item, name, &comm_type); in make_comm()
506 return &cm->item; in make_comm()
535 config_item_init_type_name(&nd->item, name, &node_type); in make_node()
545 return &nd->item; in make_node()
594 static ssize_t comm_nodeid_show(struct config_item *item, char *buf) in comm_nodeid_show() argument
596 return sprintf(buf, "%d\n", config_item_to_comm(item)->nodeid); in comm_nodeid_show()
599 static ssize_t comm_nodeid_store(struct config_item *item, const char *buf, in comm_nodeid_store() argument
602 int rc = kstrtoint(buf, 0, &config_item_to_comm(item)->nodeid); in comm_nodeid_store()
609 static ssize_t comm_local_show(struct config_item *item, char *buf) in comm_local_show() argument
611 return sprintf(buf, "%d\n", config_item_to_comm(item)->local); in comm_local_show()
614 static ssize_t comm_local_store(struct config_item *item, const char *buf, in comm_local_store() argument
617 struct dlm_comm *cm = config_item_to_comm(item); in comm_local_store()
627 static ssize_t comm_addr_store(struct config_item *item, const char *buf, in comm_addr_store() argument
630 struct dlm_comm *cm = config_item_to_comm(item); in comm_addr_store()
656 static ssize_t comm_addr_list_show(struct config_item *item, char *buf) in comm_addr_list_show() argument
658 struct dlm_comm *cm = config_item_to_comm(item); in comm_addr_list_show()
701 static ssize_t comm_mark_show(struct config_item *item, char *buf) in comm_mark_show() argument
703 return sprintf(buf, "%u\n", config_item_to_comm(item)->mark); in comm_mark_show()
706 static ssize_t comm_mark_store(struct config_item *item, const char *buf, in comm_mark_store() argument
716 config_item_to_comm(item)->mark = mark; in comm_mark_store()
735 static ssize_t node_nodeid_show(struct config_item *item, char *buf) in node_nodeid_show() argument
737 return sprintf(buf, "%d\n", config_item_to_node(item)->nodeid); in node_nodeid_show()
740 static ssize_t node_nodeid_store(struct config_item *item, const char *buf, in node_nodeid_store() argument
743 struct dlm_node *nd = config_item_to_node(item); in node_nodeid_store()
754 static ssize_t node_weight_show(struct config_item *item, char *buf) in node_weight_show() argument
756 return sprintf(buf, "%d\n", config_item_to_node(item)->weight); in node_weight_show()
759 static ssize_t node_weight_store(struct config_item *item, const char *buf, in node_weight_store() argument
762 int rc = kstrtoint(buf, 0, &config_item_to_node(item)->weight); in node_weight_store()
830 config_item_put(&cm->item); in put_comm()