Lines Matching full:da
586 struct se_dev_attrib *da = to_attrib(item); \
593 da->_name = val; \
607 struct se_dev_attrib *da = to_attrib(item); \
614 da->_name = flag; \
659 struct se_dev_attrib *da = to_attrib(item); in emulate_model_alias_store() local
660 struct se_device *dev = da->da_dev; in emulate_model_alias_store()
680 da->emulate_model_alias = flag; in emulate_model_alias_store()
687 struct se_dev_attrib *da = to_attrib(item); in emulate_write_cache_store() local
695 if (flag && da->da_dev->transport->get_write_cache) { in emulate_write_cache_store()
700 da->emulate_write_cache = flag; in emulate_write_cache_store()
702 da->da_dev, flag); in emulate_write_cache_store()
709 struct se_dev_attrib *da = to_attrib(item); in emulate_ua_intlck_ctrl_store() local
724 if (da->da_dev->export_count) { in emulate_ua_intlck_ctrl_store()
727 da->da_dev, da->da_dev->export_count); in emulate_ua_intlck_ctrl_store()
730 da->emulate_ua_intlck_ctrl = val; in emulate_ua_intlck_ctrl_store()
732 da->da_dev, val); in emulate_ua_intlck_ctrl_store()
739 struct se_dev_attrib *da = to_attrib(item); in emulate_tas_store() local
747 if (da->da_dev->export_count) { in emulate_tas_store()
750 da->da_dev, da->da_dev->export_count); in emulate_tas_store()
753 da->emulate_tas = flag; in emulate_tas_store()
755 da->da_dev, flag ? "Enabled" : "Disabled"); in emulate_tas_store()
786 struct se_dev_attrib *da = to_attrib(item); in emulate_tpu_store() local
787 struct se_device *dev = da->da_dev; in emulate_tpu_store()
799 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpu_store()
805 da->emulate_tpu = flag; in emulate_tpu_store()
807 da->da_dev, flag); in emulate_tpu_store()
814 struct se_dev_attrib *da = to_attrib(item); in emulate_tpws_store() local
815 struct se_device *dev = da->da_dev; in emulate_tpws_store()
827 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpws_store()
833 da->emulate_tpws = flag; in emulate_tpws_store()
835 da->da_dev, flag); in emulate_tpws_store()
842 struct se_dev_attrib *da = to_attrib(item); in pi_prot_type_store() local
843 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store()
844 struct se_device *dev = da->da_dev; in pi_prot_type_store()
859 if (da->hw_pi_prot_type) { in pi_prot_type_store()
883 da->pi_prot_type = flag; in pi_prot_type_store()
888 da->pi_prot_type = old_prot; in pi_prot_type_store()
889 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
897 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
911 struct se_dev_attrib *da = to_attrib(item); in pi_prot_format_store() local
912 struct se_device *dev = da->da_dev; in pi_prot_format_store()
949 struct se_dev_attrib *da = to_attrib(item); in pi_prot_verify_store() local
958 da->pi_prot_verify = flag; in pi_prot_verify_store()
961 if (da->hw_pi_prot_type) { in pi_prot_verify_store()
966 if (!da->pi_prot_type) { in pi_prot_verify_store()
970 da->pi_prot_verify = flag; in pi_prot_verify_store()
978 struct se_dev_attrib *da = to_attrib(item); in force_pr_aptpl_store() local
985 if (da->da_dev->export_count) { in force_pr_aptpl_store()
988 da->da_dev, da->da_dev->export_count); in force_pr_aptpl_store()
992 da->force_pr_aptpl = flag; in force_pr_aptpl_store()
993 pr_debug("dev[%p]: SE Device force_pr_aptpl: %d\n", da->da_dev, flag); in force_pr_aptpl_store()
1000 struct se_dev_attrib *da = to_attrib(item); in emulate_rest_reord_store() local
1010 " reordering not implemented\n", da->da_dev); in emulate_rest_reord_store()
1013 da->emulate_rest_reord = flag; in emulate_rest_reord_store()
1015 da->da_dev, flag); in emulate_rest_reord_store()
1022 struct se_dev_attrib *da = to_attrib(item); in unmap_zeroes_data_store() local
1023 struct se_device *dev = da->da_dev; in unmap_zeroes_data_store()
1031 if (da->da_dev->export_count) { in unmap_zeroes_data_store()
1034 da->da_dev, da->da_dev->export_count); in unmap_zeroes_data_store()
1041 if (flag && !da->max_unmap_block_desc_count) { in unmap_zeroes_data_store()
1046 da->unmap_zeroes_data = flag; in unmap_zeroes_data_store()
1048 da->da_dev, flag); in unmap_zeroes_data_store()
1058 struct se_dev_attrib *da = to_attrib(item); in queue_depth_store() local
1059 struct se_device *dev = da->da_dev; in queue_depth_store()
1087 da->queue_depth = dev->queue_depth = val; in queue_depth_store()
1095 struct se_dev_attrib *da = to_attrib(item); in optimal_sectors_store() local
1103 if (da->da_dev->export_count) { in optimal_sectors_store()
1106 da->da_dev, da->da_dev->export_count); in optimal_sectors_store()
1109 if (val > da->hw_max_sectors) { in optimal_sectors_store()
1112 da->da_dev, val, da->hw_max_sectors); in optimal_sectors_store()
1116 da->optimal_sectors = val; in optimal_sectors_store()
1118 da->da_dev, val); in optimal_sectors_store()
1125 struct se_dev_attrib *da = to_attrib(item); in block_size_store() local
1133 if (da->da_dev->export_count) { in block_size_store()
1136 da->da_dev, da->da_dev->export_count); in block_size_store()
1143 da->da_dev, val); in block_size_store()
1147 da->block_size = val; in block_size_store()
1150 da->da_dev, val); in block_size_store()
1156 struct se_dev_attrib *da = to_attrib(item); in alua_support_show() local
1157 u8 flags = da->da_dev->transport_flags; in alua_support_show()
1166 struct se_dev_attrib *da = to_attrib(item); in alua_support_store() local
1167 struct se_device *dev = da->da_dev; in alua_support_store()
1195 struct se_dev_attrib *da = to_attrib(item); in pgr_support_show() local
1196 u8 flags = da->da_dev->transport_flags; in pgr_support_show()
1205 struct se_dev_attrib *da = to_attrib(item); in pgr_support_store() local
1206 struct se_device *dev = da->da_dev; in pgr_support_store()
1235 struct se_dev_attrib *da = to_attrib(item); in emulate_rsoc_store() local
1243 da->emulate_rsoc = flag; in emulate_rsoc_store()
1245 da->da_dev, flag); in emulate_rsoc_store()
1252 struct se_dev_attrib *da = to_attrib(item); in submit_type_store() local
1263 da->submit_type = val; in submit_type_store()