Home
last modified time | relevance | path

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

12345678910>>...74

/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/net/ethernet/hisilicon/hns3/ !
Dhns3_debugfs.c502 sprintf(result[j++], "%d", i); in hns3_get_coal_info()
503 sprintf(result[j++], "%s", dim->state < ARRAY_SIZE(dim_state_str) ? in hns3_get_coal_info()
505 sprintf(result[j++], "%u", dim->profile_ix); in hns3_get_coal_info()
506 sprintf(result[j++], "%s", dim->mode < ARRAY_SIZE(dim_cqe_mode_str) ? in hns3_get_coal_info()
508 sprintf(result[j++], "%s", in hns3_get_coal_info()
511 sprintf(result[j++], "%u", dim->steps_left); in hns3_get_coal_info()
512 sprintf(result[j++], "%u", dim->steps_right); in hns3_get_coal_info()
513 sprintf(result[j++], "%u", dim->tired); in hns3_get_coal_info()
514 sprintf(result[j++], "%u", coal->int_gl); in hns3_get_coal_info()
515 sprintf(result[j++], "%u", coal->int_ql); in hns3_get_coal_info()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/acpi/ !
Dsysfs.c97 result = sprintf(buffer, "%-25s\tHex SET\n", "Description"); in param_get_debug_layer()
100 result += sprintf(buffer + result, "%-25s\t0x%08lX [%c]\n", in param_get_debug_layer()
107 sprintf(buffer + result, "%-25s\t0x%08X [%c]\n", "ACPI_ALL_DRIVERS", in param_get_debug_layer()
113 sprintf(buffer + result, in param_get_debug_layer()
125 result = sprintf(buffer, "%-25s\tHex SET\n", "Description"); in param_get_debug_level()
128 result += sprintf(buffer + result, "%-25s\t0x%08lX [%c]\n", in param_get_debug_level()
135 sprintf(buffer + result, "--\ndebug_level = 0x%08X (* = enabled)\n", in param_get_debug_level()
258 return sprintf(buffer, "disable\n"); in param_get_trace_state()
260 return sprintf(buffer, "enable\n"); in param_get_trace_state()
262 return sprintf(buffer, "method-once\n"); in param_get_trace_state()
[all …]
/linux-6.6.21/drivers/accel/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-6.6.21/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-6.6.21/tools/testing/selftests/resctrl/ !
Dresctrlfs.c109 sprintf(phys_pkg_path, "%s%d/cache/index3/id", in get_resource_id()
112 sprintf(phys_pkg_path, "%s%d/topology/physical_package_id", in get_resource_id()
155 sprintf(cache_path, "/sys/bus/cpu/devices/cpu%d/cache/index%d/size", in get_cache_size()
212 sprintf(cbm_mask_path, "%s/%s/cbm_mask", INFO_PATH, cache_type); in get_cbm_mask()
243 sprintf(core_siblings_path, "%s%d/topology/core_siblings_list", in get_core_sibling()
440 sprintf(controlgroup, "%s/%s", RESCTRL_PATH, ctrlgrp); in write_bm_pid_to_resctrl()
442 sprintf(controlgroup, "%s", RESCTRL_PATH); in write_bm_pid_to_resctrl()
448 sprintf(tasks, "%s/tasks", controlgroup); in write_bm_pid_to_resctrl()
457 sprintf(monitorgroup_p, "%s/mon_groups", controlgroup); in write_bm_pid_to_resctrl()
458 sprintf(monitorgroup, "%s/%s", monitorgroup_p, mongrp); in write_bm_pid_to_resctrl()
[all …]
/linux-6.6.21/fs/smb/client/ !
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-6.6.21/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-6.6.21/drivers/net/ethernet/microsoft/mana/ !
Dmana_ethtool.c66 sprintf(p, "rx_%d_packets", i); in mana_get_strings()
68 sprintf(p, "rx_%d_bytes", i); in mana_get_strings()
70 sprintf(p, "rx_%d_xdp_drop", i); in mana_get_strings()
72 sprintf(p, "rx_%d_xdp_tx", i); in mana_get_strings()
74 sprintf(p, "rx_%d_xdp_redirect", i); in mana_get_strings()
79 sprintf(p, "tx_%d_packets", i); in mana_get_strings()
81 sprintf(p, "tx_%d_bytes", i); in mana_get_strings()
83 sprintf(p, "tx_%d_xdp_xmit", i); in mana_get_strings()
85 sprintf(p, "tx_%d_tso_packets", i); in mana_get_strings()
87 sprintf(p, "tx_%d_tso_bytes", i); in mana_get_strings()
[all …]
/linux-6.6.21/scripts/mod/ !
Dfile2alias.c93 sprintf(str + strlen(str), \
99 sprintf(str + strlen(str), "*"); \
115 sprintf(str + len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", in add_uuid()
126 sprintf(str + len, "%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X", in add_guid()
195 sprintf(alias + strlen(alias), "%0*X", in do_usb_entry()
198 sprintf(alias + strlen(alias), "%X", range_lo); in do_usb_entry()
201 sprintf(alias + strlen(alias), in do_usb_entry()
206 sprintf(alias + strlen(alias), in do_usb_entry()
209 sprintf(alias + strlen(alias), in do_usb_entry()
366 len = sprintf(alias, "of:N%sT%s", (*name)[0] ? *name : "*", in do_of_entry_multi()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/misc/genwqe/ !
Dcard_sysfs.c45 return sprintf(buf, "%s\n", cs[cd->card_state]); in status_show()
56 return sprintf(buf, "%s\n", app_name); in appid_show()
69 return sprintf(buf, "%016llx.%016llx\n", slu_id, app_id); in version_show()
80 return sprintf(buf, "%s\n", (card_type >= ARRAY_SIZE(genwqe_types)) ? in type_show()
92 return sprintf(buf, "%016llx\n", tempsens); in tempsens_show()
104 return sprintf(buf, "%016llx\n", t); in freerunning_timer_show()
116 return sprintf(buf, "%016llx\n", t); in queue_working_time_show()
128 return sprintf(buf, "%lld\n", base_clock); in base_clock_show()
155 return sprintf(buf, "%d\n", curr_bitstream); in curr_bitstream_show()
181 return sprintf(buf, "%d\n", next_bitstream); in next_bitstream_show()
/linux-6.6.21/drivers/xen/ !
Dsys-hypervisor.c42 return sprintf(buffer, "xen\n"); in type_show()
71 return sprintf(buffer, "%s\n", type); in guest_type_show()
86 return sprintf(buffer, "%d\n", version >> 16); in major_show()
96 return sprintf(buffer, "%d\n", version & 0xff); in minor_show()
111 ret = sprintf(buffer, "%s\n", extra); in extra_show()
155 ret = sprintf(buffer, "%s\n", val); in uuid_show_fallback()
167 ret = sprintf(buffer, "%pU\n", uuid); in uuid_show()
189 ret = sprintf(buffer, "%s\n", info->compiler); in compiler_show()
207 ret = sprintf(buffer, "%s\n", info->compile_by); in compiled_by_show()
225 ret = sprintf(buffer, "%s\n", info->compile_date); in compile_date_show()
[all …]
/linux-6.6.21/sound/ppc/ !
Dpowermac.c60 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
69 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
78 sprintf(card->driver, "PMac %s", name_ext); in snd_pmac_probe()
79 sprintf(card->shortname, "PowerMac %s", name_ext); in snd_pmac_probe()
80 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
92 sprintf(card->driver, "PMac %s", name_ext); in snd_pmac_probe()
93 sprintf(card->shortname, "PowerMac %s", name_ext); in snd_pmac_probe()
100 sprintf(card->longname, "%s%s Rev %d", in snd_pmac_probe()

12345678910>>...74