Lines Matching refs:item

1489 static struct o2hb_region *to_o2hb_region(struct config_item *item)
1491 return item ? container_of(item, struct o2hb_region, hr_item) : NULL;
1497 static void o2hb_region_release(struct config_item *item)
1501 struct o2hb_region *reg = to_o2hb_region(item);
1561 static ssize_t o2hb_region_block_bytes_show(struct config_item *item,
1564 return sprintf(page, "%u\n", to_o2hb_region(item)->hr_block_bytes);
1567 static ssize_t o2hb_region_block_bytes_store(struct config_item *item,
1571 struct o2hb_region *reg = to_o2hb_region(item);
1590 static ssize_t o2hb_region_start_block_show(struct config_item *item,
1593 return sprintf(page, "%llu\n", to_o2hb_region(item)->hr_start_block);
1596 static ssize_t o2hb_region_start_block_store(struct config_item *item,
1600 struct o2hb_region *reg = to_o2hb_region(item);
1616 static ssize_t o2hb_region_blocks_show(struct config_item *item, char *page)
1618 return sprintf(page, "%d\n", to_o2hb_region(item)->hr_blocks);
1621 static ssize_t o2hb_region_blocks_store(struct config_item *item,
1625 struct o2hb_region *reg = to_o2hb_region(item);
1644 static ssize_t o2hb_region_dev_show(struct config_item *item, char *page)
1648 if (to_o2hb_region(item)->hr_bdev)
1649 ret = sprintf(page, "%s\n", to_o2hb_region(item)->hr_dev_name);
1759 static ssize_t o2hb_region_dev_store(struct config_item *item,
1763 struct o2hb_region *reg = to_o2hb_region(item);
1917 static ssize_t o2hb_region_pid_show(struct config_item *item, char *page)
1919 struct o2hb_region *reg = to_o2hb_region(item);
2072 struct config_item *item)
2075 struct o2hb_region *reg = to_o2hb_region(item);
2098 "stopped" : "start aborted"), config_item_name(item),
2112 config_item_put(item);
2134 static ssize_t o2hb_heartbeat_group_dead_threshold_show(struct config_item *item,
2140 static ssize_t o2hb_heartbeat_group_dead_threshold_store(struct config_item *item,
2156 static ssize_t o2hb_heartbeat_group_mode_show(struct config_item *item,
2163 static ssize_t o2hb_heartbeat_group_mode_store(struct config_item *item,