Home
last modified time | relevance | path

Searched refs:sysfs_emit (Results 1 – 25 of 231) sorted by relevance

12345678910

/Linux-v5.15/drivers/base/power/
Dsysfs.c104 return sysfs_emit(buf, "%s\n", in control_show()
132 return sysfs_emit(buf, "%llu\n", tmp); in runtime_active_time_show()
145 return sysfs_emit(buf, "%llu\n", tmp); in runtime_suspended_time_show()
177 return sysfs_emit(buf, "%s\n", output); in runtime_status_show()
189 return sysfs_emit(buf, "%d\n", dev->power.autosuspend_delay); in autosuspend_delay_ms_show()
218 return sysfs_emit(buf, "n/a\n"); in pm_qos_resume_latency_us_show()
222 return sysfs_emit(buf, "%d\n", value); in pm_qos_resume_latency_us_show()
262 return sysfs_emit(buf, "%s\n", "auto"); in pm_qos_latency_tolerance_us_show()
264 return sysfs_emit(buf, "%s\n", "any"); in pm_qos_latency_tolerance_us_show()
266 return sysfs_emit(buf, "%d\n", value); in pm_qos_latency_tolerance_us_show()
[all …]
Dwakeup_stats.c29 return sysfs_emit(buf, "%lu\n", ws->_name); \
45 return sysfs_emit(buf, "%lld\n", ktime_to_ms(active_time)); in active_time_ms_show()
61 return sysfs_emit(buf, "%lld\n", ktime_to_ms(total_time)); in total_time_ms_show()
78 return sysfs_emit(buf, "%lld\n", ktime_to_ms(max_time)); in max_time_ms_show()
87 return sysfs_emit(buf, "%lld\n", ktime_to_ms(ws->last_time)); in last_change_ms_show()
96 return sysfs_emit(buf, "%s\n", ws->name); in name_show()
112 return sysfs_emit(buf, "%lld\n", ktime_to_ms(prevent_sleep_time)); in prevent_suspend_time_ms_show()
/Linux-v5.15/drivers/dma/idxd/
Dsysfs.c26 return sysfs_emit(buf, "%d\n", engine->group->id); in engine_group_id_show()
28 return sysfs_emit(buf, "%d\n", -1); in engine_group_id_show()
121 return sysfs_emit(buf, "%u\n", group->tokens_reserved); in group_tokens_reserved_show()
167 return sysfs_emit(buf, "%u\n", group->tokens_allowed); in group_tokens_allowed_show()
210 return sysfs_emit(buf, "%u\n", group->use_token_limit); in group_use_token_limit_show()
308 return sysfs_emit(buf, "%d\n", group->tc_a); in group_traffic_class_a_show()
350 return sysfs_emit(buf, "%d\n", group->tc_b); in group_traffic_class_b_show()
425 return sysfs_emit(buf, "%d\n", wq->client_count); in wq_clients_show()
438 return sysfs_emit(buf, "disabled\n"); in wq_state_show()
440 return sysfs_emit(buf, "enabled\n"); in wq_state_show()
[all …]
/Linux-v5.15/drivers/infiniband/hw/usnic/
Dusnic_ib_sysfs.c60 return sysfs_emit(buf, "%u\n", subsystem_device_id); in board_id_show()
87 len = sysfs_emit(buf, "%s: %s:%d.%d, %s, %pM, %u VFs\n", in config_show()
109 len = sysfs_emit(buf, "%s: no VFs\n", in config_show()
125 return sysfs_emit(buf, "%s\n", netdev_name(us_ibdev->netdev)); in iface_show()
135 return sysfs_emit(buf, "%u\n", kref_read(&us_ibdev->vf_cnt)); in max_vf_show()
149 return sysfs_emit(buf, "%d\n", qp_per_vf); in qp_per_vf_show()
159 return sysfs_emit(buf, "%d\n", in cq_per_vf_show()
207 return sysfs_emit(buf, "0x%p\n", qp_grp->ctx); in context_show()
217 len = sysfs_emit(buf, "QPN: %d State: (%s) PID: %u VF Idx: %hu", in summary_show()
/Linux-v5.15/drivers/infiniband/ulp/rtrs/
Drtrs-clt-sysfs.c55 return sysfs_emit(page, "%d\n", in max_reconnect_attempts_show()
99 return sysfs_emit(page, "round-robin (RR: %d)\n", in mpath_policy_show()
102 return sysfs_emit(page, "min-inflight (MI: %d)\n", in mpath_policy_show()
105 return sysfs_emit(page, "min-latency (ML: %d)\n", in mpath_policy_show()
108 return sysfs_emit(page, "Unknown (%d)\n", clt->mp_policy); in mpath_policy_show()
157 return sysfs_emit( in add_path_show()
204 return sysfs_emit(page, "connected\n"); in rtrs_clt_state_show()
206 return sysfs_emit(page, "disconnected\n"); in rtrs_clt_state_show()
215 return sysfs_emit(buf, "Usage: echo 1 > %s\n", attr->attr.name); in rtrs_clt_reconnect_show()
245 return sysfs_emit(buf, "Usage: echo 1 > %s\n", attr->attr.name); in rtrs_clt_disconnect_show()
[all …]
/Linux-v5.15/drivers/base/
Dcpu.c160 return sysfs_emit(buf, "%llx\n", addr); in crash_notes_show()
168 return sysfs_emit(buf, "%zu\n", sizeof(note_buf_t)); in crash_notes_size_show()
231 return sysfs_emit(buf, "%d\n", NR_CPUS - 1); in print_cpus_kernel_max()
279 len = sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(isolated)); in print_cpus_isolated()
291 return sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(tick_nohz_full_mask)); in print_cpus_nohz_full()
515 return sysfs_emit(buf, "Not affected\n"); in cpu_show_meltdown()
521 return sysfs_emit(buf, "Not affected\n"); in cpu_show_spectre_v1()
527 return sysfs_emit(buf, "Not affected\n"); in cpu_show_spectre_v2()
533 return sysfs_emit(buf, "Not affected\n"); in cpu_show_spec_store_bypass()
539 return sysfs_emit(buf, "Not affected\n"); in cpu_show_l1tf()
[all …]
/Linux-v5.15/drivers/acpi/
Dacpi_configfs.c106 return sysfs_emit(str, "%.*s\n", ACPI_NAMESEG_SIZE, h->signature); in acpi_table_signature_show()
116 return sysfs_emit(str, "%d\n", h->length); in acpi_table_length_show()
126 return sysfs_emit(str, "%d\n", h->revision); in acpi_table_revision_show()
136 return sysfs_emit(str, "%.*s\n", ACPI_OEM_ID_SIZE, h->oem_id); in acpi_table_oem_id_show()
146 return sysfs_emit(str, "%.*s\n", ACPI_OEM_TABLE_ID_SIZE, h->oem_table_id); in acpi_table_oem_table_id_show()
156 return sysfs_emit(str, "%d\n", h->oem_revision); in acpi_table_oem_revision_show()
167 return sysfs_emit(str, "%.*s\n", ACPI_NAMESEG_SIZE, h->asl_compiler_id); in acpi_table_asl_compiler_id_show()
178 return sysfs_emit(str, "%d\n", h->asl_compiler_revision); in acpi_table_asl_compiler_revision_show()
/Linux-v5.15/drivers/scsi/
Dlibiscsi.c3472 len = sysfs_emit(buf, "%d\n", session->fast_abort); in iscsi_session_get_param()
3475 len = sysfs_emit(buf, "%d\n", session->abort_timeout); in iscsi_session_get_param()
3478 len = sysfs_emit(buf, "%d\n", session->lu_reset_timeout); in iscsi_session_get_param()
3481 len = sysfs_emit(buf, "%d\n", session->tgt_reset_timeout); in iscsi_session_get_param()
3484 len = sysfs_emit(buf, "%d\n", session->initial_r2t_en); in iscsi_session_get_param()
3487 len = sysfs_emit(buf, "%hu\n", session->max_r2t); in iscsi_session_get_param()
3490 len = sysfs_emit(buf, "%d\n", session->imm_data_en); in iscsi_session_get_param()
3493 len = sysfs_emit(buf, "%u\n", session->first_burst); in iscsi_session_get_param()
3496 len = sysfs_emit(buf, "%u\n", session->max_burst); in iscsi_session_get_param()
3499 len = sysfs_emit(buf, "%d\n", session->pdu_inorder_en); in iscsi_session_get_param()
[all …]
/Linux-v5.15/drivers/scsi/ufs/
Dufs-sysfs.c70 return sysfs_emit(buf, "%d\n", hba->rpm_lvl); in rpm_lvl_show()
84 return sysfs_emit(buf, "%s\n", ufshcd_ufs_dev_pwr_mode_to_string( in rpm_target_dev_state_show()
93 return sysfs_emit(buf, "%s\n", ufshcd_uic_link_state_to_string( in rpm_target_link_state_show()
102 return sysfs_emit(buf, "%d\n", hba->spm_lvl); in spm_lvl_show()
116 return sysfs_emit(buf, "%s\n", ufshcd_ufs_dev_pwr_mode_to_string( in spm_target_dev_state_show()
125 return sysfs_emit(buf, "%s\n", ufshcd_uic_link_state_to_string( in spm_target_link_state_show()
175 ret = sysfs_emit(buf, "%d\n", ufshcd_ahit_to_us(ahit)); in auto_hibern8_show()
217 return sysfs_emit(buf, "%d\n", hba->dev_info.wb_enabled); in wb_on_show()
286 return sysfs_emit(buf, "%d\n", hba->monitor.enabled); in monitor_enable_show()
321 return sysfs_emit(buf, "%lu\n", hba->monitor.chunk_size); in monitor_chunk_size_show()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vram_mgr.c65 return sysfs_emit(buf, "%llu\n", adev->gmc.real_vram_size); in amdgpu_mem_info_vram_total_show()
82 return sysfs_emit(buf, "%llu\n", adev->gmc.visible_vram_size); in amdgpu_mem_info_vis_vram_total_show()
102 return sysfs_emit(buf, "%llu\n", amdgpu_vram_mgr_usage(man)); in amdgpu_mem_info_vram_used_show()
122 return sysfs_emit(buf, "%llu\n", amdgpu_vram_mgr_vis_usage(man)); in amdgpu_mem_info_vis_vram_used_show()
142 return sysfs_emit(buf, "samsung\n"); in amdgpu_mem_info_vram_vendor()
144 return sysfs_emit(buf, "infineon\n"); in amdgpu_mem_info_vram_vendor()
146 return sysfs_emit(buf, "elpida\n"); in amdgpu_mem_info_vram_vendor()
148 return sysfs_emit(buf, "etron\n"); in amdgpu_mem_info_vram_vendor()
150 return sysfs_emit(buf, "nanya\n"); in amdgpu_mem_info_vram_vendor()
152 return sysfs_emit(buf, "hynix\n"); in amdgpu_mem_info_vram_vendor()
[all …]
/Linux-v5.15/drivers/infiniband/hw/qib/
Dqib_sysfs.c58 return sysfs_emit(buf, "%d\n", dd->f_get_ib_cfg(ppd, QIB_IB_CFG_HRTBT)); in hrtbt_enable_show()
133 return sysfs_emit(buf, "0x%llx\n", (unsigned long long)*(ppd->statusp)); in status_show()
316 return sysfs_emit(buf, "%u\n", qibp->sl_to_vl[sattr->sl]); in sl2vl_attr_show()
384 return sysfs_emit(buf, "%llu\n", *((u64 *)qibp + dattr->counter)); in diagc_attr_show()
460 return sysfs_emit(buf, "%llu\n", in rc_acks_show()
483 return sysfs_emit(buf, "%llu\n", in rc_qacks_show()
506 return sysfs_emit(buf, "%llu\n", in rc_delayed_comp_show()
570 return sysfs_emit(buf, "%x\n", dd_from_dev(dev)->minrev); in hw_rev_show()
583 return sysfs_emit(buf, "%s\n", dd->boardname); in hca_type_show()
592 return sysfs_emit(buf, "%s", (char *)ib_qib_version); in version_show()
[all …]
/Linux-v5.15/drivers/block/rnbd/
Drnbd-clt-sysfs.c232 return sysfs_emit(page, "init\n"); in state_show()
235 return sysfs_emit(page, "open\n"); in state_show()
238 return sysfs_emit(page, "closed\n"); in state_show()
240 return sysfs_emit(page, "unmapped\n"); in state_show()
242 return sysfs_emit(page, "unknown\n"); in state_show()
255 return sysfs_emit(page, "%d\n", dev->nr_poll_queues); in nr_poll_queues_show()
268 return sysfs_emit(page, "%s\n", dev->pathname); in mapping_path_show()
281 return sysfs_emit(page, "%s\n", rnbd_access_mode_str(dev->access_mode)); in access_mode_show()
290 return sysfs_emit(page, "Usage: echo <normal|force> > %s\n", in rnbd_clt_unmap_dev_show()
361 return sysfs_emit(page, "Usage: echo <new size in sectors> > %s\n", in rnbd_clt_resize_dev_show()
[all …]
/Linux-v5.15/drivers/hwmon/pmbus/
Dinspur-ipsps.c73 return sysfs_emit(buf, "%s\n", data); in ipsps_string_show()
94 return sysfs_emit(buf, "%u.%02u%u-%u.%02u\n", in ipsps_fw_version_show()
114 return sysfs_emit(buf, "[%s] %s %s\n", in ipsps_mode_show()
118 return sysfs_emit(buf, "%s [%s] %s\n", in ipsps_mode_show()
122 return sysfs_emit(buf, "%s %s [%s]\n", in ipsps_mode_show()
126 return sysfs_emit(buf, "unspecified\n"); in ipsps_mode_show()
/Linux-v5.15/drivers/gpu/drm/i915/
Di915_sysfs.c75 return sysfs_emit(buf, "%x\n", mask); in rc6_enable_show()
83 return sysfs_emit(buf, "%u\n", rc6_residency); in rc6_residency_ms_show()
91 return sysfs_emit(buf, "%u\n", rc6p_residency); in rc6p_residency_ms_show()
99 return sysfs_emit(buf, "%u\n", rc6pp_residency); in rc6pp_residency_ms_show()
107 return sysfs_emit(buf, "%u\n", rc6_residency); in media_rc6_residency_ms_show()
266 return sysfs_emit(buf, "%d\n", intel_rps_read_actual_frequency(rps)); in gt_act_freq_mhz_show()
275 return sysfs_emit(buf, "%d\n", intel_rps_get_requested_frequency(rps)); in gt_cur_freq_mhz_show()
283 return sysfs_emit(buf, "%d\n", intel_gpu_freq(rps, rps->boost_freq)); in gt_boost_freq_mhz_show()
323 return sysfs_emit(buf, "%d\n", intel_gpu_freq(rps, rps->efficient_freq)); in vlv_rpe_freq_mhz_show()
332 return sysfs_emit(buf, "%d\n", intel_rps_get_max_frequency(rps)); in gt_max_freq_mhz_show()
[all …]
/Linux-v5.15/drivers/hwmon/occ/
Dcommon.c264 return sysfs_emit(buf, "%u\n", val); in occ_show_temp_1()
315 return sysfs_emit(buf, "%u\n", val); in occ_show_temp_2()
362 return sysfs_emit(buf, "%u\n", val); in occ_show_temp_10()
392 return sysfs_emit(buf, "%u\n", val); in occ_show_freq_1()
422 return sysfs_emit(buf, "%u\n", val); in occ_show_freq_2()
461 return sysfs_emit(buf, "%llu\n", val); in occ_show_power_1()
490 return sysfs_emit(buf, "%u_%u_%u\n", in occ_show_power_2()
508 return sysfs_emit(buf, "%llu\n", val); in occ_show_power_2()
529 return sysfs_emit(buf, "%u_system\n", in occ_show_power_a0()
543 return sysfs_emit(buf, "%u_proc\n", in occ_show_power_a0()
[all …]
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Dsysfs.c110 return sysfs_emit(buf, "%s\n", ppd->cc_prescan ? "on" : "off"); in cc_prescan_show()
153 return sysfs_emit(buf, "%u\n", *((u8 *)dd->sc2vl + sattr->sc)); in sc2vl_attr_show()
251 return sysfs_emit(buf, "%u\n", ibp->sl_to_sc[sattr->sl]); in sl2sc_attr_show()
349 return sysfs_emit(buf, "%u\n", dd->vld[vlattr->vl].mtu); in vl2mtu_attr_show()
412 return sysfs_emit(buf, "%x\n", dd_from_dev(dev)->minrev); in hw_rev_show()
426 return sysfs_emit(buf, "%s\n", dd->boardname); in board_id_show()
438 return sysfs_emit(buf, "%s", dd->boardversion); in boardversion_show()
455 return sysfs_emit(buf, "%u\n", in nctxts_show()
469 return sysfs_emit(buf, "%u\n", dd->freectxts); in nfreectxts_show()
481 return sysfs_emit(buf, "%s", dd->serial); in serial_show()
[all …]
/Linux-v5.15/drivers/infiniband/core/
Dsysfs.c232 return sysfs_emit(buf, "%d: %s\n", attr.state, in state_show()
249 return sysfs_emit(buf, "0x%x\n", attr.lid); in lid_show()
262 return sysfs_emit(buf, "%u\n", attr.lmc); in lid_mask_count_show()
275 return sysfs_emit(buf, "0x%x\n", attr.sm_lid); in sm_lid_show()
288 return sysfs_emit(buf, "%u\n", attr.sm_sl); in sm_sl_show()
301 return sysfs_emit(buf, "0x%08x\n", attr.port_cap_flags); in cap_mask_show()
356 return sysfs_emit(buf, "%d%s Gb/sec (%dX%s)\n", rate / 10, in rate_show()
390 return sysfs_emit(buf, "%u: %s\n", attr.phys_state, in phys_state_show()
411 return sysfs_emit(buf, "%s\n", output); in link_layer_show()
445 ret = sysfs_emit(buf, "%s\n", ndev->name); in print_ndev()
[all …]
/Linux-v5.15/drivers/input/tablet/
Daiptek.c1039 return sysfs_emit(buf, "%dx%d\n", in show_tabletSize()
1067 return sysfs_emit(buf, "%s\n", map_val_to_str(pointer_mode_map, in show_tabletPointerMode()
1103 return sysfs_emit(buf, "%s\n", map_val_to_str(coordinate_mode_map, in show_tabletCoordinateMode()
1144 return sysfs_emit(buf, "%s\n", map_val_to_str(tool_mode_map, in show_tabletToolMode()
1174 return sysfs_emit(buf, "disable\n"); in show_tabletXtilt()
1176 return sysfs_emit(buf, "%d\n", aiptek->curSetting.xTilt); in show_tabletXtilt()
1215 return sysfs_emit(buf, "disable\n"); in show_tabletYtilt()
1217 return sysfs_emit(buf, "%d\n", aiptek->curSetting.yTilt); in show_tabletYtilt()
1255 return sysfs_emit(buf, "%d\n", aiptek->curSetting.jitterDelay); in show_tabletJitterDelay()
1284 return sysfs_emit(buf, "%d\n", aiptek->curSetting.programmableDelay); in show_tabletProgrammableDelay()
[all …]
/Linux-v5.15/drivers/fpga/
Ddfl-n3000-nios.c175 return sysfs_emit(buf, "%x.%x.%x\n", in nios_fw_version_show()
219 return sysfs_emit(buf, "0x%x\n", mode); in retimer_A_mode_show()
234 return sysfs_emit(buf, "0x%x\n", mode); in retimer_B_mode_show()
251 return sysfs_emit(buf, "not supported\n"); in fec_mode_show()
264 return sysfs_emit(buf, "not supported\n"); in fec_mode_show()
277 return sysfs_emit(buf, "no\n"); in fec_mode_show()
279 return sysfs_emit(buf, "kr\n"); in fec_mode_show()
281 return sysfs_emit(buf, "rs\n"); in fec_mode_show()
/Linux-v5.15/drivers/cxl/core/
Dmemdev.c40 return sysfs_emit(buf, "%.16s\n", cxlm->firmware_version); in firmware_version_show()
50 return sysfs_emit(buf, "%zu\n", cxlm->payload_size); in payload_max_show()
60 return sysfs_emit(buf, "%zu\n", cxlm->lsa_size); in label_storage_size_show()
71 return sysfs_emit(buf, "%#llx\n", len); in ram_size_show()
84 return sysfs_emit(buf, "%#llx\n", len); in pmem_size_show()
/Linux-v5.15/drivers/pci/
Dpci-sysfs.c42 return sysfs_emit(buf, format_string, pdev->field); \
59 return sysfs_emit(buf, "%u\n", pdev->broken_parity_status); in broken_parity_status_show()
132 return sysfs_emit(buf, "%s\n", pci_power_name(pdev->current_state)); in power_state_show()
168 return sysfs_emit(buf, "%s\n", in max_link_speed_show()
178 return sysfs_emit(buf, "%u\n", pcie_get_width_cap(pdev)); in max_link_width_show()
196 return sysfs_emit(buf, "%s\n", pci_speed_string(speed)); in current_link_speed_show()
211 return sysfs_emit(buf, "%u\n", in current_link_width_show()
228 return sysfs_emit(buf, "%u\n", sec_bus); in secondary_bus_number_show()
244 return sysfs_emit(buf, "%u\n", sub_bus); in subordinate_bus_number_show()
254 return sysfs_emit(buf, "%u\n", pci_ari_enabled(pci_dev->bus)); in ari_enabled_show()
[all …]
Dpci-label.c76 return sysfs_emit(buf, "%d\n", in find_smbios_instance_string()
79 return sysfs_emit(buf, "%s\n", in find_smbios_instance_string()
181 len = sysfs_emit(buf, "%llu\n", tmp->integer.value); in dsm_get_label()
184 len = sysfs_emit(buf, "%s\n", in dsm_get_label()
/Linux-v5.15/drivers/gpu/drm/amd/pm/
Damdgpu_pm.c149 return sysfs_emit(buf, "%s\n", in amdgpu_get_power_dpm_state()
291 return sysfs_emit(buf, "%s\n", in amdgpu_get_power_dpm_force_performance_level()
437 buf_len = sysfs_emit(buf, "states: %d\n", data.nums); in amdgpu_get_pp_num_states()
487 return sysfs_emit(buf, "%d\n", i); in amdgpu_get_pp_cur_state()
505 return sysfs_emit(buf, "\n"); in amdgpu_get_pp_force_state()
927 size = sysfs_emit(buf, "\n"); in amdgpu_get_pp_od_clk_voltage()
1013 size = sysfs_emit(buf, "\n"); in amdgpu_get_pp_features()
1074 size = sysfs_emit(buf, "\n"); in amdgpu_get_pp_dpm_clock()
1304 return sysfs_emit(buf, "%d\n", value); in amdgpu_get_pp_sclk_od()
1381 return sysfs_emit(buf, "%d\n", value); in amdgpu_get_pp_mclk_od()
[all …]
/Linux-v5.15/drivers/hwmon/
Dsch5636.c162 return sysfs_emit(buf, "%s\n", DEVNAME); in name_show()
178 return sysfs_emit(buf, "%d\n", val); in in_value_show()
186 return sysfs_emit(buf, "%s\n", in in_label_show()
201 return sysfs_emit(buf, "%d\n", val); in temp_value_show()
215 return sysfs_emit(buf, "%d\n", val); in temp_fault_show()
229 return sysfs_emit(buf, "%d\n", val); in temp_alarm_show()
246 return sysfs_emit(buf, "%d\n", val); in fan_value_show()
260 return sysfs_emit(buf, "%d\n", val); in fan_fault_show()
274 return sysfs_emit(buf, "%d\n", val); in fan_alarm_show()
/Linux-v5.15/drivers/mtd/spi-nor/
Dsysfs.c17 return sysfs_emit(buf, "%s\n", nor->manufacturer->name); in manufacturer_show()
28 return sysfs_emit(buf, "%s\n", nor->info->name); in partname_show()
39 return sysfs_emit(buf, "%*phN\n", nor->info->id_len, nor->info->id); in jedec_id_show()

12345678910