Lines Matching refs:item

80 item_to_hba(struct config_item *item)  in item_to_hba()  argument
82 return container_of(to_config_group(item), struct se_hba, hba_group); in item_to_hba()
88 static ssize_t target_core_item_version_show(struct config_item *item, in target_core_item_version_show() argument
101 static ssize_t target_core_item_dbroot_show(struct config_item *item, in target_core_item_dbroot_show() argument
107 static ssize_t target_core_item_dbroot_store(struct config_item *item, in target_core_item_dbroot_store() argument
272 struct config_item *item) in target_core_deregister_fabric() argument
275 to_config_group(item), struct target_fabric_configfs, tf_group); in target_core_deregister_fabric()
278 " tf list\n", config_item_name(item)); in target_core_deregister_fabric()
285 " %s\n", config_item_name(item)); in target_core_deregister_fabric()
288 config_item_put(item); in target_core_deregister_fabric()
323 int target_depend_item(struct config_item *item) in target_depend_item() argument
325 return configfs_depend_item(&target_core_fabrics, item); in target_depend_item()
329 void target_undepend_item(struct config_item *item) in target_undepend_item() argument
331 return configfs_undepend_item(item); in target_undepend_item()
507 static inline struct se_dev_attrib *to_attrib(struct config_item *item) in to_attrib() argument
509 return container_of(to_config_group(item), struct se_dev_attrib, in to_attrib()
515 static ssize_t _name##_show(struct config_item *item, char *page) \
517 return snprintf(page, PAGE_SIZE, "%u\n", to_attrib(item)->_name); \
554 static ssize_t _name##_store(struct config_item *item, const char *page,\
557 struct se_dev_attrib *da = to_attrib(item); \
575 static ssize_t _name##_store(struct config_item *item, const char *page, \
578 struct se_dev_attrib *da = to_attrib(item); \
597 static ssize_t _name##_store(struct config_item *item, const char *page,\
627 static ssize_t emulate_model_alias_store(struct config_item *item, in emulate_model_alias_store() argument
630 struct se_dev_attrib *da = to_attrib(item); in emulate_model_alias_store()
657 static ssize_t emulate_write_cache_store(struct config_item *item, in emulate_write_cache_store() argument
660 struct se_dev_attrib *da = to_attrib(item); in emulate_write_cache_store()
679 static ssize_t emulate_ua_intlck_ctrl_store(struct config_item *item, in emulate_ua_intlck_ctrl_store() argument
682 struct se_dev_attrib *da = to_attrib(item); in emulate_ua_intlck_ctrl_store()
709 static ssize_t emulate_tas_store(struct config_item *item, in emulate_tas_store() argument
712 struct se_dev_attrib *da = to_attrib(item); in emulate_tas_store()
733 static ssize_t emulate_tpu_store(struct config_item *item, in emulate_tpu_store() argument
736 struct se_dev_attrib *da = to_attrib(item); in emulate_tpu_store()
763 static ssize_t emulate_tpws_store(struct config_item *item, in emulate_tpws_store() argument
766 struct se_dev_attrib *da = to_attrib(item); in emulate_tpws_store()
793 static ssize_t pi_prot_type_store(struct config_item *item, in pi_prot_type_store() argument
796 struct se_dev_attrib *da = to_attrib(item); in pi_prot_type_store()
857 static ssize_t pi_prot_format_show(struct config_item *item, char *page) in pi_prot_format_show() argument
862 static ssize_t pi_prot_format_store(struct config_item *item, in pi_prot_format_store() argument
865 struct se_dev_attrib *da = to_attrib(item); in pi_prot_format_store()
900 static ssize_t pi_prot_verify_store(struct config_item *item, in pi_prot_verify_store() argument
903 struct se_dev_attrib *da = to_attrib(item); in pi_prot_verify_store()
929 static ssize_t force_pr_aptpl_store(struct config_item *item, in force_pr_aptpl_store() argument
932 struct se_dev_attrib *da = to_attrib(item); in force_pr_aptpl_store()
951 static ssize_t emulate_rest_reord_store(struct config_item *item, in emulate_rest_reord_store() argument
954 struct se_dev_attrib *da = to_attrib(item); in emulate_rest_reord_store()
973 static ssize_t unmap_zeroes_data_store(struct config_item *item, in unmap_zeroes_data_store() argument
976 struct se_dev_attrib *da = to_attrib(item); in unmap_zeroes_data_store()
1012 static ssize_t queue_depth_store(struct config_item *item, in queue_depth_store() argument
1015 struct se_dev_attrib *da = to_attrib(item); in queue_depth_store()
1049 static ssize_t optimal_sectors_store(struct config_item *item, in optimal_sectors_store() argument
1052 struct se_dev_attrib *da = to_attrib(item); in optimal_sectors_store()
1079 static ssize_t block_size_store(struct config_item *item, in block_size_store() argument
1082 struct se_dev_attrib *da = to_attrib(item); in block_size_store()
1111 static ssize_t alua_support_show(struct config_item *item, char *page) in alua_support_show() argument
1113 struct se_dev_attrib *da = to_attrib(item); in alua_support_show()
1120 static ssize_t alua_support_store(struct config_item *item, in alua_support_store() argument
1123 struct se_dev_attrib *da = to_attrib(item); in alua_support_store()
1150 static ssize_t pgr_support_show(struct config_item *item, char *page) in pgr_support_show() argument
1152 struct se_dev_attrib *da = to_attrib(item); in pgr_support_show()
1159 static ssize_t pgr_support_store(struct config_item *item, in pgr_support_store() argument
1162 struct se_dev_attrib *da = to_attrib(item); in pgr_support_store()
1189 static ssize_t emulate_rsoc_store(struct config_item *item, in emulate_rsoc_store() argument
1192 struct se_dev_attrib *da = to_attrib(item); in emulate_rsoc_store()
1322 static struct t10_wwn *to_t10_wwn(struct config_item *item) in to_t10_wwn() argument
1324 return container_of(to_config_group(item), struct t10_wwn, t10_wwn_group); in to_t10_wwn()
1353 static ssize_t target_wwn_vendor_id_show(struct config_item *item, in target_wwn_vendor_id_show() argument
1356 return sprintf(page, "%s\n", &to_t10_wwn(item)->vendor[0]); in target_wwn_vendor_id_show()
1359 static ssize_t target_wwn_vendor_id_store(struct config_item *item, in target_wwn_vendor_id_store() argument
1362 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vendor_id_store()
1409 static ssize_t target_wwn_product_id_show(struct config_item *item, in target_wwn_product_id_show() argument
1412 return sprintf(page, "%s\n", &to_t10_wwn(item)->model[0]); in target_wwn_product_id_show()
1415 static ssize_t target_wwn_product_id_store(struct config_item *item, in target_wwn_product_id_store() argument
1418 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_product_id_store()
1465 static ssize_t target_wwn_revision_show(struct config_item *item, in target_wwn_revision_show() argument
1468 return sprintf(page, "%s\n", &to_t10_wwn(item)->revision[0]); in target_wwn_revision_show()
1471 static ssize_t target_wwn_revision_store(struct config_item *item, in target_wwn_revision_store() argument
1474 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_revision_store()
1522 target_wwn_company_id_show(struct config_item *item, in target_wwn_company_id_show() argument
1526 to_t10_wwn(item)->company_id); in target_wwn_company_id_show()
1530 target_wwn_company_id_store(struct config_item *item, in target_wwn_company_id_store() argument
1533 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_company_id_store()
1572 static ssize_t target_wwn_vpd_unit_serial_show(struct config_item *item, in target_wwn_vpd_unit_serial_show() argument
1576 &to_t10_wwn(item)->unit_serial[0]); in target_wwn_vpd_unit_serial_show()
1579 static ssize_t target_wwn_vpd_unit_serial_store(struct config_item *item, in target_wwn_vpd_unit_serial_store() argument
1582 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vpd_unit_serial_store()
1640 static ssize_t target_wwn_vpd_protocol_identifier_show(struct config_item *item, in target_wwn_vpd_protocol_identifier_show() argument
1643 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vpd_protocol_identifier_show()
1669 static ssize_t target_wwn_##_name##_show(struct config_item *item, \
1672 struct t10_wwn *t10_wwn = to_t10_wwn(item); \
1741 static struct se_device *pr_to_dev(struct config_item *item) in pr_to_dev() argument
1743 return container_of(to_config_group(item), struct se_device, in pr_to_dev()
1785 static ssize_t target_pr_res_holder_show(struct config_item *item, char *page) in target_pr_res_holder_show() argument
1787 struct se_device *dev = pr_to_dev(item); in target_pr_res_holder_show()
1805 static ssize_t target_pr_res_pr_all_tgt_pts_show(struct config_item *item, in target_pr_res_pr_all_tgt_pts_show() argument
1808 struct se_device *dev = pr_to_dev(item); in target_pr_res_pr_all_tgt_pts_show()
1826 static ssize_t target_pr_res_pr_generation_show(struct config_item *item, in target_pr_res_pr_generation_show() argument
1829 return sprintf(page, "0x%08x\n", pr_to_dev(item)->t10_pr.pr_generation); in target_pr_res_pr_generation_show()
1833 static ssize_t target_pr_res_pr_holder_tg_port_show(struct config_item *item, in target_pr_res_pr_holder_tg_port_show() argument
1836 struct se_device *dev = pr_to_dev(item); in target_pr_res_pr_holder_tg_port_show()
1869 static ssize_t target_pr_res_pr_registered_i_pts_show(struct config_item *item, in target_pr_res_pr_registered_i_pts_show() argument
1872 struct se_device *dev = pr_to_dev(item); in target_pr_res_pr_registered_i_pts_show()
1910 static ssize_t target_pr_res_pr_type_show(struct config_item *item, char *page) in target_pr_res_pr_type_show() argument
1912 struct se_device *dev = pr_to_dev(item); in target_pr_res_pr_type_show()
1929 static ssize_t target_pr_res_type_show(struct config_item *item, char *page) in target_pr_res_type_show() argument
1931 struct se_device *dev = pr_to_dev(item); in target_pr_res_type_show()
1943 static ssize_t target_pr_res_aptpl_active_show(struct config_item *item, in target_pr_res_aptpl_active_show() argument
1946 struct se_device *dev = pr_to_dev(item); in target_pr_res_aptpl_active_show()
1956 static ssize_t target_pr_res_aptpl_metadata_show(struct config_item *item, in target_pr_res_aptpl_metadata_show() argument
1959 struct se_device *dev = pr_to_dev(item); in target_pr_res_aptpl_metadata_show()
1993 static ssize_t target_pr_res_aptpl_metadata_store(struct config_item *item, in target_pr_res_aptpl_metadata_store() argument
1996 struct se_device *dev = pr_to_dev(item); in target_pr_res_aptpl_metadata_store()
2208 static inline struct se_device *to_device(struct config_item *item) in to_device() argument
2210 return container_of(to_config_group(item), struct se_device, dev_group); in to_device()
2213 static ssize_t target_dev_info_show(struct config_item *item, char *page) in target_dev_info_show() argument
2215 struct se_device *dev = to_device(item); in target_dev_info_show()
2226 static ssize_t target_dev_control_store(struct config_item *item, in target_dev_control_store() argument
2229 struct se_device *dev = to_device(item); in target_dev_control_store()
2234 static ssize_t target_dev_alias_show(struct config_item *item, char *page) in target_dev_alias_show() argument
2236 struct se_device *dev = to_device(item); in target_dev_alias_show()
2244 static ssize_t target_dev_alias_store(struct config_item *item, in target_dev_alias_store() argument
2247 struct se_device *dev = to_device(item); in target_dev_alias_store()
2274 static ssize_t target_dev_udev_path_show(struct config_item *item, char *page) in target_dev_udev_path_show() argument
2276 struct se_device *dev = to_device(item); in target_dev_udev_path_show()
2284 static ssize_t target_dev_udev_path_store(struct config_item *item, in target_dev_udev_path_store() argument
2287 struct se_device *dev = to_device(item); in target_dev_udev_path_store()
2315 static ssize_t target_dev_enable_show(struct config_item *item, char *page) in target_dev_enable_show() argument
2317 struct se_device *dev = to_device(item); in target_dev_enable_show()
2322 static ssize_t target_dev_enable_store(struct config_item *item, in target_dev_enable_store() argument
2325 struct se_device *dev = to_device(item); in target_dev_enable_store()
2342 static ssize_t target_dev_alua_lu_gp_show(struct config_item *item, char *page) in target_dev_alua_lu_gp_show() argument
2344 struct se_device *dev = to_device(item); in target_dev_alua_lu_gp_show()
2366 static ssize_t target_dev_alua_lu_gp_store(struct config_item *item, in target_dev_alua_lu_gp_store() argument
2369 struct se_device *dev = to_device(item); in target_dev_alua_lu_gp_store()
2445 static ssize_t target_dev_lba_map_show(struct config_item *item, char *page) in target_dev_lba_map_show() argument
2447 struct se_device *dev = to_device(item); in target_dev_lba_map_show()
2490 static ssize_t target_dev_lba_map_store(struct config_item *item, in target_dev_lba_map_store() argument
2493 struct se_device *dev = to_device(item); in target_dev_lba_map_store()
2624 static void target_core_dev_release(struct config_item *item) in target_core_dev_release() argument
2626 struct config_group *dev_cg = to_config_group(item); in target_core_dev_release()
2647 static inline struct t10_alua_lu_gp *to_lu_gp(struct config_item *item) in to_lu_gp() argument
2649 return container_of(to_config_group(item), struct t10_alua_lu_gp, in to_lu_gp()
2653 static ssize_t target_lu_gp_lu_gp_id_show(struct config_item *item, char *page) in target_lu_gp_lu_gp_id_show() argument
2655 struct t10_alua_lu_gp *lu_gp = to_lu_gp(item); in target_lu_gp_lu_gp_id_show()
2662 static ssize_t target_lu_gp_lu_gp_id_store(struct config_item *item, in target_lu_gp_lu_gp_id_store() argument
2665 struct t10_alua_lu_gp *lu_gp = to_lu_gp(item); in target_lu_gp_lu_gp_id_store()
2694 static ssize_t target_lu_gp_members_show(struct config_item *item, char *page) in target_lu_gp_members_show() argument
2696 struct t10_alua_lu_gp *lu_gp = to_lu_gp(item); in target_lu_gp_members_show()
2735 static void target_core_alua_lu_gp_release(struct config_item *item) in target_core_alua_lu_gp_release() argument
2737 struct t10_alua_lu_gp *lu_gp = container_of(to_config_group(item), in target_core_alua_lu_gp_release()
2785 struct config_item *item) in target_core_alua_drop_lu_gp() argument
2787 struct t10_alua_lu_gp *lu_gp = container_of(to_config_group(item), in target_core_alua_drop_lu_gp()
2792 config_item_name(item), lu_gp->lu_gp_id); in target_core_alua_drop_lu_gp()
2797 config_item_put(item); in target_core_alua_drop_lu_gp()
2815 static inline struct t10_alua_tg_pt_gp *to_tg_pt_gp(struct config_item *item) in to_tg_pt_gp() argument
2817 return container_of(to_config_group(item), struct t10_alua_tg_pt_gp, in to_tg_pt_gp()
2821 static ssize_t target_tg_pt_gp_alua_access_state_show(struct config_item *item, in target_tg_pt_gp_alua_access_state_show() argument
2825 to_tg_pt_gp(item)->tg_pt_gp_alua_access_state); in target_tg_pt_gp_alua_access_state_show()
2828 static ssize_t target_tg_pt_gp_alua_access_state_store(struct config_item *item, in target_tg_pt_gp_alua_access_state_store() argument
2831 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_alua_access_state_store()
2872 static ssize_t target_tg_pt_gp_alua_access_status_show(struct config_item *item, in target_tg_pt_gp_alua_access_status_show() argument
2875 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_alua_access_status_show()
2881 struct config_item *item, const char *page, size_t count) in target_tg_pt_gp_alua_access_status_store() argument
2883 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_alua_access_status_store()
2912 static ssize_t target_tg_pt_gp_alua_access_type_show(struct config_item *item, in target_tg_pt_gp_alua_access_type_show() argument
2915 return core_alua_show_access_type(to_tg_pt_gp(item), page); in target_tg_pt_gp_alua_access_type_show()
2918 static ssize_t target_tg_pt_gp_alua_access_type_store(struct config_item *item, in target_tg_pt_gp_alua_access_type_store() argument
2921 return core_alua_store_access_type(to_tg_pt_gp(item), page, count); in target_tg_pt_gp_alua_access_type_store()
2926 struct config_item *item, char *p) \
2928 struct t10_alua_tg_pt_gp *t = to_tg_pt_gp(item); \
2934 struct config_item *item, const char *p, size_t c) \
2936 struct t10_alua_tg_pt_gp *t = to_tg_pt_gp(item); \
2971 struct config_item *item, char *page) in target_tg_pt_gp_alua_write_metadata_show() argument
2974 to_tg_pt_gp(item)->tg_pt_gp_write_metadata); in target_tg_pt_gp_alua_write_metadata_show()
2978 struct config_item *item, const char *page, size_t count) in target_tg_pt_gp_alua_write_metadata_store() argument
2980 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_alua_write_metadata_store()
3000 static ssize_t target_tg_pt_gp_nonop_delay_msecs_show(struct config_item *item, in target_tg_pt_gp_nonop_delay_msecs_show() argument
3003 return core_alua_show_nonop_delay_msecs(to_tg_pt_gp(item), page); in target_tg_pt_gp_nonop_delay_msecs_show()
3006 static ssize_t target_tg_pt_gp_nonop_delay_msecs_store(struct config_item *item, in target_tg_pt_gp_nonop_delay_msecs_store() argument
3009 return core_alua_store_nonop_delay_msecs(to_tg_pt_gp(item), page, in target_tg_pt_gp_nonop_delay_msecs_store()
3013 static ssize_t target_tg_pt_gp_trans_delay_msecs_show(struct config_item *item, in target_tg_pt_gp_trans_delay_msecs_show() argument
3016 return core_alua_show_trans_delay_msecs(to_tg_pt_gp(item), page); in target_tg_pt_gp_trans_delay_msecs_show()
3019 static ssize_t target_tg_pt_gp_trans_delay_msecs_store(struct config_item *item, in target_tg_pt_gp_trans_delay_msecs_store() argument
3022 return core_alua_store_trans_delay_msecs(to_tg_pt_gp(item), page, in target_tg_pt_gp_trans_delay_msecs_store()
3027 struct config_item *item, char *page) in target_tg_pt_gp_implicit_trans_secs_show() argument
3029 return core_alua_show_implicit_trans_secs(to_tg_pt_gp(item), page); in target_tg_pt_gp_implicit_trans_secs_show()
3033 struct config_item *item, const char *page, size_t count) in target_tg_pt_gp_implicit_trans_secs_store() argument
3035 return core_alua_store_implicit_trans_secs(to_tg_pt_gp(item), page, in target_tg_pt_gp_implicit_trans_secs_store()
3039 static ssize_t target_tg_pt_gp_preferred_show(struct config_item *item, in target_tg_pt_gp_preferred_show() argument
3042 return core_alua_show_preferred_bit(to_tg_pt_gp(item), page); in target_tg_pt_gp_preferred_show()
3045 static ssize_t target_tg_pt_gp_preferred_store(struct config_item *item, in target_tg_pt_gp_preferred_store() argument
3048 return core_alua_store_preferred_bit(to_tg_pt_gp(item), page, count); in target_tg_pt_gp_preferred_store()
3051 static ssize_t target_tg_pt_gp_tg_pt_gp_id_show(struct config_item *item, in target_tg_pt_gp_tg_pt_gp_id_show() argument
3054 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_tg_pt_gp_id_show()
3061 static ssize_t target_tg_pt_gp_tg_pt_gp_id_store(struct config_item *item, in target_tg_pt_gp_tg_pt_gp_id_store() argument
3064 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_tg_pt_gp_id_store()
3093 static ssize_t target_tg_pt_gp_members_show(struct config_item *item, in target_tg_pt_gp_members_show() argument
3096 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_members_show()
3165 static void target_core_alua_tg_pt_gp_release(struct config_item *item) in target_core_alua_tg_pt_gp_release() argument
3167 struct t10_alua_tg_pt_gp *tg_pt_gp = container_of(to_config_group(item), in target_core_alua_tg_pt_gp_release()
3216 struct config_item *item) in target_core_alua_drop_tg_pt_gp() argument
3218 struct t10_alua_tg_pt_gp *tg_pt_gp = container_of(to_config_group(item), in target_core_alua_drop_tg_pt_gp()
3223 config_item_name(item), tg_pt_gp->tg_pt_gp_id); in target_core_alua_drop_tg_pt_gp()
3228 config_item_put(item); in target_core_alua_drop_tg_pt_gp()
3267 struct config_item *item) in target_core_stat_rmdir() argument
3365 struct config_item *item) in target_core_drop_subdev() argument
3367 struct config_group *dev_cg = to_config_group(item); in target_core_drop_subdev()
3390 config_item_put(item); in target_core_drop_subdev()
3405 static inline struct se_hba *to_hba(struct config_item *item) in to_hba() argument
3407 return container_of(to_config_group(item), struct se_hba, hba_group); in to_hba()
3410 static ssize_t target_hba_info_show(struct config_item *item, char *page) in target_hba_info_show() argument
3412 struct se_hba *hba = to_hba(item); in target_hba_info_show()
3419 static ssize_t target_hba_mode_show(struct config_item *item, char *page) in target_hba_mode_show() argument
3421 struct se_hba *hba = to_hba(item); in target_hba_mode_show()
3430 static ssize_t target_hba_mode_store(struct config_item *item, in target_hba_mode_store() argument
3433 struct se_hba *hba = to_hba(item); in target_hba_mode_store()
3465 static void target_core_hba_release(struct config_item *item) in target_core_hba_release() argument
3467 struct se_hba *hba = container_of(to_config_group(item), in target_core_hba_release()
3550 struct config_item *item) in target_core_call_delhbafromtarget() argument
3556 config_item_put(item); in target_core_call_delhbafromtarget()