Home
last modified time | relevance | path

Searched refs:sysfs_emit_at (Results 1 – 25 of 109) sorted by relevance

12345

/linux/drivers/media/common/siano/
H A Dsmsdvb-debugfs.c48 n += sysfs_emit_at(buf, n, "is_rf_locked = %d\n", p->is_rf_locked); in smsdvb_print_dvb_stats()
49 n += sysfs_emit_at(buf, n, "is_demod_locked = %d\n", p->is_demod_locked); in smsdvb_print_dvb_stats()
50 n += sysfs_emit_at(buf, n, "is_external_lna_on = %d\n", p->is_external_lna_on); in smsdvb_print_dvb_stats()
51 n += sysfs_emit_at(buf, n, "SNR = %d\n", p->SNR); in smsdvb_print_dvb_stats()
52 n += sysfs_emit_at(buf, n, "ber = %d\n", p->ber); in smsdvb_print_dvb_stats()
53 n += sysfs_emit_at(buf, n, "FIB_CRC = %d\n", p->FIB_CRC); in smsdvb_print_dvb_stats()
54 n += sysfs_emit_at(buf, n, "ts_per = %d\n", p->ts_per); in smsdvb_print_dvb_stats()
55 n += sysfs_emit_at(buf, n, "MFER = %d\n", p->MFER); in smsdvb_print_dvb_stats()
56 n += sysfs_emit_at(buf, n, "RSSI = %d\n", p->RSSI); in smsdvb_print_dvb_stats()
57 n += sysfs_emit_at(buf, n, "in_band_pwr = %d\n", p->in_band_pwr); in smsdvb_print_dvb_stats()
[all …]
/linux/drivers/pci/hotplug/
H A Dshpchp_sysfs.c35 len += sysfs_emit_at(buf, len, "Free resources: memory\n"); in show_ctrl()
39 len += sysfs_emit_at(buf, len, in show_ctrl()
45 len += sysfs_emit_at(buf, len, "Free resources: prefetchable memory\n"); in show_ctrl()
49 len += sysfs_emit_at(buf, len, in show_ctrl()
55 len += sysfs_emit_at(buf, len, "Free resources: IO\n"); in show_ctrl()
58 len += sysfs_emit_at(buf, len, in show_ctrl()
64 len += sysfs_emit_at(buf, len, "Free resources: bus numbers\n"); in show_ctrl()
70 len += sysfs_emit_at(buf, len, in show_ctrl()
/linux/drivers/s390/crypto/
H A Dzcrypt_cex4.c137 n += sysfs_emit_at(buf, n, "AES NEW: %s 0x%s\n", in cca_mkvps_show()
141 n += sysfs_emit_at(buf, n, "AES NEW: - -\n"); in cca_mkvps_show()
146 n += sysfs_emit_at(buf, n, "AES CUR: %s 0x%s\n", in cca_mkvps_show()
150 n += sysfs_emit_at(buf, n, "AES CUR: - -\n"); in cca_mkvps_show()
155 n += sysfs_emit_at(buf, n, "AES OLD: %s 0x%s\n", in cca_mkvps_show()
159 n += sysfs_emit_at(buf, n, "AES OLD: - -\n"); in cca_mkvps_show()
164 n += sysfs_emit_at(buf, n, "APKA NEW: %s 0x%s\n", in cca_mkvps_show()
168 n += sysfs_emit_at(buf, n, "APKA NEW: - -\n"); in cca_mkvps_show()
173 n += sysfs_emit_at(buf, n, "APKA CUR: %s 0x%s\n", in cca_mkvps_show()
177 n += sysfs_emit_at(buf, n, "APKA CUR: - -\n"); in cca_mkvps_show()
[all …]
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dspmobj-attributes.c168 len += sysfs_emit_at(buf, len, "{\n"); in status_show()
169 len += sysfs_emit_at(buf, len, "\t\"State\": \"%s\",\n", in status_show()
171 len += sysfs_emit_at(buf, len, "\t\"Version\": \"%d.%d\"", in status_show()
179 len += sysfs_emit_at(buf, len, "\n"); in status_show()
182 len += sysfs_emit_at(buf, len, ",\n"); in status_show()
185 len += sysfs_emit_at(buf, len, "\t\"Nonce\": %d,\n", data.nonce); in status_show()
186 len += sysfs_emit_at(buf, len, "\t\"FeaturesInUse\": %d,\n", data.features); in status_show()
187 len += sysfs_emit_at(buf, len, "\t\"EndorsementKeyMod\": \""); in status_show()
190 len += sysfs_emit_at(buf, len, " %u", data.kek_mod[i]); in status_show()
192 len += sysfs_emit_at(buf, len, " \",\n"); in status_show()
[all …]
/linux/drivers/memstick/core/
H A Dmspro_block.c263 rc += sysfs_emit_at(buffer, rc, "%02x ", in mspro_block_attr_show_default()
293 rc += sysfs_emit_at(buffer, rc, "class: %x\n", x_sys->class); in mspro_block_attr_show_sysinfo()
294 rc += sysfs_emit_at(buffer, rc, "block size: %x\n", be16_to_cpu(x_sys->block_size)); in mspro_block_attr_show_sysinfo()
295 rc += sysfs_emit_at(buffer, rc, "block count: %x\n", be16_to_cpu(x_sys->block_count)); in mspro_block_attr_show_sysinfo()
296 rc += sysfs_emit_at(buffer, rc, "user block count: %x\n", in mspro_block_attr_show_sysinfo()
298 rc += sysfs_emit_at(buffer, rc, "page size: %x\n", be16_to_cpu(x_sys->page_size)); in mspro_block_attr_show_sysinfo()
299 rc += sysfs_emit_at(buffer, rc, "assembly date: GMT%+d:%d %04u-%02u-%02u %02u:%02u:%02u\n", in mspro_block_attr_show_sysinfo()
305 rc += sysfs_emit_at(buffer, rc, "serial number: %x\n", be32_to_cpu(x_sys->serial_number)); in mspro_block_attr_show_sysinfo()
306 rc += sysfs_emit_at(buffer, rc, "assembly maker code: %x\n", x_sys->assembly_maker_code); in mspro_block_attr_show_sysinfo()
307 rc += sysfs_emit_at(buffer, rc, "assembly model code: %02x%02x%02x\n", in mspro_block_attr_show_sysinfo()
[all …]
/linux/drivers/acpi/
H A Dfan_attr.c30 count += sysfs_emit_at(buf, count, "not-defined:"); in show_state()
32 count += sysfs_emit_at(buf, count, "%lld:", fps->trip_point); in show_state()
35 count += sysfs_emit_at(buf, count, "not-defined:"); in show_state()
37 count += sysfs_emit_at(buf, count, "%lld:", fps->speed); in show_state()
40 count += sysfs_emit_at(buf, count, "not-defined:"); in show_state()
42 count += sysfs_emit_at(buf, count, "%lld:", fps->noise_level * 100); in show_state()
45 count += sysfs_emit_at(buf, count, "not-defined\n"); in show_state()
47 count += sysfs_emit_at(buf, count, "%lld\n", fps->power); in show_state()
H A Dsysfs.c701 size += sysfs_emit_at(buf, size, " EN"); in counter_show()
703 size += sysfs_emit_at(buf, size, " "); in counter_show()
705 size += sysfs_emit_at(buf, size, " STS"); in counter_show()
707 size += sysfs_emit_at(buf, size, " "); in counter_show()
710 size += sysfs_emit_at(buf, size, " invalid "); in counter_show()
712 size += sysfs_emit_at(buf, size, " enabled "); in counter_show()
714 size += sysfs_emit_at(buf, size, " wake_enabled"); in counter_show()
716 size += sysfs_emit_at(buf, size, " disabled "); in counter_show()
718 size += sysfs_emit_at(buf, size, " masked "); in counter_show()
720 size += sysfs_emit_at(buf, size, " unmasked"); in counter_show()
[all …]
/linux/drivers/cpufreq/
H A Dcpufreq_stats.c131 len += sysfs_emit_at(buf, len, " From : To\n"); in show_trans_table()
132 len += sysfs_emit_at(buf, len, " : "); in show_trans_table()
136 len += sysfs_emit_at(buf, len, "%9u ", stats->freq_table[i]); in show_trans_table()
141 len += sysfs_emit_at(buf, len, "\n"); in show_trans_table()
147 len += sysfs_emit_at(buf, len, "%9u: ", stats->freq_table[i]); in show_trans_table()
158 len += sysfs_emit_at(buf, len, "%9u ", count); in show_trans_table()
162 len += sysfs_emit_at(buf, len, "\n"); in show_trans_table()
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_7_ppt.c1226 sysfs_emit_at(buf, size, "unavailable\n"); in smu_v13_0_7_emit_clk_levels()
1277 size += sysfs_emit_at(buf, size, "OD_SCLK:\n"); in smu_v13_0_7_emit_clk_levels()
1278 size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMhz\n", in smu_v13_0_7_emit_clk_levels()
1288 size += sysfs_emit_at(buf, size, "OD_MCLK:\n"); in smu_v13_0_7_emit_clk_levels()
1289 size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMHz\n", in smu_v13_0_7_emit_clk_levels()
1299 size += sysfs_emit_at(buf, size, "OD_VDDGFX_OFFSET:\n"); in smu_v13_0_7_emit_clk_levels()
1300 size += sysfs_emit_at(buf, size, "%dmV\n", in smu_v13_0_7_emit_clk_levels()
1309 size += sysfs_emit_at(buf, size, "OD_FAN_CURVE:\n"); in smu_v13_0_7_emit_clk_levels()
1311 size += sysfs_emit_at(buf, size, "%d: %dC %d%%\n", in smu_v13_0_7_emit_clk_levels()
1316 size += sysfs_emit_at(buf, size, "%s:\n", "OD_RANGE"); in smu_v13_0_7_emit_clk_levels()
[all …]
H A Dsmu_v13_0_0_ppt.c1216 sysfs_emit_at(buf, size, "unavailable\n"); in smu_v13_0_0_emit_clk_levels()
1267 size += sysfs_emit_at(buf, size, "OD_SCLK:\n"); in smu_v13_0_0_emit_clk_levels()
1268 size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMhz\n", in smu_v13_0_0_emit_clk_levels()
1278 size += sysfs_emit_at(buf, size, "OD_MCLK:\n"); in smu_v13_0_0_emit_clk_levels()
1279 size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMHz\n", in smu_v13_0_0_emit_clk_levels()
1289 size += sysfs_emit_at(buf, size, "OD_VDDGFX_OFFSET:\n"); in smu_v13_0_0_emit_clk_levels()
1290 size += sysfs_emit_at(buf, size, "%dmV\n", in smu_v13_0_0_emit_clk_levels()
1299 size += sysfs_emit_at(buf, size, "OD_FAN_CURVE:\n"); in smu_v13_0_0_emit_clk_levels()
1301 size += sysfs_emit_at(buf, size, "%d: %dC %d%%\n", in smu_v13_0_0_emit_clk_levels()
1306 size += sysfs_emit_at(buf, size, "%s:\n", "OD_RANGE"); in smu_v13_0_0_emit_clk_levels()
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu14/
H A Dsmu_v14_0_2_ppt.c1047 sysfs_emit_at(buf, size, "unavailable\n"); in smu_v14_0_2_emit_clk_levels()
1099 size += sysfs_emit_at(buf, size, "OD_SCLK_OFFSET:\n"); in smu_v14_0_2_emit_clk_levels()
1100 size += sysfs_emit_at(buf, size, "%dMhz\n", in smu_v14_0_2_emit_clk_levels()
1109 size += sysfs_emit_at(buf, size, "OD_MCLK:\n"); in smu_v14_0_2_emit_clk_levels()
1110 size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMHz\n", in smu_v14_0_2_emit_clk_levels()
1120 size += sysfs_emit_at(buf, size, "OD_VDDGFX_OFFSET:\n"); in smu_v14_0_2_emit_clk_levels()
1121 size += sysfs_emit_at(buf, size, "%dmV\n", in smu_v14_0_2_emit_clk_levels()
1130 size += sysfs_emit_at(buf, size, "OD_FAN_CURVE:\n"); in smu_v14_0_2_emit_clk_levels()
1132 size += sysfs_emit_at(buf, size, "%d: %dC %d%%\n", in smu_v14_0_2_emit_clk_levels()
1137 size += sysfs_emit_at(buf, size, "%s:\n", "OD_RANGE"); in smu_v14_0_2_emit_clk_levels()
[all …]
/linux/scripts/coccinelle/api/
H A Ddevice_attr_show.cocci4 /// show() should only use sysfs_emit() or sysfs_emit_at() when formatting
48 coccilib.report.print_report(p[0], "WARNING: please use sysfs_emit or sysfs_emit_at")
54 coccilib.org.print_todo(p[0], "WARNING: please use sysfs_emit or sysfs_emit_at")
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_ib_sysfs.c95 len += sysfs_emit_at(buf, len, " Per VF:"); in config_show()
100 len += sysfs_emit_at(buf, len, "%s %d %s", in config_show()
106 len += sysfs_emit_at(buf, len, "\n"); in config_show()
226 len += sysfs_emit_at(buf, len, " %s[%d]", in summary_show()
232 len += sysfs_emit_at(buf, len, "\n"); in summary_show()
/linux/drivers/input/
H A Dvivaldi-fmap.c30 size += sysfs_emit_at(buf, size, in vivaldi_function_row_physmap_show()
33 size += sysfs_emit_at(buf, size, "\n"); in vivaldi_function_row_physmap_show()
/linux/drivers/infiniband/ulp/rtrs/
H A Drtrs-clt-stats.c48 used += sysfs_emit_at(buf, used, "%d ", in rtrs_clt_stats_migration_from_cnt_to_str()
52 used += sysfs_emit_at(buf, used, "\n"); in rtrs_clt_stats_migration_from_cnt_to_str()
67 used += sysfs_emit_at(buf, used, "%d ", s->cpu_migr.to); in rtrs_clt_stats_migration_to_cnt_to_str()
70 used += sysfs_emit_at(buf, used, "\n"); in rtrs_clt_stats_migration_to_cnt_to_str()
/linux/drivers/base/
H A Dcpu.c257 len += sysfs_emit_at(buf, len, "%*pbl", cpumask_pr_args(offline)); in print_cpus_offline()
262 len += sysfs_emit_at(buf, len, ","); in print_cpus_offline()
265 len += sysfs_emit_at(buf, len, "%u", nr_cpu_ids); in print_cpus_offline()
267 len += sysfs_emit_at(buf, len, "%u-%d", in print_cpus_offline()
271 len += sysfs_emit_at(buf, len, "\n"); in print_cpus_offline()
366 len += sysfs_emit_at(buf, len, in print_cpu_modalias()
376 len += sysfs_emit_at(buf, len, ",%04X", i); in print_cpu_modalias()
378 len += sysfs_emit_at(buf, len, "\n"); in print_cpu_modalias()
/linux/drivers/platform/x86/dell/
H A Ddell-wmi-privacy.c148 len += sysfs_emit_at(buf, len, "[%s] [supported]\n", privacy_types[type]); in dell_privacy_supported_type_show()
150 len += sysfs_emit_at(buf, len, "[%s] [unsupported]\n", privacy_types[type]); in dell_privacy_supported_type_show()
169 len += sysfs_emit_at(buf, len, "[%s] [unmuted]\n", privacy_types[type]); in dell_privacy_current_state_show()
171 len += sysfs_emit_at(buf, len, "[%s] [muted]\n", privacy_types[type]); in dell_privacy_current_state_show()
/linux/drivers/iio/
H A Dindustrialio-core.c537 len += sysfs_emit_at(buf, len, "%s ", e->items[i]); in iio_enum_available_read()
662 return sysfs_emit_at(buf, offset, "%d", vals[0]); in __iio_format_value()
668 return sysfs_emit_at(buf, offset, "-%d.%06u%s", in __iio_format_value()
672 return sysfs_emit_at(buf, offset, "%d.%06u%s", vals[0], in __iio_format_value()
676 return sysfs_emit_at(buf, offset, "-%d.%09u", in __iio_format_value()
679 return sysfs_emit_at(buf, offset, "%d.%09u", vals[0], in __iio_format_value()
685 return sysfs_emit_at(buf, offset, "-0.%09u", abs(tmp1)); in __iio_format_value()
687 return sysfs_emit_at(buf, offset, "%d.%09u", tmp0, in __iio_format_value()
693 return sysfs_emit_at(buf, offset, "-0.%09u", abs(tmp1)); in __iio_format_value()
695 return sysfs_emit_at(buf, offset, "%d.%09u", tmp0, in __iio_format_value()
[all …]
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dvega20_hwmgr.c3261 size += sysfs_emit_at(buf, size, "Current ppfeatures: 0x%016llx\n", features_enabled); in vega20_get_ppfeature_status()
3262 size += sysfs_emit_at(buf, size, "%-19s %-22s %s\n", in vega20_get_ppfeature_status()
3267 size += sysfs_emit_at(buf, size, "%-19s 0x%016llx %6s\n", in vega20_get_ppfeature_status()
3391 size += sysfs_emit_at(buf, size, in vega20_emit_clock_levels()
3398 size += sysfs_emit_at( in vega20_emit_clock_levels()
3413 size += sysfs_emit_at(buf, size, in vega20_emit_clock_levels()
3420 size += sysfs_emit_at( in vega20_emit_clock_levels()
3435 size += sysfs_emit_at(buf, size, in vega20_emit_clock_levels()
3442 size += sysfs_emit_at( in vega20_emit_clock_levels()
3457 size += sysfs_emit_at( in vega20_emit_clock_levels()
[all …]
H A Dsmu10_hwmgr.c1051 size += sysfs_emit_at(buf, size, "0: %uMhz %s\n", in smu10_emit_clock_levels()
1054 size += sysfs_emit_at(buf, size, "1: %uMhz %s\n", in smu10_emit_clock_levels()
1057 size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", in smu10_emit_clock_levels()
1067 size += sysfs_emit_at( in smu10_emit_clock_levels()
1083 size += sysfs_emit_at(buf, size, "%s:\n", "OD_SCLK"); in smu10_emit_clock_levels()
1084 size += sysfs_emit_at( in smu10_emit_clock_levels()
1089 size += sysfs_emit_at( in smu10_emit_clock_levels()
1105 size += sysfs_emit_at(buf, size, "%s:\n", "OD_RANGE"); in smu10_emit_clock_levels()
1106 size += sysfs_emit_at(buf, size, in smu10_emit_clock_levels()
1482 size += sysfs_emit_at(buf, size, "%s %16s %s %s %s %s\n", title[0], in smu10_get_power_profile_mode()
[all …]
/linux/drivers/net/bonding/
H A Dbond_sysfs.c50 res += sysfs_emit_at(buf, res, "++more++ "); in bonding_show_bonds()
53 res += sysfs_emit_at(buf, res, "%s ", bond->dev->name); in bonding_show_bonds()
180 res += sysfs_emit_at(buf, res, "++more++ "); in bonding_show_slaves()
183 res += sysfs_emit_at(buf, res, "%s ", slave->dev->name); in bonding_show_slaves()
294 res += sysfs_emit_at(buf, res, "%pI4 ", in bonding_show_arp_targets()
633 res += sysfs_emit_at(buf, res, "++more++ "); in bonding_show_queue_id()
636 res += sysfs_emit_at(buf, res, "%s:%d ", in bonding_show_queue_id()
/linux/drivers/hid/
H A Dhid-lenovo-go-s.c659 count += sysfs_emit_at(buf, count, "%s ", in gamepad_property_options()
667 count += sysfs_emit_at(buf, count, "%s ", in gamepad_property_options()
675 count += sysfs_emit_at(buf, count, "%s ", in gamepad_property_options()
681 count += sysfs_emit_at(buf, count, "%s ", in gamepad_property_options()
687 count += sysfs_emit_at(buf, count, "%s ", in gamepad_property_options()
693 count += sysfs_emit_at(buf, count, "%s ", in gamepad_property_options()
784 count += sysfs_emit_at(buf, count, "%s ", in touchpad_property_options()
908 count += sysfs_emit_at(buf, count, "%s ", rgb_effect_text[i]); in rgb_effect_index_show()
1014 count += sysfs_emit_at(buf, count, "%s ", rgb_mode_text[i]); in rgb_mode_index_show()
/linux/kernel/power/
H A Dmain.c230 count += sysfs_emit_at(buf, count, "[%s] ", label); in mem_sleep_show()
232 count += sysfs_emit_at(buf, count, "%s ", label); in mem_sleep_show()
344 count += sysfs_emit_at(buf, count, "[%s] ", pm_tests[level]); in pm_test_show()
346 count += sysfs_emit_at(buf, count, "%s ", pm_tests[level]); in pm_test_show()
759 count += sysfs_emit_at(buf, count, "%s ", pm_states[i]); in state_show()
763 count += sysfs_emit_at(buf, count, "disk "); in state_show()
/linux/drivers/iio/pressure/
H A Dms5637.c47 len += sysfs_emit_at(buf, len, "%u ", ms5637_samp_freq[i]); in ms5637_show_samp_freq()
48 sysfs_emit_at(buf, len - 1, "\n"); in ms5637_show_samp_freq()
/linux/drivers/gpu/drm/amd/pm/swsmu/
H A Dsmu_cmn.c896 size = sysfs_emit_at(buf, size, "features high: 0x%08x low: 0x%08x\n", in smu_cmn_get_pp_feature_mask()
911 size += sysfs_emit_at(buf, size, "%-2s. %-20s %-3s : %-s\n", in smu_cmn_get_pp_feature_mask()
919 size += sysfs_emit_at( in smu_cmn_get_pp_feature_mask()
1369 size += sysfs_emit_at(buf, size, "S: %uMhz *\n", cur_clk); in smu_cmn_print_dpm_clk_levels()
1379 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in smu_cmn_print_dpm_clk_levels()
1404 size += sysfs_emit_at( in smu_cmn_print_dpm_clk_levels()
1429 size += sysfs_emit_at( in smu_cmn_print_pcie_levels()

12345