Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 200 of 1974) sorted by relevance

12345678910

/linux-4.4.14/drivers/media/common/siano/
Dsmsdvb-debugfs.c63 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
65 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
67 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
69 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
71 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
73 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
75 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
77 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
79 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
81 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
[all …]
/linux-4.4.14/drivers/hid/
Dhid-picolcd_debugfs.c416 snprintf(buff, BUFF_SZ, "\nout report %d (size %d) = ", in picolcd_debug_out_report()
427 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
430 snprintf(buff, BUFF_SZ, "\tGPO state: 0x%02x\n", raw_data[1]); in picolcd_debug_out_report()
435 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
438 snprintf(buff, BUFF_SZ, "\tBrightness: 0x%02x\n", raw_data[1]); in picolcd_debug_out_report()
443 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
446 snprintf(buff, BUFF_SZ, "\tContrast: 0x%02x\n", raw_data[1]); in picolcd_debug_out_report()
451 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
454 snprintf(buff, BUFF_SZ, "\tDuration: 0x%02x%02x (%dms)\n", in picolcd_debug_out_report()
460 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
[all …]
Dhid-lenovo.c226 return snprintf(buf, PAGE_SIZE, "%u\n", cptkbd_data->fn_lock); in attr_fn_lock_show_cptkbd()
256 return snprintf(buf, PAGE_SIZE, "%u\n", in attr_sensitivity_show_cptkbd()
393 return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->press_to_select); in attr_press_to_select_show_tpkbd()
423 return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->dragging); in attr_dragging_show_tpkbd()
453 return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->release_to_select); in attr_release_to_select_show_tpkbd()
483 return snprintf(buf, PAGE_SIZE, "%u\n", data_pointer->select_right); in attr_select_right_show_tpkbd()
513 return snprintf(buf, PAGE_SIZE, "%u\n", in attr_sensitivity_show_tpkbd()
542 return snprintf(buf, PAGE_SIZE, "%u\n", in attr_press_speed_show_tpkbd()
697 snprintf(name_mute, name_sz, "%s:amber:mute", dev_name(dev)); in lenovo_probe_tpkbd()
698 snprintf(name_micmute, name_sz, "%s:amber:micmute", dev_name(dev)); in lenovo_probe_tpkbd()
Dhid-debug.c466 snprintf(buf, HID_DEBUG_BUFSIZE, "%s", in resolv_usage_page()
476 snprintf(buf, HID_DEBUG_BUFSIZE, "%04x", page); in resolv_usage_page()
496 snprintf(buf+len, max(0, HID_DEBUG_BUFSIZE - len), "."); in hid_resolv_usage()
507 snprintf(buf + len, in hid_resolv_usage()
519 snprintf(buf + len, max(0, HID_DEBUG_BUFSIZE - len - 1), in hid_resolv_usage()
694 snprintf(buf, HID_DEBUG_BUFSIZE - 1, in hid_dump_report()
700 snprintf(buf, HID_DEBUG_BUFSIZE - 1, in hid_dump_report()
718 snprintf(buf + len, HID_DEBUG_BUFSIZE - len - 1, " = %d\n", value); in hid_dump_input()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_debug.c31 len += snprintf(page + len, count - len, "%s\n", DRIVERVERSION); in proc_get_drv_version()
102 …len += snprintf(page + len, count - len, "usb_read8(0x%x)=0x%x\n", proc_get_read_addr, usb_read8(p… in proc_get_read_reg()
105 …len += snprintf(page + len, count - len, "usb_read16(0x%x)=0x%x\n", proc_get_read_addr, usb_read16… in proc_get_read_reg()
108 …len += snprintf(page + len, count - len, "usb_read32(0x%x)=0x%x\n", proc_get_read_addr, usb_read32… in proc_get_read_reg()
111 len += snprintf(page + len, count - len, "error read length=%d\n", proc_get_read_len); in proc_get_read_reg()
156 len += snprintf(page + len, count - len, "fwstate=0x%x\n", get_fwstate(pmlmepriv)); in proc_get_fwstate()
172 …len += snprintf(page + len, count - len, "auth_alg=0x%x, enc_alg=0x%x, auth_type=0x%x, enc_type=0x… in proc_get_sec_info()
191 len += snprintf(page + len, count - len, "pmlmeinfo->state=0x%x\n", pmlmeinfo->state); in proc_get_mlmext_state()
207 len += snprintf(page + len, count - len, "qos_option=%d\n", pmlmepriv->qospriv.qos_option); in proc_get_qos_option()
223 len += snprintf(page + len, count - len, "ht_option=%d\n", pmlmepriv->htpriv.ht_option); in proc_get_ht_option()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Ddebug.c205 len += snprintf(buf + len, sizeof(buf) - len, in read_file_beacon()
210 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n", in read_file_beacon()
213 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n\n", in read_file_beacon()
217 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
221 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
225 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
229 len += snprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n", in read_file_beacon()
233 len += snprintf(buf + len, sizeof(buf) - len, in read_file_beacon()
324 len += snprintf(buf + len, sizeof(buf) - len, in read_file_debug()
328 len += snprintf(buf + len, sizeof(buf) - len, in read_file_debug()
[all …]
Dsysfs.c16 return snprintf(buf, PAGE_SIZE, "%d\n", get); \
43 return snprintf(buf, PAGE_SIZE, "%d\n", get); \
66 return snprintf(buf, PAGE_SIZE, "%d\n", ATH5K_ANI_MAX_NOISE_IMM_LVL); in ath5k_attr_show_noise_immunity_level_max()
75 return snprintf(buf, PAGE_SIZE, "%d\n", ATH5K_ANI_MAX_FIRSTEP_LVL); in ath5k_attr_show_firstep_level_max()
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_stat.c62 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_inst_show()
69 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_min_ver_show()
75 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_max_ver_show()
81 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_portals_show()
88 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_INST_NUM_NODES); in iscsi_stat_instance_nodes_show()
94 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_sessions_show()
111 return snprintf(page, PAGE_SIZE, "%u\n", sess_err_count); in iscsi_stat_instance_fail_sess_show()
120 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_fail_type_show()
130 return snprintf(page, PAGE_SIZE, "%s\n", in iscsi_stat_instance_fail_rem_name_show()
138 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DISCONTINUITY_TIME); in iscsi_stat_instance_disc_time_show()
[all …]
/linux-4.4.14/drivers/target/
Dtarget_core_stat.c68 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_inst_show()
73 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show()
78 return snprintf(page, PAGE_SIZE, "Target\n"); in target_stat_role_show()
83 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show()
118 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_tgt_inst_show()
123 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->dev_index); in target_stat_tgt_indx_show()
129 return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT); in target_stat_tgt_num_lus_show()
136 return snprintf(page, PAGE_SIZE, "activated"); in target_stat_tgt_status_show()
138 return snprintf(page, PAGE_SIZE, "deactivated"); in target_stat_tgt_status_show()
151 return snprintf(page, PAGE_SIZE, "%u\n", non_accessible_lus); in target_stat_tgt_non_access_lus_show()
[all …]
/linux-4.4.14/fs/ocfs2/dlm/
Ddlmdebug.c262 out += snprintf(buf + out, len - out, "%.*s%08x", in stringify_lockname()
266 out += snprintf(buf + out, len - out, "%.*s", in stringify_lockname()
278 out += snprintf(buf + out, len - out, "%d ", i); in stringify_nodemap()
296 out += snprintf(buf + out, len - out, in dump_mle()
303 out += snprintf(buf + out, len - out, "Maybe="); in dump_mle()
306 out += snprintf(buf + out, len - out, "\n"); in dump_mle()
308 out += snprintf(buf + out, len - out, "Vote="); in dump_mle()
311 out += snprintf(buf + out, len - out, "\n"); in dump_mle()
313 out += snprintf(buf + out, len - out, "Response="); in dump_mle()
316 out += snprintf(buf + out, len - out, "\n"); in dump_mle()
[all …]
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_debugfs.c157 snprintf(buffer, in lpfc_debugfs_disc_trc_data()
160 len += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
168 snprintf(buffer, in lpfc_debugfs_disc_trc_data()
171 len += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_disc_trc_data()
223 snprintf(buffer, in lpfc_debugfs_slow_ring_trc_data()
226 len += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
234 snprintf(buffer, in lpfc_debugfs_slow_ring_trc_data()
237 len += snprintf(buf+len, size-len, buffer, in lpfc_debugfs_slow_ring_trc_data()
297 len += snprintf(buf+len, size-len, "HBQ %d Info\n", i); in lpfc_debugfs_hbqinfo_data()
305 len += snprintf(buf+len, size-len, in lpfc_debugfs_hbqinfo_data()
[all …]
Dlpfc_attr.c106 return snprintf(buf, PAGE_SIZE, LPFC_MODULE_DESC "\n"); in lpfc_drvr_version_show()
126 return snprintf(buf, PAGE_SIZE, "1\n"); in lpfc_enable_fip_show()
128 return snprintf(buf, PAGE_SIZE, "0\n"); in lpfc_enable_fip_show()
141 return snprintf(buf, PAGE_SIZE, "BlockGuard Enabled\n"); in lpfc_bg_info_show()
143 return snprintf(buf, PAGE_SIZE, in lpfc_bg_info_show()
146 return snprintf(buf, PAGE_SIZE, in lpfc_bg_info_show()
158 return snprintf(buf, PAGE_SIZE, "%llu\n", in lpfc_bg_guard_err_show()
170 return snprintf(buf, PAGE_SIZE, "%llu\n", in lpfc_bg_apptag_err_show()
182 return snprintf(buf, PAGE_SIZE, "%llu\n", in lpfc_bg_reftag_err_show()
200 return snprintf(buf, PAGE_SIZE, "%s\n",lpfc_info(host)); in lpfc_info_show()
[all …]
/linux-4.4.14/tools/lib/api/fs/
Dtracing_path.c22 snprintf(tracing_mnt, sizeof(tracing_mnt), "%s", mountpoint); in __tracing_path_set()
23 snprintf(tracing_path, sizeof(tracing_path), "%s/%s", in __tracing_path_set()
25 snprintf(tracing_events_path, sizeof(tracing_events_path), "%s/%s%s", in __tracing_path_set()
101 snprintf(buf, size, in strerror_open()
107 snprintf(buf, size, "%s", in strerror_open()
114 snprintf(buf, size, in strerror_open()
121 snprintf(buf, size, "%s", strerror_r(err, sbuf, sizeof(sbuf))); in strerror_open()
132 snprintf(path, PATH_MAX, "%s/%s", sys, name ?: "*"); in tracing_path__strerror_open_tp()
Dfs.c225 snprintf(upper_name, name_len, "PERF_%s_ENVIRONMENT", fs->name); in mount_overload()
311 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_ull()
324 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_int()
337 snprintf(path, sizeof(path), "%s/sys/%s", procfs, sysctl); in sysctl__read_int()
/linux-4.4.14/fs/nilfs2/
Dsysfs.c122 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_inodes_count_show()
130 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_blocks_count_show()
143 return snprintf(buf, PAGE_SIZE, snapshot_readme_str); in nilfs_snapshot_README_show()
244 return snprintf(buf, PAGE_SIZE, mounted_snapshots_readme_str); in nilfs_mounted_snapshots_README_show()
282 return snprintf(buf, PAGE_SIZE, "%llu\n", ncheckpoints); in nilfs_checkpoints_checkpoints_number_show()
305 return snprintf(buf, PAGE_SIZE, "%llu\n", nsnapshots); in nilfs_checkpoints_snapshots_number_show()
319 return snprintf(buf, PAGE_SIZE, "%llu\n", last_cno); in nilfs_checkpoints_last_seg_checkpoint_show()
333 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_checkpoints_next_checkpoint_show()
349 return snprintf(buf, PAGE_SIZE, checkpoints_readme_str); in nilfs_checkpoints_README_show()
380 return snprintf(buf, PAGE_SIZE, "%lu\n", nilfs->ns_nsegments); in nilfs_segments_segments_number_show()
[all …]
/linux-4.4.14/sound/soc/fsl/
Dimx-audmux.c89 ret = snprintf(buf, PAGE_SIZE, "PDCR: %08x\nPTCR: %08x\n", in audmux_read_file()
93 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
97 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
101 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
105 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
108 ret += snprintf(buf + ret, PAGE_SIZE - ret, "\n"); in audmux_read_file()
111 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
115 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
119 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
123 ret += snprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
[all …]
/linux-4.4.14/drivers/scsi/fnic/
Dfnic_trace.c141 len += snprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data()
183 len += snprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data()
222 len = snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
226 len += snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
243 len += snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
247 len += snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
259 len += snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
263 len += snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
277 len += snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
282 len += snprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
[all …]
Dfnic_attrs.c29 return snprintf(buf, PAGE_SIZE, "%s\n", fnic_state_str[fnic->state]); in fnic_show_state()
35 return snprintf(buf, PAGE_SIZE, "%s\n", DRV_VERSION); in fnic_show_drv_version()
43 return snprintf(buf, PAGE_SIZE, "%s\n", (lp->link_up) in fnic_show_link_state()
/linux-4.4.14/drivers/scsi/qla4xxx/
Dql4_attr.c160 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d (%x)\n", in qla4xxx_fw_version_show()
164 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d.%02d\n", in qla4xxx_fw_version_show()
174 return snprintf(buf, PAGE_SIZE, "%s\n", ha->serial_number); in qla4xxx_serial_num_show()
182 return snprintf(buf, PAGE_SIZE, "%d.%02d\n", ha->fw_info.iscsi_major, in qla4xxx_iscsi_version_show()
191 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d.%02d\n", in qla4xxx_optrom_version_show()
201 return snprintf(buf, PAGE_SIZE, "0x%08X\n", ha->board_id); in qla4xxx_board_id_show()
211 return snprintf(buf, PAGE_SIZE, "0x%08X%8X\n", ha->firmware_state, in qla4xxx_fw_state_show()
224 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_cnt); in qla4xxx_phy_port_cnt_show()
236 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_num); in qla4xxx_phy_port_num_show()
248 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->iscsi_pci_func_cnt); in qla4xxx_iscsi_func_cnt_show()
[all …]
/linux-4.4.14/drivers/s390/char/
Dtape_3590.c975 snprintf(exception, BUFSIZE, "Data degraded"); in tape_3590_print_mim_msg_f0()
978 snprintf(exception, BUFSIZE, "Data degraded in partion %i", in tape_3590_print_mim_msg_f0()
982 snprintf(exception, BUFSIZE, "Medium degraded"); in tape_3590_print_mim_msg_f0()
985 snprintf(exception, BUFSIZE, "Medium degraded in partition %i", in tape_3590_print_mim_msg_f0()
989 snprintf(exception, BUFSIZE, "Block 0 Error"); in tape_3590_print_mim_msg_f0()
992 snprintf(exception, BUFSIZE, "Medium Exception 0x%02x", in tape_3590_print_mim_msg_f0()
996 snprintf(exception, BUFSIZE, "0x%02x", in tape_3590_print_mim_msg_f0()
1003 snprintf(service, BUFSIZE, "Reference Media maintenance " in tape_3590_print_mim_msg_f0()
1007 snprintf(service, BUFSIZE, "0x%02x", in tape_3590_print_mim_msg_f0()
1039 snprintf(exception, BUFSIZE, "Effect of failure is unknown"); in tape_3590_print_io_sim_msg_f1()
[all …]
Dsclp_cpi_sys.c227 rc = snprintf(page, PAGE_SIZE, "%s\n", system_name); in system_name_show()
259 rc = snprintf(page, PAGE_SIZE, "%s\n", sysplex_name); in sysplex_name_show()
291 rc = snprintf(page, PAGE_SIZE, "%s\n", system_type); in system_type_show()
325 return snprintf(page, PAGE_SIZE, "%#018llx\n", level); in system_level_show()
Dsclp_ocf.c94 rc = snprintf(page, PAGE_SIZE, "%s\n", cpc_name); in cpc_name_show()
108 rc = snprintf(page, PAGE_SIZE, "%s\n", hmc_network); in hmc_network_show()
/linux-4.4.14/drivers/scsi/bfa/
Dbfad_attr.c722 return snprintf(buf, PAGE_SIZE, "%s\n", serial_num); in bfad_im_serial_num_show()
736 return snprintf(buf, PAGE_SIZE, "%s\n", model); in bfad_im_model_show()
754 snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, in bfad_im_model_desc_show()
757 snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, in bfad_im_model_desc_show()
760 snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, in bfad_im_model_desc_show()
763 snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, in bfad_im_model_desc_show()
766 snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, in bfad_im_model_desc_show()
769 snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, in bfad_im_model_desc_show()
772 snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, in bfad_im_model_desc_show()
775 snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, in bfad_im_model_desc_show()
[all …]
/linux-4.4.14/drivers/staging/dgnc/
Ddgnc_sysfs.c30 return snprintf(buf, PAGE_SIZE, "%s\n", DG_PART); in dgnc_driver_version_show()
36 return snprintf(buf, PAGE_SIZE, "%d\n", dgnc_NumBoards); in dgnc_driver_boards_show()
42 return snprintf(buf, PAGE_SIZE, "%d\n", MAXBOARDS); in dgnc_driver_maxboards_show()
48 return snprintf(buf, PAGE_SIZE, "%dms\n", dgnc_poll_tick); in dgnc_driver_pollrate_show()
155 count += snprintf(buf + count, PAGE_SIZE - count, in dgnc_ports_state_show()
173 count += snprintf(buf + count, PAGE_SIZE - count, in dgnc_ports_baud_show()
193 count += snprintf(buf + count, PAGE_SIZE - count, in dgnc_ports_msignals_show()
203 count += snprintf(buf + count, PAGE_SIZE - count, in dgnc_ports_msignals_show()
221 count += snprintf(buf + count, PAGE_SIZE - count, "%d %x\n", in dgnc_ports_iflag_show()
239 count += snprintf(buf + count, PAGE_SIZE - count, "%d %x\n", in dgnc_ports_cflag_show()
[all …]
/linux-4.4.14/drivers/spi/
Dspi-dw.c59 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
61 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
63 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
65 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
67 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
69 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
71 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
73 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
75 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
77 len += snprintf(buf + len, SPI_REGS_BUFSIZE - len, in dw_spi_show_regs()
[all …]
/linux-4.4.14/tools/power/cpupower/utils/helpers/
Dsysfs.c58 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u", cpu); in sysfs_is_cpu_online()
67 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/online", cpu); in sysfs_is_cpu_online()
112 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_file_exists()
132 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_read_file()
167 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_write_file()
313 snprintf(value, SYSFS_PATH_MAX, "%u", disable); in sysfs_idlestate_disable()
362 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpuidle"); in sysfs_get_idlestate_count()
366 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpu%u/cpuidle/state0", cpu); in sysfs_get_idlestate_count()
371 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU in sysfs_get_idlestate_count()
390 snprintf(path, sizeof(path), PATH_TO_CPU "cpuidle/%s", fname); in sysfs_cpuidle_read_file()
Dbitmask.c251 len += snprintf(buf + len, max(buflen - len, 0), ","); in emit()
253 len += snprintf(buf + len, max(buflen - len, 0), "%d", rbot); in emit()
255 len += snprintf(buf + len, max(buflen - len, 0), "%d-%d", in emit()
/linux-4.4.14/drivers/net/can/
Dled.c84 snprintf(priv->tx_led_trig_name, sizeof(priv->tx_led_trig_name), in devm_can_led_init()
86 snprintf(priv->rx_led_trig_name, sizeof(priv->rx_led_trig_name), in devm_can_led_init()
88 snprintf(priv->rxtx_led_trig_name, sizeof(priv->rxtx_led_trig_name), in devm_can_led_init()
117 snprintf(name, sizeof(name), "%s-tx", netdev->name); in can_led_notifier()
120 snprintf(name, sizeof(name), "%s-rx", netdev->name); in can_led_notifier()
123 snprintf(name, sizeof(name), "%s-rxtx", netdev->name); in can_led_notifier()
/linux-4.4.14/drivers/s390/block/
Ddasd_devmap.c723 return snprintf(buf, PAGE_SIZE, ff_flag ? "1\n" : "0\n"); in dasd_ff_show()
768 return snprintf(buf, PAGE_SIZE, ro_flag ? "1\n" : "0\n"); in dasd_ro_show()
820 return snprintf(buf, PAGE_SIZE, erplog ? "1\n" : "0\n"); in dasd_erplog_show()
1000 len = snprintf(buf, PAGE_SIZE, "%s\n", in dasd_discipline_show()
1006 len = snprintf(buf, PAGE_SIZE, "none\n"); in dasd_discipline_show()
1023 len = snprintf(buf, PAGE_SIZE, "new\n"); in dasd_device_status_show()
1026 len = snprintf(buf, PAGE_SIZE, "detected\n"); in dasd_device_status_show()
1029 len = snprintf(buf, PAGE_SIZE, "basic\n"); in dasd_device_status_show()
1032 len = snprintf(buf, PAGE_SIZE, "unformatted\n"); in dasd_device_status_show()
1035 len = snprintf(buf, PAGE_SIZE, "ready\n"); in dasd_device_status_show()
[all …]
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_rcb.c847 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_rcb_pkt_num", index); in hns_rcb_get_strings()
849 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_ppe_tx_pkt_num", index); in hns_rcb_get_strings()
851 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_ppe_drop_pkt_num", index); in hns_rcb_get_strings()
853 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_fbd_num", index); in hns_rcb_get_strings()
856 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_pkt_num", index); in hns_rcb_get_strings()
858 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_bytes", index); in hns_rcb_get_strings()
860 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_err_cnt", index); in hns_rcb_get_strings()
862 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_io_err", index); in hns_rcb_get_strings()
864 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_sw_err", index); in hns_rcb_get_strings()
866 snprintf(buff, ETH_GSTRING_LEN, "tx_ring%d_seg_pkt", index); in hns_rcb_get_strings()
[all …]
Dhns_ethtool.c447 snprintf(buff + i % 16 * 2, 3, /* tailing \0*/ in __lb_other_process()
918 snprintf(buff, ETH_GSTRING_LEN, "rx_packets"); in hns_get_strings()
920 snprintf(buff, ETH_GSTRING_LEN, "tx_packets"); in hns_get_strings()
922 snprintf(buff, ETH_GSTRING_LEN, "rx_bytes"); in hns_get_strings()
924 snprintf(buff, ETH_GSTRING_LEN, "tx_bytes"); in hns_get_strings()
926 snprintf(buff, ETH_GSTRING_LEN, "rx_errors"); in hns_get_strings()
928 snprintf(buff, ETH_GSTRING_LEN, "tx_errors"); in hns_get_strings()
930 snprintf(buff, ETH_GSTRING_LEN, "rx_dropped"); in hns_get_strings()
932 snprintf(buff, ETH_GSTRING_LEN, "tx_dropped"); in hns_get_strings()
934 snprintf(buff, ETH_GSTRING_LEN, "multicast"); in hns_get_strings()
[all …]
Dhns_dsaf_ppe.c408 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_rx_sw_pkt", index); in hns_ppe_get_strings()
410 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_rx_pkt_ok", index); in hns_ppe_get_strings()
412 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_rx_drop_pkt_no_bd", index); in hns_ppe_get_strings()
414 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_rx_alloc_buf_fail", index); in hns_ppe_get_strings()
416 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_rx_alloc_buf_wait", index); in hns_ppe_get_strings()
418 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_rx_pkt_drop_no_buf", index); in hns_ppe_get_strings()
420 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_rx_pkt_err_fifo_full", index); in hns_ppe_get_strings()
423 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_tx_bd", index); in hns_ppe_get_strings()
425 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_tx_pkt", index); in hns_ppe_get_strings()
427 snprintf(buff, ETH_GSTRING_LEN, "ppe%d_tx_pkt_ok", index); in hns_ppe_get_strings()
[all …]
/linux-4.4.14/drivers/edac/
Docteon_edac-l2c.c72 snprintf(buf1, sizeof(buf1), in _octeon_l2c_poll_oct2()
77 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
83 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
89 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
95 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
107 snprintf(buf1, sizeof(buf1), in _octeon_l2c_poll_oct2()
112 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
118 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
Di5000_edac.c523 snprintf(msg, sizeof(msg), in i5000_process_fatal_error_info()
622 snprintf(msg, sizeof(msg), in i5000_process_nonfatal_error_info()
674 snprintf(msg, sizeof(msg), in i5000_process_nonfatal_error_info()
723 snprintf(msg, sizeof(msg), in i5000_process_nonfatal_error_info()
1060 n = snprintf(p, space, "--------------------------" in calculate_dimm_size()
1068 n = snprintf(p, space, "slot %2d ", slot); in calculate_dimm_size()
1076 n = snprintf(p, space, "%4d MB %dR| ", in calculate_dimm_size()
1079 n = snprintf(p, space, "%4d MB | ", 0); in calculate_dimm_size()
1091 n = snprintf(p, space, "--------------------------" in calculate_dimm_size()
1100 n = snprintf(p, space, " "); in calculate_dimm_size()
[all …]
Dppc4xx_edac.c324 n = snprintf(buffer, size, "%s: Banks: ", mci->dev_name); in ppc4xx_edac_generate_bank_message()
335 n = snprintf(buffer, size, "%s%u", in ppc4xx_edac_generate_bank_message()
347 n = snprintf(buffer, size, "%s; ", rows ? "" : "None"); in ppc4xx_edac_generate_bank_message()
415 return snprintf(buffer, size, "Checkbit Error: %s", ckber); in ppc4xx_edac_generate_checkbit_message()
446 n = snprintf(buffer, size, "; Byte Lane Errors: "); in ppc4xx_edac_generate_lane_message()
457 n = snprintf(buffer, size, in ppc4xx_edac_generate_lane_message()
470 n = snprintf(buffer, size, "%s; ", lanes ? "" : "None"); in ppc4xx_edac_generate_lane_message()
575 return snprintf(buffer, size, in ppc4xx_edac_generate_plb_message()
Di7300_edac.c448 snprintf(pvt->tmp_prt_buffer, PAGE_SIZE, in i7300_process_fbd_error()
494 snprintf(pvt->tmp_prt_buffer, PAGE_SIZE, in i7300_process_fbd_error()
695 n = snprintf(p, space, " "); in print_dimm_size()
699 n = snprintf(p, space, "channel %d | ", channel); in print_dimm_size()
706 n = snprintf(p, space, "-------------------------------" in print_dimm_size()
715 n = snprintf(p, space, "csrow/SLOT %d ", slot); in print_dimm_size()
721 n = snprintf(p, space, "%4d MB | ", dinfo->megabytes); in print_dimm_size()
731 n = snprintf(p, space, "-------------------------------" in print_dimm_size()
Di5400_edac.c559 snprintf(msg, sizeof(msg), in i5400_proccess_non_recoverable_info()
629 snprintf(msg, sizeof(msg), in i5400_process_nonfatal_error_info()
984 n = snprintf(p, space, "---------------------------" in calculate_dimm_size()
992 n = snprintf(p, space, "dimm %2d ", dimm); in calculate_dimm_size()
999 n = snprintf(p, space, "%4d MB | ", dinfo->megabytes); in calculate_dimm_size()
1009 n = snprintf(p, space, "---------------------------" in calculate_dimm_size()
1018 n = snprintf(p, space, " "); in calculate_dimm_size()
1022 n = snprintf(p, space, "channel %d | ", channel); in calculate_dimm_size()
1032 n = snprintf(p, space, " "); in calculate_dimm_size()
1035 n = snprintf(p, space, " branch %d | ", branch); in calculate_dimm_size()
/linux-4.4.14/drivers/acpi/
Dbgrt.c22 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->version); in show_version()
29 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->status); in show_status()
36 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->image_type); in show_type()
43 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->image_offset_x); in show_xoffset()
50 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->image_offset_y); in show_yoffset()
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c459 return snprintf(buf, buf_len, "%s", name); in intel_pt_pkt_desc()
463 ret = snprintf(buf, blen, "%s ", name); in intel_pt_pkt_desc()
470 ret = snprintf(buf, blen, "T"); in intel_pt_pkt_desc()
472 ret = snprintf(buf, blen, "N"); in intel_pt_pkt_desc()
479 ret = snprintf(buf, blen, " (%d)", packet->count); in intel_pt_pkt_desc()
490 return snprintf(buf, buf_len, "%s no ip", name); in intel_pt_pkt_desc()
497 return snprintf(buf, buf_len, "%s 0x%llx", name, payload); in intel_pt_pkt_desc()
499 return snprintf(buf, buf_len, "%s CTC 0x%x FC 0x%x", name, in intel_pt_pkt_desc()
502 return snprintf(buf, buf_len, "%s %lld", name, payload); in intel_pt_pkt_desc()
504 return snprintf(buf, buf_len, "%s TXAbort:%u InTX:%u", in intel_pt_pkt_desc()
[all …]
/linux-4.4.14/drivers/w1/slaves/
Dw1_ds2423.c78 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show()
87 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show()
110 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show()
113 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show()
119 c -= snprintf(out_buf + PAGE_SIZE - c, c, "Connection error"); in w1_slave_show()
Dw1_therm.c312 c -= snprintf(buf + PAGE_SIZE - c, c, "%02x ", rom[i]); in w1_slave_show()
313 c -= snprintf(buf + PAGE_SIZE - c, c, ": crc=%02x %s\n", in w1_slave_show()
321 c -= snprintf(buf + PAGE_SIZE - c, c, "%02x ", in w1_slave_show()
324 c -= snprintf(buf + PAGE_SIZE - c, c, "t=%d\n", in w1_slave_show()
412 c -= snprintf(buf + PAGE_SIZE - c, c, "%d\n", seq); in w1_seq_show()
/linux-4.4.14/drivers/crypto/qat/qat_dh895xccvf/
Dadf_drv.c134 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_BANK_NUM, 0); in adf_dev_configure()
140 snprintf(key, sizeof(key), ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY, 0); in adf_dev_configure()
145 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_SIZE, 0); in adf_dev_configure()
153 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_SIZE, 0); in adf_dev_configure()
159 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_TX, 0); in adf_dev_configure()
165 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_TX, 0); in adf_dev_configure()
171 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_RX, 0); in adf_dev_configure()
177 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_RX, 0); in adf_dev_configure()
183 snprintf(key, sizeof(key), ADF_ETRMGR_COALESCE_TIMER_FORMAT, in adf_dev_configure()
261 snprintf(name, sizeof(name), "%s%s_%02x:%02d.%02d", in adf_probe()
/linux-4.4.14/drivers/crypto/qat/qat_dh895xcc/
Dadf_drv.c138 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_BANK_NUM, i); in adf_dev_configure()
143 snprintf(key, sizeof(key), ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY, in adf_dev_configure()
149 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_SIZE, i); in adf_dev_configure()
156 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_SIZE, i); in adf_dev_configure()
162 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_TX, i); in adf_dev_configure()
168 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_TX, i); in adf_dev_configure()
174 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_RX, i); in adf_dev_configure()
180 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_RX, i); in adf_dev_configure()
186 snprintf(key, sizeof(key), ADF_ETRMGR_COALESCE_TIMER_FORMAT, i); in adf_dev_configure()
280 snprintf(name, sizeof(name), "%s%s_%02x:%02d.%02d", in adf_probe()
/linux-4.4.14/drivers/scsi/snic/
Dsnic_attrs.c30 return snprintf(buf, PAGE_SIZE, "%s\n", snic->name); in snic_show_sym_name()
40 return snprintf(buf, PAGE_SIZE, "%s\n", in snic_show_state()
49 return snprintf(buf, PAGE_SIZE, "%s\n", SNIC_DRV_VERSION); in snic_show_drv_version()
62 return snprintf(buf, PAGE_SIZE, "%s\n", in snic_show_link_state()
Dsnic_io.c423 snprintf(line, LINE_BUFSZ, "SNIC_REQ_REPORT_TGTS :"); in snic_dump_desc()
428 snprintf(line, LINE_BUFSZ, "SNIC_REQ_ICMND : 0x%x :", in snic_dump_desc()
434 snprintf(line, LINE_BUFSZ, "SNIC_REQ_ITMF :"); in snic_dump_desc()
439 snprintf(line, LINE_BUFSZ, "SNIC_REQ_HBA_RESET :"); in snic_dump_desc()
444 snprintf(line, LINE_BUFSZ, "SNIC_REQ_EXCH_VER :"); in snic_dump_desc()
453 snprintf(line, LINE_BUFSZ, "SNIC_RSP_REPORT_TGTS_CMPL :"); in snic_dump_desc()
458 snprintf(line, LINE_BUFSZ, "SNIC_RSP_ICMND_CMPL : 0x%x :", in snic_dump_desc()
464 snprintf(line, LINE_BUFSZ, "SNIC_RSP_ITMF_CMPL :"); in snic_dump_desc()
469 snprintf(line, LINE_BUFSZ, "SNIC_RSP_HBA_RESET_CMPL :"); in snic_dump_desc()
474 snprintf(line, LINE_BUFSZ, "SNIC_RSP_EXCH_VER_CMPL :"); in snic_dump_desc()
[all …]
/linux-4.4.14/drivers/usb/mon/
Dmon_text.c350 snprintf(rp->slab_name, SLAB_NAME_SZ, "mon_text_%p", rp); in mon_text_open()
398 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_t()
434 ptr.cnt += snprintf(ptr.pbuf + ptr.cnt, ptr.limit - ptr.cnt, in mon_text_read_u()
488 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_t()
506 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_head_u()
517 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
525 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
528 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_statset()
536 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_intstat()
544 p->cnt += snprintf(p->pbuf + p->cnt, p->limit - p->cnt, in mon_text_read_isostat()
[all …]
/linux-4.4.14/drivers/net/caif/
Dcaif_spi.c142 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
145 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), FLAVOR); in dbgfs_state()
147 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
149 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
151 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
153 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
155 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
157 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
159 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
161 len += snprintf((buf + len), (DEBUGFS_BUF_SIZE - len), in dbgfs_state()
[all …]
/linux-4.4.14/tools/usb/usbip/src/
Dutils.c34 snprintf(match_busid_attr_path, sizeof(match_busid_attr_path), in modify_match_busid()
40 snprintf(command, SYSFS_BUS_ID_SIZE + 4, "add %s", busid); in modify_match_busid()
42 snprintf(command, SYSFS_BUS_ID_SIZE + 4, "del %s", busid); in modify_match_busid()
Dusbip_unbind.c74 snprintf(unbind_attr_path, sizeof(unbind_attr_path), "%s/%s/%s/%s/%s/%s", in unbind_device()
92 snprintf(rebind_attr_path, sizeof(unbind_attr_path), "%s/%s/%s/%s/%s/%s", in unbind_device()
Dusbip_bind.c56 snprintf(bind_attr_path, sizeof(bind_attr_path), "%s/%s/%s/%s/%s/%s", in bind_usbip()
121 snprintf(unbind_attr_path, sizeof(unbind_attr_path), "%s/%s/%s/%s/%s/%s", in unbind_other()
Dusbip_attach.c69 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); in record_connection()
75 snprintf(buff, MAX_BUFF, "%s %s %s\n", in record_connection()
/linux-4.4.14/security/tomoyo/
Daudit.c36 len = snprintf(buffer, tomoyo_buffer_len - 1, "argv[]={ "); in tomoyo_print_bprm()
103 snprintf(buffer, tomoyo_buffer_len - 1, in tomoyo_print_bprm()
161 pos = snprintf(buffer, tomoyo_buffer_len - 1, in tomoyo_print_header()
193 pos += snprintf(buffer + pos, in tomoyo_print_header()
203 pos += snprintf(buffer + pos, tomoyo_buffer_len - 1 - pos, in tomoyo_print_header()
213 pos += snprintf(buffer + pos, in tomoyo_print_header()
218 pos += snprintf(buffer + pos, tomoyo_buffer_len - 1 - pos, in tomoyo_print_header()
274 pos = snprintf(buf, len, "%s", header); in tomoyo_init_log()
277 pos += snprintf(buf + pos, len - pos, in tomoyo_init_log()
281 pos += snprintf(buf + pos, len - pos, " symlink.target=\"%s\"", in tomoyo_init_log()
[all …]
Drealpath.c185 snprintf(name, sizeof(name) - 1, "dev(%u,%u):", MAJOR(dev), in tomoyo_get_local_path()
226 snprintf(buffer, buflen, "socket:[family=%u:type=%u:" in tomoyo_get_socket_name()
230 snprintf(buffer, buflen, "socket:[unknown]"); in tomoyo_get_socket_name()
/linux-4.4.14/drivers/staging/unisys/include/
Dvbushelper.h32 snprintf(bus_device_info_ptr->devtype, in bus_device_info_init()
35 snprintf(bus_device_info_ptr->drvname, in bus_device_info_init()
38 snprintf(bus_device_info_ptr->infostrs, in bus_device_info_init()
/linux-4.4.14/Documentation/mic/mpssd/
Dsysfs.c35 snprintf(filename, PATH_MAX, "%s/%s", MICSYSFSDIR, entry); in readsysfs()
37 snprintf(filename, PATH_MAX, in readsysfs()
75 snprintf(filename, PATH_MAX, "%s/%s", MICSYSFSDIR, entry); in setsysfs()
77 snprintf(filename, PATH_MAX, "%s/%s/%s", in setsysfs()
/linux-4.4.14/drivers/hwmon/
Dscpi-hwmon.c158 snprintf(sensor->input, sizeof(sensor->input), in scpi_hwmon_probe()
160 snprintf(sensor->label, sizeof(sensor->input), in scpi_hwmon_probe()
165 snprintf(sensor->input, sizeof(sensor->input), in scpi_hwmon_probe()
167 snprintf(sensor->label, sizeof(sensor->input), in scpi_hwmon_probe()
172 snprintf(sensor->input, sizeof(sensor->input), in scpi_hwmon_probe()
174 snprintf(sensor->label, sizeof(sensor->input), in scpi_hwmon_probe()
179 snprintf(sensor->input, sizeof(sensor->input), in scpi_hwmon_probe()
181 snprintf(sensor->label, sizeof(sensor->input), in scpi_hwmon_probe()
Dltc4215.c146 return snprintf(buf, PAGE_SIZE, "%d\n", voltage); in ltc4215_show_voltage()
155 return snprintf(buf, PAGE_SIZE, "%u\n", curr); in ltc4215_show_current()
168 return snprintf(buf, PAGE_SIZE, "%u\n", power); in ltc4215_show_power()
180 return snprintf(buf, PAGE_SIZE, "%u\n", !!(reg & mask)); in ltc4215_show_alarm()
Dsch5627.c211 return snprintf(buf, PAGE_SIZE, "%s\n", DEVNAME); in show_name()
225 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_temp()
237 return snprintf(buf, PAGE_SIZE, "%d\n", data->temp[attr->index] == 0); in show_temp_fault()
248 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_temp_max()
259 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_temp_crit()
276 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_fan()
288 return snprintf(buf, PAGE_SIZE, "%d\n", in show_fan_fault()
301 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_fan_min()
317 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_in()
325 return snprintf(buf, PAGE_SIZE, "%s\n", in show_in_label()
Dsch5636.c176 return snprintf(buf, PAGE_SIZE, "%s\n", DEVNAME); in show_name()
192 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_in_value()
200 return snprintf(buf, PAGE_SIZE, "%s\n", in show_in_label()
215 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_temp_value()
229 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_temp_fault()
243 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_temp_alarm()
260 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_fan_value()
274 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_fan_fault()
288 return snprintf(buf, PAGE_SIZE, "%d\n", val); in show_fan_alarm()
Ds3c-hwmon.c107 return (ret < 0) ? ret : snprintf(buf, PAGE_SIZE, "%d\n", ret); in s3c_hwmon_show_raw()
181 return snprintf(buf, PAGE_SIZE, "%d\n", ret); in s3c_hwmon_ch_show()
202 return snprintf(buf, PAGE_SIZE, "%s\n", cfg->name); in s3c_hwmon_label_show()
227 snprintf(attrs->in_name, sizeof(attrs->in_name), "in%d_input", channel); in s3c_hwmon_create_attr()
244 snprintf(attrs->label_name, sizeof(attrs->label_name), in s3c_hwmon_create_attr()
Dapplesmc.c715 return snprintf(buf, PAGE_SIZE, "applesmc\n"); in applesmc_name_show()
738 return snprintf(buf, PAGE_SIZE, "(%d,%d,%d)\n", x, y, z); in applesmc_position_show()
776 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", left, right); in applesmc_light_show()
785 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", key); in applesmc_show_sensor_label()
803 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", temp); in applesmc_show_temperature()
822 return snprintf(sysfsbuf, PAGE_SIZE, "%u\n", speed); in applesmc_show_fan_speed()
862 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", manual); in applesmc_show_fan_manual()
914 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", buffer+4); in applesmc_show_fan_position()
920 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", rest_x, rest_y); in applesmc_calibrate_show()
963 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", count); in applesmc_key_count_show()
[all …]
Dlm95245.c232 return snprintf(buf, PAGE_SIZE - 1, "%d\n", temp); in show_input()
241 return snprintf(buf, PAGE_SIZE - 1, "%d\n", in show_limit()
278 return snprintf(buf, PAGE_SIZE - 1, "%d\n", hyst * 1000); in show_crit_hyst()
314 return snprintf(buf, PAGE_SIZE - 1, in show_type()
353 return snprintf(buf, PAGE_SIZE - 1, "%d\n", in show_alarm()
362 return snprintf(buf, PAGE_SIZE - 1, "%lu\n", data->interval); in show_interval()
Dibmpowernv.c135 n = snprintf(sdata->label, sizeof(sdata->label), "%s", label); in make_sensor_label()
150 n += snprintf(sdata->label + n, in make_sensor_label()
154 n += snprintf(sdata->label + n, in make_sensor_label()
162 n += snprintf(sdata->label + n, sizeof(sdata->label) - n, in make_sensor_label()
332 snprintf(sdata->name, MAX_ATTR_LEN, "%s%d_%s", in create_hwmon_attr()
Dlm95241.c146 return snprintf(buf, PAGE_SIZE - 1, "%d\n", in show_input()
158 return snprintf(buf, PAGE_SIZE - 1, in show_type()
205 return snprintf(buf, PAGE_SIZE - 1, in show_min()
242 return snprintf(buf, PAGE_SIZE - 1, in show_max()
279 return snprintf(buf, PAGE_SIZE - 1, "%lu\n", 1000 * data->interval in show_interval()
Dvexpress.c37 return snprintf(buffer, PAGE_SIZE, "%s\n", label); in vexpress_hwmon_label_show()
51 return snprintf(buffer, PAGE_SIZE, "%u\n", value / in vexpress_hwmon_u32_show()
70 return snprintf(buffer, PAGE_SIZE, "%llu\n", in vexpress_hwmon_u64_show()
Dltc4245.c266 return snprintf(buf, PAGE_SIZE, "%d\n", voltage); in ltc4245_show_voltage()
276 return snprintf(buf, PAGE_SIZE, "%u\n", curr); in ltc4245_show_current()
290 return snprintf(buf, PAGE_SIZE, "%u\n", power); in ltc4245_show_power()
302 return snprintf(buf, PAGE_SIZE, "%u\n", (reg & mask) ? 1 : 0); in ltc4245_show_alarm()
318 return snprintf(buf, PAGE_SIZE, "%u\n", val * 10); in ltc4245_show_gpio()
Di5k_amb.c295 snprintf(iattr->name, AMB_SYSFS_NAME_LEN, in i5k_amb_hwmon_init()
310 snprintf(iattr->name, AMB_SYSFS_NAME_LEN, in i5k_amb_hwmon_init()
325 snprintf(iattr->name, AMB_SYSFS_NAME_LEN, in i5k_amb_hwmon_init()
341 snprintf(iattr->name, AMB_SYSFS_NAME_LEN, in i5k_amb_hwmon_init()
357 snprintf(iattr->name, AMB_SYSFS_NAME_LEN, in i5k_amb_hwmon_init()
373 snprintf(iattr->name, AMB_SYSFS_NAME_LEN, in i5k_amb_hwmon_init()
Dltc4260.c91 return snprintf(buf, PAGE_SIZE, "%d\n", value); in ltc4260_show_value()
110 return snprintf(buf, PAGE_SIZE, "%d\n", !!fault); in ltc4260_show_bool()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_crypto.c190 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_BANK_NUM, i); in qat_crypto_create_instances()
196 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_SIZE, i); in qat_crypto_create_instances()
205 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_SIZE, i); in qat_crypto_create_instances()
214 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_TX, i); in qat_crypto_create_instances()
220 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_TX, i); in qat_crypto_create_instances()
226 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_SYM_RX, i); in qat_crypto_create_instances()
232 snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_RX, i); in qat_crypto_create_instances()
/linux-4.4.14/tools/thermal/tmon/
Dsysfs.c47 snprintf(filepath, 256, "%s/%s", path, filename); in sysfs_set_ulong()
71 snprintf(filepath, 256, "%s/%s", path, filename); in sysfs_get_ulong()
90 snprintf(filepath, 256, "%s/%s", path, filename); in sysfs_get_string()
139 snprintf(filename, sizeof(filename), "trip_point_%d_type", tpid); in get_trip_point_data()
225 snprintf(cdev_name, 256, "%s/%s", tz_name, nl->d_name); in find_tzone_cdev()
238 snprintf(cdev_trip_name, 256, "%s%s", nl->d_name, in find_tzone_cdev()
299 snprintf(tz_name, 256, "%s/%s%d", THERMAL_SYSFS, TZONE, i); in scan_tzones()
358 snprintf(cdev_name, 256, "%s/%s%d", THERMAL_SYSFS, CDEV, i); in scan_cdevs()
507 snprintf(tz_name, 256, "%s/%s%d", THERMAL_SYSFS, TZONE, in update_thermal_data()
519 snprintf(cdev_name, 256, "%s/%s%d", THERMAL_SYSFS, CDEV, in update_thermal_data()
[all …]
Dtui.c428 snprintf(buf, 31, "Invalid Temp %d! %d-%d", val, in handle_input_val()
434 snprintf(buf, 31, "Set New Target Temp %d", val); in handle_input_val()
438 snprintf(path, 256, "%s/%s%d", THERMAL_SYSFS, in handle_input_val()
462 snprintf(buf, sizeof(buf), "New Target Temp:"); in handle_input_choice()
464 snprintf(buf, sizeof(buf), "New Value for %.10s-%2d: ", in handle_input_choice()
470 snprintf(buf, sizeof(buf), "Invalid selection %d", ch); in handle_input_choice()
/linux-4.4.14/tools/perf/tests/
Dattr.c49 size = snprintf(buf, BUFSIZE, #str "=%"fmt "\n", data); \
66 snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir, in store_event()
150 snprintf(cmd, 3*PATH_MAX, PYTHON " %s/attr.py -d %s/attr/ -p %s %.*s", in run_dir()
167 snprintf(path_dir, PATH_MAX, "%s/tests", perf_exec_path()); in test__attr()
168 snprintf(path_perf, PATH_MAX, "%s/perf", BINDIR); in test__attr()
Dpmu.c89 snprintf(dir, PATH_MAX, "/tmp/perf-pmu-test-format-XXXXXX"); in test_format_dir_get()
98 snprintf(name, PATH_MAX, "%s/%s", dir, format->name); in test_format_dir_get()
117 snprintf(buf, PATH_MAX, "rm -f %s/*\n", dir); in test_format_dir_put()
121 snprintf(buf, PATH_MAX, "rmdir %s\n", dir); in test_format_dir_put()
/linux-4.4.14/drivers/scsi/arcmsr/
Darcmsr_attr.c263 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_driver_version()
275 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_driver_posted_cmd()
287 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_driver_reset()
299 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_driver_abort()
311 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_fw_model()
324 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_fw_version()
337 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_fw_request_len()
350 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_fw_numbers_queue()
363 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_fw_sdram_size()
376 return snprintf(buf, PAGE_SIZE, in arcmsr_attr_host_fw_hd_channels()
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Doverlay-sysfs.c36 return snprintf(buf, PAGE_SIZE, "%s\n", ovl->name); in overlay_name_show()
41 return snprintf(buf, PAGE_SIZE, "%s\n", in overlay_manager_show()
122 return snprintf(buf, PAGE_SIZE, "%d,%d\n", in overlay_input_size_show()
132 return snprintf(buf, PAGE_SIZE, "%d\n", info.screen_width); in overlay_screen_width_show()
141 return snprintf(buf, PAGE_SIZE, "%d,%d\n", in overlay_position_show()
180 return snprintf(buf, PAGE_SIZE, "%d,%d\n", in overlay_output_size_show()
215 return snprintf(buf, PAGE_SIZE, "%d\n", ovl->is_enabled(ovl)); in overlay_enabled_show()
245 return snprintf(buf, PAGE_SIZE, "%d\n", in overlay_global_alpha_show()
287 return snprintf(buf, PAGE_SIZE, "%d\n", in overlay_pre_mult_alpha_show()
328 return snprintf(buf, PAGE_SIZE, "%d\n", info.zorder); in overlay_zorder_show()
Ddisplay-sysfs.c33 return snprintf(buf, PAGE_SIZE, "%s\n", in display_name_show()
40 return snprintf(buf, PAGE_SIZE, "%d\n", in display_enabled_show()
73 return snprintf(buf, PAGE_SIZE, "%d\n", in display_tear_show()
107 return snprintf(buf, PAGE_SIZE, "%u,%u/%u/%u/%u,%u/%u/%u/%u\n", in display_timings_show()
157 return snprintf(buf, PAGE_SIZE, "%u\n", rotate); in display_rotate_show()
185 return snprintf(buf, PAGE_SIZE, "%u\n", mirror); in display_mirror_show()
217 return snprintf(buf, PAGE_SIZE, "0x%05x\n", wss); in display_wss_show()
Dmanager-sysfs.c36 return snprintf(buf, PAGE_SIZE, "%s\n", mgr->name); in manager_name_show()
43 return snprintf(buf, PAGE_SIZE, "%s\n", dssdev ? in manager_display_show()
134 return snprintf(buf, PAGE_SIZE, "%#x\n", info.default_color); in manager_default_color_show()
179 return snprintf(buf, PAGE_SIZE, "%s\n", trans_key_type_str[key_type]); in manager_trans_key_type_show()
220 return snprintf(buf, PAGE_SIZE, "%#x\n", info.trans_key); in manager_trans_key_value_show()
256 return snprintf(buf, PAGE_SIZE, "%d\n", info.trans_enabled); in manager_trans_key_enabled_show()
295 return snprintf(buf, PAGE_SIZE, "%d\n", in manager_alpha_blending_enabled_show()
336 return snprintf(buf, PAGE_SIZE, "%d\n", info.cpr_enable); in manager_cpr_enable_show()
378 return snprintf(buf, PAGE_SIZE, in manager_cpr_coef_show()
/linux-4.4.14/drivers/staging/most/mostcore/
Dcore.c293 return snprintf(buf, PAGE_SIZE, "%d\n", in show_number_of_packet_buffers()
304 return snprintf(buf, PAGE_SIZE, "%d\n", in show_number_of_stream_buffers()
315 return snprintf(buf, PAGE_SIZE, "%d\n", in show_size_of_packet_buffer()
326 return snprintf(buf, PAGE_SIZE, "%d\n", in show_size_of_stream_buffer()
334 return snprintf(buf, PAGE_SIZE, "%d\n", c->is_starving); in show_channel_starving()
352 return snprintf(buf, PAGE_SIZE, "%d\n", c->cfg.num_buffers); in show_set_number_of_buffers()
371 return snprintf(buf, PAGE_SIZE, "%d\n", c->cfg.buffer_size); in show_set_buffer_size()
391 return snprintf(buf, PAGE_SIZE, "dir_tx\n"); in show_set_direction()
393 return snprintf(buf, PAGE_SIZE, "dir_rx\n"); in show_set_direction()
394 return snprintf(buf, PAGE_SIZE, "unconfigured\n"); in show_set_direction()
[all …]
/linux-4.4.14/drivers/s390/crypto/
Dzcrypt_debug.h24 snprintf(debug_buffer, ZCRYPT_DBF_LEN, text); \
34 snprintf(debug_buffer, ZCRYPT_DBF_LEN, text); \
44 snprintf(debug_buffer, ZCRYPT_DBF_LEN, text); \
Dap_bus.c1029 return snprintf(buf, PAGE_SIZE, "%d\n", ap_dev->device_type); in ap_hwtype_show()
1039 return snprintf(buf, PAGE_SIZE, "%d\n", ap_dev->raw_hwtype); in ap_raw_hwtype_show()
1048 return snprintf(buf, PAGE_SIZE, "%d\n", ap_dev->queue_depth); in ap_depth_show()
1060 rc = snprintf(buf, PAGE_SIZE, "%d\n", ap_dev->total_request_count); in ap_request_count_show()
1074 rc = snprintf(buf, PAGE_SIZE, "%d\n", ap_dev->requestq_count); in ap_requestq_count_show()
1088 rc = snprintf(buf, PAGE_SIZE, "%d\n", ap_dev->pendingq_count); in ap_pendingq_count_show()
1105 rc = snprintf(buf, PAGE_SIZE, "Reset in progress.\n"); in ap_reset_show()
1109 rc = snprintf(buf, PAGE_SIZE, "Reset Timer armed.\n"); in ap_reset_show()
1112 rc = snprintf(buf, PAGE_SIZE, "No Reset Timer set.\n"); in ap_reset_show()
1128 rc = snprintf(buf, PAGE_SIZE, "Enable Interrupt pending.\n"); in ap_interrupt_show()
[all …]
/linux-4.4.14/drivers/video/fbdev/core/
Dfbcvt.c227 read = snprintf(buf+offset, cnt, "fbcvt: %dx%d@%d: CVT Name - ", in fb_cvt_print_name()
233 snprintf(buf+offset, cnt, "Not a CVT standard - %d.%03d Mega " in fb_cvt_print_name()
237 read = snprintf(buf+offset, cnt, "%d", pixcount); in fb_cvt_print_name()
242 read = snprintf(buf+offset, cnt, ".%03dM", pixcount_mod); in fb_cvt_print_name()
247 read = snprintf(buf+offset, cnt, "3"); in fb_cvt_print_name()
249 read = snprintf(buf+offset, cnt, "4"); in fb_cvt_print_name()
251 read = snprintf(buf+offset, cnt, "9"); in fb_cvt_print_name()
253 read = snprintf(buf+offset, cnt, "A"); in fb_cvt_print_name()
260 read = snprintf(buf+offset, cnt, "-R"); in fb_cvt_print_name()
Dfbsysfs.c123 return snprintf(&buf[offset], PAGE_SIZE - offset, "%c:%dx%d%c-%d\n", in mode_string()
238 return snprintf(buf, PAGE_SIZE, "%d\n", fb_info->var.bits_per_pixel); in show_bpp()
265 return snprintf(buf, PAGE_SIZE, "%d\n", fb_info->var.rotate); in show_rotate()
293 return snprintf(buf, PAGE_SIZE, "%d,%d\n", fb_info->var.xres_virtual, in show_virtual()
301 return snprintf(buf, PAGE_SIZE, "%d\n", fb_info->fix.line_length); in show_stride()
388 return snprintf(buf, PAGE_SIZE, "%d,%d\n", fb_info->var.xoffset, in show_pan()
397 return snprintf(buf, PAGE_SIZE, "%s\n", fb_info->fix.id); in show_name()
428 return snprintf(buf, PAGE_SIZE, "%d\n", fb_info->state); in show_fbstate()
/linux-4.4.14/fs/xfs/
Dxfs_stats.c71 len += snprintf(buf + len, PATH_MAX - len, "%s", in xfs_stats_format()
75 len += snprintf(buf + len, PATH_MAX - len, " %u", in xfs_stats_format()
77 len += snprintf(buf + len, PATH_MAX - len, "\n"); in xfs_stats_format()
86 len += snprintf(buf + len, PATH_MAX-len, "xpc %Lu %Lu %Lu\n", in xfs_stats_format()
88 len += snprintf(buf + len, PATH_MAX-len, "debug %u\n", in xfs_stats_format()
Dxfs_sysfs.c115 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.log_recovery_delay); in log_recovery_delay_show()
211 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_head_lsn_show()
225 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_tail_lsn_show()
240 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
254 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in write_grant_head_show()
/linux-4.4.14/net/sunrpc/
Daddr.c39 return snprintf(buf, buflen, "::"); in rpc_ntop6_noscopeid()
47 return snprintf(buf, buflen, "::1"); in rpc_ntop6_noscopeid()
56 return snprintf(buf, buflen, "::ffff:%pI4", in rpc_ntop6_noscopeid()
62 return snprintf(buf, buflen, "%pI6c", addr); in rpc_ntop6_noscopeid()
82 rc = snprintf(scopebuf, sizeof(scopebuf), "%c%u", in rpc_ntop6()
116 return snprintf(buf, buflen, "%pI4", &sin->sin_addr); in rpc_ntop4()
289 if (snprintf(portbuf, sizeof(portbuf), in rpc_sockaddr2uaddr()
/linux-4.4.14/net/netfilter/
Dnf_nat_ftp.c36 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u", in nf_nat_ftp_fmt_cmd()
45 return snprintf(buffer, buflen, "|1|%pI4|%u|", in nf_nat_ftp_fmt_cmd()
48 return snprintf(buffer, buflen, "|2|%pI6|%u|", in nf_nat_ftp_fmt_cmd()
51 return snprintf(buffer, buflen, "|||%u|", port); in nf_nat_ftp_fmt_cmd()
/linux-4.4.14/drivers/net/wireless/b43legacy/
Dsysfs.c89 count = snprintf(buf, PAGE_SIZE, "0 (No Interference" in b43legacy_attr_interfmode_show()
93 count = snprintf(buf, PAGE_SIZE, "1 (Non-WLAN Interference" in b43legacy_attr_interfmode_show()
97 count = snprintf(buf, PAGE_SIZE, "2 (WLAN Interference" in b43legacy_attr_interfmode_show()
170 count = snprintf(buf, PAGE_SIZE, "1 (Short Preamble" in b43legacy_attr_preamble_show()
173 count = snprintf(buf, PAGE_SIZE, "0 (Short Preamble" in b43legacy_attr_preamble_show()
Dleds.c150 snprintf(name, sizeof(name), in b43legacy_map_led()
155 snprintf(name, sizeof(name), in b43legacy_map_led()
165 snprintf(name, sizeof(name), in b43legacy_map_led()
176 snprintf(name, sizeof(name), in b43legacy_map_led()
/linux-4.4.14/drivers/cpufreq/
Dcpufreq_stats.c71 len += snprintf(buf + len, PAGE_SIZE - len, " From : To\n"); in show_trans_table()
72 len += snprintf(buf + len, PAGE_SIZE - len, " : "); in show_trans_table()
76 len += snprintf(buf + len, PAGE_SIZE - len, "%9u ", in show_trans_table()
82 len += snprintf(buf + len, PAGE_SIZE - len, "\n"); in show_trans_table()
88 len += snprintf(buf + len, PAGE_SIZE - len, "%9u: ", in show_trans_table()
94 len += snprintf(buf + len, PAGE_SIZE - len, "%9u ", in show_trans_table()
99 len += snprintf(buf + len, PAGE_SIZE - len, "\n"); in show_trans_table()
/linux-4.4.14/drivers/gpu/drm/msm/dsi/pll/
Ddsi_pll_28nm.c534 snprintf(vco_name, 32, "dsi%dvco_clk", pll_28nm->id); in pll_28nm_register()
538 snprintf(clk_name, 32, "dsi%danalog_postdiv_clk", pll_28nm->id); in pll_28nm_register()
539 snprintf(parent1, 32, "dsi%dvco_clk", pll_28nm->id); in pll_28nm_register()
546 snprintf(clk_name, 32, "dsi%dindirect_path_div2_clk", pll_28nm->id); in pll_28nm_register()
547 snprintf(parent1, 32, "dsi%danalog_postdiv_clk", pll_28nm->id); in pll_28nm_register()
552 snprintf(clk_name, 32, "dsi%dpll", pll_28nm->id); in pll_28nm_register()
553 snprintf(parent1, 32, "dsi%dvco_clk", pll_28nm->id); in pll_28nm_register()
560 snprintf(clk_name, 32, "dsi%dbyte_mux", pll_28nm->id); in pll_28nm_register()
561 snprintf(parent1, 32, "dsi%dvco_clk", pll_28nm->id); in pll_28nm_register()
562 snprintf(parent2, 32, "dsi%dindirect_path_div2_clk", pll_28nm->id); in pll_28nm_register()
[all …]
/linux-4.4.14/fs/ext4/
Dsysfs.c56 return snprintf(buf, PAGE_SIZE, "0\n"); in session_write_kbytes_show()
57 return snprintf(buf, PAGE_SIZE, "%lu\n", in session_write_kbytes_show()
68 return snprintf(buf, PAGE_SIZE, "0\n"); in lifetime_write_kbytes_show()
69 return snprintf(buf, PAGE_SIZE, "%llu\n", in lifetime_write_kbytes_show()
261 return snprintf(buf, PAGE_SIZE, "%llu\n", in ext4_attr_show()
269 return snprintf(buf, PAGE_SIZE, "%llu\n", in ext4_attr_show()
276 return snprintf(buf, PAGE_SIZE, "%u\n", in ext4_attr_show()
281 return snprintf(buf, PAGE_SIZE, "%d\n", in ext4_attr_show()
284 return snprintf(buf, PAGE_SIZE, "supported\n"); in ext4_attr_show()
/linux-4.4.14/drivers/net/wireless/prism54/
Doid_mgt.c795 return snprintf(str, PRIV_STR_SIZE, "%u\n", r->u); in mgt_response_to_str()
798 return snprintf(str, PRIV_STR_SIZE, in mgt_response_to_str()
805 return snprintf(str, PRIV_STR_SIZE, in mgt_response_to_str()
816 k = snprintf(str, PRIV_STR_SIZE, "nr=%u\n", list->nr); in mgt_response_to_str()
818 k += snprintf(str + k, PRIV_STR_SIZE - k, in mgt_response_to_str()
834 t = snprintf(str, PRIV_STR_SIZE, "nr=%u\n", freq->nr); in mgt_response_to_str()
836 t += snprintf(str + t, PRIV_STR_SIZE - t, in mgt_response_to_str()
843 return snprintf(str, PRIV_STR_SIZE, in mgt_response_to_str()
850 return snprintf(str, PRIV_STR_SIZE, in mgt_response_to_str()
858 return snprintf(str, PRIV_STR_SIZE, in mgt_response_to_str()
[all …]
/linux-4.4.14/block/partitions/
Damiga.c78 snprintf(tmp, sizeof(tmp), " RDSK (%d)", blksize * 512); in amiga_partition()
122 snprintf(tmp, sizeof(tmp), " (%c%c%c^%c)", in amiga_partition()
126 snprintf(tmp, sizeof(tmp), " (%c%c%c%c)", in amiga_partition()
130 snprintf(tmp, sizeof(tmp), "(res %d spb %d)", in amiga_partition()
Dmsdos.c103 snprintf(info->uuid, sizeof(info->uuid), "%08x-%02x", disksig, in set_info()
234 snprintf(tmp, sizeof(tmp), " %s%d: <solaris:", state->name, origin); in parse_solaris_x86()
240 snprintf(tmp, sizeof(tmp), " cannot handle version %d vtoc>\n", in parse_solaris_x86()
254 snprintf(tmp, sizeof(tmp), " [s%d]", i); in parse_solaris_x86()
289 snprintf(tmp, sizeof(tmp), " %s%d: <%s:", state->name, origin, flavour); in parse_bsd()
314 snprintf(tmp, sizeof(tmp), " (ignored %d more)", in parse_bsd()
370 snprintf(tmp, sizeof(tmp), " %s%d: <unixware:", state->name, origin); in parse_unixware()
417 snprintf(tmp, sizeof(tmp), " %s%d: <minix:", state->name, origin); in parse_minix()
Dsysv68.c77 snprintf(tmp, sizeof(tmp), "sysV68: %s(s%u)", state->name, slices); in sysv68_partition()
87 snprintf(tmp, sizeof(tmp), "(s%u)", i); in sysv68_partition()
Dibm.c147 snprintf(tmp, sizeof(tmp), "VOL1/%8s:", name); in find_vol1_partitions()
207 snprintf(tmp, sizeof(tmp), "LNX1/%8s:", name); in find_lnx1_partitions()
258 snprintf(tmp, sizeof(tmp), "CMS1/%8s(MDSK):", name); in find_cms1_partitions()
264 snprintf(tmp, sizeof(tmp), "CMS1/%8s:", name); in find_cms1_partitions()
Daix.c199 snprintf(tmp, sizeof(tmp), in aix_partition()
205 snprintf(tmp, sizeof(tmp), in aix_partition()
274 snprintf(tmp, sizeof(tmp), " <%s>\n", in aix_partition()
/linux-4.4.14/mm/
Dhugetlb_cgroup.c328 snprintf(buf, size, "%luGB", hsize >> 30); in mem_fmt()
330 snprintf(buf, size, "%luMB", hsize >> 20); in mem_fmt()
332 snprintf(buf, size, "%luKB", hsize >> 10); in mem_fmt()
347 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.limit_in_bytes", buf); in __hugetlb_cgroup_file_init()
354 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.usage_in_bytes", buf); in __hugetlb_cgroup_file_init()
360 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.max_usage_in_bytes", buf); in __hugetlb_cgroup_file_init()
367 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.failcnt", buf); in __hugetlb_cgroup_file_init()
Dpage_owner.c102 ret = snprintf(kbuf, count, in print_page_owner()
112 ret += snprintf(kbuf + ret, count - ret, in print_page_owner()
138 ret += snprintf(kbuf + ret, count - ret, "\n"); in print_page_owner()
/linux-4.4.14/tools/perf/util/
Dvalues.c147 width = snprintf(NULL, 0, "%d", values->pid[i]); in perf_read_values__display_pretty()
150 width = snprintf(NULL, 0, "%d", values->tid[i]); in perf_read_values__display_pretty()
154 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); in perf_read_values__display_pretty()
189 width = snprintf(NULL, 0, "%d", values->pid[i]); in perf_read_values__display_raw()
192 width = snprintf(NULL, 0, "%d", values->tid[i]); in perf_read_values__display_raw()
200 width = snprintf(NULL, 0, "%" PRIx64, values->counterrawid[j]); in perf_read_values__display_raw()
206 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); in perf_read_values__display_raw()
Dpmu.c52 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse()
82 snprintf(path, PATH_MAX, in pmu_format()
103 snprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale()
150 snprintf(path, PATH_MAX, "%s/%s.unit", dir, name); in perf_pmu__parse_unit()
180 snprintf(path, PATH_MAX, "%s/%s.per-pkg", dir, name); in perf_pmu__parse_per_pkg()
198 snprintf(path, PATH_MAX, "%s/%s.snapshot", dir, name); in perf_pmu__parse_snapshot()
305 snprintf(path, PATH_MAX, "%s/%s", dir, name); in pmu_aliases_parse()
335 snprintf(path, PATH_MAX, in pmu_aliases()
382 snprintf(path, PATH_MAX, in pmu_type()
410 snprintf(path, PATH_MAX, in pmu_read_sysfs()
[all …]
Dbpf-loader.c258 snprintf(name_buf, EVENTS_WRITE_BUFSIZE, in bpf__unprobe()
361 snprintf(buf, size, "%s", msg); in bpf_loader_strerror()
367 snprintf(buf, size, "Unknown bpf loader error %d", err); in bpf_loader_strerror()
369 snprintf(buf, size, "%s", in bpf_loader_strerror()
405 n = snprintf(buf, size, "Failed to load %s%s: ", in bpf__strerror_prepare_load()
Dcpumap.c249 snprintf(path, PATH_MAX, in cpu__get_topology_int()
397 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num()
425 ret = snprintf(path, PATH_MAX, "%s/devices/system/node/possible", mnt); in set_max_node_num()
475 n = snprintf(path, PATH_MAX, "%s/devices/system/node", mnt); in cpu__setup_cpunode_map()
490 n = snprintf(buf, PATH_MAX, "%s/%s", path, dent1->d_name); in cpu__setup_cpunode_map()
Dtarget.c141 snprintf(buf, buflen, "%s", msg); in target__strerror()
146 snprintf(buf, buflen, msg, target->uid_str); in target__strerror()
Dparse-events.c152 snprintf(evt_path, MAXPATHLEN, "%s/%s/%s/id", tracing_events_path, in tp_event_has_id()
189 snprintf(dir_path, MAXPATHLEN, "%s/%s", tracing_events_path, in tracepoint_id_to_path()
197 snprintf(evt_path, MAXPATHLEN, "%s/%s/id", dir_path, in tracepoint_id_to_path()
354 n = snprintf(name, MAX_NAME_LEN, "%s", type); in parse_events_add_cache()
359 n += snprintf(name + n, MAX_NAME_LEN - n, "-%s", str); in parse_events_add_cache()
462 snprintf(evt_path, MAXPATHLEN, "%s/%s", tracing_events_path, sys_name); in add_tracepoint_multi_event()
592 snprintf(errbuf, sizeof(errbuf), in parse_events_load_bpf_obj()
622 snprintf(errbuf, sizeof(errbuf), in parse_events_load_bpf_obj()
649 snprintf(errbuf, sizeof(errbuf), in parse_events_load_bpf()
1586 snprintf(new_filter, sizeof(new_filter), "common_pid != %d", getpid()); in add_exclude_perf_filter()
[all …]
/linux-4.4.14/drivers/scsi/pm8001/
Dpm8001_ctl.c62 return snprintf(buf, PAGE_SIZE, "%d\n", in pm8001_ctl_mpi_interface_rev_show()
65 return snprintf(buf, PAGE_SIZE, "%d\n", in pm8001_ctl_mpi_interface_rev_show()
87 return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n", in pm8001_ctl_fw_version_show()
93 return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n", in pm8001_ctl_fw_version_show()
116 return snprintf(buf, PAGE_SIZE, "%d\n", in pm8001_ctl_max_out_io_show()
119 return snprintf(buf, PAGE_SIZE, "%d\n", in pm8001_ctl_max_out_io_show()
139 return snprintf(buf, PAGE_SIZE, "%04d\n", in pm8001_ctl_max_devices_show()
143 return snprintf(buf, PAGE_SIZE, "%04d\n", in pm8001_ctl_max_devices_show()
165 return snprintf(buf, PAGE_SIZE, "%04d\n", in pm8001_ctl_max_sg_list_show()
169 return snprintf(buf, PAGE_SIZE, "%04d\n", in pm8001_ctl_max_sg_list_show()
[all …]
/linux-4.4.14/drivers/s390/cio/
Dqdio_debug.h30 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
46 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
63 snprintf(debug_buffer, QDIO_DBF_LEN, text); \
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Drouter_proc.c125 len = snprintf(tmpstr, tmpsiz, in __proc_lnet_stats()
180 s += snprintf(s, tmpstr + tmpsiz - s, "Routing %s\n", in proc_lnet_routes()
184 s += snprintf(s, tmpstr + tmpsiz - s, "%-8s %4s %8s %7s %s\n", in proc_lnet_routes()
245 s += snprintf(s, tmpstr + tmpsiz - s, in proc_lnet_routes()
304 s += snprintf(s, tmpstr + tmpsiz - s, in proc_lnet_routers()
372 s += snprintf(s, tmpstr + tmpsiz - s, in proc_lnet_routers()
379 s += snprintf(s, tmpstr + tmpsiz - s, in proc_lnet_routers()
445 s += snprintf(s, tmpstr + tmpsiz - s, in proc_lnet_peers()
541 s += snprintf(s, tmpstr + tmpsiz - s, in proc_lnet_peers()
601 s += snprintf(s, tmpstr + tmpsiz - s, in __proc_lnet_buffers()
[all …]
Dnidstrings.c699 snprintf(min_nid, nidstr_length, "%s@%s%d", min_addr_str, lndname, in cfs_nidrange_find_min_max()
701 snprintf(max_nid, nidstr_length, "%s@%s%d", max_addr_str, lndname, in cfs_nidrange_find_min_max()
782 snprintf(str, size, "%u.%u.%u.%u", in libcfs_ip_addr2str()
893 snprintf(str, size, "%u", addr); in libcfs_decnum_addr2str()
1095 snprintf(buf, buf_size, "?%u?", lnd); in libcfs_lnd2str_r()
1097 snprintf(buf, buf_size, "%s", nf->nf_name); in libcfs_lnd2str_r()
1112 snprintf(buf, buf_size, "<%u:%u>", lnd, nnum); in libcfs_net2str_r()
1114 snprintf(buf, buf_size, "%s", nf->nf_name); in libcfs_net2str_r()
1116 snprintf(buf, buf_size, "%s%u", nf->nf_name, nnum); in libcfs_net2str_r()
1139 snprintf(buf, buf_size, "%x@<%u:%u>", addr, lnd, nnum); in libcfs_nid2str_r()
[all …]
/linux-4.4.14/drivers/input/tablet/
Daiptek.c1056 return snprintf(buf, PAGE_SIZE, "%dx%d\n", in show_tabletSize()
1084 return snprintf(buf, PAGE_SIZE, "%s\n", in show_tabletPointerMode()
1121 return snprintf(buf, PAGE_SIZE, "%s\n", in show_tabletCoordinateMode()
1163 return snprintf(buf, PAGE_SIZE, "%s\n", in show_tabletToolMode()
1194 return snprintf(buf, PAGE_SIZE, "disable\n"); in show_tabletXtilt()
1196 return snprintf(buf, PAGE_SIZE, "%d\n", in show_tabletXtilt()
1236 return snprintf(buf, PAGE_SIZE, "disable\n"); in show_tabletYtilt()
1238 return snprintf(buf, PAGE_SIZE, "%d\n", in show_tabletYtilt()
1277 return snprintf(buf, PAGE_SIZE, "%d\n", aiptek->curSetting.jitterDelay); in show_tabletJitterDelay()
1306 return snprintf(buf, PAGE_SIZE, "%d\n", in show_tabletProgrammableDelay()
[all …]
/linux-4.4.14/drivers/video/fbdev/omap2/omapfb/
Domapfb-sysfs.c43 return snprintf(buf, PAGE_SIZE, "%d\n", ofbi->rotation_type); in show_rotate_type()
98 return snprintf(buf, PAGE_SIZE, "%d\n", ofbi->mirror); in show_mirror()
164 l += snprintf(buf + l, PAGE_SIZE - l, "%s%d", in show_overlays()
168 l += snprintf(buf + l, PAGE_SIZE - l, "\n"); in show_overlays()
347 l += snprintf(buf + l, PAGE_SIZE - l, "%s%d", in show_overlays_rotate()
351 l += snprintf(buf + l, PAGE_SIZE - l, "\n"); in show_overlays_rotate()
435 return snprintf(buf, PAGE_SIZE, "%lu\n", ofbi->region->size); in show_size()
513 return snprintf(buf, PAGE_SIZE, "%0x\n", ofbi->region->paddr); in show_phys()
522 return snprintf(buf, PAGE_SIZE, "%p\n", ofbi->region->vaddr); in show_virt()
537 return snprintf(buf, PAGE_SIZE, "%u\n", (unsigned)mode); in show_upd_mode()
/linux-4.4.14/tools/hv/
Dhv_kvp_daemon.c612 snprintf(dev_id, sizeof(dev_id), "%s", kvp_net_dir); in kvp_get_if_name()
663 snprintf(addr_file, sizeof(addr_file), "%s%s%s", "/sys/class/net/", in kvp_if_name_to_mac()
705 snprintf(dev_id, sizeof(dev_id), kvp_net_dir); in kvp_mac_to_if_name()
1162 snprintf(str, sizeof(str), "%s", "IPADDR"); in process_ip_string()
1165 snprintf(str, sizeof(str), "%s", "NETMASK"); in process_ip_string()
1168 snprintf(str, sizeof(str), "%s", "GATEWAY"); in process_ip_string()
1171 snprintf(str, sizeof(str), "%s", "DNS"); in process_ip_string()
1176 snprintf(sub_str, sizeof(sub_str), "%d", ++i); in process_ip_string()
1180 snprintf(sub_str, sizeof(sub_str), "%d", i++); in process_ip_string()
1187 snprintf(str, sizeof(str), "%s", "IPV6ADDR"); in process_ip_string()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_hwmon.c49 return snprintf(buf, PAGE_SIZE, "%d\n", temp * 1000); in nouveau_hwmon_show_temp()
58 return snprintf(buf, PAGE_SIZE, "%d\n", 100); in nouveau_hwmon_show_temp1_auto_point1_pwm()
71 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_temp1_auto_point1_temp()
104 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_temp1_auto_point1_temp_hyst()
136 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_max_temp()
167 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_max_temp_hyst()
199 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_critical_temp()
232 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_critical_temp_hyst()
265 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_emergency_temp()
298 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_emergency_temp_hyst()
[all …]
/linux-4.4.14/drivers/scsi/aacraid/
Dlinit.c502 return snprintf(buf, PAGE_SIZE, sdev->no_uld_attach in aac_show_raid_level()
505 return snprintf(buf, PAGE_SIZE, "%s\n", in aac_show_raid_level()
785 len = snprintf(buf, PAGE_SIZE, "%s\n", cp); in aac_show_model()
787 len = snprintf(buf, PAGE_SIZE, "%s\n", in aac_show_model()
802 len = snprintf(buf, PAGE_SIZE, "%.*s\n", in aac_show_vendor()
806 len = snprintf(buf, PAGE_SIZE, "%s\n", in aac_show_vendor()
818 len = snprintf(buf, PAGE_SIZE, "dprintk\n"); in aac_show_flags()
820 len += snprintf(buf + len, PAGE_SIZE - len, in aac_show_flags()
824 len += snprintf(buf + len, PAGE_SIZE - len, in aac_show_flags()
827 len += snprintf(buf + len, PAGE_SIZE - len, "SUPPORTED_JBOD\n"); in aac_show_flags()
[all …]
/linux-4.4.14/sound/hda/
Dtrace.h23 snprintf(__get_str(msg), HDAC_MSG_MAX,
35 snprintf(__get_str(msg), HDAC_MSG_MAX,
47 snprintf(__get_str(msg), HDAC_MSG_MAX,
/linux-4.4.14/drivers/usb/storage/
Dsierra_ms.c100 result = snprintf(buf, PAGE_SIZE, "Forced Mass Storage\n"); in show_truinst()
104 snprintf(buf, PAGE_SIZE, "Error\n"); in show_truinst()
111 snprintf(buf, PAGE_SIZE, "Error\n"); in show_truinst()
115 result = snprintf(buf, PAGE_SIZE, in show_truinst()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmutil/
Dutils.c270 snprintf(buf, BRCMU_BOARDREV_LEN, "%d.%d", in brcmu_boardrev_str()
274 snprintf(buf, BRCMU_BOARDREV_LEN, "%c%03x", c, brev & 0xfff); in brcmu_boardrev_str()
285 snprintf(buf, BRCMU_DOTREV_LEN, "unknown"); in brcmu_dotrev_str()
294 snprintf(buf, BRCMU_DOTREV_LEN, "%d.%d.%d.%d", dotval[0], in brcmu_dotrev_str()
297 snprintf(buf, BRCMU_DOTREV_LEN, "%d.%d.%d", dotval[0], in brcmu_dotrev_str()
300 snprintf(buf, BRCMU_DOTREV_LEN, "%d.%d", dotval[0], in brcmu_dotrev_str()
/linux-4.4.14/drivers/block/aoe/
Daoeblk.c40 return snprintf(page, PAGE_SIZE, in aoedisk_show_state()
55 return snprintf(page, PAGE_SIZE, "none\n"); in aoedisk_show_mac()
56 return snprintf(page, PAGE_SIZE, "%pm\n", t->addr); in aoedisk_show_mac()
88 return snprintf(page, PAGE_SIZE, "none\n"); in aoedisk_show_netif()
90 p += snprintf(p, PAGE_SIZE - (p-page), "%s%s", in aoedisk_show_netif()
92 p += snprintf(p, PAGE_SIZE - (p-page), "\n"); in aoedisk_show_netif()
102 return snprintf(page, PAGE_SIZE, "0x%04x\n", (unsigned int) d->fw_ver); in aoedisk_show_fwver()
110 return snprintf(page, PAGE_SIZE, "%lu\n", d->maxbcnt); in aoedisk_show_payload()
412 snprintf(gd->disk_name, sizeof gd->disk_name, "etherd/e%ld.%d", in aoeblk_gdalloc()
/linux-4.4.14/drivers/misc/
Denclosure.c321 snprintf(newname, COMPONENT_NAME_SIZE, in enclosure_component_alloc()
324 snprintf(newname, COMPONENT_NAME_SIZE, in enclosure_component_alloc()
435 return snprintf(buf, 40, "%d\n", edev->components); in components_show()
490 return snprintf(buf, 40, "%d\n", ecomp->fault); in get_component_fault()
514 return snprintf(buf, 40, "%s\n", enclosure_status[ecomp->status]); in get_component_status()
548 return snprintf(buf, 40, "%d\n", ecomp->active); in get_component_active()
572 return snprintf(buf, 40, "%d\n", ecomp->locate); in get_component_locate()
597 return snprintf(buf, 40, "%s\n", ecomp->power_status ? "on" : "off"); in get_component_power_status()
627 return snprintf(buf, 40, "%s\n", enclosure_type[ecomp->type]); in get_component_type()
642 return snprintf(buf, 40, "%d\n", slot); in get_component_slot()
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
Drtw_android.c97 bytes_written += snprintf(&command[bytes_written], total_len, in rtw_android_get_rssi()
112 return snprintf(command, total_len, "LinkSpeed %d", in rtw_android_get_link_speed()
119 return snprintf(command, total_len, "Macaddr = %pM", in rtw_android_get_macaddr()
242 snprintf(command, 3, "OK"); in rtw_android_priv_cmd()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sysfs.c121 snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name), in ixgbe_add_hwmon_attr()
126 snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name), in ixgbe_add_hwmon_attr()
131 snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name), in ixgbe_add_hwmon_attr()
136 snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name), in ixgbe_add_hwmon_attr()
Dixgbe_fcoe.c636 snprintf(pool_name, 32, "ixgbe_fcoe_ddp_%u", cpu); in ixgbe_fcoe_dma_pool_alloc()
1005 snprintf(info->manufacturer, sizeof(info->manufacturer), in ixgbe_fcoe_get_hbainfo()
1017 snprintf(info->serial_number, sizeof(info->serial_number), in ixgbe_fcoe_get_hbainfo()
1022 snprintf(info->serial_number, sizeof(info->serial_number), in ixgbe_fcoe_get_hbainfo()
1026 snprintf(info->hardware_version, in ixgbe_fcoe_get_hbainfo()
1030 snprintf(info->driver_version, in ixgbe_fcoe_get_hbainfo()
1036 snprintf(info->firmware_version, in ixgbe_fcoe_get_hbainfo()
1044 snprintf(info->model, in ixgbe_fcoe_get_hbainfo()
1048 snprintf(info->model, in ixgbe_fcoe_get_hbainfo()
1054 snprintf(info->model_description, in ixgbe_fcoe_get_hbainfo()
/linux-4.4.14/drivers/gpu/drm/msm/
Dmsm_perf.c79 n = snprintf(ptr, rem, "%%BUSY"); in refill_buf()
85 n = snprintf(ptr, rem, "\t%s", perfcntr->name); in refill_buf()
107 n = snprintf(ptr, rem, "%3d.%d%%", val / 10, val % 10); in refill_buf()
114 n = snprintf(ptr, rem, "\t%5d.%02d", in refill_buf()
121 n = snprintf(ptr, rem, "\n"); in refill_buf()
/linux-4.4.14/drivers/net/wireless/b43/
Dsysfs.c70 snprintf(buf, PAGE_SIZE, in b43_attr_interfmode_show()
75 snprintf(buf, PAGE_SIZE, in b43_attr_interfmode_show()
80 snprintf(buf, PAGE_SIZE, in b43_attr_interfmode_show()
Dleds.c177 snprintf(name, sizeof(name), in b43_map_led()
182 snprintf(name, sizeof(name), in b43_map_led()
192 snprintf(name, sizeof(name), in b43_map_led()
200 snprintf(name, sizeof(name), in b43_map_led()
/linux-4.4.14/drivers/ntb/
Dntb_transport.c455 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
457 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
459 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
461 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
463 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
465 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
467 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
469 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
471 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
473 out_offset += snprintf(buf + out_offset, out_count - out_offset, in debugfs_read()
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_sysfs.c224 return snprintf(buf, PAGE_SIZE, "%s\n", in status_show()
237 return snprintf(buf, PAGE_SIZE, "%s\n", in dpms_show()
247 return snprintf(buf, PAGE_SIZE, "%s\n", connector->encoder ? "enabled" : in enabled_show()
287 written += snprintf(buf + written, PAGE_SIZE - written, "%s\n", in modes_show()
314 return snprintf(buf, PAGE_SIZE, "%s", in tv_subconnector_show()
338 return snprintf(buf, PAGE_SIZE, "%s", in tv_select_subconnector_show()
362 return snprintf(buf, PAGE_SIZE, "%s", in dvii_subconnector_show()
386 return snprintf(buf, PAGE_SIZE, "%s", in dvii_select_subconnector_show()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_sysfs.c73 return snprintf(buf, PAGE_SIZE, "%x\n", intel_enable_rc6(dminor->dev)); in show_rc6_mask()
81 return snprintf(buf, PAGE_SIZE, "%u\n", rc6_residency); in show_rc6_ms()
89 return snprintf(buf, PAGE_SIZE, "%u\n", rc6p_residency); in show_rc6p_ms()
97 return snprintf(buf, PAGE_SIZE, "%u\n", rc6pp_residency); in show_rc6pp_ms()
105 return snprintf(buf, PAGE_SIZE, "%u\n", rc6_residency); in show_media_rc6_ms()
304 return snprintf(buf, PAGE_SIZE, "%d\n", ret); in gt_act_freq_mhz_show()
325 return snprintf(buf, PAGE_SIZE, "%d\n", ret); in gt_cur_freq_mhz_show()
335 return snprintf(buf, PAGE_SIZE, in vlv_rpe_freq_mhz_show()
353 return snprintf(buf, PAGE_SIZE, "%d\n", ret); in gt_max_freq_mhz_show()
416 return snprintf(buf, PAGE_SIZE, "%d\n", ret); in gt_min_freq_mhz_show()
[all …]
/linux-4.4.14/drivers/net/
Dnetconsole.c260 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show()
265 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->extended); in extended_show()
270 return snprintf(buf, PAGE_SIZE, "%s\n", to_target(item)->np.dev_name); in dev_name_show()
275 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.local_port); in local_port_show()
280 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.remote_port); in remote_port_show()
288 return snprintf(buf, PAGE_SIZE, "%pI6c\n", &nt->np.local_ip.in6); in local_ip_show()
290 return snprintf(buf, PAGE_SIZE, "%pI4\n", &nt->np.local_ip); in local_ip_show()
298 return snprintf(buf, PAGE_SIZE, "%pI6c\n", &nt->np.remote_ip.in6); in remote_ip_show()
300 return snprintf(buf, PAGE_SIZE, "%pI4\n", &nt->np.remote_ip); in remote_ip_show()
308 return snprintf(buf, PAGE_SIZE, "%pM\n", dev ? dev->dev_addr : bcast); in local_mac_show()
[all …]
/linux-4.4.14/drivers/mtd/
Dmtdcore.c146 return snprintf(buf, PAGE_SIZE, "%s\n", type); in mtd_type_show()
155 return snprintf(buf, PAGE_SIZE, "0x%lx\n", (unsigned long)mtd->flags); in mtd_flags_show()
165 return snprintf(buf, PAGE_SIZE, "%llu\n", in mtd_size_show()
176 return snprintf(buf, PAGE_SIZE, "%lu\n", (unsigned long)mtd->erasesize); in mtd_erasesize_show()
186 return snprintf(buf, PAGE_SIZE, "%lu\n", (unsigned long)mtd->writesize); in mtd_writesize_show()
197 return snprintf(buf, PAGE_SIZE, "%u\n", subpagesize); in mtd_subpagesize_show()
207 return snprintf(buf, PAGE_SIZE, "%lu\n", (unsigned long)mtd->oobsize); in mtd_oobsize_show()
217 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->numeraseregions); in mtd_numeraseregions_show()
228 return snprintf(buf, PAGE_SIZE, "%s\n", mtd->name); in mtd_name_show()
238 return snprintf(buf, PAGE_SIZE, "%u\n", mtd->ecc_strength); in mtd_ecc_strength_show()
[all …]
/linux-4.4.14/sound/firewire/digi00x/
Ddigi00x-midi.c162 snprintf(subs->name, sizeof(subs->name), in set_midi_substream_names()
167 snprintf(subs->name, sizeof(subs->name), in set_midi_substream_names()
186 snprintf(rmidi[0]->name, sizeof(rmidi[0]->name), in snd_dg00x_create_midi_devices()
200 snprintf(rmidi[1]->name, sizeof(rmidi[1]->name), in snd_dg00x_create_midi_devices()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
Digb_hwmon.c122 snprintf(igb_attr->name, sizeof(igb_attr->name), in igb_add_hwmon_attr()
127 snprintf(igb_attr->name, sizeof(igb_attr->name), in igb_add_hwmon_attr()
132 snprintf(igb_attr->name, sizeof(igb_attr->name), in igb_add_hwmon_attr()
137 snprintf(igb_attr->name, sizeof(igb_attr->name), in igb_add_hwmon_attr()
/linux-4.4.14/tools/power/cpupower/lib/
Dsysfs.c55 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", in sysfs_cpufreq_read_file()
70 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", in sysfs_cpufreq_write_file()
565 snprintf(value, SYSFS_PATH_MAX, "%lu", max_freq); in sysfs_modify_freq_policy_max()
576 snprintf(value, SYSFS_PATH_MAX, "%lu", min_freq); in sysfs_modify_freq_policy_min()
601 snprintf(min, SYSFS_PATH_MAX, "%lu", policy->min); in sysfs_set_freq_policy()
602 snprintf(max, SYSFS_PATH_MAX, "%lu", policy->max); in sysfs_set_freq_policy()
650 snprintf(freq, SYSFS_PATH_MAX, "%lu", target_frequency); in sysfs_set_frequency()
664 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpu%u/", cpu); in sysfs_cpu_exists()
/linux-4.4.14/sound/firewire/tascam/
Dtascam-midi.c97 snprintf(rmidi->name, sizeof(rmidi->name), in snd_tscm_create_midi_devices()
111 snprintf(subs->name, sizeof(subs->name), in snd_tscm_create_midi_devices()
126 snprintf(subs->name, sizeof(subs->name), in snd_tscm_create_midi_devices()
/linux-4.4.14/arch/x86/platform/uv/
Duv_sysfs.c31 return snprintf(buf, PAGE_SIZE, "%ld\n", sn_partition_id); in partition_id_show()
37 return snprintf(buf, PAGE_SIZE, "%ld\n", partition_coherence_id()); in coherence_id_show()
/linux-4.4.14/drivers/scsi/
Dscsi_sysfs.c132 return snprintf (buf, 20, format_string, shost->field); \
197 return snprintf(buf, 20, "%s\n", name); in show_shost_state()
243 return snprintf(buf, 20, "unknown\n"); in show_shost_active_mode()
291 return snprintf(buf, strlen("off") + 2, "off\n"); in show_shost_eh_deadline()
351 return snprintf(buf, 20, "%d\n", atomic_read(&shost->host_busy)); in show_host_busy()
515 return snprintf (buf, 20, format_string, sdev->field); \
602 return snprintf(buf, 20, "%d\n", atomic_read(&sdev->device_busy)); in sdev_show_device_busy()
611 return snprintf(buf, 20, "%d\n", atomic_read(&sdev->device_blocked)); in sdev_show_device_blocked()
623 return snprintf(buf, 20, "%d\n", sdev->request_queue->rq_timeout / HZ); in sdev_show_timeout()
644 return snprintf(buf, 20, "%u\n", sdev->eh_timeout / HZ); in sdev_show_eh_timeout()
[all …]
/linux-4.4.14/drivers/staging/unisys/visorbus/
Dvisorbus_main.c55 return snprintf(buf, PAGE_SIZE, "%s\n", VERSION); in version_show()
87 return snprintf(buf, PAGE_SIZE, "visorbus:%pUl\n", &guid); in modalias_show()
272 return snprintf(buf, PAGE_SIZE, "%d:%d\n", in DEVMAJORMINOR_ATTR()
431 return snprintf(buf, PAGE_SIZE, "0x%Lx\n", in physaddr_show()
442 return snprintf(buf, PAGE_SIZE, "0x%lx\n", in nbytes_show()
453 return snprintf(buf, PAGE_SIZE, "0x%Lx\n", in clientpartition_show()
465 return snprintf(buf, PAGE_SIZE, "%s\n", in typeguid_show()
477 return snprintf(buf, PAGE_SIZE, "%s\n", in zoneguid_show()
496 return snprintf(buf, PAGE_SIZE, "%s\n", drv->channel_types[i - 1].name); in typename_show()
545 return snprintf(buf, PAGE_SIZE, "0x%Lx\n", handle); in partition_handle_show()
[all …]
/linux-4.4.14/tools/usb/usbip/libsrc/
Dvhci_driver.c179 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); in read_record()
309 snprintf(buff, sizeof(buff), "%u %d %u %u", in usbip_vhci_attach_device2()
314 snprintf(attach_attr_path, sizeof(attach_attr_path), "%s/%s", in usbip_vhci_attach_device2()
351 snprintf(buff, sizeof(buff), "%u", port); in usbip_vhci_detach_device()
355 snprintf(detach_attr_path, sizeof(detach_attr_path), "%s/%s", in usbip_vhci_detach_device()
Dusbip_host_driver.c47 snprintf(status_attr_path, SYSFS_PATH_MAX, "%s/usbip_status", in read_attr_usbip_status()
247 snprintf(sockfd_attr_path, sizeof(sockfd_attr_path), "%s/%s", in usbip_host_export_device()
250 snprintf(sockfd_buff, sizeof(sockfd_buff), "%d\n", sockfd); in usbip_host_export_device()
Dusbip_common.c259 snprintf(buff, size, "%s : %s (%04x:%04x)", vend, prod, vendor, product); in usbip_names_get_product()
268 snprintf(buff, size, "(Defined at Interface level) (%02x/%02x/%02x)", class, subclass, protocol); in usbip_names_get_class()
284 snprintf(buff, size, "%s / %s / %s (%02x/%02x/%02x)", c, s, p, class, subclass, protocol); in usbip_names_get_class()
/linux-4.4.14/net/irda/irnet/
Dirnet_ppp.c239 snprintf(event, buf_size, in irnet_read_discovery_log()
339 snprintf(event, sizeof(event), in irnet_ctrl_read()
348 snprintf(event, sizeof(event), in irnet_ctrl_read()
357 snprintf(event, sizeof(event), "Connected to %08x (%s) on ppp%d\n", in irnet_ctrl_read()
363 snprintf(event, sizeof(event), "Connection from %08x (%s) on ppp%d\n", in irnet_ctrl_read()
369 snprintf(event, sizeof(event), "Request from %08x (%s) behind %08x\n", in irnet_ctrl_read()
375 snprintf(event, sizeof(event), "No-answer from %08x (%s) on ppp%d\n", in irnet_ctrl_read()
381 snprintf(event, sizeof(event), "Blocked link with %08x (%s) on ppp%d\n", in irnet_ctrl_read()
387 snprintf(event, sizeof(event), "Disconnection from %08x (%s) on ppp%d\n", in irnet_ctrl_read()
393 snprintf(event, sizeof(event), "Disconnected to %08x (%s)\n", in irnet_ctrl_read()
[all …]
/linux-4.4.14/arch/tile/gxio/
Dusb_host.c36 snprintf(file, sizeof(file), "usb_host/%d/iorpc/ehci", in gxio_usb_host_init()
39 snprintf(file, sizeof(file), "usb_host/%d/iorpc/ohci", in gxio_usb_host_init()
/linux-4.4.14/fs/nfs/
Dnfsroot.c246 snprintf(mand_options, sizeof(mand_options), "nolock,addr=%pI4", in root_nfs_data()
262 len = snprintf(nfs_export_path, sizeof(nfs_export_path), in root_nfs_data()
266 len = snprintf(nfs_root_device, sizeof(nfs_root_device), in root_nfs_data()
/linux-4.4.14/fs/ocfs2/
Dsuper.c240 out += snprintf(buf + out, len - out, in ocfs2_osb_dump()
245 out += snprintf(buf + out, len - out, in ocfs2_osb_dump()
249 out += snprintf(buf + out, len - out, in ocfs2_osb_dump()
253 out += snprintf(buf + out, len - out, in ocfs2_osb_dump()
259 out += snprintf(buf + out, len - out, in ocfs2_osb_dump()
264 out += snprintf(buf + out, len - out, in ocfs2_osb_dump()
275 out += snprintf(buf + out, len - out, in ocfs2_osb_dump()
284 out += snprintf(buf + out, len - out, "%10s => Pid: %d Nodes:", in ocfs2_osb_dump()
289 out += snprintf(buf + out, len - out, " None\n"); in ocfs2_osb_dump()
292 out += snprintf(buf + out, len - out, " %d", in ocfs2_osb_dump()
[all …]
Dstackglue.c490 ret = snprintf(buf, PAGE_SIZE, "%u.%u\n", in ocfs2_max_locking_protocol_show()
511 ret = snprintf(buf, remain, "%s\n", in ocfs2_loaded_cluster_plugins_show()
542 ret = snprintf(buf, PAGE_SIZE, "%s\n", in ocfs2_active_cluster_plugin_show()
562 ret = snprintf(buf, PAGE_SIZE, "%s\n", cluster_stack_name); in ocfs2_cluster_stack_show()
612 return snprintf(buf, PAGE_SIZE, "1\n"); in ocfs2_dlm_recover_show()
/linux-4.4.14/tools/cgroup/
Dcgroup_event_listener.c37 ret = snprintf(event_control_path, PATH_MAX, "%s/cgroup.event_control", in main()
50 ret = snprintf(line, LINE_MAX, "%d %d %s", efd, cfd, argv[2]); in main()
/linux-4.4.14/drivers/usb/atm/
Dcxacru.c250 return snprintf(buf, PAGE_SIZE, "%u\n", value); in cxacru_sysfs_showattr_u32()
255 return snprintf(buf, PAGE_SIZE, "%d\n", value); in cxacru_sysfs_showattr_s8()
261 return snprintf(buf, PAGE_SIZE, "%u.%02u\n", in cxacru_sysfs_showattr_dB()
265 return snprintf(buf, PAGE_SIZE, "-%u.%02u\n", in cxacru_sysfs_showattr_dB()
275 return snprintf(buf, PAGE_SIZE, "%u\n", value); in cxacru_sysfs_showattr_bool()
276 return snprintf(buf, PAGE_SIZE, "%s\n", str[value]); in cxacru_sysfs_showattr_bool()
284 return snprintf(buf, PAGE_SIZE, "%u\n", value); in cxacru_sysfs_showattr_LINK()
285 return snprintf(buf, PAGE_SIZE, "%s\n", str[value]); in cxacru_sysfs_showattr_LINK()
295 return snprintf(buf, PAGE_SIZE, "%u\n", value); in cxacru_sysfs_showattr_LINE()
296 return snprintf(buf, PAGE_SIZE, "%s\n", str[value]); in cxacru_sysfs_showattr_LINE()
[all …]
/linux-4.4.14/drivers/crypto/caam/
Derror.c142 snprintf(cha_err_code, sizeof(cha_err_code), "%02x", cha_id); in report_ccb_status()
152 snprintf(err_err_code, sizeof(err_err_code), "%02x", err_id); in report_ccb_status()
195 snprintf(err_err_code, sizeof(err_err_code), "%02x", err_id); in report_deco_status()
/linux-4.4.14/drivers/iommu/
Dof_iommu.c57 snprintf(propname, sizeof(propname), "%sdma-window", prefix); in of_get_dma_window()
58 snprintf(addrname, sizeof(addrname), "%s#dma-address-cells", prefix); in of_get_dma_window()
59 snprintf(sizename, sizeof(sizename), "%s#dma-size-cells", prefix); in of_get_dma_window()
/linux-4.4.14/arch/mips/kernel/
Dmips-cm.c327 snprintf(buf, sizeof(buf), in mips_cm_error_report()
341 snprintf(buf, sizeof(buf), in mips_cm_error_report()
383 snprintf(buf, sizeof(buf), in mips_cm_error_report()
403 snprintf(buf, sizeof(buf), in mips_cm_error_report()
/linux-4.4.14/arch/arm/mach-omap2/
Dserial.c141 snprintf(rx_pad_name, OMAP_UART_DEFAULT_PAD_NAME_LEN, rx_fmt, in omap_serial_check_wakeup()
143 snprintf(tx_pad_name, OMAP_UART_DEFAULT_PAD_NAME_LEN, tx_fmt, in omap_serial_check_wakeup()
187 snprintf(oh_name, MAX_UART_HWMOD_NAME_LEN, in omap_serial_early_init()
200 snprintf(uart_name, MAX_UART_HWMOD_NAME_LEN, in omap_serial_early_init()
/linux-4.4.14/fs/btrfs/
Dsysfs.c106 return snprintf(buf, PAGE_SIZE, "%d\n", val); in btrfs_feature_attr_show()
233 return snprintf(buf, PAGE_SIZE, "%llu\n", val); in btrfs_show_u64()
279 return snprintf(buf, PAGE_SIZE, "%llu\n", val); in raid_bytes_show()
315 return snprintf(buf, PAGE_SIZE, "%lld\n", val); in btrfs_space_info_show_total_bytes_pinned()
365 return snprintf(buf, PAGE_SIZE, label[0] ? "%s\n" : "%s", label); in btrfs_label_show()
407 return snprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->nodesize); in btrfs_nodesize_show()
417 return snprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->sectorsize); in btrfs_sectorsize_show()
427 return snprintf(buf, PAGE_SIZE, "%u\n", fs_info->super_copy->sectorsize); in btrfs_clone_alignment_show()
587 len += snprintf(str + len, bufsize - len, "%s%s", in btrfs_printable_features()
627 snprintf(name, 13, "%s:%u", in init_feature_attrs()
/linux-4.4.14/drivers/media/pci/mantis/
Dmantis_input.c49 snprintf(mantis->input_name, sizeof(mantis->input_name), in mantis_input_init()
51 snprintf(mantis->input_phys, sizeof(mantis->input_phys), in mantis_input_init()
/linux-4.4.14/fs/ceph/
Dxattr.c82 ret = snprintf(buf, sizeof(buf), in ceph_vxattrcb_layout()
97 ret = snprintf(buf, sizeof(buf), in ceph_vxattrcb_layout()
117 return snprintf(val, size, "%lld", in ceph_vxattrcb_layout_stripe_unit()
124 return snprintf(val, size, "%lld", in ceph_vxattrcb_layout_stripe_count()
131 return snprintf(val, size, "%lld", in ceph_vxattrcb_layout_object_size()
147 ret = snprintf(val, size, "%s", pool_name); in ceph_vxattrcb_layout_pool()
149 ret = snprintf(val, size, "%lld", (unsigned long long)pool); in ceph_vxattrcb_layout_pool()
159 return snprintf(val, size, "%lld", ci->i_files + ci->i_subdirs); in ceph_vxattrcb_dir_entries()
165 return snprintf(val, size, "%lld", ci->i_files); in ceph_vxattrcb_dir_files()
171 return snprintf(val, size, "%lld", ci->i_subdirs); in ceph_vxattrcb_dir_subdirs()
[all …]
/linux-4.4.14/arch/um/os-Linux/
Dumid.c139 n = snprintf(file, sizeof(file), "%s/pid", dir); in is_umdir_used()
224 snprintf(pid, sizeof(pid), "%d\n", getpid()); in create_pid_file()
282 snprintf(tmp, sizeof(tmp), "%s%s", uml_dir, umid); in make_umid()
337 n = snprintf(buf, len, "%s%s/%s", uml_dir, umid, name); in umid_file_name()
/linux-4.4.14/drivers/s390/net/
Dsmsgiucv_app.c89 snprintf(ev->envp[0], ENV_SENDER_LEN, ENV_SENDER_STR "%s", from); in smsg_app_event_alloc()
90 snprintf(ev->envp[1], ENV_PREFIX_LEN, ENV_PREFIX_STR "%s", SMSG_PREFIX); in smsg_app_event_alloc()
91 snprintf(ev->envp[2], ENV_TEXT_LEN(msg), ENV_TEXT_STR "%s", msg); in smsg_app_event_alloc()
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dclass_obd.c106 snprintf(jobid, JOBSTATS_JOBID_SIZE, "%s.%u", in lustre_get_jobid()
329 snprintf(str, len - sizeof(*data), "%3d %s %s %s %s %d", in class_handle_ioctl()
422 len = snprintf(buf, sizeof(buf), "%#llx", u64val); in obd_init_checks()
449 len = snprintf(buf, sizeof(buf), "%#llx", u64val); in obd_init_checks()
454 len = snprintf(buf, sizeof(buf), "%llu", u64val); in obd_init_checks()
459 len = snprintf(buf, sizeof(buf), "%lld", u64val); in obd_init_checks()
/linux-4.4.14/drivers/xen/xen-pciback/
Dxenbus.c211 len = snprintf(str, sizeof(str), "vdev-%d", devid); in xen_pcibk_publish_pci_dev()
320 len = snprintf(str, sizeof(str), "root-%d", i); in xen_pcibk_publish_pci_root()
341 len = snprintf(str, sizeof(str), "root-%d", root_num); in xen_pcibk_publish_pci_root()
392 len = snprintf(state_str, sizeof(state_str), "state-%d", i); in xen_pcibk_reconfigure()
409 len = snprintf(dev_str, sizeof(dev_str), "dev-%d", i); in xen_pcibk_reconfigure()
463 len = snprintf(dev_str, sizeof(dev_str), "vdev-%d", i); in xen_pcibk_reconfigure()
591 int l = snprintf(dev_str, sizeof(dev_str), "dev-%d", i); in xen_pcibk_setup_backend()
620 l = snprintf(state_str, sizeof(state_str), "state-%d", i); in xen_pcibk_setup_backend()
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dsysfs.c37 len = snprintf(buf, len, "%d\n\n0 - off\n1 - on\n", in wl1271_sysfs_show_bt_coex_state()
98 len = snprintf(buf, len, "%d\n", wl->hw_pg_ver); in wl1271_sysfs_show_hw_pg_ver()
100 len = snprintf(buf, len, "n/a\n"); in wl1271_sysfs_show_hw_pg_ver()
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_sysfs.c156 return snprintf(buf, sz, format_string, \
169 return snprintf(buf, sz, format_string, \
179 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \
188 return snprintf(buf, sz, format_string, cast fcoe_fcf_##field(fcf)); \
265 return snprintf(buf, FCOE_FCF_STATE_MAX_NAMELEN, "%s\n", name); in fcoe_enum_name_search()
280 return snprintf(buf, FCOE_MAX_MODENAME_LEN, in show_ctlr_mode()
380 return snprintf(buf, FCOE_CTLR_ENABLED_MAX_NAMELEN, in fcoe_enum_name_search()
699 snprintf(ctlr->work_q_name, sizeof(ctlr->work_q_name), in fcoe_ctlr_device_add()
706 snprintf(ctlr->devloss_work_q_name, in fcoe_ctlr_device_add()
/linux-4.4.14/arch/s390/crypto/
Dprng.c686 return snprintf(buf, PAGE_SIZE, "%u\n", prng_chunk_size); in prng_chunksize_show()
705 return snprintf(buf, PAGE_SIZE, "%llu\n", counter); in prng_counter_show()
714 return snprintf(buf, PAGE_SIZE, "%d\n", prng_errorflag); in prng_errorflag_show()
724 return snprintf(buf, PAGE_SIZE, "TDES\n"); in prng_mode_show()
726 return snprintf(buf, PAGE_SIZE, "SHA512\n"); in prng_mode_show()
749 return snprintf(buf, PAGE_SIZE, "%u\n", prng_reseed_limit); in prng_reseed_limit_show()
780 return snprintf(buf, PAGE_SIZE, "256\n"); in prng_strength_show()
/linux-4.4.14/lib/
Dhexdump.c141 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
152 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
163 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
Doid_registry.c122 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid()
143 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_debugfs.c179 snprintf(name, sizeof(name), "q_vector.%03d", q_vector->v_idx); in fm10k_dbg_q_vector_init()
189 snprintf(name, sizeof(name), "tx_ring.%03d", ring->queue_index); in fm10k_dbg_q_vector_init()
200 snprintf(name, sizeof(name), "rx_ring.%03d", ring->queue_index); in fm10k_dbg_q_vector_init()
/linux-4.4.14/include/linux/sunrpc/
Dsvc_xprt.h194 snprintf(buf, len, "%pI4, port=%u", &sin->sin_addr, in __svc_print_addr()
199 snprintf(buf, len, "%pI6, port=%u", in __svc_print_addr()
205 snprintf(buf, len, "unknown address type: %d", addr->sa_family); in __svc_print_addr()
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_log.c147 snprintf(buffer, buflen, fmt_nodev, slevel, in esas2r_log_master()
150 snprintf(buffer, buflen, fmt_dev, slevel, in esas2r_log_master()
/linux-4.4.14/arch/s390/kernel/
Dearly.c119 hlen = snprintf(defsys_cmd, DEFSYS_CMD_SIZE, in create_kernel_nss()
129 hlen += snprintf(defsys_cmd + hlen, DEFSYS_CMD_SIZE - hlen, in create_kernel_nss()
134 snprintf(defsys_cmd + hlen, DEFSYS_CMD_SIZE - hlen, in create_kernel_nss()
137 snprintf(savesys_cmd, SAVESYS_CMD_SIZE, "SAVESYS %s \n IPL %s", in create_kernel_nss()
/linux-4.4.14/drivers/firmware/efi/
Dcper.c99 len = snprintf(buf, sizeof(buf), "%s%s", pfx, str); in cper_print_bits()
101 len += snprintf(buf+len, sizeof(buf)-len, ", %s", str); in cper_print_bits()
264 n = snprintf(msg, len, "DIMM location: %s %s ", bank, device); in cper_dimm_err_location()
266 n = snprintf(msg, len, in cper_dimm_err_location()
404 snprintf(newpfx, sizeof(newpfx), "%s%s", pfx, INDENT_SP); in cper_estatus_print_section()
454 snprintf(newpfx, sizeof(newpfx), "%s%s", pfx, INDENT_SP); in cper_estatus_print()
/linux-4.4.14/drivers/net/ethernet/sfc/
Dmcdi_mon.c461 snprintf(name, sizeof(name), "%s%u_input", in efx_mcdi_mon_probe()
467 snprintf(name, sizeof(name), "%s%u_min", in efx_mcdi_mon_probe()
474 snprintf(name, sizeof(name), "%s%u_max", in efx_mcdi_mon_probe()
484 snprintf(name, sizeof(name), "%s%u_crit", in efx_mcdi_mon_probe()
492 snprintf(name, sizeof(name), "%s%u_alarm", in efx_mcdi_mon_probe()
499 snprintf(name, sizeof(name), "%s%u_label", in efx_mcdi_mon_probe()
/linux-4.4.14/kernel/locking/
Dlockdep_proc.c407 snprintf(buf, bufsiz, "%lld.%02d", (long long)div, (int)rem/10); in snprint_time()
458 snprintf(name, namelen, "%s", key_name); in seq_stats()
460 snprintf(name, namelen, "%s", cname); in seq_stats()
466 snprintf(name+namelen, 3, "#%d", class->name_version); in seq_stats()
470 snprintf(name+namelen, 3, "/%d", class->subclass); in seq_stats()
511 snprintf(ip, sizeof(ip), "[<%p>]", in seq_stats()
526 snprintf(ip, sizeof(ip), "[<%p>]", in seq_stats()
/linux-4.4.14/arch/arm64/kernel/
Dtopology.c58 snprintf(name, sizeof(name), "thread%d", i); in parse_core()
113 snprintf(name, sizeof(name), "cluster%d", i); in parse_cluster()
128 snprintf(name, sizeof(name), "core%d", i); in parse_cluster()
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00leds.c132 snprintf(name, sizeof(name), "%s-%s::radio", in rt2x00leds_register()
143 snprintf(name, sizeof(name), "%s-%s::assoc", in rt2x00leds_register()
154 snprintf(name, sizeof(name), "%s-%s::quality", in rt2x00leds_register()
/linux-4.4.14/drivers/of/
Dof_pci.c209 snprintf(range_type, 4, " IO"); in of_pci_get_host_bridge_resources()
211 snprintf(range_type, 4, "MEM"); in of_pci_get_host_bridge_resources()
213 snprintf(range_type, 4, "err"); in of_pci_get_host_bridge_resources()
/linux-4.4.14/drivers/i2c/
Di2c-mux.c140 snprintf(priv->adap.name, sizeof(priv->adap.name), in i2c_add_mux_adapter()
201 snprintf(symlink_name, sizeof(symlink_name), "channel-%u", chan_id); in i2c_add_mux_adapter()
216 snprintf(symlink_name, sizeof(symlink_name), "channel-%u", priv->chan_id); in i2c_del_mux_adapter()
/linux-4.4.14/arch/mips/bcm47xx/
Dsprom.c37 snprintf(buf, len, "%s%s%s", prefix, name, postfix); in create_key()
39 snprintf(buf, len, "%s%s", prefix, name); in create_key()
41 snprintf(buf, len, "%s%s", name, postfix); in create_key()
43 snprintf(buf, len, "%s", name); in create_key()
429 snprintf(postfix, sizeof(postfix), "%i", i); in bcm47xx_fill_sprom_path_r4589()
480 snprintf(postfix, sizeof(postfix), "%i", i); in bcm47xx_fill_sprom_path_r45()
613 snprintf(prefix, sizeof(prefix), "pci/%u/%u/", in bcm47xx_get_sprom_ssb()
646 if (snprintf(nvram_var, sizeof(nvram_var), "devpath%d", i) <= 0) in bcm47xx_sprom_apply_prefix_alias()
652 snprintf(prefix, prefix_size, "%d:", i); in bcm47xx_sprom_apply_prefix_alias()
669 snprintf(buf, sizeof(buf), "pci/%u/%u/", in bcm47xx_get_sprom_bcma()
[all …]
/linux-4.4.14/drivers/gpu/drm/virtio/
Dvirtgpu_fence.c57 snprintf(str, size, "%llu", fence->seq); in virtio_fence_value_str()
64 snprintf(str, size, "%llu", (u64)atomic64_read(&fence->drv->last_seq)); in virtio_timeline_value_str()
/linux-4.4.14/drivers/media/usb/stk1160/
Dstk1160-ac97.c107 snprintf(card->shortname, sizeof(card->shortname), in stk1160_ac97_register()
109 snprintf(card->longname, sizeof(card->longname), in stk1160_ac97_register()
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-alsa-main.c83 snprintf(sc->shortname, sizeof(sc->shortname), "cobalt-%d-%d", in snd_cobalt_card_set_names()
87 snprintf(sc->longname, sizeof(sc->longname), in snd_cobalt_card_set_names()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dchannv50.c52 snprintf(mods, sizeof(mods), "-> %08x", next); in nv50_disp_mthd_list()
54 snprintf(mods, sizeof(mods), "%13c", ' '); in nv50_disp_mthd_list()
84 snprintf(cname_, sizeof(cname_), "%s %d", in nv50_disp_chan_mthd()
90 snprintf(sname_, sizeof(sname_), " - %s %d", in nv50_disp_chan_mthd()
/linux-4.4.14/drivers/i2c/busses/
Di2c-powermac.c304 snprintf(type, type_size, "MAC,%s", tmp); in i2c_powermac_get_type()
312 snprintf(type, type_size, "MAC,tas3001"); in i2c_powermac_get_type()
315 snprintf(type, type_size, "MAC,tas3004"); in i2c_powermac_get_type()
428 snprintf(adapter->name, sizeof(adapter->name), "%s %d", basename, in i2c_powermac_probe()
/linux-4.4.14/drivers/power/
Dwm831x_power.c511 snprintf(power->wall_name, sizeof(power->wall_name), in wm831x_power_probe()
513 snprintf(power->battery_name, sizeof(power->wall_name), in wm831x_power_probe()
515 snprintf(power->usb_name, sizeof(power->wall_name), in wm831x_power_probe()
518 snprintf(power->wall_name, sizeof(power->wall_name), in wm831x_power_probe()
520 snprintf(power->battery_name, sizeof(power->wall_name), in wm831x_power_probe()
522 snprintf(power->usb_name, sizeof(power->wall_name), in wm831x_power_probe()
/linux-4.4.14/drivers/net/wireless/mwifiex/
Ddebugfs.c504 pos += snprintf(buf, PAGE_SIZE, "0"); in mwifiex_regrdwr_read()
512 pos += snprintf(buf, PAGE_SIZE, "%u 0x%x 0x%x\n", in mwifiex_regrdwr_read()
528 pos += snprintf(buf, PAGE_SIZE, "%u 0x%x 0x%x\n", saved_reg_type, in mwifiex_regrdwr_read()
556 pos += snprintf(buf, PAGE_SIZE, "debug mask=0x%08x\n", in mwifiex_debug_mask_read()
668 pos += snprintf(buf, PAGE_SIZE, "0x%x 0x%x\n", priv->mem_rw.addr, in mwifiex_memrw_read()
742 pos = snprintf(buf, PAGE_SIZE, "0"); in mwifiex_rdeeprom_read()
754 pos = snprintf(buf, PAGE_SIZE, "%d %d ", saved_offset, saved_bytes); in mwifiex_rdeeprom_read()
850 pos = snprintf(buf, PAGE_SIZE, "%u 0x%x 0x%x\n", hscfg.conditions, in mwifiex_hscfg_read()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_gs.c631 snprintf(snn, size, "%s FW:v%s DVR:v%s", ha->model_number, in qla2x00_get_sym_node_name()
634 snprintf(snn, size, in qla2x00_get_sym_node_name()
1307 snprintf(eiter->a.manufacturer, sizeof(eiter->a.manufacturer), in qla2x00_fdmi_rhba()
1325 snprintf(eiter->a.serial_num, sizeof(eiter->a.serial_num), in qla2x00_fdmi_rhba()
1339 snprintf(eiter->a.model, sizeof(eiter->a.model), in qla2x00_fdmi_rhba()
1352 snprintf(eiter->a.model_desc, sizeof(eiter->a.model_desc), in qla2x00_fdmi_rhba()
1366 snprintf(eiter->a.hw_version, sizeof(eiter->a.hw_version), in qla2x00_fdmi_rhba()
1375 snprintf(eiter->a.hw_version, sizeof(eiter->a.hw_version), in qla2x00_fdmi_rhba()
1389 snprintf(eiter->a.driver_version, sizeof(eiter->a.driver_version), in qla2x00_fdmi_rhba()
1402 snprintf(eiter->a.orom_version, sizeof(eiter->a.orom_version), in qla2x00_fdmi_rhba()
[all …]
/linux-4.4.14/drivers/pps/clients/
Dpps-ldisc.c67 snprintf(info.name, PPS_MAX_NAME_LEN, "%s%d", drv->driver_name, index); in pps_tty_open()
68 snprintf(info.path, PPS_MAX_NAME_LEN, "/dev/%s%d", drv->name, index); in pps_tty_open()
/linux-4.4.14/net/bluetooth/
Dselftest.c208 snprintf(test_ecdh_buffer, sizeof(test_ecdh_buffer), in test_ecdh()
211 snprintf(test_ecdh_buffer, sizeof(test_ecdh_buffer), "FAIL\n"); in test_ecdh()
/linux-4.4.14/drivers/net/wireless/realtek/rtl818x/rtl8187/
Dleds.c207 snprintf(name, sizeof(name), in rtl8187_leds_init()
214 snprintf(name, sizeof(name), in rtl8187_leds_init()
221 snprintf(name, sizeof(name), in rtl8187_leds_init()
/linux-4.4.14/drivers/net/wireless/libertas/
Dmesh.c169 return snprintf(buf, 12, "0x%X\n", le32_to_cpu(mesh_access.data[0])); in lbs_anycast_get()
221 return snprintf(buf, 10, "%d\n", retry_limit); in lbs_prb_rsp_limit_get()
267 return snprintf(buf, 5, "0x%X\n", !!priv->mesh_dev); in lbs_mesh_get()
366 return snprintf(buf, 12, "%d\n", le32_to_cpu(defs.bootflag)); in bootflag_get()
416 return snprintf(buf, 12, "%d\n", defs.boottime); in boottime_get()
475 return snprintf(buf, 12, "%d\n", le16_to_cpu(defs.channel)); in channel_get()
600 return snprintf(buf, 5, "%d\n", defs.meshie.val.active_protocol_id); in protocol_id_get()
661 return snprintf(buf, 5, "%d\n", defs.meshie.val.active_metric_id); in metric_id_get()
722 return snprintf(buf, 5, "%d\n", defs.meshie.val.mesh_capability); in capability_get()
/linux-4.4.14/drivers/isdn/gigaset/
Di4l.c263 snprintf(commands[AT_DIAL], l, in command_from_LL()
269 snprintf(commands[AT_DIAL], l, in command_from_LL()
279 snprintf(commands[AT_MSN], l, "^SMSN=%s\r", in command_from_LL()
302 snprintf(commands[AT_PROTO], 9, "^SBPR=%u\r", bcs->proto2); in command_from_LL()
307 snprintf(commands[AT_ISO], 9, "^SISO=%u\r", in command_from_LL()
633 if (snprintf(iif->id, sizeof iif->id, "%s_%u", isdnid, cs->minor_index) in gigaset_isdn_regdev()
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.c135 snprintf(ioc->tmp_string, MPT_STRING_LENGTH, in _ctl_display_some_debug()
156 snprintf(ioc->tmp_string, MPT_STRING_LENGTH, in _ctl_display_some_debug()
187 snprintf(ioc->tmp_string, MPT_STRING_LENGTH, in _ctl_display_some_debug()
2419 return snprintf(buf, PAGE_SIZE, "%02d.%02d.%02d.%02d\n", in _ctl_version_fw_show()
2443 return snprintf(buf, PAGE_SIZE, "%02d.%02d.%02d.%02d\n", in _ctl_version_bios_show()
2465 return snprintf(buf, PAGE_SIZE, "%03x.%02x\n", in _ctl_version_mpi_show()
2484 return snprintf(buf, 16, "%s\n", ioc->manu_pg0.ChipName); in _ctl_version_product_show()
2502 return snprintf(buf, PAGE_SIZE, "%08xh\n", in _ctl_version_nvdata_persistent_show()
2522 return snprintf(buf, PAGE_SIZE, "%08xh\n", in _ctl_version_nvdata_default_show()
2542 return snprintf(buf, 16, "%s\n", ioc->manu_pg0.BoardName); in _ctl_board_name_show()
[all …]
/linux-4.4.14/arch/tile/kernel/
Dstack.c97 snprintf(fault_buf, sizeof(fault_buf), in valid_fault_handler()
314 rc = snprintf(p, remaining, "+%#lx/%#lx ", in describe_addr()
317 snprintf(p + rc, remaining - rc, "[%s] ", modname); in describe_addr()
330 snprintf(buf, bufsize, "[unmapped address] "); in describe_addr()
347 snprintf(buf + namelen, remaining, "[%lx+%lx] ", in describe_addr()
/linux-4.4.14/drivers/usb/phy/
Dphy-twl6030-usb.c193 ret = snprintf(buf, PAGE_SIZE, "vbus\n"); in twl6030_usb_vbus_show()
196 ret = snprintf(buf, PAGE_SIZE, "id\n"); in twl6030_usb_vbus_show()
199 ret = snprintf(buf, PAGE_SIZE, "none\n"); in twl6030_usb_vbus_show()
202 ret = snprintf(buf, PAGE_SIZE, "UNKNOWN\n"); in twl6030_usb_vbus_show()
/linux-4.4.14/drivers/bluetooth/
Dbtmrvl_debugfs.c67 ret = snprintf(buf, sizeof(buf) - 1, "%d\n", in btmrvl_hscfgcmd_read()
114 ret = snprintf(buf, sizeof(buf) - 1, "%d\n", priv->btmrvl_dev.pscmd); in btmrvl_pscmd_read()
158 ret = snprintf(buf, sizeof(buf) - 1, "%d\n", priv->btmrvl_dev.hscmd); in btmrvl_hscmd_read()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-device.c53 snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "%s %s", in v4l2_device_register()
83 snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), in v4l2_device_set_name()
86 snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), in v4l2_device_set_name()
/linux-4.4.14/drivers/firmware/
Dmemmap.c379 return snprintf(buf, PAGE_SIZE, "0x%llx\n", in start_show()
385 return snprintf(buf, PAGE_SIZE, "0x%llx\n", in end_show()
391 return snprintf(buf, PAGE_SIZE, "%s\n", entry->type); in type_show()
/linux-4.4.14/drivers/tty/
Dnozomi.c75 snprintf(tmp, sizeof(tmp), ##args); \
113 snprintf(tbuf, len__ > TMP_BUF_MAX ? TMP_BUF_MAX : len__, "%s", buf__);\
876 interrupt & MDM_DL1 ? p += snprintf(p, TMP_BUF_MAX, "MDM_DL1 ") : NULL; in interrupt2str()
877 interrupt & MDM_DL2 ? p += snprintf(p, TMP_BUF_MAX - (p - buf), in interrupt2str()
880 interrupt & MDM_UL1 ? p += snprintf(p, TMP_BUF_MAX - (p - buf), in interrupt2str()
882 interrupt & MDM_UL2 ? p += snprintf(p, TMP_BUF_MAX - (p - buf), in interrupt2str()
885 interrupt & DIAG_DL1 ? p += snprintf(p, TMP_BUF_MAX - (p - buf), in interrupt2str()
887 interrupt & DIAG_DL2 ? p += snprintf(p, TMP_BUF_MAX - (p - buf), in interrupt2str()
890 interrupt & DIAG_UL ? p += snprintf(p, TMP_BUF_MAX - (p - buf), in interrupt2str()
893 interrupt & APP1_DL ? p += snprintf(p, TMP_BUF_MAX - (p - buf), in interrupt2str()
[all …]
/linux-4.4.14/drivers/connector/
Dcn_queue.c53 snprintf(cbq->id.name, sizeof(cbq->id.name), "%s", name); in cn_queue_alloc_callback_entry()
134 snprintf(dev->name, sizeof(dev->name), "%s", name); in cn_queue_alloc_dev()
/linux-4.4.14/drivers/regulator/
Dwm831x-ldo.c251 snprintf(ldo->name, sizeof(ldo->name), "LDO%d", id + 1); in wm831x_gp_ldo_probe()
254 snprintf(ldo->supply_name, sizeof(ldo->supply_name), in wm831x_gp_ldo_probe()
461 snprintf(ldo->name, sizeof(ldo->name), "LDO%d", id + 1); in wm831x_aldo_probe()
464 snprintf(ldo->supply_name, sizeof(ldo->supply_name), in wm831x_aldo_probe()
606 snprintf(ldo->name, sizeof(ldo->name), "LDO%d", id + 1); in wm831x_alive_ldo_probe()
609 snprintf(ldo->supply_name, sizeof(ldo->supply_name), in wm831x_alive_ldo_probe()
/linux-4.4.14/drivers/base/regmap/
Dregmap-debugfs.c35 return snprintf(NULL, 0, "%x", max_val); in regmap_calc_reg_len()
50 ret = snprintf(buf, PAGE_SIZE, "%s\n", map->dev->driver->name); in regmap_name_read_file()
220 snprintf(buf + buf_pos, count - buf_pos, "%.*x: ", in regmap_read_debugfs()
227 snprintf(buf + buf_pos, count - buf_pos, in regmap_read_debugfs()
368 entry_len = snprintf(entry, PAGE_SIZE, "%x-%x\n", in regmap_reg_ranges_read_file()
435 snprintf(buf + buf_pos, count - buf_pos, in regmap_access_read_file()
/linux-4.4.14/tools/lib/api/
Dcpu.c14 snprintf(entry, sizeof(entry), in cpu__get_max_freq()
/linux-4.4.14/drivers/scsi/ufs/
Dufshcd-pltfrm.c141 snprintf(prop_name, MAX_PROP_SIZE, "%s-supply", name); in ufshcd_populate_vreg()
155 snprintf(prop_name, MAX_PROP_SIZE, "%s-fixed-regulator", name); in ufshcd_populate_vreg()
159 snprintf(prop_name, MAX_PROP_SIZE, "%s-max-microamp", name); in ufshcd_populate_vreg()

12345678910