Home
last modified time | relevance | path

Searched refs:sprintf (Results 1 – 25 of 1881) sorted by relevance

12345678910>>...76

/Linux-v6.1/drivers/usb/cdns3/
Dcdns3-debug.h21 ret = sprintf(str, "IRQ %08x = ", usb_ists); in cdns3_decode_usb_irq()
24 ret += sprintf(str + ret, "Connection %s\n", in cdns3_decode_usb_irq()
28 ret += sprintf(str + ret, "Disconnection "); in cdns3_decode_usb_irq()
30 ret += sprintf(str + ret, "suspended "); in cdns3_decode_usb_irq()
32 ret += sprintf(str + ret, "L1 enter "); in cdns3_decode_usb_irq()
34 ret += sprintf(str + ret, "L1 exit "); in cdns3_decode_usb_irq()
36 ret += sprintf(str + ret, "L2 enter "); in cdns3_decode_usb_irq()
38 ret += sprintf(str + ret, "L2 exit "); in cdns3_decode_usb_irq()
40 ret += sprintf(str + ret, "U3 exit "); in cdns3_decode_usb_irq()
42 ret += sprintf(str + ret, "Warm Reset "); in cdns3_decode_usb_irq()
[all …]
/Linux-v6.1/net/mac80211/
Drc80211_minstrel_ht_debugfs.c78 p += sprintf(p, "HT%c0 ", htmode); in minstrel_ht_stats_dump()
79 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump()
80 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
82 p += sprintf(p, "VHT%c0 ", htmode); in minstrel_ht_stats_dump()
83 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump()
84 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
86 p += sprintf(p, "OFDM "); in minstrel_ht_stats_dump()
87 p += sprintf(p, "1 "); in minstrel_ht_stats_dump()
89 p += sprintf(p, "CCK "); in minstrel_ht_stats_dump()
90 p += sprintf(p, "%cP ", j < 4 ? 'L' : 'S'); in minstrel_ht_stats_dump()
[all …]
/Linux-v6.1/drivers/usb/host/
Duhci-debug.c51 out += sprintf(out, "%*s[%p] link (%08x) ", space, "", td, in uhci_show_td()
53 out += sprintf(out, "e%d %s%s%s%s%s%s%s%s%s%sLength=%x ", in uhci_show_td()
85 out += sprintf(out, "MaxLen=%x DT%d EndPt=%x Dev=%x, PID=%x(%s) ", in uhci_show_td()
92 out += sprintf(out, "(buf=%08x)\n", hc32_to_cpu(uhci, td->buffer)); in uhci_show_td()
96 out += sprintf(out, " ...\n"); in uhci_show_td()
109 out += sprintf(out, "urb_priv [%p] ", urbp); in uhci_show_urbp()
110 out += sprintf(out, "urb [%p] ", urbp->urb); in uhci_show_urbp()
111 out += sprintf(out, "qh [%p] ", urbp->qh); in uhci_show_urbp()
112 out += sprintf(out, "Dev=%d ", usb_pipedevice(urbp->urb->pipe)); in uhci_show_urbp()
113 out += sprintf(out, "EP=%x(%s) ", usb_pipeendpoint(urbp->urb->pipe), in uhci_show_urbp()
[all …]
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/
Dhns3_debugfs.c479 sprintf(result[j++], "%d", i); in hns3_get_coal_info()
480 sprintf(result[j++], "%s", dim_state_str[dim->state]); in hns3_get_coal_info()
481 sprintf(result[j++], "%u", dim->profile_ix); in hns3_get_coal_info()
482 sprintf(result[j++], "%s", dim_cqe_mode_str[dim->mode]); in hns3_get_coal_info()
483 sprintf(result[j++], "%s", in hns3_get_coal_info()
485 sprintf(result[j++], "%u", dim->steps_left); in hns3_get_coal_info()
486 sprintf(result[j++], "%u", dim->steps_right); in hns3_get_coal_info()
487 sprintf(result[j++], "%u", dim->tired); in hns3_get_coal_info()
488 sprintf(result[j++], "%u", coal->int_gl); in hns3_get_coal_info()
489 sprintf(result[j++], "%u", coal->int_ql); in hns3_get_coal_info()
[all …]
/Linux-v6.1/drivers/pci/hotplug/
Dcpqphp_sysfs.c34 out += sprintf(buf, "Free resources: memory\n"); in show_ctrl()
38 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl()
41 out += sprintf(out, "Free resources: prefetchable memory\n"); in show_ctrl()
45 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl()
48 out += sprintf(out, "Free resources: IO\n"); in show_ctrl()
52 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl()
55 out += sprintf(out, "Free resources: bus numbers\n"); in show_ctrl()
59 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl()
80 out += sprintf(out, "assigned resources: memory\n"); in show_dev()
84 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_dev()
[all …]
/Linux-v6.1/drivers/media/pci/solo6x10/
Dsolo6x10-core.c211 return sprintf(buf, "%d\n", solo_dev->p2m_timeouts); in p2m_timeouts_show()
221 return sprintf(buf, "%dMegs\n", solo_dev->sdram_size >> 20); in sdram_size_show()
231 return sprintf(buf, "tw2815[%d] tw2864[%d] tw2865[%d]\n", in tw28xx_show()
247 out += sprintf(out, "Channel 0 => Input %d\n", val & 0x1f); in input_map_show()
248 out += sprintf(out, "Channel 1 => Input %d\n", (val >> 5) & 0x1f); in input_map_show()
249 out += sprintf(out, "Channel 2 => Input %d\n", (val >> 10) & 0x1f); in input_map_show()
250 out += sprintf(out, "Channel 3 => Input %d\n", (val >> 15) & 0x1f); in input_map_show()
251 out += sprintf(out, "Channel 4 => Input %d\n", (val >> 20) & 0x1f); in input_map_show()
252 out += sprintf(out, "Channel 5 => Input %d\n", (val >> 25) & 0x1f); in input_map_show()
255 out += sprintf(out, "Channel 6 => Input %d\n", val & 0x1f); in input_map_show()
[all …]
/Linux-v6.1/tools/power/x86/turbostat/
Dturbostat.c645 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in get_msr_fd()
835 outp += sprintf(outp, "%susec", (printed++ ? delim : "")); in print_header()
837 outp += sprintf(outp, "%sTime_Of_Day_Seconds", (printed++ ? delim : "")); in print_header()
839 outp += sprintf(outp, "%sPackage", (printed++ ? delim : "")); in print_header()
841 outp += sprintf(outp, "%sDie", (printed++ ? delim : "")); in print_header()
843 outp += sprintf(outp, "%sNode", (printed++ ? delim : "")); in print_header()
845 outp += sprintf(outp, "%sCore", (printed++ ? delim : "")); in print_header()
847 outp += sprintf(outp, "%sCPU", (printed++ ? delim : "")); in print_header()
849 outp += sprintf(outp, "%sAPIC", (printed++ ? delim : "")); in print_header()
851 outp += sprintf(outp, "%sX2APIC", (printed++ ? delim : "")); in print_header()
[all …]
/Linux-v6.1/drivers/acpi/
Dsysfs.c96 result = sprintf(buffer, "%-25s\tHex SET\n", "Description"); in param_get_debug_layer()
99 result += sprintf(buffer + result, "%-25s\t0x%08lX [%c]\n", in param_get_debug_layer()
106 sprintf(buffer + result, "%-25s\t0x%08X [%c]\n", "ACPI_ALL_DRIVERS", in param_get_debug_layer()
112 sprintf(buffer + result, in param_get_debug_layer()
124 result = sprintf(buffer, "%-25s\tHex SET\n", "Description"); in param_get_debug_level()
127 result += sprintf(buffer + result, "%-25s\t0x%08lX [%c]\n", in param_get_debug_level()
134 sprintf(buffer + result, "--\ndebug_level = 0x%08X (* = enabled)\n", in param_get_debug_level()
257 return sprintf(buffer, "disable\n"); in param_get_trace_state()
259 return sprintf(buffer, "enable\n"); in param_get_trace_state()
261 return sprintf(buffer, "method-once\n"); in param_get_trace_state()
[all …]
/Linux-v6.1/drivers/net/wireless/marvell/mwifiex/
Ddebugfs.c88 p += sprintf(p, "driver_name = " "\"mwifiex\"\n"); in mwifiex_info_read()
89 p += sprintf(p, "driver_version = %s", fmt); in mwifiex_info_read()
90 p += sprintf(p, "\nverext = %s", priv->version_str); in mwifiex_info_read()
91 p += sprintf(p, "\ninterface_name=\"%s\"\n", netdev->name); in mwifiex_info_read()
94 p += sprintf(p, "bss_mode=\"%d\"\n", info.bss_mode); in mwifiex_info_read()
96 p += sprintf(p, "bss_mode=\"%s\"\n", bss_modes[info.bss_mode]); in mwifiex_info_read()
98 p += sprintf(p, "media_state=\"%s\"\n", in mwifiex_info_read()
100 p += sprintf(p, "mac_address=\"%pM\"\n", netdev->dev_addr); in mwifiex_info_read()
103 p += sprintf(p, "multicast_count=\"%d\"\n", in mwifiex_info_read()
105 p += sprintf(p, "essid=\"%.*s\"\n", info.ssid.ssid_len, in mwifiex_info_read()
[all …]
/Linux-v6.1/drivers/s390/net/
Dctcm_sysfs.c31 return sprintf(buf, "%d\n", priv->buffer_size); in ctcm_buffer_show()
89 p += sprintf(p, " Device FSM state: %s\n", in ctcm_print_statistics()
91 p += sprintf(p, " RX channel FSM state: %s\n", in ctcm_print_statistics()
93 p += sprintf(p, " TX channel FSM state: %s\n", in ctcm_print_statistics()
95 p += sprintf(p, " Max. TX buffer used: %ld\n", in ctcm_print_statistics()
97 p += sprintf(p, " Max. chained SKBs: %ld\n", in ctcm_print_statistics()
99 p += sprintf(p, " TX single write ops: %ld\n", in ctcm_print_statistics()
101 p += sprintf(p, " TX multi write ops: %ld\n", in ctcm_print_statistics()
103 p += sprintf(p, " Netto bytes written: %ld\n", in ctcm_print_statistics()
105 p += sprintf(p, " Max. TX IO-time: %u\n", in ctcm_print_statistics()
[all …]
Dqeth_core_sys.c26 return sprintf(buf, "DOWN\n"); in qeth_dev_state_show()
29 return sprintf(buf, "UP (LAN %s)\n", in qeth_dev_state_show()
32 return sprintf(buf, "SOFTSETUP\n"); in qeth_dev_state_show()
34 return sprintf(buf, "UNKNOWN\n"); in qeth_dev_state_show()
45 return sprintf(buf, "%02X\n", card->info.chpid); in qeth_dev_chpid_show()
55 return sprintf(buf, "%s\n", netdev_name(card->dev)); in qeth_dev_if_name_show()
65 return sprintf(buf, "%s\n", qeth_get_cardname_short(card)); in qeth_dev_card_type_show()
89 return sprintf(buf, "%s\n", qeth_get_bufsize_str(card)); in qeth_dev_inbuf_size_show()
99 return sprintf(buf, "%i\n", card->dev->dev_port); in qeth_dev_portno_show()
137 return sprintf(buf, "no portname required\n"); in qeth_dev_portname_show()
[all …]
/Linux-v6.1/arch/alpha/kernel/
Dbugs.c23 return sprintf(buf, "Vulnerable\n"); in cpu_show_meltdown()
25 return sprintf(buf, "Not affected\n"); in cpu_show_meltdown()
32 return sprintf(buf, "Vulnerable\n"); in cpu_show_spectre_v1()
34 return sprintf(buf, "Not affected\n"); in cpu_show_spectre_v1()
41 return sprintf(buf, "Vulnerable\n"); in cpu_show_spectre_v2()
43 return sprintf(buf, "Not affected\n"); in cpu_show_spectre_v2()
/Linux-v6.1/drivers/misc/habanalabs/common/
Dsysfs.c26 return sprintf(buf, "%lu\n", (value / 1000 / 1000)); in clk_max_freq_mhz_show()
67 return sprintf(buf, "%lu\n", (value / 1000 / 1000)); in clk_cur_freq_mhz_show()
87 return sprintf(buf, "%#04x %#04x\n", le32_to_cpu(cpucp_info->infineon_version), in vrm_ver_show()
90 return sprintf(buf, "%#04x\n", le32_to_cpu(cpucp_info->infineon_version)); in vrm_ver_show()
105 return sprintf(buf, "%s\n", hdev->asic_prop.uboot_ver); in uboot_ver_show()
113 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version); in armcp_kernel_ver_show()
121 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.cpucp_version); in armcp_ver_show()
129 return sprintf(buf, "0x%08x\n", in cpld_ver_show()
138 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version); in cpucp_kernel_ver_show()
146 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.cpucp_version); in cpucp_ver_show()
[all …]
/Linux-v6.1/net/bridge/
Dbr_sysfs_br.c70 return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->forward_delay)); in forward_delay_show()
90 return sprintf(buf, "%lu\n", in hello_time_show()
111 return sprintf(buf, "%lu\n", in max_age_show()
132 return sprintf(buf, "%lu\n", jiffies_to_clock_t(br->ageing_time)); in ageing_time_show()
153 return sprintf(buf, "%d\n", br->stp_enabled); in stp_state_show()
176 return sprintf(buf, "%#x\n", br->group_fwd_mask); in group_fwd_mask_show()
203 return sprintf(buf, "%d\n", in priority_show()
238 return sprintf(buf, "%d\n", to_bridge(d)->root_port); in root_port_show()
245 return sprintf(buf, "%d\n", to_bridge(d)->root_path_cost); in root_path_cost_show()
252 return sprintf(buf, "%d\n", to_bridge(d)->topology_change); in topology_change_show()
[all …]
Dbr_sysfs_if.c50 return sprintf(buf, "%d\n", !!(p->flags & _mask)); \
86 return sprintf(buf, "%d\n", p->path_cost); in show_path_cost()
94 return sprintf(buf, "%d\n", p->priority); in show_priority()
114 return sprintf(buf, "%d\n", p->designated_port); in show_designated_port()
120 return sprintf(buf, "%d\n", p->designated_cost); in show_designated_cost()
126 return sprintf(buf, "0x%x\n", p->port_id); in show_port_id()
132 return sprintf(buf, "0x%x\n", p->port_no); in show_port_no()
139 return sprintf(buf, "%d\n", p->topology_change_ack); in show_change_ack()
145 return sprintf(buf, "%d\n", p->config_pending); in show_config_pending()
151 return sprintf(buf, "%d\n", p->state); in show_port_state()
[all …]
/Linux-v6.1/tools/testing/selftests/resctrl/
Dresctrlfs.c110 sprintf(phys_pkg_path, "%s%d/cache/index3/id", in get_resource_id()
113 sprintf(phys_pkg_path, "%s%d/topology/physical_package_id", in get_resource_id()
156 sprintf(cache_path, "/sys/bus/cpu/devices/cpu%d/cache/index%d/size", in get_cache_size()
213 sprintf(cbm_mask_path, "%s/%s/cbm_mask", CBM_MASK_PATH, cache_type); in get_cbm_mask()
244 sprintf(core_siblings_path, "%s%d/topology/core_siblings_list", in get_core_sibling()
330 sprintf(resctrl_val, "%s", benchmark_cmd[5]); in run_benchmark()
443 sprintf(controlgroup, "%s/%s", RESCTRL_PATH, ctrlgrp); in write_bm_pid_to_resctrl()
445 sprintf(controlgroup, "%s", RESCTRL_PATH); in write_bm_pid_to_resctrl()
451 sprintf(tasks, "%s/tasks", controlgroup); in write_bm_pid_to_resctrl()
460 sprintf(monitorgroup_p, "%s/mon_groups", controlgroup); in write_bm_pid_to_resctrl()
[all …]
/Linux-v6.1/fs/cifs/
Dcifs_spnego.c119 sprintf(dp, "ver=0x%x;host=%s;", CIFS_SPNEGO_UPCALL_VERSION, in cifs_get_spnego_key()
125 sprintf(dp, "ip4=%pI4", &sa->sin_addr); in cifs_get_spnego_key()
127 sprintf(dp, "ip6=%pI6", &sa6->sin6_addr); in cifs_get_spnego_key()
135 sprintf(dp, ";sec=krb5"); in cifs_get_spnego_key()
137 sprintf(dp, ";sec=mskrb5"); in cifs_get_spnego_key()
140 sprintf(dp, ";sec=krb5"); in cifs_get_spnego_key()
144 sprintf(dp, ";uid=0x%x", in cifs_get_spnego_key()
148 sprintf(dp, ";creduid=0x%x", in cifs_get_spnego_key()
153 sprintf(dp, ";user=%s", sesInfo->user_name); in cifs_get_spnego_key()
157 sprintf(dp, ";pid=0x%x", current->pid); in cifs_get_spnego_key()
/Linux-v6.1/arch/s390/kernel/
Dnospec-sysfs.c10 return sprintf(buf, "Mitigation: __user pointer sanitization\n"); in cpu_show_spectre_v1()
17 return sprintf(buf, "Mitigation: etokens\n"); in cpu_show_spectre_v2()
19 return sprintf(buf, "Mitigation: execute trampolines\n"); in cpu_show_spectre_v2()
21 return sprintf(buf, "Mitigation: limited branch prediction\n"); in cpu_show_spectre_v2()
22 return sprintf(buf, "Vulnerable\n"); in cpu_show_spectre_v2()
/Linux-v6.1/scripts/mod/
Dfile2alias.c89 sprintf(str + strlen(str), \
95 sprintf(str + strlen(str), "*"); \
111 sprintf(str + len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", in add_uuid()
122 sprintf(str + len, "%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X", in add_guid()
194 sprintf(alias + strlen(alias), "%0*X", in do_usb_entry()
197 sprintf(alias + strlen(alias), "%X", range_lo); in do_usb_entry()
200 sprintf(alias + strlen(alias), in do_usb_entry()
205 sprintf(alias + strlen(alias), in do_usb_entry()
208 sprintf(alias + strlen(alias), in do_usb_entry()
365 len = sprintf(alias, "of:N%sT%s", (*name)[0] ? *name : "*", in do_of_entry_multi()
[all …]
/Linux-v6.1/drivers/xen/
Dsys-hypervisor.c39 return sprintf(buffer, "xen\n"); in type_show()
68 return sprintf(buffer, "%s\n", type); in guest_type_show()
83 return sprintf(buffer, "%d\n", version >> 16); in major_show()
93 return sprintf(buffer, "%d\n", version & 0xff); in minor_show()
108 ret = sprintf(buffer, "%s\n", extra); in extra_show()
152 ret = sprintf(buffer, "%s\n", val); in uuid_show_fallback()
164 ret = sprintf(buffer, "%pU\n", uuid); in uuid_show()
186 ret = sprintf(buffer, "%s\n", info->compiler); in compiler_show()
204 ret = sprintf(buffer, "%s\n", info->compile_by); in compiled_by_show()
222 ret = sprintf(buffer, "%s\n", info->compile_date); in compile_date_show()
[all …]
/Linux-v6.1/drivers/net/fjes/
Dfjes_ethtool.c103 sprintf(p, "ep%u_com_regist_buf_exec", i); in fjes_get_strings()
105 sprintf(p, "ep%u_com_unregist_buf_exec", i); in fjes_get_strings()
107 sprintf(p, "ep%u_send_intr_rx", i); in fjes_get_strings()
109 sprintf(p, "ep%u_send_intr_unshare", i); in fjes_get_strings()
111 sprintf(p, "ep%u_send_intr_zoneupdate", i); in fjes_get_strings()
113 sprintf(p, "ep%u_recv_intr_rx", i); in fjes_get_strings()
115 sprintf(p, "ep%u_recv_intr_unshare", i); in fjes_get_strings()
117 sprintf(p, "ep%u_recv_intr_stop", i); in fjes_get_strings()
119 sprintf(p, "ep%u_recv_intr_zoneupdate", i); in fjes_get_strings()
121 sprintf(p, "ep%u_tx_buffer_full", i); in fjes_get_strings()
[all …]
/Linux-v6.1/arch/mips/kernel/
Dsegment.c25 str += sprintf(str, "%-5s", am_str[am]); in build_segment_config()
33 str += sprintf(str, " %03lx", in build_segment_config()
36 str += sprintf(str, " UND"); in build_segment_config()
39 str += sprintf(str, " %01ld", in build_segment_config()
42 str += sprintf(str, " U"); in build_segment_config()
45 str += sprintf(str, " %01ld\n", in build_segment_config()
/Linux-v6.1/arch/sparc/kernel/
Dprom_64.c79 sprintf(tmp_buf, "%s@%x,%x", in sun4v_path_component()
94 sprintf(tmp_buf, "%s@%s%x,%x", in sun4v_path_component()
98 sprintf(tmp_buf, "%s@%s%x", in sun4v_path_component()
103 sprintf(tmp_buf, "%s@%x", in sun4v_path_component()
120 sprintf(tmp_buf, "%s@%x,%x", in sun4u_path_component()
136 sprintf(tmp_buf, "%s@%x,%x", in sun4u_path_component()
155 sprintf(tmp_buf, "%s@%x,%x", in sbus_path_component()
176 sprintf(tmp_buf, "%s@%x,%x", in pci_path_component()
181 sprintf(tmp_buf, "%s@%x", in pci_path_component()
204 sprintf(tmp_buf, "%s@%x,%x", in upa_path_component()
[all …]
/Linux-v6.1/arch/arm/kernel/
Dspectre.c20 return sprintf(buf, "Mitigation: __user pointer sanitization\n"); in cpu_show_spectre_v1()
39 return sprintf(buf, "%s\n", "Not affected"); in cpu_show_spectre_v2()
42 return sprintf(buf, "%s\n", "Vulnerable"); in cpu_show_spectre_v2()
45 return sprintf(buf, "Vulnerable: Unprivileged eBPF enabled\n"); in cpu_show_spectre_v2()
70 return sprintf(buf, "Mitigation: %s\n", method); in cpu_show_spectre_v2()
/Linux-v6.1/kernel/
Dksysfs.c33 return sprintf(buf, "%llu\n", (unsigned long long)uevent_seqnum); in uevent_seqnum_show()
42 return sprintf(buf, "%s\n", uevent_helper); in uevent_helper_show()
63 return sprintf(buf, "%d\n", prof_on); in profiling_show()
94 return sprintf(buf, "%d\n", !!kexec_image); in kexec_loaded_show()
101 return sprintf(buf, "%d\n", kexec_crash_loaded()); in kexec_crash_loaded_show()
113 return sprintf(buf, "%zd\n", size); in kexec_crash_size_show()
138 return sprintf(buf, "%pa %x\n", &vmcore_base, in vmcoreinfo_show()
149 return sprintf(buf, "%d\n", file_caps_enabled); in fscaps_show()
158 return sprintf(buf, "%d\n", READ_ONCE(rcu_expedited)); in rcu_expedited_show()
175 return sprintf(buf, "%d\n", READ_ONCE(rcu_normal)); in rcu_normal_show()

12345678910>>...76