Home
last modified time | relevance | path

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

12

/Linux-v5.15/drivers/pci/hotplug/
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-v5.15/drivers/infiniband/hw/usnic/
Dusnic_ib_sysfs.c96 len += sysfs_emit_at(buf, len, " Per VF:"); in config_show()
101 len += sysfs_emit_at(buf, len, "%s %d %s", in config_show()
107 len += sysfs_emit_at(buf, len, "\n"); in config_show()
227 len += sysfs_emit_at(buf, len, " %s[%d]", in summary_show()
233 len += sysfs_emit_at(buf, len, "\n"); in summary_show()
/Linux-v5.15/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dcyan_skillfish_ppt.c319 size += sysfs_emit_at(buf, size,"%s:\n", "OD_SCLK"); in cyan_skillfish_print_clk_levels()
320 size += sysfs_emit_at(buf, size, "0: %uMhz *\n", cur_value); in cyan_skillfish_print_clk_levels()
326 size += sysfs_emit_at(buf, size,"%s:\n", "OD_VDDC"); in cyan_skillfish_print_clk_levels()
327 size += sysfs_emit_at(buf, size, "0: %umV *\n", cur_value); in cyan_skillfish_print_clk_levels()
330 size += sysfs_emit_at(buf, size, "%s:\n", "OD_RANGE"); in cyan_skillfish_print_clk_levels()
331 size += sysfs_emit_at(buf, size, "SCLK: %7uMhz %10uMhz\n", in cyan_skillfish_print_clk_levels()
333 size += sysfs_emit_at(buf, size, "VDDC: %7umV %10umV\n", in cyan_skillfish_print_clk_levels()
346 size += sysfs_emit_at(buf, size, "0: %uMhz *\n", cur_value); in cyan_skillfish_print_clk_levels()
Dvangogh_ppt.c597 size += sysfs_emit_at(buf, size, "%s:\n", "OD_SCLK"); in vangogh_print_legacy_clk_levels()
598 size += sysfs_emit_at(buf, size, "0: %10uMhz\n", in vangogh_print_legacy_clk_levels()
600 size += sysfs_emit_at(buf, size, "1: %10uMhz\n", in vangogh_print_legacy_clk_levels()
606 size += sysfs_emit_at(buf, size, "CCLK_RANGE in Core%d:\n", smu->cpu_core_id_select); in vangogh_print_legacy_clk_levels()
607 size += sysfs_emit_at(buf, size, "0: %10uMhz\n", in vangogh_print_legacy_clk_levels()
609 size += sysfs_emit_at(buf, size, "1: %10uMhz\n", in vangogh_print_legacy_clk_levels()
615 size += sysfs_emit_at(buf, size, "%s:\n", "OD_RANGE"); in vangogh_print_legacy_clk_levels()
616 size += sysfs_emit_at(buf, size, "SCLK: %7uMhz %10uMhz\n", in vangogh_print_legacy_clk_levels()
618 size += sysfs_emit_at(buf, size, "CCLK: %7uMhz %10uMhz\n", in vangogh_print_legacy_clk_levels()
661 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, value, in vangogh_print_legacy_clk_levels()
[all …]
Dnavi10_ppt.c1308 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, value, in navi10_print_clk_levels()
1326 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, freq_values[i], in navi10_print_clk_levels()
1336 size += sysfs_emit_at(buf, size, "%d: %s %s %dMhz %s\n", i, in navi10_print_clk_levels()
1357 size += sysfs_emit_at(buf, size, "OD_SCLK:\n"); in navi10_print_clk_levels()
1358 size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMhz\n", in navi10_print_clk_levels()
1366 size += sysfs_emit_at(buf, size, "OD_MCLK:\n"); in navi10_print_clk_levels()
1367 size += sysfs_emit_at(buf, size, "1: %uMHz\n", od_table->UclkFmax); in navi10_print_clk_levels()
1374 size += sysfs_emit_at(buf, size, "OD_VDDC_CURVE:\n"); in navi10_print_clk_levels()
1389 size += sysfs_emit_at(buf, size, "%d: %uMHz %umV\n", in navi10_print_clk_levels()
1397 size += sysfs_emit_at(buf, size, "%s:\n", "OD_RANGE"); in navi10_print_clk_levels()
[all …]
Darcturus_ppt.c777 size += sysfs_emit_at(buf, size, "unavailable\n"); in arcturus_print_clk_levels()
803 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, in arcturus_print_clk_levels()
826 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in arcturus_print_clk_levels()
849 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in arcturus_print_clk_levels()
872 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in arcturus_print_clk_levels()
895 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in arcturus_print_clk_levels()
918 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in arcturus_print_clk_levels()
929 size += sysfs_emit_at(buf, size, "0: %s %s %dMhz *\n", in arcturus_print_clk_levels()
1411 size += sysfs_emit_at(buf, size, "%16s %s %s %s %s %s %s %s %s %s %s\n", in arcturus_get_power_profile_mode()
1415 size += sysfs_emit_at(buf, size, "%16s\n", in arcturus_get_power_profile_mode()
[all …]
Dsienna_cichlid_ppt.c1093 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, value, in sienna_cichlid_print_clk_levels()
1115 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, freq_values[i], in sienna_cichlid_print_clk_levels()
1126 size += sysfs_emit_at(buf, size, "%d: %s %s %dMhz %s\n", i, in sienna_cichlid_print_clk_levels()
1149 size += sysfs_emit_at(buf, size, "OD_SCLK:\n"); in sienna_cichlid_print_clk_levels()
1150 …size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMhz\n", od_table->GfxclkFmin, od_table->GfxclkFma… in sienna_cichlid_print_clk_levels()
1160 size += sysfs_emit_at(buf, size, "OD_MCLK:\n"); in sienna_cichlid_print_clk_levels()
1161 size += sysfs_emit_at(buf, size, "0: %uMhz\n1: %uMHz\n", od_table->UclkFmin, od_table->UclkFmax); in sienna_cichlid_print_clk_levels()
1177 size += sysfs_emit_at(buf, size, "OD_VDDGFX_OFFSET:\n"); in sienna_cichlid_print_clk_levels()
1178 size += sysfs_emit_at(buf, size, "%dmV\n", od_table->VddGfxOffset); in sienna_cichlid_print_clk_levels()
1185 size += sysfs_emit_at(buf, size, "%s:\n", "OD_RANGE"); in sienna_cichlid_print_clk_levels()
[all …]
/Linux-v5.15/drivers/base/
Dcpu.c248 len += sysfs_emit_at(buf, len, "%*pbl", cpumask_pr_args(offline)); in print_cpus_offline()
253 len += sysfs_emit_at(buf, len, ","); in print_cpus_offline()
256 len += sysfs_emit_at(buf, len, "%u", nr_cpu_ids); in print_cpus_offline()
258 len += sysfs_emit_at(buf, len, "%u-%d", in print_cpus_offline()
262 len += sysfs_emit_at(buf, len, "\n"); in print_cpus_offline()
323 len += sysfs_emit_at(buf, len, in print_cpu_modalias()
333 len += sysfs_emit_at(buf, len, ",%04X", i); in print_cpu_modalias()
335 len += sysfs_emit_at(buf, len, "\n"); in print_cpu_modalias()
Dnode.c385 len = sysfs_emit_at(buf, len, in node_read_meminfo()
414 len += sysfs_emit_at(buf, len, in node_read_meminfo()
424 len += sysfs_emit_at(buf, len, in node_read_meminfo()
515 len += sysfs_emit_at(buf, len, "%s %lu\n", in node_read_vmstat()
522 len += sysfs_emit_at(buf, len, "%s %lu\n", in node_read_vmstat()
532 len += sysfs_emit_at(buf, len, "%s %lu\n", node_stat_name(i), in node_read_vmstat()
554 len += sysfs_emit_at(buf, len, "%s%d", in node_read_distance()
558 len += sysfs_emit_at(buf, len, "\n"); in node_read_distance()
Dmemory.c394 return sysfs_emit_at(buf, len, " %s", zone->name); in print_allowed_zone()
421 len += sysfs_emit_at(buf, len, "%s", default_zone->name); in valid_zones_show()
428 len += sysfs_emit_at(buf, len, "%s", default_zone->name); in valid_zones_show()
434 len += sysfs_emit_at(buf, len, "\n"); in valid_zones_show()
/Linux-v5.15/drivers/acpi/
Dplatform_profile.c43 len += sysfs_emit_at(buf, len, "%s", profile_names[i]); in platform_profile_choices_show()
45 len += sysfs_emit_at(buf, len, " %s", profile_names[i]); in platform_profile_choices_show()
47 len += sysfs_emit_at(buf, len, "\n"); in platform_profile_choices_show()
/Linux-v5.15/drivers/platform/x86/dell/
Ddell-wmi-privacy.c144 len += sysfs_emit_at(buf, len, "[%s] [supported]\n", privacy_types[type]); in dell_privacy_supported_type_show()
146 len += sysfs_emit_at(buf, len, "[%s] [unsupported]\n", privacy_types[type]); in dell_privacy_supported_type_show()
165 len += sysfs_emit_at(buf, len, "[%s] [unmuted]\n", privacy_types[type]); in dell_privacy_current_state_show()
167 len += sysfs_emit_at(buf, len, "[%s] [muted]\n", privacy_types[type]); in dell_privacy_current_state_show()
/Linux-v5.15/drivers/iio/
Dindustrialio-core.c533 len += sysfs_emit_at(buf, len, "%s ", e->items[i]); in iio_enum_available_read()
658 return sysfs_emit_at(buf, offset, "%d", vals[0]); in __iio_format_value()
664 return sysfs_emit_at(buf, offset, "-%d.%06u%s", in __iio_format_value()
668 return sysfs_emit_at(buf, offset, "%d.%06u%s", vals[0], in __iio_format_value()
672 return sysfs_emit_at(buf, offset, "-%d.%09u", in __iio_format_value()
675 return sysfs_emit_at(buf, offset, "%d.%09u", vals[0], in __iio_format_value()
682 return sysfs_emit_at(buf, offset, "-0.%09u", abs(tmp1)); in __iio_format_value()
684 return sysfs_emit_at(buf, offset, "%d.%09u", tmp0, in __iio_format_value()
690 return sysfs_emit_at(buf, offset, "-0.%09u", abs(tmp1)); in __iio_format_value()
692 return sysfs_emit_at(buf, offset, "%d.%09u", tmp0, in __iio_format_value()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega20_hwmgr.c3246 size += sysfs_emit_at(buf, size, "Current ppfeatures: 0x%016llx\n", features_enabled); in vega20_get_ppfeature_status()
3247 size += sysfs_emit_at(buf, size, "%-19s %-22s %s\n", in vega20_get_ppfeature_status()
3252 size += sysfs_emit_at(buf, size, "%-19s 0x%016llx %6s\n", in vega20_get_ppfeature_status()
3375 size += sysfs_emit_at(buf, size, "0: %uMhz * (DPM disabled)\n", in vega20_print_clock_levels()
3381 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in vega20_print_clock_levels()
3393 size += sysfs_emit_at(buf, size, "0: %uMhz * (DPM disabled)\n", in vega20_print_clock_levels()
3399 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in vega20_print_clock_levels()
3411 size += sysfs_emit_at(buf, size, "0: %uMhz * (DPM disabled)\n", in vega20_print_clock_levels()
3417 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in vega20_print_clock_levels()
3429 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in vega20_print_clock_levels()
[all …]
Dsmu10_hwmgr.c1039 size += sysfs_emit_at(buf, size, "0: %uMhz %s\n", in smu10_print_clock_levels()
1042 size += sysfs_emit_at(buf, size, "1: %uMhz %s\n", in smu10_print_clock_levels()
1045 size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", in smu10_print_clock_levels()
1053 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in smu10_print_clock_levels()
1069 size += sysfs_emit_at(buf, size, "0: %10uMhz\n", in smu10_print_clock_levels()
1071 size += sysfs_emit_at(buf, size, "1: %10uMhz\n", in smu10_print_clock_levels()
1085 size += sysfs_emit_at(buf, size, "SCLK: %7uMHz %10uMHz\n", in smu10_print_clock_levels()
1459 size += sysfs_emit_at(buf, size, "%s %16s %s %s %s %s\n",title[0], in smu10_get_power_profile_mode()
1463 size += sysfs_emit_at(buf, size, "%3d %14s%s: %14d %3d %10d %14d\n", in smu10_get_power_profile_mode()
/Linux-v5.15/drivers/gpu/drm/amd/pm/swsmu/smu12/
Drenoir_ppt.c515 size += sysfs_emit_at(buf, size, "OD_RANGE\nSCLK: %10uMhz %10uMhz\n", min, max); in renoir_print_clk_levels()
522 size += sysfs_emit_at(buf, size, "OD_SCLK\n"); in renoir_print_clk_levels()
523 size += sysfs_emit_at(buf, size, "0:%10uMhz\n", min); in renoir_print_clk_levels()
524 size += sysfs_emit_at(buf, size, "1:%10uMhz\n", max); in renoir_print_clk_levels()
541 size += sysfs_emit_at(buf, size, "0: %uMhz %s\n", min, in renoir_print_clk_levels()
543 size += sysfs_emit_at(buf, size, "1: %uMhz %s\n", in renoir_print_clk_levels()
546 size += sysfs_emit_at(buf, size, "2: %uMhz %s\n", max, in renoir_print_clk_levels()
593 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, value, in renoir_print_clk_levels()
600 size += sysfs_emit_at(buf, size, " %uMhz *\n", cur_value); in renoir_print_clk_levels()
1123 size += sysfs_emit_at(buf, size, "%2d %14s%s\n", in renoir_get_power_profile_mode()
/Linux-v5.15/drivers/iio/pressure/
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-v5.15/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dyellow_carp_ppt.c575 size += sysfs_emit_at(buf, size, "%2d %14s%s\n", in yellow_carp_get_power_profile_mode()
1059 size += sysfs_emit_at(buf, size, "%s:\n", "OD_SCLK"); in yellow_carp_print_clk_levels()
1060 size += sysfs_emit_at(buf, size, "0: %10uMhz\n", in yellow_carp_print_clk_levels()
1062 size += sysfs_emit_at(buf, size, "1: %10uMhz\n", in yellow_carp_print_clk_levels()
1066 size += sysfs_emit_at(buf, size, "%s:\n", "OD_RANGE"); in yellow_carp_print_clk_levels()
1067 size += sysfs_emit_at(buf, size, "SCLK: %7uMhz %10uMhz\n", in yellow_carp_print_clk_levels()
1088 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, value, in yellow_carp_print_clk_levels()
Daldebaran_ppt.c739 size += sysfs_emit_at(buf, size, "unavailable\n"); in aldebaran_print_clk_levels()
748 size += sysfs_emit_at(buf, size, "%s:\n", "GFXCLK"); in aldebaran_print_clk_levels()
785 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, in aldebaran_print_clk_levels()
795 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", i, in aldebaran_print_clk_levels()
802 size += sysfs_emit_at(buf, size, "%s:\n", "MCLK"); in aldebaran_print_clk_levels()
819 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in aldebaran_print_clk_levels()
842 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in aldebaran_print_clk_levels()
865 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in aldebaran_print_clk_levels()
888 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in aldebaran_print_clk_levels()
911 size += sysfs_emit_at(buf, size, "%d: %uMhz %s\n", in aldebaran_print_clk_levels()
/Linux-v5.15/drivers/dma/idxd/
Dsysfs.c260 rc += sysfs_emit_at(buf, rc, "engine%d.%d ", idxd->id, engine->id); in group_engines_show()
266 rc += sysfs_emit_at(buf, rc, "\n"); in group_engines_show()
288 rc += sysfs_emit_at(buf, rc, "wq%d.%d ", idxd->id, wq->id); in group_work_queues_show()
294 rc += sysfs_emit_at(buf, rc, "\n"); in group_work_queues_show()
1072 rc += sysfs_emit_at(buf, rc, "%#llx ", idxd->hw.opcap.bits[i]); in op_cap_show()
1075 rc += sysfs_emit_at(buf, rc, "\n"); in op_cap_show()
1151 out += sysfs_emit_at(buf, out, "%#018llx ", idxd->sw_err.bits[i]); in errors_show()
1154 out += sysfs_emit_at(buf, out, "\n"); in errors_show()
/Linux-v5.15/drivers/perf/
Darm-ccn.c333 res += sysfs_emit_at(buf, res, ",event=0x%x", event->event); in arm_ccn_pmu_event_show()
335 res += sysfs_emit_at(buf, res, ",%s", event->def); in arm_ccn_pmu_event_show()
337 res += sysfs_emit_at(buf, res, ",mask=0x%x", event->mask); in arm_ccn_pmu_event_show()
344 res += sysfs_emit_at(buf, res, ",xp=?,vc=?"); in arm_ccn_pmu_event_show()
346 res += sysfs_emit_at(buf, res, in arm_ccn_pmu_event_show()
349 res += sysfs_emit_at(buf, res, ",bus=?"); in arm_ccn_pmu_event_show()
353 res += sysfs_emit_at(buf, res, ",node=%d", ccn->mn_id); in arm_ccn_pmu_event_show()
356 res += sysfs_emit_at(buf, res, ",node=?"); in arm_ccn_pmu_event_show()
360 res += sysfs_emit_at(buf, res, "\n"); in arm_ccn_pmu_event_show()
/Linux-v5.15/drivers/gpu/drm/amd/pm/swsmu/
Dsmu_cmn.c713 size = sysfs_emit_at(buf, size, "features high: 0x%08x low: 0x%08x\n", in smu_cmn_get_pp_feature_mask()
728 size += sysfs_emit_at(buf, size, "%-2s. %-20s %-3s : %-s\n", in smu_cmn_get_pp_feature_mask()
735 size += sysfs_emit_at(buf, size, "%02d. %-20s (%2d) : %s\n", in smu_cmn_get_pp_feature_mask()
/Linux-v5.15/drivers/watchdog/
Dwatchdog_pretimeout.c59 count += sysfs_emit_at(buf, count, "%s\n", priv->gov->name); in watchdog_pretimeout_available_governors_get()
/Linux-v5.15/drivers/infiniband/ulp/rtrs/
Drtrs-clt-sysfs.c380 len += sysfs_emit_at(page, len, "\n"); in rtrs_clt_src_addr_show()
397 len += sysfs_emit_at(page, len, "\n"); in rtrs_clt_dst_addr_show()
/Linux-v5.15/include/linux/
Dsysfs.h343 int sysfs_emit_at(char *buf, int at, const char *fmt, ...);
598 static inline int sysfs_emit_at(char *buf, int at, const char *fmt, ...) in sysfs_emit_at() function

12