Home
last modified time | relevance | path

Searched refs:scnprintf (Results 1 – 200 of 287) sorted by relevance

12

/linux-4.1.27/drivers/net/wireless/iwlegacy/
D4965-debug.c44 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag); in il4965_stats_flag()
46 p += scnprintf(buf + p, bufsz - p, in il4965_stats_flag()
48 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in il4965_stats_flag()
51 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in il4965_stats_flag()
109 scnprintf(buf + pos, bufsz - pos, fmt_header, in il4965_ucode_rx_stats_read()
112 scnprintf(buf + pos, bufsz - pos, fmt_table, "ina_cnt:", in il4965_ucode_rx_stats_read()
116 scnprintf(buf + pos, bufsz - pos, fmt_table, "fina_cnt:", in il4965_ucode_rx_stats_read()
120 scnprintf(buf + pos, bufsz - pos, fmt_table, "plcp_err:", in il4965_ucode_rx_stats_read()
124 scnprintf(buf + pos, bufsz - pos, fmt_table, "crc32_err:", in il4965_ucode_rx_stats_read()
128 scnprintf(buf + pos, bufsz - pos, fmt_table, "overrun_err:", in il4965_ucode_rx_stats_read()
[all …]
D3945-debug.c37 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", in il3945_stats_flag()
40 p += scnprintf(buf + p, bufsz - p, in il3945_stats_flag()
42 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in il3945_stats_flag()
45 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in il3945_stats_flag()
96 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
101 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
106 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
111 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
116 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
121 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
[all …]
Ddebug.c246 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_tx_stats_read()
249 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
252 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in il_dbgfs_tx_stats_read()
255 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
258 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_tx_stats_read()
260 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read()
263 scnprintf(buf + pos, bufsz - pos, "\tbytes: %llu\n", in il_dbgfs_tx_stats_read()
307 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_rx_stats_read()
310 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_rx_stats_read()
313 pos += scnprintf(buf + pos, bufsz - pos, "Control:\n"); in il_dbgfs_rx_stats_read()
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Ddebugfs.c135 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read()
137 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read()
150 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
154 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
157 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
170 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
172 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
174 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
178 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
243 pos += scnprintf(buf + pos, bufsz - pos, "num of stations: %d\n\n", in iwl_dbgfs_stations_read()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dhtc_drv_debug.c40 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
44 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
48 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
52 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
56 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
60 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
98 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
102 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
106 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
110 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
[all …]
Ddebug_sta.c41 len = scnprintf(buf, size, "%s\n", in read_file_node_aggr()
46 len = scnprintf(buf, size, "Max-AMPDU: %d\n", in read_file_node_aggr()
48 len += scnprintf(buf + len, size - len, "MPDU Density: %d\n\n", in read_file_node_aggr()
51 len += scnprintf(buf + len, size - len, in read_file_node_aggr()
58 len += scnprintf(buf + len, size - len, in read_file_node_aggr()
64 len += scnprintf(buf + len, size - len, in read_file_node_aggr()
74 len += scnprintf(buf + len, size - len, in read_file_node_aggr()
167 len += scnprintf(buf + len, size - len, \
176 len += scnprintf(buf + len, size - len, \
206 len += scnprintf(buf + len, size - len, in read_file_node_recv()
[all …]
Ddfs_debug.c28 len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \
31 len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \
47 len += scnprintf(buf + len, size - len, "DFS support for " in read_file_dfs()
54 len += scnprintf(buf + len, size - len, in read_file_dfs()
61 len += scnprintf(buf + len, size - len, "Pulse detector statistics:\n"); in read_file_dfs()
71 len += scnprintf(buf + len, size - len, "Radar detector statistics " in read_file_dfs()
76 len += scnprintf(buf + len, size - len, "Global Pool statistics:\n"); in read_file_dfs()
Ddebug.c167 len += scnprintf(buf + len, size - len, "%15s: %s\n", "ANI", in read_file_ani()
174 len += scnprintf(buf + len, size - len, "%15s: %u\n", in read_file_ani()
322 len += scnprintf(buf + len, size - len, "%s\n", in read_file_antenna_diversity()
329 len += scnprintf(buf + len, size - len, "Current MAIN config : %s\n", in read_file_antenna_diversity()
331 len += scnprintf(buf + len, size - len, "Current ALT config : %s\n", in read_file_antenna_diversity()
333 len += scnprintf(buf + len, size - len, "Average MAIN RSSI : %d\n", in read_file_antenna_diversity()
335 len += scnprintf(buf + len, size - len, "Average ALT RSSI : %d\n\n", in read_file_antenna_diversity()
339 len += scnprintf(buf + len, size - len, "Packet Receive Cnt:\n"); in read_file_antenna_diversity()
340 len += scnprintf(buf + len, size - len, "-------------------\n"); in read_file_antenna_diversity()
342 len += scnprintf(buf + len, size - len, "%30s%15s\n", in read_file_antenna_diversity()
[all …]
Dgpio.c472 len += scnprintf(buf + len, size - len, "BT Weights: "); in ath9k_dump_mci_btcoex()
474 len += scnprintf(buf + len, size - len, "%08x ", in ath9k_dump_mci_btcoex()
476 len += scnprintf(buf + len, size - len, "\n"); in ath9k_dump_mci_btcoex()
477 len += scnprintf(buf + len, size - len, "WLAN Weights: "); in ath9k_dump_mci_btcoex()
479 len += scnprintf(buf + len, size - len, "%08x ", in ath9k_dump_mci_btcoex()
481 len += scnprintf(buf + len, size - len, "\n"); in ath9k_dump_mci_btcoex()
482 len += scnprintf(buf + len, size - len, "Tx Priorities: "); in ath9k_dump_mci_btcoex()
484 len += scnprintf(buf + len, size - len, "%08x ", in ath9k_dump_mci_btcoex()
487 len += scnprintf(buf + len, size - len, "\n"); in ath9k_dump_mci_btcoex()
Dcommon-debug.c128 len += scnprintf(buf + len, size - len, \ in read_file_recv()
190 len += scnprintf(buf + len, size - len, "%22s : %10u\n", s, \ in read_file_phy_err()
Deeprom_def.c208 len += scnprintf(buf + len, size - len, in ath9k_hw_def_dump_eeprom()
212 len += scnprintf(buf + len, size - len, in ath9k_hw_def_dump_eeprom()
243 len += scnprintf(buf + len, size - len, "%20s : %pM\n", "MacAddress", in ath9k_hw_def_dump_eeprom()
/linux-4.1.27/drivers/scsi/
Dscsi_logging.c84 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header()
91 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header()
111 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_prefix_printk()
160 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name()
171 off = scnprintf(buffer, buf_len, "%s", cdb_name); in scsi_format_opcode_name()
173 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0); in scsi_format_opcode_name()
177 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name()
180 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name()
185 off = scnprintf(buffer, buf_len, "%s", sa_name); in scsi_format_opcode_name()
187 off = scnprintf(buffer, buf_len, "%s, sa=0x%x", in scsi_format_opcode_name()
[all …]
Dscsi_debug.c1316 len = scnprintf(lu_id_str, 6, "%d", lu_id_num); in resp_inquiry()
2699 n += scnprintf(b + n, sizeof(b) - n, in dump_sector()
2702 n += scnprintf(b + n, sizeof(b) - n, in dump_sector()
4232 return scnprintf(buf, PAGE_SIZE, "%d\n", scsi_debug_delay); in delay_show()
4265 return scnprintf(buf, PAGE_SIZE, "%d\n", scsi_debug_ndelay); in ndelay_show()
4299 return scnprintf(buf, PAGE_SIZE, "0x%x\n", scsi_debug_opts); in opts_show()
4338 return scnprintf(buf, PAGE_SIZE, "%d\n", scsi_debug_ptype); in ptype_show()
4355 return scnprintf(buf, PAGE_SIZE, "%d\n", scsi_debug_dsense); in dsense_show()
4372 return scnprintf(buf, PAGE_SIZE, "%d\n", scsi_debug_fake_rw); in fake_rw_show()
4406 return scnprintf(buf, PAGE_SIZE, "%d\n", scsi_debug_no_lun_0); in no_lun_0_show()
[all …]
/linux-4.1.27/drivers/platform/chrome/
Dcros_ec_sysfs.c45 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_reboot()
47 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_reboot()
138 return scnprintf(buf, PAGE_SIZE, in show_ec_version()
145 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_version()
147 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_version()
149 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_version()
159 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_version()
162 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_version()
166 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_version()
175 count += scnprintf(buf + count, PAGE_SIZE - count, in show_ec_version()
[all …]
Dcros_ec_lightbar.c45 return scnprintf(buf, PAGE_SIZE, "%lu\n", msec); in interval_msec_show()
153 return scnprintf(buf, PAGE_SIZE, "%d %d\n", version, flags); in version_show()
279 return scnprintf(buf, PAGE_SIZE, in sequence_show()
284 return scnprintf(buf, PAGE_SIZE, "%d\n", resp->get_seq.num); in sequence_show()
286 return scnprintf(buf, PAGE_SIZE, "%s\n", in sequence_show()
/linux-4.1.27/drivers/pnp/
Dsupport.c114 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
119 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
125 len += scnprintf(buf + len, sizeof(buf) - len, "io min %#llx " in dbg_pnp_show_option()
134 len += scnprintf(buf + len, sizeof(buf) - len, "mem min %#llx " in dbg_pnp_show_option()
143 len += scnprintf(buf + len, sizeof(buf) - len, "irq"); in dbg_pnp_show_option()
145 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
150 len += scnprintf(buf + len, in dbg_pnp_show_option()
154 len += scnprintf(buf + len, sizeof(buf) - len, " flags %#x", in dbg_pnp_show_option()
157 len += scnprintf(buf + len, sizeof(buf) - len, in dbg_pnp_show_option()
162 len += scnprintf(buf + len, sizeof(buf) - len, "dma"); in dbg_pnp_show_option()
[all …]
Dcore.c227 len += scnprintf(buf + len, sizeof(buf) - len, " %s", id->id); in pnp_add_device()
/linux-4.1.27/drivers/firmware/
Dedd.c144 p += scnprintf(p, left, "%c", info->params.host_bus_type[i]); in edd_show_host_bus()
146 p += scnprintf(p, left, " "); in edd_show_host_bus()
151 p += scnprintf(p, left, "\tbase_address: %x\n", in edd_show_host_bus()
156 p += scnprintf(p, left, in edd_show_host_bus()
164 p += scnprintf(p, left, in edd_show_host_bus()
169 p += scnprintf(p, left, "\tunknown: %llx\n", in edd_show_host_bus()
190 p += scnprintf(p, left, "%c", info->params.interface_type[i]); in edd_show_interface()
192 p += scnprintf(p, left, " "); in edd_show_interface()
196 p += scnprintf(p, left, "\tdevice: %u lun: %u\n", in edd_show_interface()
200 p += scnprintf(p, left, "\tdevice: %u\n", in edd_show_interface()
[all …]
Ddmi_scan.c442 c += scnprintf(buf + c, len - c, "%c", *p); in print_filtered()
444 c += scnprintf(buf + c, len - c, "\\x%02x", *p & 0xff); in print_filtered()
455 c += scnprintf(buf + c, len - c, " "); in dmi_format_ids()
461 c += scnprintf(buf + c, len - c, "/"); in dmi_format_ids()
464 c += scnprintf(buf + c, len - c, ", BIOS "); in dmi_format_ids()
467 c += scnprintf(buf + c, len - c, " "); in dmi_format_ids()
Ddmi-id.c29 len = scnprintf(page, PAGE_SIZE, "%s\n", dmi_get_system_info(field)); in sys_dmi_field_show()
111 l = scnprintf(p, left, ":%s%s", f->prefix, t); in get_modalias()
Ddell_rbu.c585 size = scnprintf(buffer, count, "%s\n", image_type); in read_rbu_image_type()
657 size = scnprintf(buffer, count, "%lu\n", rbu_data.packetsize); in read_rbu_packet_size()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Ddebug.c208 len += scnprintf(buf + len, buf_len - len, in ath10k_read_wmi_services()
215 len += scnprintf(buf + len, buf_len - len, in ath10k_read_wmi_services()
451 len += scnprintf(buf + len, buf_len - len, "\n"); in ath10k_fw_stats_fill()
452 len += scnprintf(buf + len, buf_len - len, "%30s\n", in ath10k_fw_stats_fill()
454 len += scnprintf(buf + len, buf_len - len, "%30s\n\n", in ath10k_fw_stats_fill()
457 len += scnprintf(buf + len, buf_len - len, "%30s %10d\n", in ath10k_fw_stats_fill()
459 len += scnprintf(buf + len, buf_len - len, "%30s %10u\n", in ath10k_fw_stats_fill()
461 len += scnprintf(buf + len, buf_len - len, "%30s %10u\n", in ath10k_fw_stats_fill()
463 len += scnprintf(buf + len, buf_len - len, "%30s %10u\n", in ath10k_fw_stats_fill()
465 len += scnprintf(buf + len, buf_len - len, "%30s %10u\n", in ath10k_fw_stats_fill()
[all …]
Ddebugfs_sta.c32 len = scnprintf(buf, sizeof(buf) - len, "aggregation mode: %s\n", in ath10k_dbg_sta_read_aggr_mode()
/linux-4.1.27/net/mac80211/
Ddebugfs.c107 sf += scnprintf(buf, mxln - sf, "0x%x\n", local->hw.flags); in hwflags_read()
109 sf += scnprintf(buf + sf, mxln - sf, "HAS_RATE_CONTROL\n"); in hwflags_read()
111 sf += scnprintf(buf + sf, mxln - sf, "RX_INCLUDES_FCS\n"); in hwflags_read()
113 sf += scnprintf(buf + sf, mxln - sf, in hwflags_read()
116 sf += scnprintf(buf + sf, mxln - sf, in hwflags_read()
119 sf += scnprintf(buf + sf, mxln - sf, in hwflags_read()
122 sf += scnprintf(buf + sf, mxln - sf, "SIGNAL_UNSPEC\n"); in hwflags_read()
124 sf += scnprintf(buf + sf, mxln - sf, "SIGNAL_DBM\n"); in hwflags_read()
126 sf += scnprintf(buf + sf, mxln - sf, in hwflags_read()
129 sf += scnprintf(buf + sf, mxln - sf, "SPECTRUM_MGMT\n"); in hwflags_read()
[all …]
Ddebugfs_sta.c69 int res = scnprintf(buf, sizeof(buf), in sta_flags_read()
97 p += scnprintf(p, sizeof(buf)+buf-p, "AC%d: %d\n", ac, in sta_num_ps_buf_frames_read()
128 res = scnprintf(buf, sizeof(buf), in sta_connected_time_read()
145 p += scnprintf(p, sizeof(buf)+buf-p, "%x ", in sta_last_seq_ctrl_read()
147 p += scnprintf(p, sizeof(buf)+buf-p, "\n"); in sta_last_seq_ctrl_read()
163 p += scnprintf(p, sizeof(buf) + buf - p, "next dialog_token: %#02x\n", in sta_agg_status_read()
165 p += scnprintf(p, sizeof(buf) + buf - p, in sta_agg_status_read()
172 p += scnprintf(p, sizeof(buf) + buf - p, "%02d", i); in sta_agg_status_read()
173 p += scnprintf(p, sizeof(buf) + buf - p, "\t\t%x", !!tid_rx); in sta_agg_status_read()
174 p += scnprintf(p, sizeof(buf) + buf - p, "\t%#.2x", in sta_agg_status_read()
[all …]
Ddebugfs_key.c89 len = scnprintf(buf, sizeof(buf), "\n"); in key_tx_spec_read()
92 len = scnprintf(buf, sizeof(buf), "%08x %04x\n", in key_tx_spec_read()
99 len = scnprintf(buf, sizeof(buf), "%02x%02x%02x%02x%02x%02x\n", in key_tx_spec_read()
106 len = scnprintf(buf, sizeof(buf), "%02x%02x%02x%02x%02x%02x\n", in key_tx_spec_read()
113 len = scnprintf(buf, sizeof(buf), "%02x%02x%02x%02x%02x%02x\n", in key_tx_spec_read()
120 len = scnprintf(buf, sizeof(buf), "%02x%02x%02x%02x%02x%02x\n", in key_tx_spec_read()
142 len = scnprintf(buf, sizeof(buf), "\n"); in key_rx_spec_read()
146 p += scnprintf(p, sizeof(buf)+buf-p, in key_rx_spec_read()
156 p += scnprintf(p, sizeof(buf)+buf-p, in key_rx_spec_read()
166 p += scnprintf(p, sizeof(buf)+buf-p, in key_rx_spec_read()
[all …]
Ddebugfs_netdev.c75 return scnprintf(buf, buflen, format_string, sdata->field); \
94 p += scnprintf(p, buflen + buf - p, "%.2x ", \
97 p += scnprintf(p, buflen + buf - p, "\n"); \
106 return scnprintf(buf, buflen, "%d\n", atomic_read(&sdata->field));\
114 return scnprintf(buf, buflen, "%pM\n", sdata->field); \
122 return scnprintf(buf, buflen, "%d\n", sdata->field / 16); \
130 return scnprintf(buf, buflen, "%d\n", \
201 len = scnprintf(buf, buflen, "AC queues: VO:%d VI:%d BE:%d BK:%d\n", in ieee80211_if_fmt_hw_queues()
208 len += scnprintf(buf + len, buflen - len, "cab queue: %d\n", in ieee80211_if_fmt_hw_queues()
434 return scnprintf(buf, buflen, "%u\n", in ieee80211_if_fmt_num_buffered_multicast()
[all …]
/linux-4.1.27/drivers/misc/cxl/
Dsysfs.c27 return scnprintf(buf, PAGE_SIZE, "%i.%i\n", adapter->caia_major, in caia_version_show()
37 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->psl_rev); in psl_revision_show()
46 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->base_image); in base_image_show()
56 return scnprintf(buf, PAGE_SIZE, "user\n"); in image_loaded_show()
57 return scnprintf(buf, PAGE_SIZE, "factory\n"); in image_loaded_show()
84 return scnprintf(buf, PAGE_SIZE, "none\n"); in load_image_on_perst_show()
87 return scnprintf(buf, PAGE_SIZE, "user\n"); in load_image_on_perst_show()
88 return scnprintf(buf, PAGE_SIZE, "factory\n"); in load_image_on_perst_show()
133 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->adapter->ps_size); in mmio_size_show_master()
142 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_offset); in pp_mmio_off_show()
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs.c199 pos = scnprintf(buf , sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read()
201 pos = scnprintf(buf , sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read()
275 pos = scnprintf(buf , sizeof(buf), "%d\n", temp); in iwl_dbgfs_nic_temp_read()
291 pos += scnprintf(buf + pos, bufsz - pos, "%.2d: ", i); in iwl_dbgfs_stations_read()
295 pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); in iwl_dbgfs_stations_read()
297 pos += scnprintf(buf + pos, bufsz - pos, "%ld\n", in iwl_dbgfs_stations_read()
300 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_stations_read()
318 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d0=%d\n", in iwl_dbgfs_disable_power_off_read()
320 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d3=%d\n", in iwl_dbgfs_disable_power_off_read()
359 pos += scnprintf(buf + pos, bufsz - pos, \
[all …]
Ddebugfs-vif.c229 pos += scnprintf(buf+pos, bufsz-pos, "type: ibss\n"); in iwl_dbgfs_mac_params_read()
232 pos += scnprintf(buf+pos, bufsz-pos, "type: bss\n"); in iwl_dbgfs_mac_params_read()
235 pos += scnprintf(buf+pos, bufsz-pos, "type: ap\n"); in iwl_dbgfs_mac_params_read()
238 pos += scnprintf(buf+pos, bufsz-pos, "type: p2p client\n"); in iwl_dbgfs_mac_params_read()
241 pos += scnprintf(buf+pos, bufsz-pos, "type: p2p go\n"); in iwl_dbgfs_mac_params_read()
244 pos += scnprintf(buf+pos, bufsz-pos, "type: p2p dev\n"); in iwl_dbgfs_mac_params_read()
250 pos += scnprintf(buf+pos, bufsz-pos, "mac id/color: %d / %d\n", in iwl_dbgfs_mac_params_read()
252 pos += scnprintf(buf+pos, bufsz-pos, "bssid: %pM\n", in iwl_dbgfs_mac_params_read()
254 pos += scnprintf(buf+pos, bufsz-pos, "QoS:\n"); in iwl_dbgfs_mac_params_read()
256 pos += scnprintf(buf+pos, bufsz-pos, in iwl_dbgfs_mac_params_read()
[all …]
Dpower.c703 pos += scnprintf(buf+pos, bufsz-pos, "power_scheme = %d\n", in iwl_mvm_power_mac_dbgfs_read()
705 pos += scnprintf(buf+pos, bufsz-pos, "flags = 0x%x\n", in iwl_mvm_power_mac_dbgfs_read()
707 pos += scnprintf(buf+pos, bufsz-pos, "keep_alive = %d\n", in iwl_mvm_power_mac_dbgfs_read()
713 pos += scnprintf(buf+pos, bufsz-pos, "skip_over_dtim = %d\n", in iwl_mvm_power_mac_dbgfs_read()
716 pos += scnprintf(buf+pos, bufsz-pos, "skip_dtim_periods = %d\n", in iwl_mvm_power_mac_dbgfs_read()
719 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
721 pos += scnprintf(buf+pos, bufsz-pos, "tx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
725 pos += scnprintf(buf+pos, bufsz-pos, in iwl_mvm_power_mac_dbgfs_read()
732 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout_uapsd = %d\n", in iwl_mvm_power_mac_dbgfs_read()
734 pos += scnprintf(buf+pos, bufsz-pos, "tx_data_timeout_uapsd = %d\n", in iwl_mvm_power_mac_dbgfs_read()
[all …]
Drs.c3572 pos += scnprintf(pos, endpos - pos, "COLUMN,"); in rs_sta_dbgfs_drv_tx_stats_read()
3574 pos += scnprintf(pos, endpos - pos, "%s,", rate_name[rate]); in rs_sta_dbgfs_drv_tx_stats_read()
3575 pos += scnprintf(pos, endpos - pos, "\n"); in rs_sta_dbgfs_drv_tx_stats_read()
3578 pos += scnprintf(pos, endpos - pos, in rs_sta_dbgfs_drv_tx_stats_read()
3583 pos += scnprintf(pos, endpos - pos, in rs_sta_dbgfs_drv_tx_stats_read()
3588 pos += scnprintf(pos, endpos - pos, "\n"); in rs_sta_dbgfs_drv_tx_stats_read()
3628 pos += scnprintf(buf+pos, bufsz-pos, "%s\n", in iwl_dbgfs_ss_force_read()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_ib_sysfs.c45 return scnprintf(buf, PAGE_SIZE, "%s\n", info.fw_version); in usnic_ib_show_fw_ver()
60 return scnprintf(buf, PAGE_SIZE, "%hu\n", subsystem_device_id); in usnic_ib_show_board()
94 n = scnprintf(ptr, left, in usnic_ib_show_config()
110 n = scnprintf(ptr, left, " %d %s%s", in usnic_ib_show_config()
117 n = scnprintf(ptr, left, "\n"); in usnic_ib_show_config()
120 n = scnprintf(ptr, left, "%s: no VFs\n", in usnic_ib_show_config()
137 return scnprintf(buf, PAGE_SIZE, "%s\n", in usnic_ib_show_iface()
149 return scnprintf(buf, PAGE_SIZE, "%u\n", in usnic_ib_show_max_vf()
164 return scnprintf(buf, PAGE_SIZE, in usnic_ib_show_qp_per_vf()
176 return scnprintf(buf, PAGE_SIZE, "%d\n", in usnic_ib_show_cq_per_vf()
[all …]
Dusnic_debugfs.c40 res = scnprintf(buf, sizeof(buf), in usnic_debugfs_buildinfo_read()
71 n = scnprintf(ptr, left, in flowinfo_read()
77 n = scnprintf(ptr, left, "Port_Num:%hu\n", in flowinfo_read()
84 n = scnprintf(ptr, left, "\n"); in flowinfo_read()
137 scnprintf(qp_flow->dentry_name, sizeof(qp_flow->dentry_name), in usnic_debugfs_flow_add()
Dusnic_vnic.c88 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
95 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump()
96 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
100 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump()
107 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
115 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
175 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_spec_dump()
Dusnic_transport.c62 return scnprintf(buf, buf_sz, "Proto:%u Addr:%pI4h Port:%hu", in usnic_transport_sock_to_str()
Dusnic_ib_qp_grp.c59 return scnprintf(buf, buf_sz, "|QPN\t|State\t|PID\t|VF Idx\t|Fil ID"); in usnic_ib_qp_grp_dump_hdr()
69 return scnprintf(buf, buf_sz, "|%d\t|%s\t|%d\t|%hu\t|%d", in usnic_ib_qp_grp_dump_rows()
77 return scnprintf(buf, buf_sz, "|N/A\t|N/A\t|N/A\t|N/A\t|N/A"); in usnic_ib_qp_grp_dump_rows()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Ddebug.c285 len += scnprintf(buf + len, buf_len - len, "\n"); in read_file_war_stats()
286 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_war_stats()
288 len += scnprintf(buf + len, buf_len - len, "%25s\n\n", in read_file_war_stats()
290 len += scnprintf(buf + len, buf_len - len, "%20s %10u\n", in read_file_war_stats()
584 len += scnprintf(buf + len, buf_len - len, "\n"); in read_file_tgt_stats()
585 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_tgt_stats()
587 len += scnprintf(buf + len, buf_len - len, "%25s\n\n", in read_file_tgt_stats()
589 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
591 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
593 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
[all …]
/linux-4.1.27/drivers/usb/host/
Dehci-dbg.c181 return scnprintf (buf, len, in dbg_status_buf()
201 return scnprintf (buf, len, in dbg_intr_buf()
220 return scnprintf (buf, len, in dbg_command_buf()
255 return scnprintf (buf, len, in dbg_port_buf()
438 temp = scnprintf (next, size, in qh_lines()
521 temp = scnprintf(next, size, "\nunlink =\n"); in fill_async_buffer()
557 temp = scnprintf(next, size, in fill_bandwidth_buffer()
563 temp = scnprintf(next, size, in fill_bandwidth_buffer()
573 temp = scnprintf(next, size, in fill_bandwidth_buffer()
581 temp = scnprintf(next, size, in fill_bandwidth_buffer()
[all …]
Dohci-dbg.c26 s_len = scnprintf (*next, *size, format, ## arg ); \
36 s_len = scnprintf(*next, *size, format, ## arg); \
417 temp = scnprintf (buf, size, in show_list()
439 temp = scnprintf (buf, size, in show_list()
455 temp = scnprintf (buf, size, "\n"); in show_list()
502 temp = scnprintf (next, size, "size = %d\n", NUM_INTS); in fill_periodic_buffer()
512 temp = scnprintf (next, size, "%2d [%3d]:", i, ohci->load [i]); in fill_periodic_buffer()
517 temp = scnprintf (next, size, " ed%d/%p", in fill_periodic_buffer()
536 temp = scnprintf (next, size, in fill_periodic_buffer()
567 temp = scnprintf (next, size, "\n"); in fill_periodic_buffer()
[all …]
Dehci-sysfs.c37 n = scnprintf(ptr, count, "%d\n", index + 1); in show_companion()
89 n = scnprintf(buf, PAGE_SIZE, "%d\n", ehci->uframe_periodic_max); in show_uframe_periodic_max()
Dfusbh200-hcd.c197 return scnprintf (buf, len, in dbg_status_buf()
216 return scnprintf (buf, len, in dbg_intr_buf()
234 return scnprintf (buf, len, in dbg_command_buf()
263 return scnprintf (buf, len, in dbg_port_buf()
395 temp = scnprintf (next, size, in qh_lines()
477 temp = scnprintf(next, size, "\nunlink =\n"); in fill_async_buffer()
511 temp = scnprintf (next, size, "size = %d\n", fusbh200->periodic_size); in fill_periodic_buffer()
525 temp = scnprintf (next, size, "%4d: ", i); in fill_periodic_buffer()
535 temp = scnprintf (next, size, " qh%d-%04x/%p", in fill_periodic_buffer()
549 temp = scnprintf (next, size, in fill_periodic_buffer()
[all …]
Dfotg210-hcd.c198 return scnprintf(buf, len, in dbg_status_buf()
217 return scnprintf(buf, len, in dbg_intr_buf()
234 return scnprintf(buf, len, in dbg_command_buf()
271 scnprintf(buf, len, in dbg_port_buf()
407 temp = scnprintf(next, size, in qh_lines()
498 temp = scnprintf(next, size, "\nunlink =\n"); in fill_async_buffer()
533 temp = scnprintf(next, size, "size = %d\n", fotg210->periodic_size); in fill_periodic_buffer()
547 temp = scnprintf(next, size, "%4d: ", i); in fill_periodic_buffer()
557 temp = scnprintf(next, size, " qh%d-%04x/%p", in fill_periodic_buffer()
571 temp = scnprintf(next, size, in fill_periodic_buffer()
[all …]
/linux-4.1.27/drivers/memstick/core/
Dmspro_block.c306 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "%02x ", in mspro_block_attr_show_default()
336 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "class: %x\n", in mspro_block_attr_show_sysinfo()
338 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "block size: %x\n", in mspro_block_attr_show_sysinfo()
340 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "block count: %x\n", in mspro_block_attr_show_sysinfo()
342 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "user block count: %x\n", in mspro_block_attr_show_sysinfo()
344 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "page size: %x\n", in mspro_block_attr_show_sysinfo()
346 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "assembly date: " in mspro_block_attr_show_sysinfo()
353 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "serial number: %x\n", in mspro_block_attr_show_sysinfo()
355 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, in mspro_block_attr_show_sysinfo()
358 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "assembly model code: " in mspro_block_attr_show_sysinfo()
[all …]
/linux-4.1.27/net/atm/
Datm_sysfs.c18 return scnprintf(buf, PAGE_SIZE, "%s\n", adev->type); in show_type()
26 return scnprintf(buf, PAGE_SIZE, "%pM\n", adev->esi); in show_address()
42 count += scnprintf(buf + count, in show_atmaddress()
47 count += scnprintf(buf + count, in show_atmaddress()
51 count += scnprintf(buf + count, PAGE_SIZE - count, "\n"); in show_atmaddress()
63 return scnprintf(buf, PAGE_SIZE, "%d\n", adev->number); in show_atmindex()
71 return scnprintf(buf, PAGE_SIZE, "%d\n", in show_carrier()
95 return scnprintf(buf, PAGE_SIZE, "%d\n", link_rate); in show_link_rate()
/linux-4.1.27/arch/arc/kernel/
Dsetup.c161 n += scnprintf(buf + n, len - n, in arc_cpu_mumbojumbo()
168 n += scnprintf(buf + n, len - n, in arc_cpu_mumbojumbo()
177 n += scnprintf(buf + n, len - n, "UNKNOWN ARC Processor\n"); in arc_cpu_mumbojumbo()
179 n += scnprintf(buf + n, len - n, "CPU speed\t: %u.%02u Mhz\n", in arc_cpu_mumbojumbo()
183 n += scnprintf(buf + n, len - n, "Timers\t\t: %s%s%s%s\nISA Extn\t: ", in arc_cpu_mumbojumbo()
188 n += i = scnprintf(buf + n, len - n, "%s%s", in arc_cpu_mumbojumbo()
192 n += scnprintf(buf + n, len - n, "\n\t\t: "); in arc_cpu_mumbojumbo()
194 n += scnprintf(buf + n, len - n, "%s%s%s%s%s%s%s%s\n", in arc_cpu_mumbojumbo()
204 n += scnprintf(buf + n, len - n, in arc_cpu_mumbojumbo()
220 n += scnprintf(buf + n, len - n, in arc_extn_mumbojumbo()
[all …]
Dtroubleshoot.c30 n += scnprintf(buf + n, len - n, "r%02u: 0x%08lx\t", in print_reg_file()
34 n += scnprintf(buf + n, len - n, "\n"); in print_reg_file()
41 n += scnprintf(buf + n, len - n, "\n\n"); in print_reg_file()
/linux-4.1.27/drivers/char/tpm/
Dtpm_ppi.c58 return scnprintf(buf, PAGE_SIZE, "%s\n", chip->ppi_version); in tpm_show_ppi_version()
85 size = scnprintf(buf, PAGE_SIZE, "%llu\n", in tpm_show_ppi_request()
186 status = scnprintf(buf, PAGE_SIZE, "%d: %s\n", ret, info[ret]); in tpm_show_ppi_transition_action()
188 status = scnprintf(buf, PAGE_SIZE, "%d: %s\n", ret, in tpm_show_ppi_transition_action()
230 status = scnprintf(buf, PAGE_SIZE, "%llu %s\n", req, in tpm_show_ppi_response()
233 status = scnprintf(buf, PAGE_SIZE, "%llu %s\n", req, in tpm_show_ppi_response()
236 status = scnprintf(buf, PAGE_SIZE, "%llu %s\n", req, in tpm_show_ppi_response()
239 status = scnprintf(buf, PAGE_SIZE, "%llu %llu: %s\n", in tpm_show_ppi_response()
242 status = scnprintf(buf, PAGE_SIZE, "%llu %llu: %s\n", in tpm_show_ppi_response()
245 status = scnprintf(buf, PAGE_SIZE, "%llu: %s\n", in tpm_show_ppi_response()
[all …]
Dtpm-chip.c113 scnprintf(chip->devname, sizeof(chip->devname), "tpm%d", chip->dev_num); in tpmm_chip_alloc()
/linux-4.1.27/drivers/misc/mei/
Ddebugfs.c52 pos += scnprintf(buf + pos, bufsz - pos, HDR); in mei_dbgfs_read_meclients()
61 pos += scnprintf(buf + pos, bufsz - pos, in mei_dbgfs_read_meclients()
106 pos += scnprintf(buf + pos, bufsz - pos, in mei_dbgfs_read_active()
117 pos += scnprintf(buf + pos, bufsz - pos, in mei_dbgfs_read_active()
148 pos += scnprintf(buf + pos, bufsz - pos, "dev: %s\n", in mei_dbgfs_read_devstate()
150 pos += scnprintf(buf + pos, bufsz - pos, "hbm: %s\n", in mei_dbgfs_read_devstate()
152 pos += scnprintf(buf + pos, bufsz - pos, "pg: %s, %s\n", in mei_dbgfs_read_devstate()
Dinit.c78 cnt += scnprintf(buf + cnt, len - cnt, "%08X ", in mei_fw_status2str()
/linux-4.1.27/tools/perf/ui/gtk/
Dannotate.c43 ret += scnprintf(buf, size, "%s", markup); in perf_gtk__get_percent()
44 ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent); in perf_gtk__get_percent()
46 ret += scnprintf(buf + ret, size - ret, "</span>"); in perf_gtk__get_percent()
61 return scnprintf(buf, size, "%"PRIx64, start + dl->offset); in perf_gtk__get_offset()
79 ret += scnprintf(buf, size, "%s", markup); in perf_gtk__get_line()
80 ret += scnprintf(buf + ret, size - ret, "%s", line); in perf_gtk__get_line()
82 ret += scnprintf(buf + ret, size - ret, "</span>"); in perf_gtk__get_line()
132 ret += scnprintf(s + ret, sizeof(s) - ret, " "); in perf_gtk__annotate_symbol()
Dhists.c28 ret += scnprintf(buf, size, markup); in __percent_color_snprintf()
30 ret += scnprintf(buf + ret, size - ret, fmt, len, percent); in __percent_color_snprintf()
33 ret += scnprintf(buf + ret, size - ret, "</span>"); in __percent_color_snprintf()
119 scnprintf(buf, sizeof(buf), "%5.2f%%", percent); in perf_gtk__add_callchain()
/linux-4.1.27/drivers/misc/mic/host/
Dmic_sysfs.c88 return scnprintf(buf, PAGE_SIZE, "%s\n", card); in family_show()
117 return scnprintf(buf, PAGE_SIZE, "%s\n", string); in stepping_show()
129 return scnprintf(buf, PAGE_SIZE, "%s\n", in state_show()
180 return scnprintf(buf, PAGE_SIZE, "%s\n", in shutdown_status_show()
197 return scnprintf(buf, PAGE_SIZE, "%s\n", cmdline); in cmdline_show()
243 return scnprintf(buf, PAGE_SIZE, "%s\n", firmware); in firmware_show()
288 return scnprintf(buf, PAGE_SIZE, "%s\n", ramdisk); in ramdisk_show()
334 return scnprintf(buf, PAGE_SIZE, "%s\n", bootmode); in bootmode_show()
380 return scnprintf(buf, PAGE_SIZE, "%p\n", mdev->log_buf_addr); in log_buf_addr_show()
414 return scnprintf(buf, PAGE_SIZE, "%p\n", mdev->log_buf_len); in log_buf_len_show()
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_attr.c1008 return scnprintf(buf, PAGE_SIZE, "%s\n", qla2x00_version_str); in qla2x00_drvr_version_show()
1019 return scnprintf(buf, PAGE_SIZE, "%s\n", in qla2x00_fw_version_show()
1032 return scnprintf(buf, PAGE_SIZE, "%s\n", in qla2x00_serial_num_show()
1040 return scnprintf(buf, PAGE_SIZE, "%c%05d\n", 'A' + sn / 100000, in qla2x00_serial_num_show()
1049 return scnprintf(buf, PAGE_SIZE, "ISP%04X\n", vha->hw->pdev->device); in qla2x00_isp_name_show()
1060 return scnprintf(buf, PAGE_SIZE, "%s\n", in qla2x00_isp_id_show()
1063 return scnprintf(buf, PAGE_SIZE, "%04x %04x %04x %04x\n", in qla2x00_isp_id_show()
1074 return scnprintf(buf, PAGE_SIZE, "%s\n", vha->hw->model_number); in qla2x00_model_name_show()
1082 return scnprintf(buf, PAGE_SIZE, "%s\n", in qla2x00_model_desc_show()
1093 return scnprintf(buf, PAGE_SIZE, "%s\n", in qla2x00_pci_info_show()
[all …]
/linux-4.1.27/tools/perf/
Dbuiltin-buildid-cache.c39 scnprintf(notes, sizeof(notes), "%s/sys/kernel/notes", root_dir); in build_id_cache__kcore_buildid()
61 scnprintf(dir, sz, "%s%02u", dt, (unsigned)tv.tv_usec / 10000); in build_id_cache__kcore_dir()
74 scnprintf(from, sizeof(from), "%s/kallsyms", from_dir); in same_kallsyms_reloc()
75 scnprintf(to, sizeof(to), "%s/kallsyms", to_dir); in same_kallsyms_reloc()
103 scnprintf(from, sizeof(from), "%s/modules", from_dir); in build_id_cache__kcore_existing()
111 scnprintf(to, sizeof(to), "%s/%s/modules", to_dir, in build_id_cache__kcore_existing()
113 scnprintf(to_subdir, sizeof(to_subdir), "%s/%s", in build_id_cache__kcore_existing()
144 scnprintf(to_dir, sizeof(to_dir), "%s/[kernel.kcore]/%s", in build_id_cache__add_kcore()
156 scnprintf(to_dir, sizeof(to_dir), "%s/[kernel.kcore]/%s/%s", in build_id_cache__add_kcore()
Dbuiltin-diff.c269 return scnprintf(buf, size, in formula_delta()
282 return scnprintf(buf, size, "%.0F / %.0F", new_period, old_period); in formula_ratio()
291 return scnprintf(buf, size, in formula_wdiff()
834 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
838 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_baseline()
849 ret = scnprintf(buf, size, fmt, percent); in hpp__entry_baseline()
875 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
886 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
897 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
905 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare()
[all …]
Dbuiltin-trace.c276 return scnprintf(bf, size, intfmt, arg->val); in __syscall_arg__scnprintf_strarray()
278 return scnprintf(bf, size, "%s", sa->entries[idx]); in __syscall_arg__scnprintf_strarray()
314 return scnprintf(bf, size, "CWD"); in syscall_arg__scnprintf_fd_at()
329 return scnprintf(bf, size, "%#lx", arg->val); in syscall_arg__scnprintf_hex()
340 return scnprintf(bf, size, "NONE"); in syscall_arg__scnprintf_mmap_prot()
343 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_mmap_prot()
358 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", prot); in syscall_arg__scnprintf_mmap_prot()
372 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_mmap_flags()
401 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in syscall_arg__scnprintf_mmap_flags()
415 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ in syscall_arg__scnprintf_mremap_flags()
[all …]
Dbuiltin-bench.c166 scnprintf(name, size, "%s-%s", coll_name, bench_name); in run_bench()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_sysfs.c79 return scnprintf(buf, PAGE_SIZE, "%s", ib_ipath_version); in show_version()
84 return scnprintf(buf, PAGE_SIZE, "%d\n", in show_num_units()
100 ret = scnprintf(buf, PAGE_SIZE, "0x%llx\n", in show_status()
165 return scnprintf(buf, PAGE_SIZE, "%s", dd->ipath_boardversion); in show_boardversion()
174 return scnprintf(buf, PAGE_SIZE, "%s", dd->ipath_lbus_info); in show_localbus_info()
183 return scnprintf(buf, PAGE_SIZE, "%u\n", dd->ipath_lmc); in show_lmc()
219 return scnprintf(buf, PAGE_SIZE, "0x%x\n", dd->ipath_lid); in show_lid()
255 return scnprintf(buf, PAGE_SIZE, "0x%x\n", dd->ipath_mlid); in show_mlid()
289 return scnprintf(buf, PAGE_SIZE, in show_guid()
345 return scnprintf(buf, PAGE_SIZE, "%u\n", dd->ipath_nguid); in show_nguid()
[all …]
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_qsfp.c516 sofar += scnprintf(buf + sofar, len - sofar, "PWR:%.3sW\n", pwr_codes + in qib_qsfp_dump()
519 sofar += scnprintf(buf + sofar, len - sofar, "TECH:%s%s\n", lenstr, in qib_qsfp_dump()
522 sofar += scnprintf(buf + sofar, len - sofar, "Vendor:%.*s\n", in qib_qsfp_dump()
525 sofar += scnprintf(buf + sofar, len - sofar, "OUI:%06X\n", in qib_qsfp_dump()
528 sofar += scnprintf(buf + sofar, len - sofar, "Part#:%.*s\n", in qib_qsfp_dump()
530 sofar += scnprintf(buf + sofar, len - sofar, "Rev:%.*s\n", in qib_qsfp_dump()
533 sofar += scnprintf(buf + sofar, len - sofar, "Atten:%d, %d\n", in qib_qsfp_dump()
536 sofar += scnprintf(buf + sofar, len - sofar, "Serial:%.*s\n", in qib_qsfp_dump()
538 sofar += scnprintf(buf + sofar, len - sofar, "Date:%.*s\n", in qib_qsfp_dump()
540 sofar += scnprintf(buf + sofar, len - sofar, "Lot:%.*s\n", in qib_qsfp_dump()
[all …]
Dqib_sysfs.c49 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret); in show_hrtbt_enb()
114 ret = scnprintf(buf, PAGE_SIZE, "0x%llx\n", in show_status()
521 ret = scnprintf(buf, PAGE_SIZE, "%s\n", dd->boardname); in show_hca()
529 return scnprintf(buf, PAGE_SIZE, "%s", (char *)ib_qib_version); in show_version()
540 return scnprintf(buf, PAGE_SIZE, "%s", dd->boardversion); in show_boardversion()
552 return scnprintf(buf, PAGE_SIZE, "%s", dd->lbus_info); in show_localbus_info()
566 return scnprintf(buf, PAGE_SIZE, "%u\n", in show_nctxts()
579 return scnprintf(buf, PAGE_SIZE, "%u\n", dd->freectxts); in show_nfreectxts()
637 ret = scnprintf(buf, PAGE_SIZE, "%d %d %02X %02X %d %d\n", in show_tempsense()
/linux-4.1.27/fs/pstore/
Dinode.c341 scnprintf(name, sizeof(name), "dmesg-%s-%lld%s", in pstore_mkfile()
345 scnprintf(name, sizeof(name), "console-%s-%lld", psname, id); in pstore_mkfile()
348 scnprintf(name, sizeof(name), "ftrace-%s-%lld", psname, id); in pstore_mkfile()
351 scnprintf(name, sizeof(name), "mce-%s-%lld", psname, id); in pstore_mkfile()
354 scnprintf(name, sizeof(name), "rtas-%s-%lld", psname, id); in pstore_mkfile()
357 scnprintf(name, sizeof(name), "powerpc-ofw-%s-%lld", in pstore_mkfile()
361 scnprintf(name, sizeof(name), "powerpc-common-%s-%lld", in pstore_mkfile()
365 scnprintf(name, sizeof(name), "pmsg-%s-%lld", psname, id); in pstore_mkfile()
371 scnprintf(name, sizeof(name), "unknown-%s-%lld", psname, id); in pstore_mkfile()
374 scnprintf(name, sizeof(name), "type%d-%s-%lld", in pstore_mkfile()
/linux-4.1.27/drivers/firmware/efi/
Dcper.c220 n += scnprintf(msg + n, len - n, "node: %d ", mem->node); in cper_mem_err_location()
222 n += scnprintf(msg + n, len - n, "card: %d ", mem->card); in cper_mem_err_location()
224 n += scnprintf(msg + n, len - n, "module: %d ", mem->module); in cper_mem_err_location()
226 n += scnprintf(msg + n, len - n, "rank: %d ", mem->rank); in cper_mem_err_location()
228 n += scnprintf(msg + n, len - n, "bank: %d ", mem->bank); in cper_mem_err_location()
230 n += scnprintf(msg + n, len - n, "device: %d ", mem->device); in cper_mem_err_location()
232 n += scnprintf(msg + n, len - n, "row: %d ", mem->row); in cper_mem_err_location()
234 n += scnprintf(msg + n, len - n, "column: %d ", mem->column); in cper_mem_err_location()
236 n += scnprintf(msg + n, len - n, "bit_position: %d ", in cper_mem_err_location()
239 n += scnprintf(msg + n, len - n, "requestor_id: 0x%016llx ", in cper_mem_err_location()
[all …]
/linux-4.1.27/drivers/media/usb/pvrusb2/
Dpvrusb2-debugifc.c134 ccnt = scnprintf(buf, acnt, "Driver hardware description: %s\n", in pvr2_debugifc_print_info()
137 ccnt = scnprintf(buf,acnt,"Driver state info:\n"); in pvr2_debugifc_print_info()
157 ccnt = scnprintf(buf,acnt,"USB link speed: %s\n", in pvr2_debugifc_print_status()
165 ccnt = scnprintf(buf,acnt,"GPIO state: dir=0x%x in=0x%x out=0x%x\n", in pvr2_debugifc_print_status()
169 ccnt = scnprintf(buf,acnt,"Streaming is %s\n", in pvr2_debugifc_print_status()
177 ccnt = scnprintf( in pvr2_debugifc_print_status()
Dpvrusb2-ctrl.c210 *blen = scnprintf( in pvr2_ctrl_get_valname()
226 *blen = scnprintf(bptr,bmax,"%s", in pvr2_ctrl_get_valname()
323 cnt = scnprintf(ptr,len,"%s%s%s", in gen_bitmask_string()
337 cnt = scnprintf(ptr,len,"%s0x%lx", in gen_bitmask_string()
343 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string()
349 cnt = scnprintf(ptr,len,"%s+0x%lx", in gen_bitmask_string()
556 *len = scnprintf(buf,maxlen,"%d",val); in pvr2_ctrl_value_to_sym_internal()
559 *len = scnprintf(buf,maxlen,"%s",val ? "true" : "false"); in pvr2_ctrl_value_to_sym_internal()
567 *len = scnprintf( in pvr2_ctrl_value_to_sym_internal()
Dpvrusb2-sysfs.c98 return scnprintf(buf, PAGE_SIZE, "%s\n", name); in show_name()
120 return scnprintf(buf, PAGE_SIZE, "%s\n", name); in show_type()
133 return scnprintf(buf, PAGE_SIZE, "%ld\n", val); in show_min()
146 return scnprintf(buf, PAGE_SIZE, "%ld\n", val); in show_max()
404 cnt = scnprintf(cip->name,sizeof(cip->name)-1,"ctl_%s", in pvr2_sysfs_add_control()
569 return scnprintf(buf,PAGE_SIZE,"%d\n", in v4l_minor_number_show()
581 return scnprintf(buf,PAGE_SIZE,"%s\n", in bus_info_show()
592 return scnprintf(buf,PAGE_SIZE,"%s\n", in hdw_name_show()
603 return scnprintf(buf,PAGE_SIZE,"%s\n", in hdw_desc_show()
615 return scnprintf(buf,PAGE_SIZE,"%d\n", in v4l_radio_minor_number_show()
[all …]
Dpvrusb2-std.c203 c2 = scnprintf(bufPtr,bufSize,";"); in pvr2_std_id_to_str()
209 c2 = scnprintf(bufPtr,bufSize, in pvr2_std_id_to_str()
213 c2 = scnprintf(bufPtr,bufSize,"/"); in pvr2_std_id_to_str()
218 c2 = scnprintf(bufPtr,bufSize, in pvr2_std_id_to_str()
Dpvrusb2-hdw.c2217 idx = scnprintf(hdw->identifier, sizeof(hdw->identifier) - 1, in pvr2_hdw_setup_low()
2220 idx = scnprintf(hdw->identifier, sizeof(hdw->identifier) - 1, in pvr2_hdw_setup_low()
2224 idx = scnprintf(hdw->identifier, sizeof(hdw->identifier) - 1, in pvr2_hdw_setup_low()
2615 cnt2 = scnprintf(hdw->name+cnt1,sizeof(hdw->name)-cnt1,"pvrusb2"); in pvr2_hdw_create()
2618 cnt2 = scnprintf(hdw->name+cnt1,sizeof(hdw->name)-cnt1,"_%c", in pvr2_hdw_create()
3027 bcnt = scnprintf(buf,sizeof(buf),"\"%s\" <-- ", in pvr2_hdw_commit_setup()
3035 bcnt += scnprintf(buf+bcnt,sizeof(buf)-bcnt," <%s>", in pvr2_hdw_commit_setup()
3867 ccnt = scnprintf(tbuf+bcnt, in pvr2_issue_simple_cmd()
3873 ccnt = scnprintf(tbuf+bcnt, in pvr2_issue_simple_cmd()
3882 ccnt = scnprintf(tbuf+bcnt, in pvr2_issue_simple_cmd()
[all …]
/linux-4.1.27/drivers/platform/x86/
Dalienware-wmi.c335 return scnprintf(buf, PAGE_SIZE, "[booting] running suspend\n"); in show_control_state()
337 return scnprintf(buf, PAGE_SIZE, "booting running [suspend]\n"); in show_control_state()
338 return scnprintf(buf, PAGE_SIZE, "booting [running] suspend\n"); in show_control_state()
483 return scnprintf(buf, PAGE_SIZE, in show_hdmi_cable()
486 return scnprintf(buf, PAGE_SIZE, in show_hdmi_cable()
490 return scnprintf(buf, PAGE_SIZE, "unconnected connected [unknown]\n"); in show_hdmi_cable()
507 return scnprintf(buf, PAGE_SIZE, in show_hdmi_source()
510 return scnprintf(buf, PAGE_SIZE, in show_hdmi_source()
514 return scnprintf(buf, PAGE_SIZE, "input gpu [unknown]\n"); in show_hdmi_source()
/linux-4.1.27/tools/perf/util/
Devsel.c286 r += scnprintf(bf + r, size - r, "%c", mod); \ in perf_evsel__add_modifiers()
299 r += scnprintf(bf + r, size - r, "%.*s", attr->precise_ip, "ppp"); in perf_evsel__add_modifiers()
315 int r = scnprintf(bf, size, "%s", __perf_evsel__hw_name(evsel->attr.config)); in perf_evsel__hw_name()
341 int r = scnprintf(bf, size, "%s", __perf_evsel__sw_name(evsel->attr.config)); in perf_evsel__sw_name()
349 r = scnprintf(bf, size, "mem:0x%" PRIx64 ":", addr); in __perf_evsel__bp_name()
352 r += scnprintf(bf + r, size - r, "r"); in __perf_evsel__bp_name()
355 r += scnprintf(bf + r, size - r, "w"); in __perf_evsel__bp_name()
358 r += scnprintf(bf + r, size - r, "x"); in __perf_evsel__bp_name()
427 return scnprintf(bf, size, "%s-%s-%s", perf_evsel__hw_cache[type][0], in __perf_evsel__hw_cache_type_op_res_name()
432 return scnprintf(bf, size, "%s-%s", perf_evsel__hw_cache[type][0], in __perf_evsel__hw_cache_type_op_res_name()
[all …]
Dannotate.c44 return scnprintf(bf, size, "%-6.6s %s", ins->name, ops->raw); in ins__raw_scnprintf()
50 if (ins->ops->scnprintf) in ins__scnprintf()
51 return ins->ops->scnprintf(ins, bf, size, ops); in ins__scnprintf()
97 return scnprintf(bf, size, "%-6.6s %s", ins->name, ops->target.name); in call__scnprintf()
102 return scnprintf(bf, size, "%-6.6s *%" PRIx64, ins->name, ops->target.addr); in call__scnprintf()
107 .scnprintf = call__scnprintf,
132 return scnprintf(bf, size, "%-6.6s %" PRIx64, ins->name, ops->target.offset); in jump__scnprintf()
137 .scnprintf = jump__scnprintf,
209 printed = scnprintf(bf, size, "%-6.6s ", ins->name); in lock__scnprintf()
231 .scnprintf = lock__scnprintf,
[all …]
Dcolor.c61 r += scnprintf(bf, size, "%s", color); in __color_vsnprintf()
64 r += scnprintf(bf + r, size - r, "%s", PERF_COLOR_RESET); in __color_vsnprintf()
66 r += scnprintf(bf + r, size - r, "%s", trail); in __color_vsnprintf()
Devlist.c1481 printed = scnprintf(buf, size, in perf_evlist__strerror_open()
1487 printed += scnprintf(buf + printed, size - printed, "\nHint:\t"); in perf_evlist__strerror_open()
1490 printed += scnprintf(buf + printed, size - printed, in perf_evlist__strerror_open()
1493 printed += scnprintf(buf + printed, size - printed, in perf_evlist__strerror_open()
1496 printed += scnprintf(buf + printed, size - printed, in perf_evlist__strerror_open()
1501 scnprintf(buf, size, "%s", emsg); in perf_evlist__strerror_open()
1516 printed += scnprintf(buf + printed, size - printed, in perf_evlist__strerror_mmap()
1523 printed += scnprintf(buf + printed, size - printed, in perf_evlist__strerror_mmap()
1528 printed += scnprintf(buf + printed, size - printed, in perf_evlist__strerror_mmap()
1532 scnprintf(buf, size, "%s", emsg); in perf_evlist__strerror_mmap()
Dtrace-event.c50 scnprintf(path, PATH_MAX, "%s/%s/%s/format", in tp_format()
Dsymbol-elf.c1406 scnprintf(kallsyms_filename, PATH_MAX, "%s/kallsyms", dir); in kcore_copy__parse_kallsyms()
1435 scnprintf(modules_filename, PATH_MAX, "%s/modules", dir); in kcore_copy__parse_modules()
1524 scnprintf(from_filename, PATH_MAX, "%s/%s", from_dir, name); in kcore_copy__copy_file()
1525 scnprintf(to_filename, PATH_MAX, "%s/%s", to_dir, name); in kcore_copy__copy_file()
1534 scnprintf(filename, PATH_MAX, "%s/%s", dir, name); in kcore_copy__unlink()
1604 scnprintf(from_filename, PATH_MAX, "%s/%s", from_dir, name); in kcore_copy__compare_file()
1605 scnprintf(to_filename, PATH_MAX, "%s/%s", to_dir, name); in kcore_copy__compare_file()
1651 scnprintf(kcore_filename, PATH_MAX, "%s/kcore", from_dir); in kcore_copy()
1652 scnprintf(extract_filename, PATH_MAX, "%s/kcore", to_dir); in kcore_copy()
Dutil.h300 return scnprintf(bf, size, "%s%s%s", path1, path1[0] ? "/" : "", path2); in path__join()
307 return scnprintf(bf, size, "%s%s%s%s%s", in path__join3()
Dtarget.c127 scnprintf(buf, buflen, "%s", err); in target__strerror()
Dcallchain.c837 printed = scnprintf(bf, bfsize, "%s %s", in callchain_list__sym_name()
840 printed = scnprintf(bf, bfsize, "%s", cl->ms.sym->name); in callchain_list__sym_name()
842 printed = scnprintf(bf, bfsize, "%#" PRIx64, cl->ip); in callchain_list__sym_name()
845 scnprintf(bf + printed, bfsize - printed, " %s", in callchain_list__sym_name()
Dannotate.h40 int (*scnprintf)(struct ins *ins, char *bf, size_t size, member
Ddso.c90 len += scnprintf(filename + len, dir_size, "%s", dso->long_name); in dso__read_binary_type_filename()
91 len += scnprintf(filename + len , size - len, ".debug%s", in dso__read_binary_type_filename()
1161 scnprintf(buf, buflen, "%s", err); in dso__strerror_load()
1170 scnprintf(buf, buflen, "%s", dso_load__error_str[idx]); in dso__strerror_load()
Dsrcline.c207 scnprintf(cmd, sizeof(cmd), "addr2line -e %s %016"PRIx64, in addr2line()
Dparse-options.c55 scnprintf(msg, sizeof(msg), "cannot be used with switch `%c'", in get_value()
58 scnprintf(msg, sizeof(msg), "cannot be used with %s", in get_value()
Dconfig.c545 scnprintf(buildid_dir, MAXPATHLEN-1, "%s", dir); in set_buildid_dir()
Dsymbol.c539 scnprintf(name, sizeof(name), "[%s]", line); in modules__parse()
1602 scnprintf(kallsyms_filename, sizeof(kallsyms_filename), in find_matching_kcore()
1637 scnprintf(path, sizeof(path), "%s/[kernel.kcore]/%s", buildid_dir, in dso__find_kallsyms()
1674 scnprintf(path, sizeof(path), "%s/[kernel.kallsyms]/%s", in dso__find_kallsyms()
Dutil.c605 scnprintf(path, sizeof(path), "%s/%s/comm", in find_process()
/linux-4.1.27/kernel/trace/
Dtrace_benchmark.c65 scnprintf(bm_str, BENCHMARK_EVENT_STRLEN, in trace_do_benchmark()
83 scnprintf(bm_str, BENCHMARK_EVENT_STRLEN, in trace_do_benchmark()
135 scnprintf(bm_str, BENCHMARK_EVENT_STRLEN, in trace_do_benchmark()
/linux-4.1.27/arch/powerpc/kernel/
Deeh.c173 n += scnprintf(buf+n, len-n, "%04x:%02x:%02x:%01x\n", in eeh_dump_dev_log()
181 n += scnprintf(buf+n, len-n, "dev/vend:%08x\n", cfg); in eeh_dump_dev_log()
185 n += scnprintf(buf+n, len-n, "cmd/stat:%x\n", cfg); in eeh_dump_dev_log()
191 n += scnprintf(buf+n, len-n, "sec stat:%x\n", cfg); in eeh_dump_dev_log()
195 n += scnprintf(buf+n, len-n, "brdg ctl:%x\n", cfg); in eeh_dump_dev_log()
203 n += scnprintf(buf+n, len-n, "pcix-cmd:%x\n", cfg); in eeh_dump_dev_log()
207 n += scnprintf(buf+n, len-n, "pcix-stat:%x\n", cfg); in eeh_dump_dev_log()
214 n += scnprintf(buf+n, len-n, "pci-e cap10:\n"); in eeh_dump_dev_log()
219 n += scnprintf(buf+n, len-n, "%02x:%x\n", 4*i, cfg); in eeh_dump_dev_log()
225 l = scnprintf(buffer, sizeof(buffer), in eeh_dump_dev_log()
[all …]
/linux-4.1.27/net/wireless/
Ddebugfs.c24 res = scnprintf(buf, buflen, fmt "\n", ##value); \
50 return scnprintf(buf + offset, in ht_print_chan()
55 return scnprintf(buf + offset, in ht_print_chan()
/linux-4.1.27/drivers/pci/
Dpci-label.c60 return scnprintf(buf, PAGE_SIZE, in find_smbios_instance_string()
64 return scnprintf(buf, PAGE_SIZE, in find_smbios_instance_string()
191 scnprintf(buf, PAGE_SIZE, "%llu\n", tmp->integer.value); in dsm_get_label()
194 scnprintf(buf, PAGE_SIZE, "%s\n", in dsm_get_label()
/linux-4.1.27/drivers/video/backlight/
Dlm3533_bl.c79 return scnprintf(buf, PAGE_SIZE, "%d\n", bl->id); in show_id()
88 return scnprintf(buf, PAGE_SIZE, "%u\n", channel); in show_als_channel()
108 return scnprintf(buf, PAGE_SIZE, "%d\n", enable); in show_als_en()
160 return scnprintf(buf, PAGE_SIZE, "%x\n", linear); in show_linear()
203 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in show_pwm()
Dlp855x_bl.c314 return scnprintf(buf, PAGE_SIZE, "%s\n", lp->chipname); in lp855x_get_chip_id()
328 return scnprintf(buf, PAGE_SIZE, "%s\n", strmode); in lp855x_get_bl_ctl_mode()
Dlp8788_bl.c242 return scnprintf(buf, PAGE_SIZE, "%s\n", strmode); in lp8788_get_bl_ctl_mode()
/linux-4.1.27/drivers/usb/wusbcore/
Dcbaf.c322 return scnprintf(buf, PAGE_SIZE, "%s\n", pr_chid); in cbaf_wusb_chid_show()
367 return scnprintf(buf, PAGE_SIZE, "%s\n", cbaf->host_name); in cbaf_wusb_host_name_show()
394 return scnprintf(buf, PAGE_SIZE, "0x%04x\n", cbaf->host_band_groups); in cbaf_wusb_host_band_groups_show()
435 return scnprintf(buf, PAGE_SIZE, "%s\n", pr_cdid); in cbaf_wusb_cdid_show()
476 return scnprintf(buf, PAGE_SIZE, "0x%04x\n", cbaf->device_band_groups); in cbaf_wusb_device_band_groups_show()
490 return scnprintf(buf, PAGE_SIZE, "%s\n", cbaf->device_name); in cbaf_wusb_device_name_show()
Dwusbhc.c63 return scnprintf(buf, PAGE_SIZE, "%u\n", wusbhc->trust_timeout); in wusb_trust_timeout_show()
/linux-4.1.27/tools/perf/arch/x86/util/
Dkvm-stat.c68 scnprintf(decode, DECODE_STR_LEN, "%#lx:%s", in mmio_event_decode_key()
112 scnprintf(decode, DECODE_STR_LEN, "%#llx:%s", in ioport_event_decode_key()
Dheader.c51 nb = scnprintf(buffer, sz, "%s,%u,%u,%u$", vendor, family, model, step); in get_cpuid()
/linux-4.1.27/drivers/hwmon/
Dlm73.c98 return scnprintf(buf, PAGE_SIZE, "%d\n", temp); in show_temp()
143 return scnprintf(buf, PAGE_SIZE, "%hu\n", lm73_convrates[res]); in show_convrate()
160 return scnprintf(buf, PAGE_SIZE, "%d\n", (ctrl >> attr->index) & 1); in show_maxmin_alarm()
Dds1621.c285 return scnprintf(buf, PAGE_SIZE, "%hu\n", data->update_interval); in show_convrate()
/linux-4.1.27/drivers/net/wireless/iwlwifi/pcie/
Dtrans.c1830 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_tx_queue_read()
1854 pos += scnprintf(buf + pos, bufsz - pos, "read: %u\n", in iwl_dbgfs_rx_queue_read()
1856 pos += scnprintf(buf + pos, bufsz - pos, "write: %u\n", in iwl_dbgfs_rx_queue_read()
1858 pos += scnprintf(buf + pos, bufsz - pos, "write_actual: %u\n", in iwl_dbgfs_rx_queue_read()
1860 pos += scnprintf(buf + pos, bufsz - pos, "need_update: %d\n", in iwl_dbgfs_rx_queue_read()
1862 pos += scnprintf(buf + pos, bufsz - pos, "free_count: %u\n", in iwl_dbgfs_rx_queue_read()
1865 pos += scnprintf(buf + pos, bufsz - pos, "closed_rb_num: %u\n", in iwl_dbgfs_rx_queue_read()
1868 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_rx_queue_read()
1891 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_interrupt_read()
1894 pos += scnprintf(buf + pos, bufsz - pos, "HW Error:\t\t\t %u\n", in iwl_dbgfs_interrupt_read()
[all …]
/linux-4.1.27/tools/perf/arch/
Dcommon.c77 scnprintf(buf, sizeof(buf), "%s/%s", path, name); in lookup_path()
94 scnprintf(buf, sizeof(buf), "%s%s", triplets[i], name); in lookup_triplets()
/linux-4.1.27/drivers/block/zram/
Dzram_drv.c62 return scnprintf(b, PAGE_SIZE, "%llu\n", \
103 return scnprintf(buf, PAGE_SIZE, "%llu\n", zram->disksize); in disksize_show()
116 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in initstate_show()
125 return scnprintf(buf, PAGE_SIZE, "%llu\n", in orig_data_size_show()
143 return scnprintf(buf, PAGE_SIZE, "%llu\n", val << PAGE_SHIFT); in mem_used_total_show()
156 return scnprintf(buf, PAGE_SIZE, "%d\n", val); in max_comp_streams_show()
170 return scnprintf(buf, PAGE_SIZE, "%llu\n", val << PAGE_SHIFT); in mem_limit_show()
203 return scnprintf(buf, PAGE_SIZE, "%llu\n", val << PAGE_SHIFT); in mem_used_max_show()
1082 ret = scnprintf(buf, PAGE_SIZE, in io_stat_show()
1108 ret = scnprintf(buf, PAGE_SIZE, in mm_stat_show()
Dzcomp.c278 sz += scnprintf(buf + sz, PAGE_SIZE - sz - 2, in zcomp_available_show()
281 sz += scnprintf(buf + sz, PAGE_SIZE - sz - 2, in zcomp_available_show()
285 sz += scnprintf(buf + sz, PAGE_SIZE - sz, "\n"); in zcomp_available_show()
/linux-4.1.27/drivers/leds/
Dleds-lm3533.c335 return scnprintf(buf, PAGE_SIZE, "%d\n", led->id); in show_id()
365 return scnprintf(buf, PAGE_SIZE, "%x\n", val); in show_risefalltime()
436 return scnprintf(buf, PAGE_SIZE, "%u\n", channel); in show_als_channel()
486 return scnprintf(buf, PAGE_SIZE, "%d\n", enable); in show_als_en()
539 return scnprintf(buf, PAGE_SIZE, "%x\n", linear); in show_linear()
585 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in show_pwm()
Dleds-blinkm.c162 return scnprintf(buf, PAGE_SIZE, "%02X\n", data->red); in show_color_common()
164 return scnprintf(buf, PAGE_SIZE, "%02X\n", data->green); in show_color_common()
166 return scnprintf(buf, PAGE_SIZE, "%02X\n", data->blue); in show_color_common()
276 return scnprintf(buf, PAGE_SIZE, in show_test()
Dleds-lp55xx-common.c90 return scnprintf(buf, PAGE_SIZE, "%d\n", led->led_current); in lp55xx_show_current()
123 return scnprintf(buf, PAGE_SIZE, "%d\n", led->max_current); in lp55xx_show_max_current()
Dleds-lp5521.c465 return scnprintf(buf, PAGE_SIZE, "%s\n", ret ? "FAIL" : "OK"); in lp5521_selftest()
/linux-4.1.27/drivers/misc/genwqe/
Dgenwqe_driver.h70 scnprintf(prefix, sizeof(prefix), "%s %s: ", in genwqe_hexdump()
/linux-4.1.27/tools/perf/arch/powerpc/util/
Dheader.c26 nb = scnprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr)); in get_cpuid()
/linux-4.1.27/drivers/remoteproc/
Dremoteproc_debugfs.c85 i = scnprintf(buf, 30, "%.28s (%d)\n", rproc_state_string[state], in rproc_state_read()
106 i = scnprintf(buf, sizeof(buf), "%.98s\n", rproc->name); in rproc_name_read()
/linux-4.1.27/tools/perf/ui/browsers/
Dannotate.c133 printed = scnprintf(bf, sizeof(bf), "%-*d ", in annotate_browser__write()
136 printed = scnprintf(bf, sizeof(bf), "%*s ", in annotate_browser__write()
148 printed = scnprintf(bf, sizeof(bf), "%" PRIx64 ": ", addr); in annotate_browser__write()
153 printed = scnprintf(bf, sizeof(bf), "%*d ", in annotate_browser__write()
162 printed = scnprintf(bf, sizeof(bf), "%*" PRIx64 ": ", in annotate_browser__write()
165 printed = scnprintf(bf, sizeof(bf), "%*s ", in annotate_browser__write()
175 if (dl->ins && dl->ins->ops->scnprintf) { in annotate_browser__write()
Dhists.c665 ret = scnprintf(hpp->buf, hpp->size, fmt, len, percent); in __hpp__slsmg_color_printf()
700 int ret = scnprintf(hpp->buf, hpp->size, \
857 ret = scnprintf(buf, size, " "); in hists__scnprintf_headers()
870 ret = scnprintf(dummy_hpp.buf, dummy_hpp.size, " "); in hists__scnprintf_headers()
1132 ret = scnprintf(hpp.buf, hpp.size, " "); in hist_browser__fprintf_entry()
1170 scnprintf(filename, sizeof(filename), "perf.hist.%d", browser->print_seq); in hist_browser__dump()
1275 printed = scnprintf(bf, size, in hists__browser_title()
1284 printed += scnprintf(bf + printed, size - printed, in hists__browser_title()
1289 printed += scnprintf(bf + printed, size - printed, in hists__browser_title()
1295 printed += scnprintf(bf + printed, size - printed, " [z]"); in hists__browser_title()
[all …]
/linux-4.1.27/drivers/staging/unisys/virtpci/
Dvirtpci.c1264 *p->str_pos += scnprintf(p->buf + *p->str_pos, *p->len - *p->str_pos, in print_vbus()
1285 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1293 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1299 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1310 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1318 str_pos += scnprintf(vbuf + str_pos, in info_debugfs_read()
1325 str_pos += scnprintf(vbuf + str_pos, len - str_pos, "\n"); in info_debugfs_read()
/linux-4.1.27/drivers/clocksource/
Dzevio-timer.c154 scnprintf(timer->clocksource_name, sizeof(timer->clocksource_name), in zevio_timer_add()
158 scnprintf(timer->clockevent_name, sizeof(timer->clockevent_name), in zevio_timer_add()
/linux-4.1.27/kernel/power/
Dwakelock.c48 str += scnprintf(str, end - str, "%s ", wl->name); in pm_show_wakelocks()
53 str += scnprintf(str, end - str, "\n"); in pm_show_wakelocks()
/linux-4.1.27/tools/perf/ui/
Dsetup.c22 scnprintf(buf, sizeof(buf), "%s/%s", LIBDIR, PERF_GTK_DSO); in setup_gtk_browser()
/linux-4.1.27/drivers/uwb/
Ddriver.c81 return scnprintf(buf, PAGE_SIZE, "%lu\n", beacon_timeout_ms); in beacon_timeout_ms_show()
Die.c86 r += scnprintf(buf + r, size - r, "%02x %02x", in uwb_ie_dump_hex()
91 r += scnprintf(buf + r, size - r, " %02x", (unsigned)*d++); in uwb_ie_dump_hex()
Daddress.c366 result = scnprintf(buf, buf_size, "%pM", addr); in __uwb_addr_print()
368 result = scnprintf(buf, buf_size, "%02x:%02x", in __uwb_addr_print()
Dlc-rc.c136 result = scnprintf(buf, PAGE_SIZE, "\n"); in ASIE_show()
/linux-4.1.27/drivers/net/wireless/iwlwifi/
Diwl-io.c246 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
250 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
/linux-4.1.27/drivers/s390/char/
Dtape_core.c98 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->medium_state); in tape_medium_state_show()
110 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->first_minor); in tape_first_minor_show()
122 return scnprintf(buf, PAGE_SIZE, "%s\n", (tdev->first_minor < 0) ? in tape_state_show()
137 return scnprintf(buf, PAGE_SIZE, "N/A\n"); in tape_operation_show()
141 rc = scnprintf(buf, PAGE_SIZE, "---\n"); in tape_operation_show()
147 rc = scnprintf(buf,PAGE_SIZE, "%s\n", tape_op_verbose[req->op]); in tape_operation_show()
163 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->char_data.block_size); in tape_blocksize_show()
/linux-4.1.27/drivers/input/mouse/
Dcyapa.c691 len = scnprintf(buf, PAGE_SIZE, "%s\n", BTN_ONLY_MODE_NAME); in cyapa_show_suspend_scanrate()
695 len = scnprintf(buf, PAGE_SIZE, "%s\n", OFF_MODE_NAME); in cyapa_show_suspend_scanrate()
699 len = scnprintf(buf, PAGE_SIZE, "%u\n", in cyapa_show_suspend_scanrate()
813 return scnprintf(buf, PAGE_SIZE, "%u\n", in cyapa_show_rt_suspend_scanrate()
924 error = scnprintf(buf, PAGE_SIZE, "%d.%d\n", cyapa->fw_maj_ver, in cyapa_show_fm_ver()
940 size = scnprintf(buf, PAGE_SIZE, "%s\n", cyapa->product_id); in cyapa_show_product_id()
1143 size = scnprintf(buf, PAGE_SIZE, "gen%d %s\n", in cyapa_show_mode()
/linux-4.1.27/fs/nfsd/
Dnfsctl.c451 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%d\n", rv); in write_threads()
892 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%d\n", in write_maxblksize()
930 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%u\n", maxconn); in write_maxconn()
963 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%ld\n", *time); in __nfsd4_write_time()
1044 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%s\n", in __write_recoverydir()
1116 return scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, "%c\n", in write_v4_end_grace()
Dfault_inject.c38 size = scnprintf(read_buf, sizeof(read_buf), "%llu\n", val); in fault_inject_read()
/linux-4.1.27/drivers/mfd/
Dkempld-core.c317 ret = scnprintf(pld->info.version, sizeof(pld->info.version), in kempld_get_info()
367 return scnprintf(buf, PAGE_SIZE, "%s\n", pld->info.version); in kempld_version_show()
375 return scnprintf(buf, PAGE_SIZE, "%d.%d\n", pld->info.spec_major, in kempld_specification_show()
384 return scnprintf(buf, PAGE_SIZE, "%s\n", kempld_get_type_string(pld)); in kempld_type_show()
Dlm3533-core.c293 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in show_output()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
Ddebugfs.c44 res = scnprintf(buf, buflen, fmt "\n", ##value); \
80 res = scnprintf(buf, buflen, fmt "\n", \
226 res = scnprintf(buf, sizeof(buf), "%u\n", queue_len); in tx_queue_len_read()
248 len = scnprintf(buf, sizeof(buf), "%c\n", status); in tx_queue_status_read()
/linux-4.1.27/security/selinux/
Dselinuxfs.c137 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", selinux_enforcing); in sel_read_enforce()
211 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", handle_unknown); in sel_read_handle_unknown()
334 length = scnprintf(tmpbuf, TMPBUFLEN, "%u", POLICYDB_VERSION_MAX); in sel_read_policyvers()
358 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_mls()
607 length = scnprintf(tmpbuf, TMPBUFLEN, "%u", selinux_checkreqprot); in sel_read_checkreqprot()
746 length = scnprintf(buf, SIMPLE_TRANSACTION_LIMIT, in sel_write_access()
1074 length = scnprintf(page, PAGE_SIZE, "%d %d", cur_enforcing, in sel_read_bool()
1294 length = scnprintf(tmpbuf, TMPBUFLEN, "%u", avc_cache_threshold); in sel_read_avc_cache_threshold()
1574 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", value); in sel_read_policycap()
/linux-4.1.27/arch/arm/mach-omap2/
Dusb-host.c473 scnprintf(phy_id, MAX_STR, "usb_phy_generic.%d", in usbhs_init_phys()
487 scnprintf(rail_name, MAX_STR, "hsusb%d_vcc", phy->port); in usbhs_init_phys()
/linux-4.1.27/drivers/power/
Dmax77693_charger.c308 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in fast_charge_timer_show()
369 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in top_off_threshold_current_show()
417 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in top_off_timer_show()
Dlp8788-charger.c649 return scnprintf(buf, PAGE_SIZE, "%s\n", desc[state]); in lp8788_show_charger_status()
663 return scnprintf(buf, PAGE_SIZE, "End Of Charge Time: %s\n", in lp8788_show_eoc_time()
683 return scnprintf(buf, PAGE_SIZE, "End Of Charge Level: %s\n", level); in lp8788_show_eoc_level()
Dab8500_fg.c2588 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7F)); in ab8505_powercut_flagtime_read()
2637 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7F)); in ab8505_powercut_maxtime_read()
2686 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0xF)); in ab8505_powercut_restart_read()
2735 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7F)); in ab8505_powercut_timer_read()
2758 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0xF0) >> 4); in ab8505_powercut_restart_counter_read()
2779 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x1)); in ab8505_powercut_read()
2828 return scnprintf(buf, PAGE_SIZE, "%d\n", ((reg_value & 0x10) >> 4)); in ab8505_powercut_flag_read()
2851 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7)); in ab8505_powercut_debounce_read()
2899 return scnprintf(buf, PAGE_SIZE, "%d\n", ((reg_value & 0x20) >> 5)); in ab8505_powercut_enable_status_read()
Dmax14577_charger.c545 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in show_fast_charge_timer()
/linux-4.1.27/drivers/staging/unisys/virthba/
Dvirthba.c1234 str_pos += scnprintf(vbuf + str_pos, in info_debugfs_read()
1238 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1241 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1245 str_pos += scnprintf(vbuf + str_pos, in info_debugfs_read()
1250 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1254 str_pos += scnprintf(vbuf + str_pos, in info_debugfs_read()
1257 str_pos += scnprintf(vbuf + str_pos, len - str_pos, "\n"); in info_debugfs_read()
/linux-4.1.27/tools/perf/util/include/linux/
Dkernel.h84 static inline int scnprintf(char * buf, size_t size, const char * fmt, ...) in scnprintf() function
/linux-4.1.27/drivers/iio/light/
Dcm3232.c296 len += scnprintf(buf + len, PAGE_SIZE - len, "%u.%06u ", in cm3232_get_it_available()
299 return len + scnprintf(buf + len, PAGE_SIZE - len, "\n"); in cm3232_get_it_available()
Dlm3533-als.c424 return scnprintf(buf, PAGE_SIZE, "%u\n", enable); in show_thresh_either_en()
481 return scnprintf(buf, PAGE_SIZE, "%u\n", zone); in show_zone()
537 return scnprintf(buf, PAGE_SIZE, "%u\n", val); in show_als_attr()
Dtcs3472.c223 len += scnprintf(buf + len, PAGE_SIZE - len, "0.%06d ", in tcs3472_show_int_time_available()
/linux-4.1.27/drivers/hid/
Dhid-lg4ff.c617 count += scnprintf(buf + count, PAGE_SIZE - count, "%s: %s", in lg4ff_alternate_modes_show()
626 count += scnprintf(buf + count, PAGE_SIZE - count, " *\n"); in lg4ff_alternate_modes_show()
628 count += scnprintf(buf + count, PAGE_SIZE - count, "\n"); in lg4ff_alternate_modes_show()
745 count = scnprintf(buf, PAGE_SIZE, "%u\n", entry->range); in range_show()
809 count = scnprintf(buf, PAGE_SIZE, "%s: %s\n", entry->real_tag, entry->real_name); in lg4ff_real_id_show()
Dhid-gt683r.c103 return scnprintf(buf, PAGE_SIZE, "%u\n", sysfs_mode); in mode_show()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Ddebugfs.c100 res = scnprintf(buf, sizeof(buf), "%u\n", queue_len); in tx_queue_len_read()
202 res = scnprintf(buf, sizeof(buf), "%d\n", state); in gpio_power_read()
451 (res += scnprintf(buf + res, DRIVER_STATE_BUF_LEN - res,\ in driver_state_read()
455 (res += scnprintf(buf + res, DRIVER_STATE_BUF_LEN - res,\ in driver_state_read()
549 (res += scnprintf(buf + res, buf_size - res, \ in vifs_state_read()
564 res += scnprintf(buf + res, buf_size - res, \ in vifs_state_read()
/linux-4.1.27/tools/perf/tests/
Dhists_cumulate.c203 scnprintf(buf, sizeof(buf), "Invalid hist entry #%zd", i); in do_test()
224 scnprintf(buf, sizeof(buf), "Invalid callchain entry #%zd/%zd", i, c); in do_test()
Ddso-data.c170 scnprintf(path, PATH_MAX, "%s/self/fd", procfs__mountpoint()); in open_files_cnt()
/linux-4.1.27/drivers/acpi/
Dacpi_pad.c290 return scnprintf(buf, PAGE_SIZE, "%d\n", round_robin_time); in acpi_pad_rrtime_show()
313 return scnprintf(buf, PAGE_SIZE, "%d\n", idle_pct); in acpi_pad_idlepct_show()
/linux-4.1.27/drivers/net/wireless/zd1211rw/
Dzd_rf.c116 return scnprintf(buffer, size, "%s", zd_rf_name(rf->type)); in zd_rf_scnprint_id()
Dzd_chip.c56 return scnprintf(buffer, size, "%02x-%02x-%02x", in scnprint_mac_oui()
65 i = scnprintf(buffer, size, "zd1211%s chip ", in scnprint_id()
68 i += scnprintf(buffer+i, size-i, " "); in scnprint_id()
70 i += scnprintf(buffer+i, size-i, " "); in scnprint_id()
72 i += scnprintf(buffer+i, size-i, " pa%1x %c%c%c%c%c", chip->pa_type, in scnprint_id()
/linux-4.1.27/drivers/rtc/
Drtc-proc.c29 size = scnprintf(name, NAME_SIZE, "rtc%d", rtc->id); in is_rtc_hctosys()
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_main.c356 return scnprintf(buf, PAGE_SIZE, "0x%x\n", dev->nic_info.pdev->vendor); in show_rev()
364 return scnprintf(buf, PAGE_SIZE, "%s\n", &dev->attr.fw_ver[0]); in show_fw_ver()
372 return scnprintf(buf, PAGE_SIZE, "%s\n", &dev->model_number[0]); in show_hca_type()
/linux-4.1.27/drivers/usb/gadget/udc/
Dnet2280.c1512 return scnprintf(buf, PAGE_SIZE, "%s\n", dev->driver->function); in function_show()
1538 t = scnprintf(next, size, "%s version " DRIVER_VERSION in registers_show()
1567 t = scnprintf(next, size, in registers_show()
1589 t = scnprintf(next, size, in registers_show()
1613 t = scnprintf(next, size, in registers_show()
1627 t = scnprintf(next, size, in registers_show()
1643 t = scnprintf(next, size, "\nirqs: "); in registers_show()
1652 t = scnprintf(next, size, " %s/%lu", ep->ep.name, ep->irqs); in registers_show()
1657 t = scnprintf(next, size, "\n"); in registers_show()
1693 t = scnprintf(next, size, in queues_show()
[all …]
Dnet2272.c1204 t = scnprintf(next, size, "%s version %s," in registers_show()
1219 t = scnprintf(next, size, "\ndmareq %02x: %s %s%s%s%s\n", in registers_show()
1239 t = scnprintf(next, size, in registers_show()
1256 t = scnprintf(next, size, in registers_show()
1272 t = scnprintf(next, size, in registers_show()
1285 t = scnprintf(next, size, in registers_show()
1295 t = scnprintf(next, size, in registers_show()
/linux-4.1.27/arch/arc/mm/
Dcache_arc700.c82 n += scnprintf(buf + n, len - n, str"\t\t: N/A\n"); \ in arc_cache_mumbojumbo()
84 n += scnprintf(buf + n, len - n, \ in arc_cache_mumbojumbo()
Dtlb.c612 n += scnprintf(buf + n, len - n, in arc_mmu_mumbojumbo()
/linux-4.1.27/mm/
Ddmapool.c79 temp = scnprintf(next, size, "poolinfo - 0.1\n"); in show_pools()
96 temp = scnprintf(next, size, "%-16s %4u %4Zu %4Zu %2u\n", in show_pools()
/linux-4.1.27/drivers/usb/phy/
Dphy-fsl-usb.c990 t = scnprintf(next, size, in show_fsl_usb2_otg_state()
997 t = scnprintf(next, size, in show_fsl_usb2_otg_state()
1014 t = scnprintf(next, size, in show_fsl_usb2_otg_state()
1021 t = scnprintf(next, size, in show_fsl_usb2_otg_state()
Dphy-mv-usb.c535 return scnprintf(buf, PAGE_SIZE, "%d\n", in get_a_bus_req()
607 return scnprintf(buf, PAGE_SIZE, "%d\n", in get_a_bus_drop()
/linux-4.1.27/Documentation/connector/
Dcn_test.c143 scnprintf(data, sizeof(data), "counter = %u", in cn_test_timer_func()
/linux-4.1.27/drivers/usb/chipidea/
Dotg_fsm.c43 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in get_a_bus_req()
87 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_drop); in get_a_bus_drop()
128 t = scnprintf(next, size, "%d\n", ci->fsm.b_bus_req); in get_b_bus_req()
/linux-4.1.27/drivers/uio/
Duio_fsl_elbc_gpcm.c82 return scnprintf(buf, PAGE_SIZE, "0x%08x\n", in reg_show()
86 return scnprintf(buf, PAGE_SIZE, "0x%08x\n", in reg_show()
/linux-4.1.27/drivers/staging/iio/magnetometer/
Dhmc5843_core.c260 len += scnprintf(buf + len, PAGE_SIZE - len, in hmc5843_show_samp_freq_avail()
321 len += scnprintf(buf + len, PAGE_SIZE - len, in hmc5843_show_scale_avail()
/linux-4.1.27/drivers/xen/xen-pciback/
Dpci_stub.c1179 count += scnprintf(buf + count, PAGE_SIZE - count, in pcistub_slot_show()
1208 scnprintf(buf + count, PAGE_SIZE - count, in pcistub_irq_handler_show()
1295 count += scnprintf(buf + count, PAGE_SIZE - count, in pcistub_quirk_show()
1311 count += scnprintf(buf + count, PAGE_SIZE - count, in pcistub_quirk_show()
1383 scnprintf(buf + count, PAGE_SIZE - count, "%s\n", in permissive_show()
/linux-4.1.27/drivers/ata/
Data_piix.c1388 p += scnprintf(p, end - p, " XX"); in piix_init_sata_map()
1392 p += scnprintf(p, end - p, " --"); in piix_init_sata_map()
1399 p += scnprintf(p, end - p, " IDE IDE"); in piix_init_sata_map()
1403 p += scnprintf(p, end - p, " P%d", map[i]); in piix_init_sata_map()
/linux-4.1.27/include/linux/usb/
Dwusb.h241 return scnprintf(pr_ckhdid, size, in ckhdid_printf()
/linux-4.1.27/drivers/staging/fbtft/
Dfbtft-sysfs.c105 len += scnprintf(&buf[len], PAGE_SIZE, in sprintf_gamma()
/linux-4.1.27/kernel/
Dparams.c251 return scnprintf(buffer, PAGE_SIZE, format, \
297 return scnprintf(buffer, PAGE_SIZE, "%s", *((char **)kp->arg)); in param_get_charp()
838 return scnprintf(buf, PAGE_SIZE, "%s\n", vattr->version); in __modver_version_show()
Dsysctl_binary.c1028 str += scnprintf(str, end - str, "%lu\t", value); in bin_intvec()
1099 str += scnprintf(str, end - str, "%lu\t", value); in bin_ulongvec()
1209 len = scnprintf(buf, sizeof(buf), "%hu.%hu", in bin_dn_node_address()
Dworkqueue.c4827 return scnprintf(buf, PAGE_SIZE, "%d\n", (bool)!(wq->flags & WQ_UNBOUND)); in per_cpu_show()
4836 return scnprintf(buf, PAGE_SIZE, "%d\n", wq->saved_max_active); in max_active_show()
4870 written += scnprintf(buf + written, PAGE_SIZE - written, in wq_pool_ids_show()
4875 written += scnprintf(buf + written, PAGE_SIZE - written, "\n"); in wq_pool_ids_show()
4888 written = scnprintf(buf, PAGE_SIZE, "%d\n", wq->unbound_attrs->nice); in wq_nice_show()
4937 written = scnprintf(buf, PAGE_SIZE, "%*pb\n", in wq_cpumask_show()
4970 written = scnprintf(buf, PAGE_SIZE, "%d\n", in wq_numa_show()
/linux-4.1.27/drivers/hwtracing/coresight/
Dcoresight.c385 return scnprintf(buf, PAGE_SIZE, "%u\n", (unsigned)csdev->activated); in enable_sink_show()
415 return scnprintf(buf, PAGE_SIZE, "%u\n", (unsigned)csdev->enable); in enable_source_show()
/linux-4.1.27/drivers/iio/common/st_sensors/
Dst_sensors_core.c522 len += scnprintf(buf + len, PAGE_SIZE - len, "%d ", in st_sensors_sysfs_sampling_frequency_avail()
544 len += scnprintf(buf + len, PAGE_SIZE - len, "0.%06u ", in st_sensors_sysfs_scale_avail()
/linux-4.1.27/net/tipc/
Dbearer.c117 ret = scnprintf(buf, len, "%s(%s)", m_ptr->name, addr_str); in tipc_media_addr_printf()
121 ret = scnprintf(buf, len, "UNKNOWN(%u)", a->media_id); in tipc_media_addr_printf()
123 ret += scnprintf(buf - ret, len + ret, in tipc_media_addr_printf()
/linux-4.1.27/drivers/staging/speakup/
Dkobjects.c44 len = scnprintf(buf_pointer, bufsize, "%d\t%s\n", in chars_chartab_show()
68 scnprintf(buf_pointer, bufsize, "%d\t%s\n", i, cp); in chars_chartab_show()
711 printed = scnprintf(buf_pointer, bufsize, "%d\t%s\n", in message_show_helper()
/linux-4.1.27/drivers/md/bcache/
Dsysfs.c813 ret = scnprintf(buf, PAGE_SIZE, in SHOW()
828 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in SHOW()
832 ret += scnprintf(buf + ret, PAGE_SIZE - ret, "]\n"); in SHOW()
/linux-4.1.27/Documentation/filesystems/
Dsysfs.txt213 buffer. This is the return value of scnprintf().
215 - show() should always use scnprintf().
234 return scnprintf(buf, PAGE_SIZE, "%s\n", dev->name);
/linux-4.1.27/lib/
Dbitmap.c473 n = list ? scnprintf(buf, len, "%*pbl", nmaskbits, maskp) : in bitmap_print_to_pagebuf()
474 scnprintf(buf, len, "%*pb", nmaskbits, maskp); in bitmap_print_to_pagebuf()
/linux-4.1.27/drivers/input/touchscreen/
Datmel_mxt_ts.c2089 return scnprintf(buf, PAGE_SIZE, "%u.%u.%02X\n", in mxt_fw_version_show()
2099 return scnprintf(buf, PAGE_SIZE, "%u.%u\n", in mxt_hw_version_show()
2110 count += scnprintf(buf + count, PAGE_SIZE - count, in mxt_show_instance()
2114 count += scnprintf(buf + count, PAGE_SIZE - count, in mxt_show_instance()
2116 count += scnprintf(buf + count, PAGE_SIZE - count, "\n"); in mxt_show_instance()
2143 count += scnprintf(buf + count, PAGE_SIZE - count, in mxt_object_show()
/linux-4.1.27/drivers/cpufreq/
Dcpufreq.c583 return scnprintf(buf, CPUFREQ_NAME_PLEN, "%s\n", in show_scaling_governor()
626 return scnprintf(buf, CPUFREQ_NAME_PLEN, "%s\n", cpufreq_driver->name); in show_scaling_driver()
647 i += scnprintf(&buf[i], CPUFREQ_NAME_PLEN, "%s ", t->name); in show_scaling_available_governors()
661 i += scnprintf(&buf[i], (PAGE_SIZE - i - 2), " "); in cpufreq_show_cpus()
662 i += scnprintf(&buf[i], (PAGE_SIZE - i - 2), "%u", cpu); in cpufreq_show_cpus()
/linux-4.1.27/drivers/staging/unisys/visorchipset/
Dvisorchipset_main.c360 return scnprintf(buf, PAGE_SIZE, "%u\n", tool_action); in toolaction_show()
393 return scnprintf(buf, PAGE_SIZE, "%u\n", in boottotool_show()
427 return scnprintf(buf, PAGE_SIZE, "%i\n", error); in error_show()
457 return scnprintf(buf, PAGE_SIZE, "%i\n", text_id); in textid_show()
487 return scnprintf(buf, PAGE_SIZE, "%hu\n", remaining_steps); in remaining_steps_show()
/linux-4.1.27/drivers/input/misc/
Dims-pcu.c1067 return scnprintf(buf, PAGE_SIZE, "%.*s\n", attr->field_length, field); in ims_pcu_attribute_show()
1223 return scnprintf(buf, PAGE_SIZE, "%d\n", pcu->update_firmware_status); in ims_pcu_update_firmware_status_show()
1326 return scnprintf(buf, PAGE_SIZE, "%x\n", data); in ims_pcu_ofn_reg_data_show()
1361 error = scnprintf(buf, PAGE_SIZE, "%x\n", pcu->ofn_reg_addr); in ims_pcu_ofn_reg_addr_show()
1414 return scnprintf(buf, PAGE_SIZE, "%d\n", !!(data & (1 << attr->nr))); in ims_pcu_ofn_bit_show()
/linux-4.1.27/net/ipv4/
Dtcp_probe.c193 return scnprintf(tbuf, n, in tcpprobe_sprint()
/linux-4.1.27/net/ethernet/
Deth.c390 return scnprintf(buf, PAGE_SIZE, "%*phC\n", len, addr); in sysfs_format_mac()
/linux-4.1.27/fs/9p/
Dcache.c55 return scnprintf(v9ses->cachetag, CACHETAG_LEN, "%lu", jiffies); in v9fs_random_cachetag()
/linux-4.1.27/arch/arm/plat-pxa/
Ddma.c203 scnprintf(chan_name, sizeof(chan_name), "%d", ch); in pxa_dma_dbg_alloc_chan()
/linux-4.1.27/security/integrity/ima/
Dima_fs.c36 len = scnprintf(tmpbuf, TMPBUFLEN, "%li\n", atomic_long_read(val)); in ima_show_htable_value()
/linux-4.1.27/drivers/media/usb/uvc/
Duvc_video.c882 count += scnprintf(buf + count, size - count, in uvc_video_stats_dump()
890 count += scnprintf(buf + count, size - count, in uvc_video_stats_dump()
895 count += scnprintf(buf + count, size - count, in uvc_video_stats_dump()
899 count += scnprintf(buf + count, size - count, in uvc_video_stats_dump()
/linux-4.1.27/net/sunrpc/auth_gss/
Dauth_gss.c452 len = scnprintf(p, buflen, "mech=%s uid=%d ", mech->gm_name, in gss_encode_v1_msg()
458 len = scnprintf(p, buflen, "target=%s ", target_name); in gss_encode_v1_msg()
464 len = scnprintf(p, buflen, "service=%s ", service_name); in gss_encode_v1_msg()
470 len = scnprintf(p, buflen, "enctypes=%s ", in gss_encode_v1_msg()
476 len = scnprintf(p, buflen, "\n"); in gss_encode_v1_msg()
/linux-4.1.27/include/linux/
Ddevice-mapper.h546 0 : scnprintf(result + sz, maxlen - sz, x))
Duwb.h821 return scnprintf(buf, PAGE_SIZE, "%d %d %d\n", min, max, avg); in stats_show()
/linux-4.1.27/drivers/iio/magnetometer/
Dmag3110.c108 len += scnprintf(buf + len, PAGE_SIZE - len, in mag3110_show_int_plus_micros()
/linux-4.1.27/net/wimax/
Dstack.c454 total += scnprintf(addr_str + total, addr_str_size - total, in wimax_addr_scnprint()
/linux-4.1.27/net/core/
Dsysctl_net_core.c160 len = scnprintf(kbuf, len, "%*pb", cpumask_pr_args(mask)); in flow_limit_cpu_sysctl()
/linux-4.1.27/drivers/base/
Dcpu.c248 n = scnprintf(buf, len, "%*pbl", cpumask_pr_args(offline)); in print_cpus_offline()
/linux-4.1.27/arch/ia64/kernel/
Dtopology.c224 return scnprintf(buf, PAGE_SIZE, "%*pb\n", in show_shared_cpu_map()
/linux-4.1.27/Documentation/zh_CN/filesystems/
Dsysfs.txt236 return scnprintf(buf, PAGE_SIZE, "%s\n", dev->name);
/linux-4.1.27/drivers/iio/accel/
Dmma8452.c90 len += scnprintf(buf + len, PAGE_SIZE - len, in mma8452_show_int_plus_micros()
/linux-4.1.27/drivers/devfreq/
Ddevfreq.c833 count += scnprintf(&buf[count], (PAGE_SIZE - count - 2), in available_governors_show()
980 count += scnprintf(&buf[count], (PAGE_SIZE - count - 2), in available_frequencies_show()
/linux-4.1.27/fs/nilfs2/
Dsysfs.c37 count = scnprintf(buf, PAGE_SIZE, \
912 return scnprintf(buf, sizeof(sbp[0]->s_volume_name), "%s\n", in nilfs_dev_volume_name_show()
/linux-4.1.27/drivers/cdrom/
Dcdrom.c3437 ret = scnprintf(info + *pos, max_size - *pos, header); in cdrom_print_info()
3446 ret = scnprintf(info + *pos, max_size - *pos, in cdrom_print_info()
3450 ret = scnprintf(info + *pos, max_size - *pos, in cdrom_print_info()
3454 ret = scnprintf(info + *pos, max_size - *pos, in cdrom_print_info()
3458 ret = scnprintf(info + *pos, max_size - *pos, in cdrom_print_info()
3546 if (!scnprintf(info + pos, max_size - pos, "\n\n")) in cdrom_sysctl_info()
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_gpu_error.c1239 len = scnprintf(error->error_msg, sizeof(error->error_msg), in i915_error_capture_msg()
1244 len += scnprintf(error->error_msg + len, in i915_error_capture_msg()
1250 scnprintf(error->error_msg + len, sizeof(error->error_msg) - len, in i915_error_capture_msg()
/linux-4.1.27/tools/perf/ui/stdio/
Dhist.c334 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in hist_entry__snprintf()
/linux-4.1.27/fs/nfs/
Dunlink.c542 slen = scnprintf(silly, sizeof(silly), in nfs_sillyrename()

12