Lines Matching refs:da

585 	struct se_dev_attrib *da = to_attrib(item);			\
592 da->_name = val; \
606 struct se_dev_attrib *da = to_attrib(item); \
613 da->_name = flag; \
658 struct se_dev_attrib *da = to_attrib(item); in emulate_model_alias_store() local
659 struct se_device *dev = da->da_dev; in emulate_model_alias_store()
681 da->emulate_model_alias = flag; in emulate_model_alias_store()
688 struct se_dev_attrib *da = to_attrib(item); in emulate_write_cache_store() local
696 if (flag && da->da_dev->transport->get_write_cache) { in emulate_write_cache_store()
701 da->emulate_write_cache = flag; in emulate_write_cache_store()
703 da->da_dev, flag); in emulate_write_cache_store()
710 struct se_dev_attrib *da = to_attrib(item); in emulate_ua_intlck_ctrl_store() local
725 if (da->da_dev->export_count) { in emulate_ua_intlck_ctrl_store()
728 da->da_dev, da->da_dev->export_count); in emulate_ua_intlck_ctrl_store()
731 da->emulate_ua_intlck_ctrl = val; in emulate_ua_intlck_ctrl_store()
733 da->da_dev, val); in emulate_ua_intlck_ctrl_store()
740 struct se_dev_attrib *da = to_attrib(item); in emulate_tas_store() local
748 if (da->da_dev->export_count) { in emulate_tas_store()
751 da->da_dev, da->da_dev->export_count); in emulate_tas_store()
754 da->emulate_tas = flag; in emulate_tas_store()
756 da->da_dev, flag ? "Enabled" : "Disabled"); in emulate_tas_store()
764 struct se_dev_attrib *da = to_attrib(item); in emulate_tpu_store() local
765 struct se_device *dev = da->da_dev; in emulate_tpu_store()
777 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpu_store()
785 da->emulate_tpu = flag; in emulate_tpu_store()
787 da->da_dev, flag); in emulate_tpu_store()
794 struct se_dev_attrib *da = to_attrib(item); in emulate_tpws_store() local
795 struct se_device *dev = da->da_dev; in emulate_tpws_store()
807 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpws_store()
815 da->emulate_tpws = flag; in emulate_tpws_store()
817 da->da_dev, flag); in emulate_tpws_store()
824 struct se_dev_attrib *da = to_attrib(item); in pi_prot_type_store() local
825 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store()
826 struct se_device *dev = da->da_dev; in pi_prot_type_store()
841 if (da->hw_pi_prot_type) { in pi_prot_type_store()
865 da->pi_prot_type = flag; in pi_prot_type_store()
870 da->pi_prot_type = old_prot; in pi_prot_type_store()
871 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
879 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
893 struct se_dev_attrib *da = to_attrib(item); in pi_prot_format_store() local
894 struct se_device *dev = da->da_dev; in pi_prot_format_store()
931 struct se_dev_attrib *da = to_attrib(item); in pi_prot_verify_store() local
940 da->pi_prot_verify = flag; in pi_prot_verify_store()
943 if (da->hw_pi_prot_type) { in pi_prot_verify_store()
948 if (!da->pi_prot_type) { in pi_prot_verify_store()
952 da->pi_prot_verify = flag; in pi_prot_verify_store()
960 struct se_dev_attrib *da = to_attrib(item); in force_pr_aptpl_store() local
967 if (da->da_dev->export_count) { in force_pr_aptpl_store()
970 da->da_dev, da->da_dev->export_count); in force_pr_aptpl_store()
974 da->force_pr_aptpl = flag; in force_pr_aptpl_store()
975 pr_debug("dev[%p]: SE Device force_pr_aptpl: %d\n", da->da_dev, flag); in force_pr_aptpl_store()
982 struct se_dev_attrib *da = to_attrib(item); in emulate_rest_reord_store() local
992 " reordering not implemented\n", da->da_dev); in emulate_rest_reord_store()
995 da->emulate_rest_reord = flag; in emulate_rest_reord_store()
997 da->da_dev, flag); in emulate_rest_reord_store()
1004 struct se_dev_attrib *da = to_attrib(item); in unmap_zeroes_data_store() local
1005 struct se_device *dev = da->da_dev; in unmap_zeroes_data_store()
1013 if (da->da_dev->export_count) { in unmap_zeroes_data_store()
1016 da->da_dev, da->da_dev->export_count); in unmap_zeroes_data_store()
1023 if (flag && !da->max_unmap_block_desc_count) { in unmap_zeroes_data_store()
1027 da->da_dev); in unmap_zeroes_data_store()
1031 da->unmap_zeroes_data = flag; in unmap_zeroes_data_store()
1033 da->da_dev, flag); in unmap_zeroes_data_store()
1043 struct se_dev_attrib *da = to_attrib(item); in queue_depth_store() local
1044 struct se_device *dev = da->da_dev; in queue_depth_store()
1072 da->queue_depth = dev->queue_depth = val; in queue_depth_store()
1080 struct se_dev_attrib *da = to_attrib(item); in optimal_sectors_store() local
1088 if (da->da_dev->export_count) { in optimal_sectors_store()
1091 da->da_dev, da->da_dev->export_count); in optimal_sectors_store()
1094 if (val > da->hw_max_sectors) { in optimal_sectors_store()
1097 da->da_dev, val, da->hw_max_sectors); in optimal_sectors_store()
1101 da->optimal_sectors = val; in optimal_sectors_store()
1103 da->da_dev, val); in optimal_sectors_store()
1110 struct se_dev_attrib *da = to_attrib(item); in block_size_store() local
1118 if (da->da_dev->export_count) { in block_size_store()
1121 da->da_dev, da->da_dev->export_count); in block_size_store()
1128 da->da_dev, val); in block_size_store()
1132 da->block_size = val; in block_size_store()
1135 da->da_dev, val); in block_size_store()
1141 struct se_dev_attrib *da = to_attrib(item); in alua_support_show() local
1142 u8 flags = da->da_dev->transport_flags; in alua_support_show()
1151 struct se_dev_attrib *da = to_attrib(item); in alua_support_store() local
1152 struct se_device *dev = da->da_dev; in alua_support_store()
1180 struct se_dev_attrib *da = to_attrib(item); in pgr_support_show() local
1181 u8 flags = da->da_dev->transport_flags; in pgr_support_show()
1190 struct se_dev_attrib *da = to_attrib(item); in pgr_support_store() local
1191 struct se_device *dev = da->da_dev; in pgr_support_store()
1220 struct se_dev_attrib *da = to_attrib(item); in emulate_rsoc_store() local
1228 da->emulate_rsoc = flag; in emulate_rsoc_store()
1230 da->da_dev, flag); in emulate_rsoc_store()