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
692 if (da->da_dev->export_count) { in emulate_ua_intlck_ctrl_store()
695 da->da_dev, da->da_dev->export_count); in emulate_ua_intlck_ctrl_store()
698 da->emulate_ua_intlck_ctrl = val; in emulate_ua_intlck_ctrl_store()
700 da->da_dev, val); in emulate_ua_intlck_ctrl_store()
707 struct se_dev_attrib *da = to_attrib(item); in emulate_tas_store() local
715 if (da->da_dev->export_count) { in emulate_tas_store()
718 da->da_dev, da->da_dev->export_count); in emulate_tas_store()
721 da->emulate_tas = flag; in emulate_tas_store()
723 da->da_dev, flag ? "Enabled" : "Disabled"); in emulate_tas_store()
731 struct se_dev_attrib *da = to_attrib(item); in emulate_tpu_store() local
743 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpu_store()
748 da->emulate_tpu = flag; in emulate_tpu_store()
750 da->da_dev, flag); in emulate_tpu_store()
757 struct se_dev_attrib *da = to_attrib(item); in emulate_tpws_store() local
769 if (flag && !da->max_unmap_block_desc_count) { in emulate_tpws_store()
774 da->emulate_tpws = flag; in emulate_tpws_store()
776 da->da_dev, flag); in emulate_tpws_store()
783 struct se_dev_attrib *da = to_attrib(item); in pi_prot_type_store() local
784 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store()
785 struct se_device *dev = da->da_dev; in pi_prot_type_store()
800 if (da->hw_pi_prot_type) { in pi_prot_type_store()
824 da->pi_prot_type = flag; in pi_prot_type_store()
829 da->pi_prot_type = old_prot; in pi_prot_type_store()
830 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
838 da->pi_prot_verify = (bool) da->pi_prot_type; in pi_prot_type_store()
852 struct se_dev_attrib *da = to_attrib(item); in pi_prot_format_store() local
853 struct se_device *dev = da->da_dev; in pi_prot_format_store()
890 struct se_dev_attrib *da = to_attrib(item); in pi_prot_verify_store() local
899 da->pi_prot_verify = flag; in pi_prot_verify_store()
902 if (da->hw_pi_prot_type) { in pi_prot_verify_store()
907 if (!da->pi_prot_type) { in pi_prot_verify_store()
911 da->pi_prot_verify = flag; in pi_prot_verify_store()
919 struct se_dev_attrib *da = to_attrib(item); in force_pr_aptpl_store() local
926 if (da->da_dev->export_count) { in force_pr_aptpl_store()
929 da->da_dev, da->da_dev->export_count); in force_pr_aptpl_store()
933 da->force_pr_aptpl = flag; in force_pr_aptpl_store()
934 pr_debug("dev[%p]: SE Device force_pr_aptpl: %d\n", da->da_dev, flag); in force_pr_aptpl_store()
941 struct se_dev_attrib *da = to_attrib(item); in emulate_rest_reord_store() local
951 " reordering not implemented\n", da->da_dev); in emulate_rest_reord_store()
954 da->emulate_rest_reord = flag; in emulate_rest_reord_store()
956 da->da_dev, flag); in emulate_rest_reord_store()
963 struct se_dev_attrib *da = to_attrib(item); in unmap_zeroes_data_store() local
971 if (da->da_dev->export_count) { in unmap_zeroes_data_store()
974 da->da_dev, da->da_dev->export_count); in unmap_zeroes_data_store()
981 if (flag && !da->max_unmap_block_desc_count) { in unmap_zeroes_data_store()
984 da->da_dev); in unmap_zeroes_data_store()
987 da->unmap_zeroes_data = flag; in unmap_zeroes_data_store()
989 da->da_dev, flag); in unmap_zeroes_data_store()
999 struct se_dev_attrib *da = to_attrib(item); in queue_depth_store() local
1000 struct se_device *dev = da->da_dev; in queue_depth_store()
1028 da->queue_depth = dev->queue_depth = val; in queue_depth_store()
1036 struct se_dev_attrib *da = to_attrib(item); in optimal_sectors_store() local
1044 if (da->da_dev->export_count) { in optimal_sectors_store()
1047 da->da_dev, da->da_dev->export_count); in optimal_sectors_store()
1050 if (val > da->hw_max_sectors) { in optimal_sectors_store()
1053 da->da_dev, val, da->hw_max_sectors); in optimal_sectors_store()
1057 da->optimal_sectors = val; in optimal_sectors_store()
1059 da->da_dev, val); in optimal_sectors_store()
1066 struct se_dev_attrib *da = to_attrib(item); in block_size_store() local
1074 if (da->da_dev->export_count) { in block_size_store()
1077 da->da_dev, da->da_dev->export_count); in block_size_store()
1084 da->da_dev, val); in block_size_store()
1088 da->block_size = val; in block_size_store()
1089 if (da->max_bytes_per_io) in block_size_store()
1090 da->hw_max_sectors = da->max_bytes_per_io / val; in block_size_store()
1093 da->da_dev, val); in block_size_store()
1099 struct se_dev_attrib *da = to_attrib(item); in alua_support_show() local
1100 u8 flags = da->da_dev->transport->transport_flags; in alua_support_show()
1108 struct se_dev_attrib *da = to_attrib(item); in pgr_support_show() local
1109 u8 flags = da->da_dev->transport->transport_flags; in pgr_support_show()