Lines Matching refs:da

555 	struct se_dev_attrib *da = to_attrib(item);			\
562 da->_name = val; \
576 struct se_dev_attrib *da = to_attrib(item); \
583 da->_name = flag; \
628 struct se_dev_attrib *da = to_attrib(item); in emulate_model_alias_store() local
629 struct se_device *dev = da->da_dev; in emulate_model_alias_store()
651 da->emulate_model_alias = flag; in emulate_model_alias_store()
658 struct se_dev_attrib *da = to_attrib(item); in emulate_write_cache_store() local
666 if (flag && da->da_dev->transport->get_write_cache) { in emulate_write_cache_store()
671 da->emulate_write_cache = flag; in emulate_write_cache_store()
673 da->da_dev, flag); in emulate_write_cache_store()
680 struct se_dev_attrib *da = to_attrib(item); in emulate_ua_intlck_ctrl_store() local
695 if (da->da_dev->export_count) { in emulate_ua_intlck_ctrl_store()
698 da->da_dev, da->da_dev->export_count); in emulate_ua_intlck_ctrl_store()
701 da->emulate_ua_intlck_ctrl = val; in emulate_ua_intlck_ctrl_store()
703 da->da_dev, val); in emulate_ua_intlck_ctrl_store()
710 struct se_dev_attrib *da = to_attrib(item); in emulate_tas_store() local
718 if (da->da_dev->export_count) { in emulate_tas_store()
721 da->da_dev, da->da_dev->export_count); in emulate_tas_store()
724 da->emulate_tas = flag; in emulate_tas_store()
726 da->da_dev, flag ? "Enabled" : "Disabled"); in emulate_tas_store()
734 struct se_dev_attrib *da = to_attrib(item); in emulate_tpu_store() local
735 struct se_device *dev = da->da_dev; in emulate_tpu_store()
747 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpu_store()
755 da->emulate_tpu = flag; in emulate_tpu_store()
757 da->da_dev, flag); in emulate_tpu_store()
764 struct se_dev_attrib *da = to_attrib(item); in emulate_tpws_store() local
765 struct se_device *dev = da->da_dev; in emulate_tpws_store()
777 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpws_store()
785 da->emulate_tpws = flag; in emulate_tpws_store()
787 da->da_dev, flag); in emulate_tpws_store()
794 struct se_dev_attrib *da = to_attrib(item); in pi_prot_type_store() local
795 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store()
796 struct se_device *dev = da->da_dev; in pi_prot_type_store()
811 if (da->hw_pi_prot_type) { in pi_prot_type_store()
835 da->pi_prot_type = flag; in pi_prot_type_store()
840 da->pi_prot_type = old_prot; in pi_prot_type_store()
841 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
849 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
863 struct se_dev_attrib *da = to_attrib(item); in pi_prot_format_store() local
864 struct se_device *dev = da->da_dev; in pi_prot_format_store()
901 struct se_dev_attrib *da = to_attrib(item); in pi_prot_verify_store() local
910 da->pi_prot_verify = flag; in pi_prot_verify_store()
913 if (da->hw_pi_prot_type) { in pi_prot_verify_store()
918 if (!da->pi_prot_type) { in pi_prot_verify_store()
922 da->pi_prot_verify = flag; in pi_prot_verify_store()
930 struct se_dev_attrib *da = to_attrib(item); in force_pr_aptpl_store() local
937 if (da->da_dev->export_count) { in force_pr_aptpl_store()
940 da->da_dev, da->da_dev->export_count); in force_pr_aptpl_store()
944 da->force_pr_aptpl = flag; in force_pr_aptpl_store()
945 pr_debug("dev[%p]: SE Device force_pr_aptpl: %d\n", da->da_dev, flag); in force_pr_aptpl_store()
952 struct se_dev_attrib *da = to_attrib(item); in emulate_rest_reord_store() local
962 " reordering not implemented\n", da->da_dev); in emulate_rest_reord_store()
965 da->emulate_rest_reord = flag; in emulate_rest_reord_store()
967 da->da_dev, flag); in emulate_rest_reord_store()
974 struct se_dev_attrib *da = to_attrib(item); in unmap_zeroes_data_store() local
975 struct se_device *dev = da->da_dev; in unmap_zeroes_data_store()
983 if (da->da_dev->export_count) { in unmap_zeroes_data_store()
986 da->da_dev, da->da_dev->export_count); in unmap_zeroes_data_store()
993 if (flag && !da->max_unmap_block_desc_count) { in unmap_zeroes_data_store()
997 da->da_dev); in unmap_zeroes_data_store()
1001 da->unmap_zeroes_data = flag; in unmap_zeroes_data_store()
1003 da->da_dev, flag); in unmap_zeroes_data_store()
1013 struct se_dev_attrib *da = to_attrib(item); in queue_depth_store() local
1014 struct se_device *dev = da->da_dev; in queue_depth_store()
1042 da->queue_depth = dev->queue_depth = val; in queue_depth_store()
1050 struct se_dev_attrib *da = to_attrib(item); in optimal_sectors_store() local
1058 if (da->da_dev->export_count) { in optimal_sectors_store()
1061 da->da_dev, da->da_dev->export_count); in optimal_sectors_store()
1064 if (val > da->hw_max_sectors) { in optimal_sectors_store()
1067 da->da_dev, val, da->hw_max_sectors); in optimal_sectors_store()
1071 da->optimal_sectors = val; in optimal_sectors_store()
1073 da->da_dev, val); in optimal_sectors_store()
1080 struct se_dev_attrib *da = to_attrib(item); in block_size_store() local
1088 if (da->da_dev->export_count) { in block_size_store()
1091 da->da_dev, da->da_dev->export_count); in block_size_store()
1098 da->da_dev, val); in block_size_store()
1102 da->block_size = val; in block_size_store()
1103 if (da->max_bytes_per_io) in block_size_store()
1104 da->hw_max_sectors = da->max_bytes_per_io / val; in block_size_store()
1107 da->da_dev, val); in block_size_store()
1113 struct se_dev_attrib *da = to_attrib(item); in alua_support_show() local
1114 u8 flags = da->da_dev->transport_flags; in alua_support_show()
1123 struct se_dev_attrib *da = to_attrib(item); in alua_support_store() local
1124 struct se_device *dev = da->da_dev; in alua_support_store()
1152 struct se_dev_attrib *da = to_attrib(item); in pgr_support_show() local
1153 u8 flags = da->da_dev->transport_flags; in pgr_support_show()
1162 struct se_dev_attrib *da = to_attrib(item); in pgr_support_store() local
1163 struct se_device *dev = da->da_dev; in pgr_support_store()