/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | debugfs.c | 66 size_t bufsz; in iwl_dbgfs_sram_read() local 86 bufsz = 50 + len * 4; in iwl_dbgfs_sram_read() 87 buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_sram_read() 91 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read() 93 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read() 106 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read() 110 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read() 113 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read() 126 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read() 128 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read() [all …]
|
D | main.c | 1681 int pos, char **buf, size_t bufsz) in iwl_print_event_log() argument 1724 if (bufsz) { in iwl_print_event_log() 1725 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log() 1736 if (bufsz) { in iwl_print_event_log() 1737 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log() 1760 int pos, char **buf, size_t bufsz) in iwl_print_last_event_logs() argument 1771 pos, buf, bufsz); in iwl_print_last_event_logs() 1774 pos, buf, bufsz); in iwl_print_last_event_logs() 1777 size, mode, pos, buf, bufsz); in iwl_print_last_event_logs() 1781 mode, pos, buf, bufsz); in iwl_print_last_event_logs() [all …]
|
/linux-6.12.1/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-debug.c | 19 il4965_stats_flag(struct il_priv *il, char *buf, int bufsz) in il4965_stats_flag() argument 26 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag); in il4965_stats_flag() 28 p += scnprintf(buf + p, bufsz - p, in il4965_stats_flag() 30 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in il4965_stats_flag() 33 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in il4965_stats_flag() 47 int bufsz = in il4965_ucode_rx_stats_read() local 61 buf = kzalloc(bufsz, GFP_KERNEL); in il4965_ucode_rx_stats_read() 89 pos += il4965_stats_flag(il, buf, bufsz); in il4965_ucode_rx_stats_read() 91 scnprintf(buf + pos, bufsz - pos, fmt_header, in il4965_ucode_rx_stats_read() 94 scnprintf(buf + pos, bufsz - pos, fmt_table, "ina_cnt:", in il4965_ucode_rx_stats_read() [all …]
|
D | 3945-debug.c | 15 il3945_stats_flag(struct il_priv *il, char *buf, int bufsz) in il3945_stats_flag() argument 19 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", in il3945_stats_flag() 22 p += scnprintf(buf + p, bufsz - p, in il3945_stats_flag() 24 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in il3945_stats_flag() 27 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in il3945_stats_flag() 40 int bufsz = in il3945_ucode_rx_stats_read() local 52 buf = kzalloc(bufsz, GFP_KERNEL); in il3945_ucode_rx_stats_read() 76 pos += il3945_stats_flag(il, buf, bufsz); in il3945_ucode_rx_stats_read() 78 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 83 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() [all …]
|
D | debug.c | 210 const size_t bufsz = in il_dbgfs_tx_stats_read() local 212 buf = kzalloc(bufsz, GFP_KERNEL); in il_dbgfs_tx_stats_read() 215 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_tx_stats_read() 218 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read() 221 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in il_dbgfs_tx_stats_read() 224 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read() 227 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_tx_stats_read() 229 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read() 232 scnprintf(buf + pos, bufsz - pos, "\tbytes: %llu\n", in il_dbgfs_tx_stats_read() 270 const size_t bufsz = in il_dbgfs_rx_stats_read() local [all …]
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs-vif.c | 141 int bufsz = sizeof(buf); in iwl_dbgfs_tx_pwr_lmt_read() local 144 pos = scnprintf(buf, bufsz, "bss limit = %d\n", in iwl_dbgfs_tx_pwr_lmt_read() 158 int bufsz = sizeof(buf); in iwl_dbgfs_pm_params_read() local 161 pos = iwl_mvm_power_mac_dbgfs_read(mvm, vif, buf, bufsz); in iwl_dbgfs_pm_params_read() 176 int bufsz = sizeof(buf); in iwl_dbgfs_mac_params_read() local 186 pos += scnprintf(buf+pos, bufsz-pos, "type: ibss\n"); in iwl_dbgfs_mac_params_read() 189 pos += scnprintf(buf+pos, bufsz-pos, "type: bss\n"); in iwl_dbgfs_mac_params_read() 192 pos += scnprintf(buf+pos, bufsz-pos, "type: ap\n"); in iwl_dbgfs_mac_params_read() 195 pos += scnprintf(buf+pos, bufsz-pos, "type: p2p client\n"); in iwl_dbgfs_mac_params_read() 198 pos += scnprintf(buf+pos, bufsz-pos, "type: p2p go\n"); in iwl_dbgfs_mac_params_read() [all …]
|
D | debugfs.c | 319 int bufsz = sizeof(buf); in iwl_dbgfs_sar_geo_profile_read() local 333 pos = scnprintf(buf, bufsz, in iwl_dbgfs_sar_geo_profile_read() 336 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read() 338 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read() 343 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read() 379 int i, pos = 0, bufsz = sizeof(buf); in iwl_dbgfs_stations_read() local 384 pos += scnprintf(buf + pos, bufsz - pos, "%.2d: ", i); in iwl_dbgfs_stations_read() 388 pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); in iwl_dbgfs_stations_read() 390 pos += scnprintf(buf + pos, bufsz - pos, "%ld\n", in iwl_dbgfs_stations_read() 393 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_stations_read() [all …]
|
D | power.c | 715 int bufsz) in iwl_mvm_power_mac_dbgfs_read() argument 725 pos += scnprintf(buf+pos, bufsz-pos, "power_scheme = %d\n", in iwl_mvm_power_mac_dbgfs_read() 727 pos += scnprintf(buf+pos, bufsz-pos, "flags = 0x%x\n", in iwl_mvm_power_mac_dbgfs_read() 729 pos += scnprintf(buf+pos, bufsz-pos, "keep_alive = %d\n", in iwl_mvm_power_mac_dbgfs_read() 735 pos += scnprintf(buf+pos, bufsz-pos, "skip_over_dtim = %d\n", in iwl_mvm_power_mac_dbgfs_read() 738 pos += scnprintf(buf+pos, bufsz-pos, "skip_dtim_periods = %d\n", in iwl_mvm_power_mac_dbgfs_read() 741 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read() 743 pos += scnprintf(buf+pos, bufsz-pos, "tx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read() 747 pos += scnprintf(buf+pos, bufsz-pos, in iwl_mvm_power_mac_dbgfs_read() 754 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout_uapsd = %d\n", in iwl_mvm_power_mac_dbgfs_read() [all …]
|
/linux-6.12.1/net/mac80211/ |
D | debugfs_sta.c | 143 size_t bufsz = AQM_TXQ_ENTRY_LEN * (IEEE80211_NUM_TIDS + 2); in sta_aqm_read() local 144 char *buf = kzalloc(bufsz, GFP_KERNEL), *p = buf; in sta_aqm_read() 156 bufsz + buf - p, in sta_aqm_read() 162 bufsz + buf - p, in sta_aqm_read() 169 p += scnprintf(p, bufsz + buf - p, in sta_aqm_read() 203 size_t bufsz = 400; in sta_airtime_read() local 204 char *buf = kzalloc(bufsz, GFP_KERNEL), *p = buf; in sta_airtime_read() 221 p += scnprintf(p, bufsz + buf - p, in sta_airtime_read() 256 size_t bufsz = 400; in sta_aql_read() local 257 char *buf = kzalloc(bufsz, GFP_KERNEL), *p = buf; in sta_aql_read() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7996/ |
D | debugfs.c | 134 static const size_t bufsz = 1024; in mt7996_sys_recovery_get() local 136 buff = kmalloc(bufsz, GFP_KERNEL); in mt7996_sys_recovery_get() 141 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 143 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 145 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 147 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 149 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 151 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 153 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 155 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() [all …]
|
/linux-6.12.1/tools/perf/arch/x86/tests/ |
D | sample-parsing.c | 56 size_t i, sz, bufsz; in do_test() local 60 bufsz = sz + 4096; /* Add a bit for overrun checking */ in do_test() 61 event = malloc(bufsz); in do_test() 67 memset(event, 0xff, bufsz); in do_test() 80 for (i = bufsz; i > 0; i--) { in do_test()
|
/linux-6.12.1/arch/arm64/kernel/ |
D | machine_kexec_file.c | 119 kbuf.bufsz = headers_sz; in load_other_segments() 136 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in load_other_segments() 143 kbuf.bufsz = initrd_len; in load_other_segments() 158 initrd_load_addr, kbuf.bufsz, kbuf.memsz); in load_other_segments() 174 kbuf.bufsz = dtb_len; in load_other_segments() 189 kbuf.mem, kbuf.bufsz, kbuf.memsz); in load_other_segments()
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | debugfs.c | 133 static const size_t bufsz = 1024; in mt7915_sys_recovery_get() local 135 buff = kmalloc(bufsz, GFP_KERNEL); in mt7915_sys_recovery_get() 140 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 142 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 144 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 146 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 148 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 150 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 152 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 154 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() [all …]
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-io.c | 288 size_t bufsz = ARRAY_SIZE(rfh_tbl) * 53 + in iwl_dump_rfh() local 291 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dump_rfh() 295 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh() 299 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh() 309 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh() 377 size_t bufsz = ARRAY_SIZE(fh_tbl) * 48 + 40; in iwl_dump_fh() local 379 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dump_fh() 383 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh() 387 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
|
/linux-6.12.1/ipc/ |
D | msg.c | 1026 static long do_msg_fill(void __user *dest, struct msg_msg *msg, size_t bufsz) in do_msg_fill() argument 1034 msgsz = (bufsz > msg->m_ts) ? msg->m_ts : bufsz; in do_msg_fill() 1045 static inline struct msg_msg *prepare_copy(void __user *buf, size_t bufsz) in prepare_copy() argument 1052 copy = load_msg(buf, bufsz); in prepare_copy() 1054 copy->m_ts = bufsz; in prepare_copy() 1064 static inline struct msg_msg *prepare_copy(void __user *buf, size_t bufsz) in prepare_copy() argument 1098 static long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, int msgflg, in do_msgrcv() argument 1109 if (msqid < 0 || (long) bufsz < 0) in do_msgrcv() 1115 copy = prepare_copy(buf, min_t(size_t, bufsz, ns->msg_ctlmax)); in do_msgrcv() 1150 if ((bufsz < msg->m_ts) && !(msgflg & MSG_NOERROR)) { in do_msgrcv() [all …]
|
/linux-6.12.1/kernel/ |
D | kexec_file.c | 406 i, ksegment->buf, ksegment->bufsz, ksegment->mem, in SYSCALL_DEFINE5() 693 ksegment->bufsz = kbuf->bufsz; in kexec_add_buffer() 768 ksegment->bufsz); in kexec_calculate_store_digests() 776 nullsz = ksegment->memsz - ksegment->bufsz; in kexec_calculate_store_digests() 845 kbuf->bufsz = bss_sz = 0; in kexec_purgatory_setup_kbuf() 855 kbuf->bufsz = ALIGN(kbuf->bufsz, align); in kexec_purgatory_setup_kbuf() 856 kbuf->bufsz += sechdrs[i].sh_size; in kexec_purgatory_setup_kbuf() 864 kbuf->bufsz = ALIGN(kbuf->bufsz, bss_align); in kexec_purgatory_setup_kbuf() 865 kbuf->memsz = kbuf->bufsz + bss_sz; in kexec_purgatory_setup_kbuf() 869 kbuf->buffer = vzalloc(kbuf->bufsz); in kexec_purgatory_setup_kbuf() [all …]
|
/linux-6.12.1/arch/x86/kernel/ |
D | kexec-bzimage64.c | 472 kbuf.bufsz = params_cmdline_sz + ALIGN(efi_map_sz, 16) + in bzImage64_load() 479 kbuf.bufsz += sizeof(struct setup_data) + in bzImage64_load() 482 params = kzalloc(kbuf.bufsz, GFP_KERNEL); in bzImage64_load() 495 kbuf.memsz = kbuf.bufsz; in bzImage64_load() 503 bootparam_load_addr, kbuf.bufsz, kbuf.memsz); in bzImage64_load() 507 kbuf.bufsz = kernel_len - kern16_size; in bzImage64_load() 521 kernel_load_addr, kbuf.bufsz, kbuf.memsz); in bzImage64_load() 526 kbuf.bufsz = kbuf.memsz = initrd_len; in bzImage64_load()
|
D | crash.c | 368 ret = prepare_elf_headers(&kbuf.buffer, &kbuf.bufsz, &pnum); in crash_load_segments() 373 image->elf_headers_sz = kbuf.bufsz; in crash_load_segments() 374 kbuf.memsz = kbuf.bufsz; in crash_load_segments() 406 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in crash_load_segments()
|
/linux-6.12.1/arch/s390/kernel/ |
D | kexec_image.c | 24 buf.bufsz = image->kernel_buf_len; in kexec_file_add_kernel_image() 31 buf.memsz = buf.bufsz; in kexec_file_add_kernel_image()
|
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/fw/ |
D | debugfs.c | 110 #define FWRT_DEBUGFS_READ_FILE_OPS(name, bufsz) \ argument 111 _FWRT_DEBUGFS_READ_FILE_OPS(name, bufsz, struct iwl_fw_runtime) 113 #define FWRT_DEBUGFS_WRITE_FILE_OPS(name, bufsz) \ argument 114 _FWRT_DEBUGFS_WRITE_FILE_OPS(name, bufsz, struct iwl_fw_runtime) 116 #define FWRT_DEBUGFS_READ_WRITE_FILE_OPS(name, bufsz) \ argument 117 _FWRT_DEBUGFS_READ_WRITE_FILE_OPS(name, bufsz, struct iwl_fw_runtime)
|
D | rs.c | 192 int rs_pretty_print_rate(char *buf, int bufsz, const u32 rate) in rs_pretty_print_rate() argument 209 return scnprintf(buf, bufsz, "Legacy | ANT: %s Rate: %s Mbps", in rs_pretty_print_rate() 234 return scnprintf(buf, bufsz, in rs_pretty_print_rate()
|
/linux-6.12.1/net/tipc/ |
D | eth_media.c | 42 char *strbuf, int bufsz) in tipc_eth_addr2str() argument 44 if (bufsz < 18) /* 18 = strlen("aa:bb:cc:dd:ee:ff\0") */ in tipc_eth_addr2str()
|
/linux-6.12.1/tools/perf/tests/ |
D | sample-parsing.c | 273 size_t i, sz, bufsz; in do_test() local 298 bufsz = sz + 4096; /* Add a bit for overrun checking */ in do_test() 299 event = malloc(bufsz); in do_test() 305 memset(event, 0xff, bufsz); in do_test() 319 for (i = bufsz; i > 0; i--) { in do_test()
|
/linux-6.12.1/arch/x86/platform/efi/ |
D | runtime-map.c | 149 int efi_runtime_map_copy(void *buf, size_t bufsz) in efi_runtime_map_copy() argument 153 if (sz > bufsz) in efi_runtime_map_copy() 154 sz = bufsz; in efi_runtime_map_copy()
|
/linux-6.12.1/drivers/media/test-drivers/visl/ |
D | visl-dec.c | 255 static int visl_fill_bytesused(struct vb2_v4l2_buffer *v4l2_vb2_buf, char *buf, size_t bufsz) in visl_fill_bytesused() argument 261 len += scnprintf(buf, bufsz, in visl_fill_bytesused() 271 struct visl_run *run, char buf[], size_t bufsz) in visl_tpg_fill_sequence() argument 279 len = scnprintf(buf, bufsz, in visl_tpg_fill_sequence() 286 bufsz -= len; in visl_tpg_fill_sequence() 289 scnprintf(buf, bufsz, in visl_tpg_fill_sequence() 300 char buf[], size_t bufsz) in visl_tpg_fill_codec_specific() argument 313 scnprintf(buf, bufsz, in visl_tpg_fill_codec_specific() 317 scnprintf(buf, bufsz, in visl_tpg_fill_codec_specific()
|