Lines Matching refs:item

1409 static struct o2hb_region *to_o2hb_region(struct config_item *item)  in to_o2hb_region()  argument
1411 return item ? container_of(item, struct o2hb_region, hr_item) : NULL; in to_o2hb_region()
1417 static void o2hb_region_release(struct config_item *item) in o2hb_region_release() argument
1421 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_release()
1483 static ssize_t o2hb_region_block_bytes_show(struct config_item *item, in o2hb_region_block_bytes_show() argument
1486 return sprintf(page, "%u\n", to_o2hb_region(item)->hr_block_bytes); in o2hb_region_block_bytes_show()
1489 static ssize_t o2hb_region_block_bytes_store(struct config_item *item, in o2hb_region_block_bytes_store() argument
1493 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_block_bytes_store()
1512 static ssize_t o2hb_region_start_block_show(struct config_item *item, in o2hb_region_start_block_show() argument
1515 return sprintf(page, "%llu\n", to_o2hb_region(item)->hr_start_block); in o2hb_region_start_block_show()
1518 static ssize_t o2hb_region_start_block_store(struct config_item *item, in o2hb_region_start_block_store() argument
1522 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_start_block_store()
1538 static ssize_t o2hb_region_blocks_show(struct config_item *item, char *page) in o2hb_region_blocks_show() argument
1540 return sprintf(page, "%d\n", to_o2hb_region(item)->hr_blocks); in o2hb_region_blocks_show()
1543 static ssize_t o2hb_region_blocks_store(struct config_item *item, in o2hb_region_blocks_store() argument
1547 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_blocks_store()
1566 static ssize_t o2hb_region_dev_show(struct config_item *item, char *page) in o2hb_region_dev_show() argument
1570 if (to_o2hb_region(item)->hr_bdev) in o2hb_region_dev_show()
1571 ret = sprintf(page, "%s\n", to_o2hb_region(item)->hr_dev_name); in o2hb_region_dev_show()
1681 static ssize_t o2hb_region_dev_store(struct config_item *item, in o2hb_region_dev_store() argument
1685 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_dev_store()
1846 static ssize_t o2hb_region_pid_show(struct config_item *item, char *page) in o2hb_region_pid_show() argument
1848 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_pid_show()
2011 struct config_item *item) in o2hb_heartbeat_group_drop_item() argument
2014 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_heartbeat_group_drop_item()
2037 "stopped" : "start aborted"), config_item_name(item), in o2hb_heartbeat_group_drop_item()
2051 config_item_put(item); in o2hb_heartbeat_group_drop_item()
2073 static ssize_t o2hb_heartbeat_group_threshold_show(struct config_item *item, in o2hb_heartbeat_group_threshold_show() argument
2079 static ssize_t o2hb_heartbeat_group_threshold_store(struct config_item *item, in o2hb_heartbeat_group_threshold_store() argument
2095 static ssize_t o2hb_heartbeat_group_mode_show(struct config_item *item, in o2hb_heartbeat_group_mode_show() argument
2102 static ssize_t o2hb_heartbeat_group_mode_store(struct config_item *item, in o2hb_heartbeat_group_mode_store() argument