• Home
  • Raw
  • Download

Lines Matching refs:item

112 static ssize_t cluster_cluster_name_show(struct config_item *item, char *buf)  in cluster_cluster_name_show()  argument
114 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_show()
118 static ssize_t cluster_cluster_name_store(struct config_item *item, in cluster_cluster_name_store() argument
121 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_store()
157 static ssize_t cluster_##name##_store(struct config_item *item, \
160 struct dlm_cluster *cl = config_item_to_cluster(item); \
164 static ssize_t cluster_##name##_show(struct config_item *item, char *buf) \
166 struct dlm_cluster *cl = config_item_to_cluster(item); \
285 struct config_item item; member
299 struct config_item item; member
394 return i ? container_of(i, struct dlm_comm, item) : NULL; in config_item_to_comm()
399 return i ? container_of(i, struct dlm_node, item) : NULL; in config_item_to_node()
527 config_item_init_type_name(&cm->item, name, &comm_type); in make_comm()
537 return &cm->item; in make_comm()
566 config_item_init_type_name(&nd->item, name, &node_type); in make_node()
576 return &nd->item; in make_node()
625 static ssize_t comm_nodeid_show(struct config_item *item, char *buf) in comm_nodeid_show() argument
627 return sprintf(buf, "%d\n", config_item_to_comm(item)->nodeid); in comm_nodeid_show()
630 static ssize_t comm_nodeid_store(struct config_item *item, const char *buf, in comm_nodeid_store() argument
633 int rc = kstrtoint(buf, 0, &config_item_to_comm(item)->nodeid); in comm_nodeid_store()
640 static ssize_t comm_local_show(struct config_item *item, char *buf) in comm_local_show() argument
642 return sprintf(buf, "%d\n", config_item_to_comm(item)->local); in comm_local_show()
645 static ssize_t comm_local_store(struct config_item *item, const char *buf, in comm_local_store() argument
648 struct dlm_comm *cm = config_item_to_comm(item); in comm_local_store()
658 static ssize_t comm_addr_store(struct config_item *item, const char *buf, in comm_addr_store() argument
661 struct dlm_comm *cm = config_item_to_comm(item); in comm_addr_store()
687 static ssize_t comm_addr_list_show(struct config_item *item, char *buf) in comm_addr_list_show() argument
689 struct dlm_comm *cm = config_item_to_comm(item); in comm_addr_list_show()
732 static ssize_t comm_mark_show(struct config_item *item, char *buf) in comm_mark_show() argument
734 return sprintf(buf, "%u\n", config_item_to_comm(item)->mark); in comm_mark_show()
737 static ssize_t comm_mark_store(struct config_item *item, const char *buf, in comm_mark_store() argument
751 comm = config_item_to_comm(item); in comm_mark_store()
775 static ssize_t node_nodeid_show(struct config_item *item, char *buf) in node_nodeid_show() argument
777 return sprintf(buf, "%d\n", config_item_to_node(item)->nodeid); in node_nodeid_show()
780 static ssize_t node_nodeid_store(struct config_item *item, const char *buf, in node_nodeid_store() argument
783 struct dlm_node *nd = config_item_to_node(item); in node_nodeid_store()
794 static ssize_t node_weight_show(struct config_item *item, char *buf) in node_weight_show() argument
796 return sprintf(buf, "%d\n", config_item_to_node(item)->weight); in node_weight_show()
799 static ssize_t node_weight_store(struct config_item *item, const char *buf, in node_weight_store() argument
802 int rc = kstrtoint(buf, 0, &config_item_to_node(item)->weight); in node_weight_store()
870 config_item_put(&cm->item); in put_comm()