Lines Matching refs:item

76 item_to_hba(struct config_item *item)  in item_to_hba()  argument
78 return container_of(to_config_group(item), struct se_hba, hba_group); in item_to_hba()
84 static ssize_t target_core_item_version_show(struct config_item *item, in target_core_item_version_show() argument
97 static ssize_t target_core_item_dbroot_show(struct config_item *item, in target_core_item_dbroot_show() argument
103 static ssize_t target_core_item_dbroot_store(struct config_item *item, in target_core_item_dbroot_store() argument
271 struct config_item *item) in target_core_deregister_fabric() argument
274 to_config_group(item), struct target_fabric_configfs, tf_group); in target_core_deregister_fabric()
277 " tf list\n", config_item_name(item)); in target_core_deregister_fabric()
284 " %s\n", config_item_name(item)); in target_core_deregister_fabric()
287 config_item_put(item); in target_core_deregister_fabric()
322 int target_depend_item(struct config_item *item) in target_depend_item() argument
324 return configfs_depend_item(&target_core_fabrics, item); in target_depend_item()
328 void target_undepend_item(struct config_item *item) in target_undepend_item() argument
330 return configfs_undepend_item(item); in target_undepend_item()
506 static inline struct se_dev_attrib *to_attrib(struct config_item *item) in to_attrib() argument
508 return container_of(to_config_group(item), struct se_dev_attrib, in to_attrib()
514 static ssize_t _name##_show(struct config_item *item, char *page) \
516 return snprintf(page, PAGE_SIZE, "%u\n", to_attrib(item)->_name); \
552 static ssize_t _name##_store(struct config_item *item, const char *page,\
555 struct se_dev_attrib *da = to_attrib(item); \
573 static ssize_t _name##_store(struct config_item *item, const char *page, \
576 struct se_dev_attrib *da = to_attrib(item); \
595 static ssize_t _name##_store(struct config_item *item, const char *page,\
625 static ssize_t emulate_model_alias_store(struct config_item *item, in emulate_model_alias_store() argument
628 struct se_dev_attrib *da = to_attrib(item); in emulate_model_alias_store()
655 static ssize_t emulate_write_cache_store(struct config_item *item, in emulate_write_cache_store() argument
658 struct se_dev_attrib *da = to_attrib(item); in emulate_write_cache_store()
677 static ssize_t emulate_ua_intlck_ctrl_store(struct config_item *item, in emulate_ua_intlck_ctrl_store() argument
680 struct se_dev_attrib *da = to_attrib(item); in emulate_ua_intlck_ctrl_store()
707 static ssize_t emulate_tas_store(struct config_item *item, in emulate_tas_store() argument
710 struct se_dev_attrib *da = to_attrib(item); in emulate_tas_store()
731 static ssize_t emulate_tpu_store(struct config_item *item, in emulate_tpu_store() argument
734 struct se_dev_attrib *da = to_attrib(item); in emulate_tpu_store()
757 static ssize_t emulate_tpws_store(struct config_item *item, in emulate_tpws_store() argument
760 struct se_dev_attrib *da = to_attrib(item); in emulate_tpws_store()
783 static ssize_t pi_prot_type_store(struct config_item *item, in pi_prot_type_store() argument
786 struct se_dev_attrib *da = to_attrib(item); in pi_prot_type_store()
847 static ssize_t pi_prot_format_show(struct config_item *item, char *page) in pi_prot_format_show() argument
852 static ssize_t pi_prot_format_store(struct config_item *item, in pi_prot_format_store() argument
855 struct se_dev_attrib *da = to_attrib(item); in pi_prot_format_store()
890 static ssize_t pi_prot_verify_store(struct config_item *item, in pi_prot_verify_store() argument
893 struct se_dev_attrib *da = to_attrib(item); in pi_prot_verify_store()
919 static ssize_t force_pr_aptpl_store(struct config_item *item, in force_pr_aptpl_store() argument
922 struct se_dev_attrib *da = to_attrib(item); in force_pr_aptpl_store()
941 static ssize_t emulate_rest_reord_store(struct config_item *item, in emulate_rest_reord_store() argument
944 struct se_dev_attrib *da = to_attrib(item); in emulate_rest_reord_store()
963 static ssize_t unmap_zeroes_data_store(struct config_item *item, in unmap_zeroes_data_store() argument
966 struct se_dev_attrib *da = to_attrib(item); in unmap_zeroes_data_store()
999 static ssize_t queue_depth_store(struct config_item *item, in queue_depth_store() argument
1002 struct se_dev_attrib *da = to_attrib(item); in queue_depth_store()
1036 static ssize_t optimal_sectors_store(struct config_item *item, in optimal_sectors_store() argument
1039 struct se_dev_attrib *da = to_attrib(item); in optimal_sectors_store()
1066 static ssize_t block_size_store(struct config_item *item, in block_size_store() argument
1069 struct se_dev_attrib *da = to_attrib(item); in block_size_store()
1100 static ssize_t alua_support_show(struct config_item *item, char *page) in alua_support_show() argument
1102 struct se_dev_attrib *da = to_attrib(item); in alua_support_show()
1109 static ssize_t alua_support_store(struct config_item *item, in alua_support_store() argument
1112 struct se_dev_attrib *da = to_attrib(item); in alua_support_store()
1139 static ssize_t pgr_support_show(struct config_item *item, char *page) in pgr_support_show() argument
1141 struct se_dev_attrib *da = to_attrib(item); in pgr_support_show()
1148 static ssize_t pgr_support_store(struct config_item *item, in pgr_support_store() argument
1151 struct se_dev_attrib *da = to_attrib(item); in pgr_support_store()
1292 static struct t10_wwn *to_t10_wwn(struct config_item *item) in to_t10_wwn() argument
1294 return container_of(to_config_group(item), struct t10_wwn, t10_wwn_group); in to_t10_wwn()
1323 static ssize_t target_wwn_vendor_id_show(struct config_item *item, in target_wwn_vendor_id_show() argument
1326 return sprintf(page, "%s\n", &to_t10_wwn(item)->vendor[0]); in target_wwn_vendor_id_show()
1329 static ssize_t target_wwn_vendor_id_store(struct config_item *item, in target_wwn_vendor_id_store() argument
1332 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vendor_id_store()
1379 static ssize_t target_wwn_product_id_show(struct config_item *item, in target_wwn_product_id_show() argument
1382 return sprintf(page, "%s\n", &to_t10_wwn(item)->model[0]); in target_wwn_product_id_show()
1385 static ssize_t target_wwn_product_id_store(struct config_item *item, in target_wwn_product_id_store() argument
1388 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_product_id_store()
1435 static ssize_t target_wwn_revision_show(struct config_item *item, in target_wwn_revision_show() argument
1438 return sprintf(page, "%s\n", &to_t10_wwn(item)->revision[0]); in target_wwn_revision_show()
1441 static ssize_t target_wwn_revision_store(struct config_item *item, in target_wwn_revision_store() argument
1444 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_revision_store()
1492 target_wwn_company_id_show(struct config_item *item, in target_wwn_company_id_show() argument
1496 to_t10_wwn(item)->company_id); in target_wwn_company_id_show()
1500 target_wwn_company_id_store(struct config_item *item, in target_wwn_company_id_store() argument
1503 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_company_id_store()
1542 static ssize_t target_wwn_vpd_unit_serial_show(struct config_item *item, in target_wwn_vpd_unit_serial_show() argument
1546 &to_t10_wwn(item)->unit_serial[0]); in target_wwn_vpd_unit_serial_show()
1549 static ssize_t target_wwn_vpd_unit_serial_store(struct config_item *item, in target_wwn_vpd_unit_serial_store() argument
1552 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vpd_unit_serial_store()
1610 static ssize_t target_wwn_vpd_protocol_identifier_show(struct config_item *item, in target_wwn_vpd_protocol_identifier_show() argument
1613 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vpd_protocol_identifier_show()
1639 static ssize_t target_wwn_##_name##_show(struct config_item *item, \
1642 struct t10_wwn *t10_wwn = to_t10_wwn(item); \
1711 static struct se_device *pr_to_dev(struct config_item *item) in pr_to_dev() argument
1713 return container_of(to_config_group(item), struct se_device, in pr_to_dev()
1755 static ssize_t target_pr_res_holder_show(struct config_item *item, char *page) in target_pr_res_holder_show() argument
1757 struct se_device *dev = pr_to_dev(item); in target_pr_res_holder_show()
1775 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
1778 struct se_device *dev = pr_to_dev(item); in target_pr_res_pr_all_tgt_pts_show()
1796 static ssize_t target_pr_res_pr_generation_show(struct config_item *item, in target_pr_res_pr_generation_show() argument
1799 return sprintf(page, "0x%08x\n", pr_to_dev(item)->t10_pr.pr_generation); in target_pr_res_pr_generation_show()
1803 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
1806 struct se_device *dev = pr_to_dev(item); in target_pr_res_pr_holder_tg_port_show()
1839 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
1842 struct se_device *dev = pr_to_dev(item); in target_pr_res_pr_registered_i_pts_show()
1880 static ssize_t target_pr_res_pr_type_show(struct config_item *item, char *page) in target_pr_res_pr_type_show() argument
1882 struct se_device *dev = pr_to_dev(item); in target_pr_res_pr_type_show()
1899 static ssize_t target_pr_res_type_show(struct config_item *item, char *page) in target_pr_res_type_show() argument
1901 struct se_device *dev = pr_to_dev(item); in target_pr_res_type_show()
1913 static ssize_t target_pr_res_aptpl_active_show(struct config_item *item, in target_pr_res_aptpl_active_show() argument
1916 struct se_device *dev = pr_to_dev(item); in target_pr_res_aptpl_active_show()
1926 static ssize_t target_pr_res_aptpl_metadata_show(struct config_item *item, in target_pr_res_aptpl_metadata_show() argument
1929 struct se_device *dev = pr_to_dev(item); in target_pr_res_aptpl_metadata_show()
1963 static ssize_t target_pr_res_aptpl_metadata_store(struct config_item *item, in target_pr_res_aptpl_metadata_store() argument
1966 struct se_device *dev = pr_to_dev(item); in target_pr_res_aptpl_metadata_store()
2178 static inline struct se_device *to_device(struct config_item *item) in to_device() argument
2180 return container_of(to_config_group(item), struct se_device, dev_group); in to_device()
2183 static ssize_t target_dev_info_show(struct config_item *item, char *page) in target_dev_info_show() argument
2185 struct se_device *dev = to_device(item); in target_dev_info_show()
2196 static ssize_t target_dev_control_store(struct config_item *item, in target_dev_control_store() argument
2199 struct se_device *dev = to_device(item); in target_dev_control_store()
2204 static ssize_t target_dev_alias_show(struct config_item *item, char *page) in target_dev_alias_show() argument
2206 struct se_device *dev = to_device(item); in target_dev_alias_show()
2214 static ssize_t target_dev_alias_store(struct config_item *item, in target_dev_alias_store() argument
2217 struct se_device *dev = to_device(item); in target_dev_alias_store()
2244 static ssize_t target_dev_udev_path_show(struct config_item *item, char *page) in target_dev_udev_path_show() argument
2246 struct se_device *dev = to_device(item); in target_dev_udev_path_show()
2254 static ssize_t target_dev_udev_path_store(struct config_item *item, in target_dev_udev_path_store() argument
2257 struct se_device *dev = to_device(item); in target_dev_udev_path_store()
2285 static ssize_t target_dev_enable_show(struct config_item *item, char *page) in target_dev_enable_show() argument
2287 struct se_device *dev = to_device(item); in target_dev_enable_show()
2292 static ssize_t target_dev_enable_store(struct config_item *item, in target_dev_enable_store() argument
2295 struct se_device *dev = to_device(item); in target_dev_enable_store()
2312 static ssize_t target_dev_alua_lu_gp_show(struct config_item *item, char *page) in target_dev_alua_lu_gp_show() argument
2314 struct se_device *dev = to_device(item); in target_dev_alua_lu_gp_show()
2336 static ssize_t target_dev_alua_lu_gp_store(struct config_item *item, in target_dev_alua_lu_gp_store() argument
2339 struct se_device *dev = to_device(item); in target_dev_alua_lu_gp_store()
2415 static ssize_t target_dev_lba_map_show(struct config_item *item, char *page) in target_dev_lba_map_show() argument
2417 struct se_device *dev = to_device(item); in target_dev_lba_map_show()
2460 static ssize_t target_dev_lba_map_store(struct config_item *item, in target_dev_lba_map_store() argument
2463 struct se_device *dev = to_device(item); in target_dev_lba_map_store()
2594 static void target_core_dev_release(struct config_item *item) in target_core_dev_release() argument
2596 struct config_group *dev_cg = to_config_group(item); in target_core_dev_release()
2617 static inline struct t10_alua_lu_gp *to_lu_gp(struct config_item *item) in to_lu_gp() argument
2619 return container_of(to_config_group(item), struct t10_alua_lu_gp, in to_lu_gp()
2623 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
2625 struct t10_alua_lu_gp *lu_gp = to_lu_gp(item); in target_lu_gp_lu_gp_id_show()
2632 static ssize_t target_lu_gp_lu_gp_id_store(struct config_item *item, in target_lu_gp_lu_gp_id_store() argument
2635 struct t10_alua_lu_gp *lu_gp = to_lu_gp(item); in target_lu_gp_lu_gp_id_store()
2664 static ssize_t target_lu_gp_members_show(struct config_item *item, char *page) in target_lu_gp_members_show() argument
2666 struct t10_alua_lu_gp *lu_gp = to_lu_gp(item); in target_lu_gp_members_show()
2705 static void target_core_alua_lu_gp_release(struct config_item *item) in target_core_alua_lu_gp_release() argument
2707 struct t10_alua_lu_gp *lu_gp = container_of(to_config_group(item), in target_core_alua_lu_gp_release()
2755 struct config_item *item) in target_core_alua_drop_lu_gp() argument
2757 struct t10_alua_lu_gp *lu_gp = container_of(to_config_group(item), in target_core_alua_drop_lu_gp()
2762 config_item_name(item), lu_gp->lu_gp_id); in target_core_alua_drop_lu_gp()
2767 config_item_put(item); in target_core_alua_drop_lu_gp()
2785 static inline struct t10_alua_tg_pt_gp *to_tg_pt_gp(struct config_item *item) in to_tg_pt_gp() argument
2787 return container_of(to_config_group(item), struct t10_alua_tg_pt_gp, in to_tg_pt_gp()
2791 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
2795 to_tg_pt_gp(item)->tg_pt_gp_alua_access_state); in target_tg_pt_gp_alua_access_state_show()
2798 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
2801 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_alua_access_state_store()
2842 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
2845 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_alua_access_status_show()
2851 struct config_item *item, const char *page, size_t count) in target_tg_pt_gp_alua_access_status_store() argument
2853 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_alua_access_status_store()
2882 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
2885 return core_alua_show_access_type(to_tg_pt_gp(item), page); in target_tg_pt_gp_alua_access_type_show()
2888 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
2891 return core_alua_store_access_type(to_tg_pt_gp(item), page, count); in target_tg_pt_gp_alua_access_type_store()
2896 struct config_item *item, char *p) \
2898 struct t10_alua_tg_pt_gp *t = to_tg_pt_gp(item); \
2904 struct config_item *item, const char *p, size_t c) \
2906 struct t10_alua_tg_pt_gp *t = to_tg_pt_gp(item); \
2941 struct config_item *item, char *page) in target_tg_pt_gp_alua_write_metadata_show() argument
2944 to_tg_pt_gp(item)->tg_pt_gp_write_metadata); in target_tg_pt_gp_alua_write_metadata_show()
2948 struct config_item *item, const char *page, size_t count) in target_tg_pt_gp_alua_write_metadata_store() argument
2950 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_alua_write_metadata_store()
2970 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
2973 return core_alua_show_nonop_delay_msecs(to_tg_pt_gp(item), page); in target_tg_pt_gp_nonop_delay_msecs_show()
2976 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
2979 return core_alua_store_nonop_delay_msecs(to_tg_pt_gp(item), page, in target_tg_pt_gp_nonop_delay_msecs_store()
2983 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
2986 return core_alua_show_trans_delay_msecs(to_tg_pt_gp(item), page); in target_tg_pt_gp_trans_delay_msecs_show()
2989 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
2992 return core_alua_store_trans_delay_msecs(to_tg_pt_gp(item), page, in target_tg_pt_gp_trans_delay_msecs_store()
2997 struct config_item *item, char *page) in target_tg_pt_gp_implicit_trans_secs_show() argument
2999 return core_alua_show_implicit_trans_secs(to_tg_pt_gp(item), page); in target_tg_pt_gp_implicit_trans_secs_show()
3003 struct config_item *item, const char *page, size_t count) in target_tg_pt_gp_implicit_trans_secs_store() argument
3005 return core_alua_store_implicit_trans_secs(to_tg_pt_gp(item), page, in target_tg_pt_gp_implicit_trans_secs_store()
3009 static ssize_t target_tg_pt_gp_preferred_show(struct config_item *item, in target_tg_pt_gp_preferred_show() argument
3012 return core_alua_show_preferred_bit(to_tg_pt_gp(item), page); in target_tg_pt_gp_preferred_show()
3015 static ssize_t target_tg_pt_gp_preferred_store(struct config_item *item, in target_tg_pt_gp_preferred_store() argument
3018 return core_alua_store_preferred_bit(to_tg_pt_gp(item), page, count); in target_tg_pt_gp_preferred_store()
3021 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
3024 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_tg_pt_gp_id_show()
3031 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
3034 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_tg_pt_gp_id_store()
3063 static ssize_t target_tg_pt_gp_members_show(struct config_item *item, in target_tg_pt_gp_members_show() argument
3066 struct t10_alua_tg_pt_gp *tg_pt_gp = to_tg_pt_gp(item); in target_tg_pt_gp_members_show()
3135 static void target_core_alua_tg_pt_gp_release(struct config_item *item) in target_core_alua_tg_pt_gp_release() argument
3137 struct t10_alua_tg_pt_gp *tg_pt_gp = container_of(to_config_group(item), in target_core_alua_tg_pt_gp_release()
3186 struct config_item *item) in target_core_alua_drop_tg_pt_gp() argument
3188 struct t10_alua_tg_pt_gp *tg_pt_gp = container_of(to_config_group(item), in target_core_alua_drop_tg_pt_gp()
3193 config_item_name(item), tg_pt_gp->tg_pt_gp_id); in target_core_alua_drop_tg_pt_gp()
3198 config_item_put(item); in target_core_alua_drop_tg_pt_gp()
3237 struct config_item *item) in target_core_stat_rmdir() argument
3331 struct config_item *item) in target_core_drop_subdev() argument
3333 struct config_group *dev_cg = to_config_group(item); in target_core_drop_subdev()
3356 config_item_put(item); in target_core_drop_subdev()
3366 static inline struct se_hba *to_hba(struct config_item *item) in to_hba() argument
3368 return container_of(to_config_group(item), struct se_hba, hba_group); in to_hba()
3371 static ssize_t target_hba_info_show(struct config_item *item, char *page) in target_hba_info_show() argument
3373 struct se_hba *hba = to_hba(item); in target_hba_info_show()
3380 static ssize_t target_hba_mode_show(struct config_item *item, char *page) in target_hba_mode_show() argument
3382 struct se_hba *hba = to_hba(item); in target_hba_mode_show()
3391 static ssize_t target_hba_mode_store(struct config_item *item, in target_hba_mode_store() argument
3394 struct se_hba *hba = to_hba(item); in target_hba_mode_store()
3426 static void target_core_hba_release(struct config_item *item) in target_core_hba_release() argument
3428 struct se_hba *hba = container_of(to_config_group(item), in target_core_hba_release()
3511 struct config_item *item) in target_core_call_delhbafromtarget() argument
3517 config_item_put(item); in target_core_call_delhbafromtarget()