/linux-6.6.21/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 | 1683 int pos, char **buf, size_t bufsz) in iwl_print_event_log() argument 1726 if (bufsz) { in iwl_print_event_log() 1727 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log() 1738 if (bufsz) { in iwl_print_event_log() 1739 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log() 1762 int pos, char **buf, size_t bufsz) in iwl_print_last_event_logs() argument 1773 pos, buf, bufsz); in iwl_print_last_event_logs() 1776 pos, buf, bufsz); in iwl_print_last_event_logs() 1779 size, mode, pos, buf, bufsz); in iwl_print_last_event_logs() 1783 mode, pos, buf, bufsz); in iwl_print_last_event_logs() [all …]
|
/linux-6.6.21/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.6.21/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 | 310 int bufsz = sizeof(buf); in iwl_dbgfs_sar_geo_profile_read() local 324 pos = scnprintf(buf, bufsz, in iwl_dbgfs_sar_geo_profile_read() 327 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read() 329 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read() 334 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read() 372 int i, pos = 0, bufsz = sizeof(buf); in iwl_dbgfs_stations_read() local 377 pos += scnprintf(buf + pos, bufsz - pos, "%.2d: ", i); in iwl_dbgfs_stations_read() 381 pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); in iwl_dbgfs_stations_read() 383 pos += scnprintf(buf + pos, bufsz - pos, "%ld\n", in iwl_dbgfs_stations_read() 386 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_stations_read() [all …]
|
D | power.c | 702 int bufsz) in iwl_mvm_power_mac_dbgfs_read() argument 712 pos += scnprintf(buf+pos, bufsz-pos, "power_scheme = %d\n", in iwl_mvm_power_mac_dbgfs_read() 714 pos += scnprintf(buf+pos, bufsz-pos, "flags = 0x%x\n", in iwl_mvm_power_mac_dbgfs_read() 716 pos += scnprintf(buf+pos, bufsz-pos, "keep_alive = %d\n", in iwl_mvm_power_mac_dbgfs_read() 722 pos += scnprintf(buf+pos, bufsz-pos, "skip_over_dtim = %d\n", in iwl_mvm_power_mac_dbgfs_read() 725 pos += scnprintf(buf+pos, bufsz-pos, "skip_dtim_periods = %d\n", in iwl_mvm_power_mac_dbgfs_read() 728 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read() 730 pos += scnprintf(buf+pos, bufsz-pos, "tx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read() 734 pos += scnprintf(buf+pos, bufsz-pos, in iwl_mvm_power_mac_dbgfs_read() 741 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout_uapsd = %d\n", in iwl_mvm_power_mac_dbgfs_read() [all …]
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/arch/arm64/kernel/ |
D | machine_kexec_file.c | 114 kbuf.bufsz = headers_sz; in load_other_segments() 131 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in load_other_segments() 137 kbuf.bufsz = initrd_len; in load_other_segments() 152 initrd_load_addr, kbuf.bufsz, kbuf.memsz); in load_other_segments() 168 kbuf.bufsz = dtb_len; in load_other_segments() 183 kbuf.mem, kbuf.bufsz, kbuf.memsz); in load_other_segments()
|
/linux-6.6.21/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.6.21/arch/x86/kernel/ |
D | kexec-bzimage64.c | 463 kbuf.bufsz = params_cmdline_sz + ALIGN(efi_map_sz, 16) + in bzImage64_load() 470 kbuf.bufsz += sizeof(struct setup_data) + in bzImage64_load() 473 params = kzalloc(kbuf.bufsz, GFP_KERNEL); in bzImage64_load() 486 kbuf.memsz = kbuf.bufsz; in bzImage64_load() 494 bootparam_load_addr, kbuf.bufsz, kbuf.bufsz); in bzImage64_load() 498 kbuf.bufsz = kernel_len - kern16_size; in bzImage64_load() 509 kernel_load_addr, kbuf.bufsz, kbuf.memsz); in bzImage64_load() 514 kbuf.bufsz = kbuf.memsz = initrd_len; in bzImage64_load()
|
D | crash.c | 352 ret = prepare_elf_headers(image, &kbuf.buffer, &kbuf.bufsz, &pnum); in crash_load_segments() 357 image->elf_headers_sz = kbuf.bufsz; in crash_load_segments() 358 kbuf.memsz = kbuf.bufsz; in crash_load_segments() 390 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in crash_load_segments()
|
/linux-6.6.21/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.6.21/kernel/ |
D | kexec_file.c | 392 i, ksegment->buf, ksegment->bufsz, ksegment->mem, in SYSCALL_DEFINE5() 669 ksegment->bufsz = kbuf->bufsz; in kexec_add_buffer() 744 ksegment->bufsz); in kexec_calculate_store_digests() 752 nullsz = ksegment->memsz - ksegment->bufsz; in kexec_calculate_store_digests() 821 kbuf->bufsz = bss_sz = 0; in kexec_purgatory_setup_kbuf() 831 kbuf->bufsz = ALIGN(kbuf->bufsz, align); in kexec_purgatory_setup_kbuf() 832 kbuf->bufsz += sechdrs[i].sh_size; in kexec_purgatory_setup_kbuf() 840 kbuf->bufsz = ALIGN(kbuf->bufsz, bss_align); in kexec_purgatory_setup_kbuf() 841 kbuf->memsz = kbuf->bufsz + bss_sz; in kexec_purgatory_setup_kbuf() 845 kbuf->buffer = vzalloc(kbuf->bufsz); in kexec_purgatory_setup_kbuf() [all …]
|
/linux-6.6.21/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.6.21/arch/s390/kernel/ |
D | kexec_image.c | 24 buf.bufsz = image->kernel_buf_len; in kexec_file_add_kernel_image() 29 buf.memsz = buf.bufsz; in kexec_file_add_kernel_image()
|
/linux-6.6.21/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.6.21/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() 235 return scnprintf(buf, bufsz, in rs_pretty_print_rate()
|
/linux-6.6.21/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.6.21/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.6.21/arch/parisc/kernel/ |
D | kexec_file.c | 46 kbuf.bufsz = kbuf.memsz = initrd_len; in elf_load() 61 kbuf.bufsz = kbuf.memsz = ALIGN(cmdline_len, 8); in elf_load()
|