Lines Matching refs:attr
85 struct device_attribute *attr, in ufs_sysfs_pm_lvl_store() argument
114 struct device_attribute *attr, char *buf) in rpm_lvl_show() argument
122 struct device_attribute *attr, const char *buf, size_t count) in rpm_lvl_store() argument
124 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, true); in rpm_lvl_store()
128 struct device_attribute *attr, char *buf) in rpm_target_dev_state_show() argument
137 struct device_attribute *attr, char *buf) in rpm_target_link_state_show() argument
146 struct device_attribute *attr, char *buf) in spm_lvl_show() argument
154 struct device_attribute *attr, const char *buf, size_t count) in spm_lvl_store() argument
156 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, false); in spm_lvl_store()
160 struct device_attribute *attr, char *buf) in spm_target_dev_state_show() argument
169 struct device_attribute *attr, char *buf) in spm_target_link_state_show() argument
220 struct device_attribute *attr, char *buf) in auto_hibern8_show() argument
237 struct device_attribute *attr, in auto_hibern8_store() argument
266 static ssize_t wb_on_show(struct device *dev, struct device_attribute *attr, in wb_on_show() argument
274 static ssize_t wb_on_store(struct device *dev, struct device_attribute *attr, in wb_on_store() argument
311 static ssize_t rtc_update_ms_show(struct device *dev, struct device_attribute *attr, in rtc_update_ms_show() argument
319 static ssize_t rtc_update_ms_store(struct device *dev, struct device_attribute *attr, in rtc_update_ms_store() argument
341 struct device_attribute *attr, in enable_wb_buf_flush_show() argument
350 struct device_attribute *attr, in enable_wb_buf_flush_store() argument
384 struct device_attribute *attr, in wb_flush_threshold_show() argument
393 struct device_attribute *attr, in wb_flush_threshold_store() argument
425 struct device_attribute *attr, char *buf) in pm_qos_enable_show() argument
445 struct device_attribute *attr, const char *buf, size_t count) in pm_qos_enable_store() argument
475 &dev_attr_rpm_lvl.attr,
476 &dev_attr_rpm_target_dev_state.attr,
477 &dev_attr_rpm_target_link_state.attr,
478 &dev_attr_spm_lvl.attr,
479 &dev_attr_spm_target_dev_state.attr,
480 &dev_attr_spm_target_link_state.attr,
481 &dev_attr_auto_hibern8.attr,
482 &dev_attr_wb_on.attr,
483 &dev_attr_enable_wb_buf_flush.attr,
484 &dev_attr_wb_flush_threshold.attr,
485 &dev_attr_rtc_update_ms.attr,
486 &dev_attr_pm_qos_enable.attr,
494 static ssize_t clock_scaling_show(struct device *dev, struct device_attribute *attr, in clock_scaling_show() argument
502 static ssize_t write_booster_show(struct device *dev, struct device_attribute *attr, in write_booster_show() argument
518 &dev_attr_clock_scaling.attr,
519 &dev_attr_write_booster.attr,
529 struct device_attribute *attr, char *buf) in version_show() argument
537 struct device_attribute *attr, char *buf) in product_id_show() argument
551 struct device_attribute *attr, char *buf) in man_id_show() argument
569 &dev_attr_version.attr,
570 &dev_attr_product_id.attr,
571 &dev_attr_man_id.attr,
581 struct device_attribute *attr, char *buf) in monitor_enable_show() argument
589 struct device_attribute *attr, in monitor_enable_store() argument
616 struct device_attribute *attr, char *buf) in monitor_chunk_size_show() argument
624 struct device_attribute *attr, in monitor_chunk_size_store() argument
642 struct device_attribute *attr, char *buf) in read_total_sectors_show() argument
650 struct device_attribute *attr, char *buf) in read_total_busy_show() argument
659 struct device_attribute *attr, char *buf) in read_nr_requests_show() argument
667 struct device_attribute *attr, in read_req_latency_avg_show() argument
678 struct device_attribute *attr, in read_req_latency_max_show() argument
688 struct device_attribute *attr, in read_req_latency_min_show() argument
698 struct device_attribute *attr, in read_req_latency_sum_show() argument
708 struct device_attribute *attr, in write_total_sectors_show() argument
717 struct device_attribute *attr, char *buf) in write_total_busy_show() argument
726 struct device_attribute *attr, char *buf) in write_nr_requests_show() argument
734 struct device_attribute *attr, in write_req_latency_avg_show() argument
745 struct device_attribute *attr, in write_req_latency_max_show() argument
755 struct device_attribute *attr, in write_req_latency_min_show() argument
765 struct device_attribute *attr, in write_req_latency_sum_show() argument
792 &dev_attr_monitor_enable.attr,
793 &dev_attr_monitor_chunk_size.attr,
794 &dev_attr_read_total_sectors.attr,
795 &dev_attr_read_total_busy.attr,
796 &dev_attr_read_nr_requests.attr,
797 &dev_attr_read_req_latency_avg.attr,
798 &dev_attr_read_req_latency_max.attr,
799 &dev_attr_read_req_latency_min.attr,
800 &dev_attr_read_req_latency_sum.attr,
801 &dev_attr_write_total_sectors.attr,
802 &dev_attr_write_total_busy.attr,
803 &dev_attr_write_nr_requests.attr,
804 &dev_attr_write_req_latency_avg.attr,
805 &dev_attr_write_req_latency_max.attr,
806 &dev_attr_write_req_latency_min.attr,
807 &dev_attr_write_req_latency_sum.attr,
816 static ssize_t lane_show(struct device *dev, struct device_attribute *attr, in lane_show() argument
824 static ssize_t mode_show(struct device *dev, struct device_attribute *attr, in mode_show() argument
832 static ssize_t rate_show(struct device *dev, struct device_attribute *attr, in rate_show() argument
840 static ssize_t gear_show(struct device *dev, struct device_attribute *attr, in gear_show() argument
850 static ssize_t dev_pm_show(struct device *dev, struct device_attribute *attr, in dev_pm_show() argument
859 struct device_attribute *attr, char *buf) in link_state_show() argument
874 &dev_attr_lane.attr,
875 &dev_attr_mode.attr,
876 &dev_attr_rate.attr,
877 &dev_attr_gear.attr,
878 &dev_attr_dev_pm.attr,
879 &dev_attr_link_state.attr,
941 struct device_attribute *attr, char *buf) \
984 &dev_attr_device_type.attr,
985 &dev_attr_device_class.attr,
986 &dev_attr_device_sub_class.attr,
987 &dev_attr_protocol.attr,
988 &dev_attr_number_of_luns.attr,
989 &dev_attr_number_of_wluns.attr,
990 &dev_attr_boot_enable.attr,
991 &dev_attr_descriptor_access_enable.attr,
992 &dev_attr_initial_power_mode.attr,
993 &dev_attr_high_priority_lun.attr,
994 &dev_attr_secure_removal_type.attr,
995 &dev_attr_support_security_lun.attr,
996 &dev_attr_bkops_termination_latency.attr,
997 &dev_attr_initial_active_icc_level.attr,
998 &dev_attr_specification_version.attr,
999 &dev_attr_manufacturing_date.attr,
1000 &dev_attr_manufacturer_id.attr,
1001 &dev_attr_rtt_capability.attr,
1002 &dev_attr_rtc_update.attr,
1003 &dev_attr_ufs_features.attr,
1004 &dev_attr_ffu_timeout.attr,
1005 &dev_attr_queue_depth.attr,
1006 &dev_attr_device_version.attr,
1007 &dev_attr_number_of_secure_wpa.attr,
1008 &dev_attr_psa_max_data_size.attr,
1009 &dev_attr_psa_state_timeout.attr,
1010 &dev_attr_ext_feature_sup.attr,
1011 &dev_attr_wb_presv_us_en.attr,
1012 &dev_attr_wb_type.attr,
1013 &dev_attr_wb_shared_alloc_units.attr,
1029 &dev_attr_unipro_version.attr,
1030 &dev_attr_mphy_version.attr,
1091 &dev_attr_raw_device_capacity.attr,
1092 &dev_attr_max_number_of_luns.attr,
1093 &dev_attr_segment_size.attr,
1094 &dev_attr_allocation_unit_size.attr,
1095 &dev_attr_min_addressable_block_size.attr,
1096 &dev_attr_optimal_read_block_size.attr,
1097 &dev_attr_optimal_write_block_size.attr,
1098 &dev_attr_max_in_buffer_size.attr,
1099 &dev_attr_max_out_buffer_size.attr,
1100 &dev_attr_rpmb_rw_size.attr,
1101 &dev_attr_dyn_capacity_resource_policy.attr,
1102 &dev_attr_data_ordering.attr,
1103 &dev_attr_max_number_of_contexts.attr,
1104 &dev_attr_sys_data_tag_unit_size.attr,
1105 &dev_attr_sys_data_tag_resource_size.attr,
1106 &dev_attr_secure_removal_types.attr,
1107 &dev_attr_memory_types.attr,
1108 &dev_attr_sys_code_memory_max_alloc_units.attr,
1109 &dev_attr_sys_code_memory_capacity_adjustment_factor.attr,
1110 &dev_attr_non_persist_memory_max_alloc_units.attr,
1111 &dev_attr_non_persist_memory_capacity_adjustment_factor.attr,
1112 &dev_attr_enh1_memory_max_alloc_units.attr,
1113 &dev_attr_enh1_memory_capacity_adjustment_factor.attr,
1114 &dev_attr_enh2_memory_max_alloc_units.attr,
1115 &dev_attr_enh2_memory_capacity_adjustment_factor.attr,
1116 &dev_attr_enh3_memory_max_alloc_units.attr,
1117 &dev_attr_enh3_memory_capacity_adjustment_factor.attr,
1118 &dev_attr_enh4_memory_max_alloc_units.attr,
1119 &dev_attr_enh4_memory_capacity_adjustment_factor.attr,
1120 &dev_attr_wb_max_alloc_units.attr,
1121 &dev_attr_wb_max_wb_luns.attr,
1122 &dev_attr_wb_buff_cap_adj.attr,
1123 &dev_attr_wb_sup_red_type.attr,
1124 &dev_attr_wb_sup_wb_type.attr,
1141 &dev_attr_eol_info.attr,
1142 &dev_attr_life_time_estimation_a.attr,
1143 &dev_attr_life_time_estimation_b.attr,
1154 struct device_attribute *attr, char *buf) \
1212 &dev_attr_active_icc_levels_vcc0.attr,
1213 &dev_attr_active_icc_levels_vcc1.attr,
1214 &dev_attr_active_icc_levels_vcc2.attr,
1215 &dev_attr_active_icc_levels_vcc3.attr,
1216 &dev_attr_active_icc_levels_vcc4.attr,
1217 &dev_attr_active_icc_levels_vcc5.attr,
1218 &dev_attr_active_icc_levels_vcc6.attr,
1219 &dev_attr_active_icc_levels_vcc7.attr,
1220 &dev_attr_active_icc_levels_vcc8.attr,
1221 &dev_attr_active_icc_levels_vcc9.attr,
1222 &dev_attr_active_icc_levels_vcc10.attr,
1223 &dev_attr_active_icc_levels_vcc11.attr,
1224 &dev_attr_active_icc_levels_vcc12.attr,
1225 &dev_attr_active_icc_levels_vcc13.attr,
1226 &dev_attr_active_icc_levels_vcc14.attr,
1227 &dev_attr_active_icc_levels_vcc15.attr,
1228 &dev_attr_active_icc_levels_vccq0.attr,
1229 &dev_attr_active_icc_levels_vccq1.attr,
1230 &dev_attr_active_icc_levels_vccq2.attr,
1231 &dev_attr_active_icc_levels_vccq3.attr,
1232 &dev_attr_active_icc_levels_vccq4.attr,
1233 &dev_attr_active_icc_levels_vccq5.attr,
1234 &dev_attr_active_icc_levels_vccq6.attr,
1235 &dev_attr_active_icc_levels_vccq7.attr,
1236 &dev_attr_active_icc_levels_vccq8.attr,
1237 &dev_attr_active_icc_levels_vccq9.attr,
1238 &dev_attr_active_icc_levels_vccq10.attr,
1239 &dev_attr_active_icc_levels_vccq11.attr,
1240 &dev_attr_active_icc_levels_vccq12.attr,
1241 &dev_attr_active_icc_levels_vccq13.attr,
1242 &dev_attr_active_icc_levels_vccq14.attr,
1243 &dev_attr_active_icc_levels_vccq15.attr,
1244 &dev_attr_active_icc_levels_vccq20.attr,
1245 &dev_attr_active_icc_levels_vccq21.attr,
1246 &dev_attr_active_icc_levels_vccq22.attr,
1247 &dev_attr_active_icc_levels_vccq23.attr,
1248 &dev_attr_active_icc_levels_vccq24.attr,
1249 &dev_attr_active_icc_levels_vccq25.attr,
1250 &dev_attr_active_icc_levels_vccq26.attr,
1251 &dev_attr_active_icc_levels_vccq27.attr,
1252 &dev_attr_active_icc_levels_vccq28.attr,
1253 &dev_attr_active_icc_levels_vccq29.attr,
1254 &dev_attr_active_icc_levels_vccq210.attr,
1255 &dev_attr_active_icc_levels_vccq211.attr,
1256 &dev_attr_active_icc_levels_vccq212.attr,
1257 &dev_attr_active_icc_levels_vccq213.attr,
1258 &dev_attr_active_icc_levels_vccq214.attr,
1259 &dev_attr_active_icc_levels_vccq215.attr,
1270 struct device_attribute *attr, char *buf) \
1319 &dev_attr_manufacturer_name.attr,
1320 &dev_attr_product_name.attr,
1321 &dev_attr_oem_id.attr,
1322 &dev_attr_serial_number.attr,
1323 &dev_attr_product_revision.attr,
1340 struct device_attribute *attr, char *buf) \
1382 &dev_attr_device_init.attr,
1383 &dev_attr_permanent_wpe.attr,
1384 &dev_attr_power_on_wpe.attr,
1385 &dev_attr_bkops_enable.attr,
1386 &dev_attr_life_span_mode_enable.attr,
1387 &dev_attr_phy_resource_removal.attr,
1388 &dev_attr_busy_rtc.attr,
1389 &dev_attr_disable_fw_update.attr,
1390 &dev_attr_wb_enable.attr,
1391 &dev_attr_wb_flush_en.attr,
1392 &dev_attr_wb_flush_during_h8.attr,
1402 struct device_attribute *attr, char *buf) in max_number_of_rtt_show() argument
1430 struct device_attribute *attr, in max_number_of_rtt_store() argument
1481 struct device_attribute *attr, char *buf) \
1532 &dev_attr_boot_lun_enabled.attr,
1533 &dev_attr_current_power_mode.attr,
1534 &dev_attr_active_icc_level.attr,
1535 &dev_attr_ooo_data_enabled.attr,
1536 &dev_attr_bkops_status.attr,
1537 &dev_attr_purge_status.attr,
1538 &dev_attr_max_data_in_size.attr,
1539 &dev_attr_max_data_out_size.attr,
1540 &dev_attr_reference_clock_frequency.attr,
1541 &dev_attr_configuration_descriptor_lock.attr,
1542 &dev_attr_max_number_of_rtt.attr,
1543 &dev_attr_exception_event_control.attr,
1544 &dev_attr_exception_event_status.attr,
1545 &dev_attr_ffu_status.attr,
1546 &dev_attr_psa_state.attr,
1547 &dev_attr_psa_data_size.attr,
1548 &dev_attr_wb_flush_status.attr,
1549 &dev_attr_wb_avail_buf.attr,
1550 &dev_attr_wb_life_time_est.attr,
1551 &dev_attr_wb_cur_buf.attr,
1579 struct device_attribute *attr, char *buf) \
1611 &dev_attr_lu_enable.attr,
1612 &dev_attr_boot_lun_id.attr,
1613 &dev_attr_lun_write_protect.attr,
1614 &dev_attr_lun_queue_depth.attr,
1615 &dev_attr_psa_sensitive.attr,
1616 &dev_attr_lun_memory_type.attr,
1617 &dev_attr_data_reliability.attr,
1618 &dev_attr_logical_block_size.attr,
1619 &dev_attr_logical_block_count.attr,
1620 &dev_attr_erase_block_size.attr,
1621 &dev_attr_provisioning_type.attr,
1622 &dev_attr_physical_memory_resourse_count.attr,
1623 &dev_attr_context_capabilities.attr,
1624 &dev_attr_large_unit_granularity.attr,
1625 &dev_attr_wb_buf_alloc_units.attr,
1629 static umode_t ufs_unit_descriptor_is_visible(struct kobject *kobj, struct attribute *attr, int n) in ufs_unit_descriptor_is_visible() argument
1634 umode_t mode = attr->mode; in ufs_unit_descriptor_is_visible()
1639 if (lun == UFS_UPIU_RPMB_WLUN && attr == &dev_attr_wb_buf_alloc_units.attr) in ufs_unit_descriptor_is_visible()
1653 struct device_attribute *attr, char *buf) in dyn_cap_needed_attribute_show() argument
1685 &dev_attr_dyn_cap_needed_attribute.attr,