Home
last modified time | relevance | path

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

12345

/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/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()
/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/smu14/
H A Dsmu_v14_0_2_ppt.c1067 size += sysfs_emit_at(buf, size, "unavailable\n"); in smu_v14_0_2_print_clk_levels()
1129 size += sysfs_emit_at(buf, size, "0: %uMhz\n", in smu_v14_0_2_print_clk_levels()
1131 size += sysfs_emit_at(buf, size, "1: %uMhz *\n", in smu_v14_0_2_print_clk_levels()
1133 size += sysfs_emit_at(buf, size, "2: %uMhz\n", in smu_v14_0_2_print_clk_levels()
1136 size += sysfs_emit_at(buf, size, "0: %uMhz %s\n", in smu_v14_0_2_print_clk_levels()
1139 size += sysfs_emit_at(buf, size, "1: %uMhz %s\n", in smu_v14_0_2_print_clk_levels()
1145 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in smu_v14_0_2_print_clk_levels()
1165 size += sysfs_emit_at(buf, size, "%d: %s %s %dMhz %s\n", i, in smu_v14_0_2_print_clk_levels()
1189 size += sysfs_emit_at(buf, size, "OD_SCLK_OFFSET:\n"); in smu_v14_0_2_print_clk_levels()
1190 size += sysfs_emit_at(buf, size, "%dMhz\n", in smu_v14_0_2_print_clk_levels()
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_0_ppt.c1206 size += sysfs_emit_at(buf, size, "unavailable\n"); in smu_v13_0_0_print_clk_levels()
1268 size += sysfs_emit_at(buf, size, "0: %uMhz\n", in smu_v13_0_0_print_clk_levels()
1270 size += sysfs_emit_at(buf, size, "1: %uMhz *\n", in smu_v13_0_0_print_clk_levels()
1272 size += sysfs_emit_at(buf, size, "2: %uMhz\n", in smu_v13_0_0_print_clk_levels()
1275 size += sysfs_emit_at(buf, size, "0: %uMhz %s\n", in smu_v13_0_0_print_clk_levels()
1278 size += sysfs_emit_at(buf, size, "1: %uMhz %s\n", in smu_v13_0_0_print_clk_levels()
1284 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in smu_v13_0_0_print_clk_levels()
1304 size += sysfs_emit_at(buf, size, "%d: %s %s %dMhz %s\n", i, in smu_v13_0_0_print_clk_levels()
1326 size += sysfs_emit_at(buf, size, "OD_SCLK:\n"); in smu_v13_0_0_print_clk_levels()
1327 size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMhz\n", in smu_v13_0_0_print_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()
H A Dnode.c457 len = sysfs_emit_at(buf, len, in node_read_meminfo()
486 len += sysfs_emit_at(buf, len, in node_read_meminfo()
496 len += sysfs_emit_at(buf, len, in node_read_meminfo()
596 len += sysfs_emit_at(buf, len, "%s %lu\n", in node_read_vmstat()
603 len += sysfs_emit_at(buf, len, "%s %lu\n", in node_read_vmstat()
613 len += sysfs_emit_at(buf, len, "%s %lu\n", node_stat_name(i), in node_read_vmstat()
635 len += sysfs_emit_at(buf, len, "%s%d", in node_read_distance()
639 len += sysfs_emit_at(buf, len, "\n"); in node_read_distance()
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/
H A Dnavi10_ppt.c1306 *offset += sysfs_emit_at(buf, *offset, in navi10_emit_clk_levels()
1334 *offset += sysfs_emit_at(buf, *offset, in navi10_emit_clk_levels()
1345 *offset += sysfs_emit_at(buf, *offset, "%d: %s %s %dMhz %s\n", i, in navi10_emit_clk_levels()
1367 *offset += sysfs_emit_at(buf, *offset, "OD_SCLK:\n0: %uMhz\n1: %uMhz\n", in navi10_emit_clk_levels()
1375 *offset += sysfs_emit_at(buf, *offset, "OD_MCLK:\n1: %uMHz\n", od_table->UclkFmax); in navi10_emit_clk_levels()
1382 *offset += sysfs_emit_at(buf, *offset, "OD_VDDC_CURVE:\n"); in navi10_emit_clk_levels()
1395 *offset += sysfs_emit_at(buf, *offset, "%d: %uMHz %umV\n", in navi10_emit_clk_levels()
1403 *offset += sysfs_emit_at(buf, *offset, "%s:\n", "OD_RANGE"); in navi10_emit_clk_levels()
1410 *offset += sysfs_emit_at(buf, *offset, "SCLK: %7uMhz %10uMhz\n", in navi10_emit_clk_levels()
1417 *offset += sysfs_emit_at(buf, *offset, "MCLK: %7uMhz %10uMhz\n", in navi10_emit_clk_levels()
[all …]
/linux/fs/f2fs/
H A Dsysfs.c197 len += sysfs_emit_at(buf, len, "%s", in features_show()
200 len += sysfs_emit_at(buf, len, "%s%s", in features_show()
203 len += sysfs_emit_at(buf, len, "%s%s", in features_show()
206 len += sysfs_emit_at(buf, len, "%s%s", in features_show()
209 len += sysfs_emit_at(buf, len, "%s%s", in features_show()
212 len += sysfs_emit_at(buf, len, "%s%s", in features_show()
215 len += sysfs_emit_at(buf, len, "%s%s", in features_show()
218 len += sysfs_emit_at(buf, len, "%s%s", in features_show()
221 len += sysfs_emit_at(buf, len, "%s%s", in features_show()
224 len += sysfs_emit_at(buf, len, "%s%s", in features_show()
[all …]
/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/block/zram/
H A Dzcomp.c99 at += sysfs_emit_at(buf, at, "[%s] ", in zcomp_available_show()
102 at += sysfs_emit_at(buf, at, "%s ", backends[i]->name); in zcomp_available_show()
106 at += sysfs_emit_at(buf, at, "\n"); in zcomp_available_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/platform/x86/
H A Dasus-laptop.c857 len += sysfs_emit_at(page, len, ASUS_LAPTOP_NAME " " ASUS_LAPTOP_VERSION "\n"); in infos_show()
858 len += sysfs_emit_at(page, len, "Model reference : %s\n", asus->name); in infos_show()
867 len += sysfs_emit_at(page, len, "SFUN value : %#x\n", in infos_show()
879 len += sysfs_emit_at(page, len, "HWRS value : %#x\n", in infos_show()
890 len += sysfs_emit_at(page, len, "ASYM value : %#x\n", in infos_show()
894 len += sysfs_emit_at(page, len, "DSDT length : %s\n", buf); in infos_show()
896 len += sysfs_emit_at(page, len, "DSDT checksum : %s\n", buf); in infos_show()
898 len += sysfs_emit_at(page, len, "DSDT revision : %s\n", buf); in infos_show()
900 len += sysfs_emit_at(page, len, "OEM id : %s\n", buf); in infos_show()
902 len += sysfs_emit_at(page, len, "OEM table id : %s\n", buf); in infos_show()
[all …]
/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/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()
H A Dwakelock.c49 len += sysfs_emit_at(buf, len, "%s ", wl->name); in pm_show_wakelocks()
55 len += sysfs_emit_at(buf, len, "\n"); in pm_show_wakelocks()
/linux/drivers/s390/crypto/
H A Dap_queue.c814 rc += sysfs_emit_at(buf, rc, " [RESET_START]\n"); in states_show()
817 rc += sysfs_emit_at(buf, rc, " [RESET_WAIT]\n"); in states_show()
820 rc += sysfs_emit_at(buf, rc, " [SETIRQ_WAIT]\n"); in states_show()
823 rc += sysfs_emit_at(buf, rc, " [IDLE]\n"); in states_show()
826 rc += sysfs_emit_at(buf, rc, " [WORKING]\n"); in states_show()
829 rc += sysfs_emit_at(buf, rc, " [FULL]\n"); in states_show()
832 rc += sysfs_emit_at(buf, rc, " [ASSOC_WAIT]\n"); in states_show()
835 rc += sysfs_emit_at(buf, rc, " [UNKNOWN]\n"); in states_show()
/linux/drivers/platform/x86/intel/uncore-frequency/
H A Duncore-frequency-common.c59 length += sysfs_emit_at(buf, length, " "); in show_agent_types()
61 length += sysfs_emit_at(buf, length, "%s", agent_name[agent]); in show_agent_types()
64 length += sysfs_emit_at(buf, length, "\n"); in show_agent_types()
/linux/drivers/gpu/drm/v3d/
H A Dv3d_sysfs.c38 len += sysfs_emit_at(buf, len, "%s\t%llu\t%llu\t%llu\n", in gpu_stats_show()

12345