Lines Matching refs:item

1478 static struct o2hb_region *to_o2hb_region(struct config_item *item)
1480 return item ? container_of(item, struct o2hb_region, hr_item) : NULL;
1486 static void o2hb_region_release(struct config_item *item)
1490 struct o2hb_region *reg = to_o2hb_region(item);
1550 static ssize_t o2hb_region_block_bytes_show(struct config_item *item,
1553 return sprintf(page, "%u\n", to_o2hb_region(item)->hr_block_bytes);
1556 static ssize_t o2hb_region_block_bytes_store(struct config_item *item,
1560 struct o2hb_region *reg = to_o2hb_region(item);
1579 static ssize_t o2hb_region_start_block_show(struct config_item *item,
1582 return sprintf(page, "%llu\n", to_o2hb_region(item)->hr_start_block);
1585 static ssize_t o2hb_region_start_block_store(struct config_item *item,
1589 struct o2hb_region *reg = to_o2hb_region(item);
1606 static ssize_t o2hb_region_blocks_show(struct config_item *item, char *page)
1608 return sprintf(page, "%d\n", to_o2hb_region(item)->hr_blocks);
1611 static ssize_t o2hb_region_blocks_store(struct config_item *item,
1615 struct o2hb_region *reg = to_o2hb_region(item);
1634 static ssize_t o2hb_region_dev_show(struct config_item *item, char *page)
1638 if (to_o2hb_region(item)->hr_bdev)
1639 ret = sprintf(page, "%pg\n", to_o2hb_region(item)->hr_bdev);
1749 static ssize_t o2hb_region_dev_store(struct config_item *item,
1753 struct o2hb_region *reg = to_o2hb_region(item);
1906 static ssize_t o2hb_region_pid_show(struct config_item *item, char *page)
1908 struct o2hb_region *reg = to_o2hb_region(item);
2061 struct config_item *item)
2064 struct o2hb_region *reg = to_o2hb_region(item);
2087 "stopped" : "start aborted"), config_item_name(item),
2101 config_item_put(item);
2123 static ssize_t o2hb_heartbeat_group_dead_threshold_show(struct config_item *item,
2129 static ssize_t o2hb_heartbeat_group_dead_threshold_store(struct config_item *item,
2145 static ssize_t o2hb_heartbeat_group_mode_show(struct config_item *item,
2152 static ssize_t o2hb_heartbeat_group_mode_store(struct config_item *item,