Lines Matching refs:da

554 	struct se_dev_attrib *da = to_attrib(item);			\
561 da->_name = val; \
575 struct se_dev_attrib *da = to_attrib(item); \
582 da->_name = flag; \
627 struct se_dev_attrib *da = to_attrib(item); in emulate_model_alias_store() local
628 struct se_device *dev = da->da_dev; in emulate_model_alias_store()
650 da->emulate_model_alias = flag; in emulate_model_alias_store()
657 struct se_dev_attrib *da = to_attrib(item); in emulate_write_cache_store() local
665 if (flag && da->da_dev->transport->get_write_cache) { in emulate_write_cache_store()
670 da->emulate_write_cache = flag; in emulate_write_cache_store()
672 da->da_dev, flag); in emulate_write_cache_store()
679 struct se_dev_attrib *da = to_attrib(item); in emulate_ua_intlck_ctrl_store() local
694 if (da->da_dev->export_count) { in emulate_ua_intlck_ctrl_store()
697 da->da_dev, da->da_dev->export_count); in emulate_ua_intlck_ctrl_store()
700 da->emulate_ua_intlck_ctrl = val; in emulate_ua_intlck_ctrl_store()
702 da->da_dev, val); in emulate_ua_intlck_ctrl_store()
709 struct se_dev_attrib *da = to_attrib(item); in emulate_tas_store() local
717 if (da->da_dev->export_count) { in emulate_tas_store()
720 da->da_dev, da->da_dev->export_count); in emulate_tas_store()
723 da->emulate_tas = flag; in emulate_tas_store()
725 da->da_dev, flag ? "Enabled" : "Disabled"); in emulate_tas_store()
733 struct se_dev_attrib *da = to_attrib(item); in emulate_tpu_store() local
745 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpu_store()
750 da->emulate_tpu = flag; in emulate_tpu_store()
752 da->da_dev, flag); in emulate_tpu_store()
759 struct se_dev_attrib *da = to_attrib(item); in emulate_tpws_store() local
771 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpws_store()
776 da->emulate_tpws = flag; in emulate_tpws_store()
778 da->da_dev, flag); in emulate_tpws_store()
785 struct se_dev_attrib *da = to_attrib(item); in pi_prot_type_store() local
786 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store()
787 struct se_device *dev = da->da_dev; in pi_prot_type_store()
802 if (da->hw_pi_prot_type) { in pi_prot_type_store()
826 da->pi_prot_type = flag; in pi_prot_type_store()
831 da->pi_prot_type = old_prot; in pi_prot_type_store()
832 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
840 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
854 struct se_dev_attrib *da = to_attrib(item); in pi_prot_format_store() local
855 struct se_device *dev = da->da_dev; in pi_prot_format_store()
892 struct se_dev_attrib *da = to_attrib(item); in pi_prot_verify_store() local
901 da->pi_prot_verify = flag; in pi_prot_verify_store()
904 if (da->hw_pi_prot_type) { in pi_prot_verify_store()
909 if (!da->pi_prot_type) { in pi_prot_verify_store()
913 da->pi_prot_verify = flag; in pi_prot_verify_store()
921 struct se_dev_attrib *da = to_attrib(item); in force_pr_aptpl_store() local
928 if (da->da_dev->export_count) { in force_pr_aptpl_store()
931 da->da_dev, da->da_dev->export_count); in force_pr_aptpl_store()
935 da->force_pr_aptpl = flag; in force_pr_aptpl_store()
936 pr_debug("dev[%p]: SE Device force_pr_aptpl: %d\n", da->da_dev, flag); in force_pr_aptpl_store()
943 struct se_dev_attrib *da = to_attrib(item); in emulate_rest_reord_store() local
953 " reordering not implemented\n", da->da_dev); in emulate_rest_reord_store()
956 da->emulate_rest_reord = flag; in emulate_rest_reord_store()
958 da->da_dev, flag); in emulate_rest_reord_store()
965 struct se_dev_attrib *da = to_attrib(item); in unmap_zeroes_data_store() local
973 if (da->da_dev->export_count) { in unmap_zeroes_data_store()
976 da->da_dev, da->da_dev->export_count); in unmap_zeroes_data_store()
983 if (flag && !da->max_unmap_block_desc_count) { in unmap_zeroes_data_store()
986 da->da_dev); in unmap_zeroes_data_store()
989 da->unmap_zeroes_data = flag; in unmap_zeroes_data_store()
991 da->da_dev, flag); in unmap_zeroes_data_store()
1001 struct se_dev_attrib *da = to_attrib(item); in queue_depth_store() local
1002 struct se_device *dev = da->da_dev; in queue_depth_store()
1030 da->queue_depth = dev->queue_depth = val; in queue_depth_store()
1038 struct se_dev_attrib *da = to_attrib(item); in optimal_sectors_store() local
1046 if (da->da_dev->export_count) { in optimal_sectors_store()
1049 da->da_dev, da->da_dev->export_count); in optimal_sectors_store()
1052 if (val > da->hw_max_sectors) { in optimal_sectors_store()
1055 da->da_dev, val, da->hw_max_sectors); in optimal_sectors_store()
1059 da->optimal_sectors = val; in optimal_sectors_store()
1061 da->da_dev, val); in optimal_sectors_store()
1068 struct se_dev_attrib *da = to_attrib(item); in block_size_store() local
1076 if (da->da_dev->export_count) { in block_size_store()
1079 da->da_dev, da->da_dev->export_count); in block_size_store()
1086 da->da_dev, val); in block_size_store()
1090 da->block_size = val; in block_size_store()
1091 if (da->max_bytes_per_io) in block_size_store()
1092 da->hw_max_sectors = da->max_bytes_per_io / val; in block_size_store()
1095 da->da_dev, val); in block_size_store()
1101 struct se_dev_attrib *da = to_attrib(item); in alua_support_show() local
1102 u8 flags = da->da_dev->transport_flags; in alua_support_show()
1111 struct se_dev_attrib *da = to_attrib(item); in alua_support_store() local
1112 struct se_device *dev = da->da_dev; in alua_support_store()
1136 struct se_dev_attrib *da = to_attrib(item); in pgr_support_show() local
1137 u8 flags = da->da_dev->transport_flags; in pgr_support_show()
1146 struct se_dev_attrib *da = to_attrib(item); in pgr_support_store() local
1147 struct se_device *dev = da->da_dev; in pgr_support_store()