| /linux-6.15/drivers/net/wireless/intel/iwlwifi/dvm/ |
| H A 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() 195 buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_stations_read() 284 int pos = 0, i, bufsz = PAGE_SIZE; in iwl_dbgfs_channels_read() local 288 buf = kzalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_channels_read() 350 const size_t bufsz = sizeof(buf); in iwl_dbgfs_status_read() local 389 buf = kzalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_rx_handlers_read() 436 const size_t bufsz = sizeof(buf); in iwl_dbgfs_qos_read() local 465 const size_t bufsz = sizeof(buf); in iwl_dbgfs_thermal_throttling_read() local [all …]
|
| H A D | main.c | 1734 if (bufsz) { in iwl_print_event_log() 1746 if (bufsz) { in iwl_print_event_log() 1781 pos, buf, bufsz); in iwl_print_last_event_logs() 1784 pos, buf, bufsz); in iwl_print_last_event_logs() 1791 mode, pos, buf, bufsz); in iwl_print_last_event_logs() 1813 size_t bufsz = 0; in iwl_dump_nic_event_log() local 1871 bufsz = capacity * 48; in iwl_dump_nic_event_log() 1873 bufsz = size * 48; in iwl_dump_nic_event_log() 1887 pos, buf, bufsz); in iwl_dump_nic_event_log() 1894 pos, buf, bufsz); in iwl_dump_nic_event_log() [all …]
|
| /linux-6.15/drivers/net/wireless/intel/iwlegacy/ |
| H A D | 4965-debug.c | 28 p += scnprintf(buf + p, bufsz - p, 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() 177 scnprintf(buf + pos, bufsz - pos, fmt_table, in il4965_ucode_rx_stats_read() 267 scnprintf(buf + pos, bufsz - pos, fmt_table, in il4965_ucode_rx_stats_read() 466 buf = kzalloc(bufsz, GFP_KERNEL); in il4965_ucode_tx_stats_read() 481 pos += il4965_stats_flag(il, buf, bufsz); in il4965_ucode_tx_stats_read() 635 buf = kzalloc(bufsz, GFP_KERNEL); in il4965_ucode_general_stats_read() [all …]
|
| H A D | 3945-debug.c | 22 p += scnprintf(buf + p, bufsz - p, 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() 78 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 83 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 88 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 93 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 98 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 103 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 312 buf = kzalloc(bufsz, GFP_KERNEL); in il3945_ucode_tx_stats_read() [all …]
|
| H A 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() 270 const size_t bufsz = in il_dbgfs_rx_stats_read() local 272 buf = kzalloc(bufsz, GFP_KERNEL); in il_dbgfs_rx_stats_read() 314 size_t bufsz; in il_dbgfs_sram_read() local 325 buf = kmalloc(bufsz, GFP_KERNEL); in il_dbgfs_sram_read() 401 buf = kmalloc(bufsz, GFP_KERNEL); in il_dbgfs_stations_read() 510 buf = kzalloc(bufsz, GFP_KERNEL); in il_dbgfs_channels_read() 583 const size_t bufsz = sizeof(buf); in il_dbgfs_status_read() local 648 buf = kzalloc(bufsz, GFP_KERNEL); in il_dbgfs_interrupt_read() [all …]
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | debugfs-vif.c | 141 int bufsz = sizeof(buf); in iwl_dbgfs_tx_pwr_lmt_read() local 158 int bufsz = sizeof(buf); in iwl_dbgfs_pm_params_read() local 176 int bufsz = sizeof(buf); in iwl_dbgfs_mac_params_read() local 215 pos += scnprintf(buf+pos, bufsz-pos, in iwl_dbgfs_mac_params_read() 229 pos += scnprintf(buf+pos, bufsz-pos, in iwl_dbgfs_mac_params_read() 239 pos += scnprintf(buf+pos, bufsz-pos, in iwl_dbgfs_mac_params_read() 400 const size_t bufsz = sizeof(buf); in iwl_dbgfs_bf_params_read() local 452 const size_t bufsz = sizeof(buf); in iwl_dbgfs_os_device_timediff_read() local 804 int bufsz, pos, i; in iwl_dbgfs_esr_disable_reason_read() local 811 bufsz = hweight32(esr_mask) * 32 + 40; in iwl_dbgfs_esr_disable_reason_read() [all …]
|
| H A D | debugfs.c | 320 int bufsz = sizeof(buf); in iwl_dbgfs_sar_geo_profile_read() local 334 pos = scnprintf(buf, bufsz, in iwl_dbgfs_sar_geo_profile_read() 438 if (desc < bufsz - 1) in iwl_dbgfs_rs_data_read() 502 int bufsz = sizeof(buf); in iwl_dbgfs_disable_power_off_read() local 597 endpos = pos + bufsz; in iwl_dbgfs_tas_get_status_read() 733 size_t bufsz; in iwl_dbgfs_phy_integration_ver_read() local 766 size_t bufsz; in iwl_dbgfs_fw_rx_stats_read() local 959 size_t bufsz; in iwl_dbgfs_fw_system_stats_read() local 977 endpos = pos + bufsz; in iwl_dbgfs_fw_system_stats_read() 1065 endpos = pos + bufsz; in iwl_dbgfs_frame_stats_read() [all …]
|
| H A 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() 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() 761 pos += scnprintf(buf+pos, bufsz-pos, "uapsd_max_sp = %d\n", in iwl_mvm_power_mac_dbgfs_read() 779 pos += scnprintf(buf+pos, bufsz-pos, "snooze_interval = %d\n", in iwl_mvm_power_mac_dbgfs_read() [all …]
|
| /linux-6.15/net/mac80211/ |
| H A D | debugfs_sta.c | 154 bufsz + buf - p, in sta_aqm_read() 160 bufsz + buf - p, in sta_aqm_read() 167 p += scnprintf(p, bufsz + buf - p, in sta_aqm_read() 201 size_t bufsz = 400; in sta_airtime_read() local 219 p += scnprintf(p, bufsz + buf - p, in sta_airtime_read() 254 size_t bufsz = 400; in sta_aql_read() local 272 p += scnprintf(p, bufsz + buf - p, in sta_aql_read() 480 ssize_t bufsz = 512; in link_sta_ht_capa_read() local 485 buf = kzalloc(bufsz, GFP_KERNEL); in link_sta_ht_capa_read() 568 ssize_t bufsz = 512; in link_sta_vht_capa_read() local [all …]
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | debugfs.h | 99 #define WIPHY_DEBUGFS_WRITE_WRAPPER(name, bufsz, objtype) \ argument 107 char buf[bufsz] = {}; \ 116 #define WIPHY_DEBUGFS_WRITE_FILE_OPS(name, bufsz, objtype) \ argument 117 WIPHY_DEBUGFS_WRITE_WRAPPER(name, bufsz, objtype) \ 184 #define WIPHY_DEBUGFS_READ_FILE_OPS_MLD(name, bufsz) \ argument 185 MLD_DEBUGFS_OPEN_WRAPPER(name, bufsz, struct iwl_mld) \ 194 #define WIPHY_DEBUGFS_WRITE_FILE_OPS_MLD(name, bufsz) \ argument 195 MLD_DEBUGFS_OPEN_WRAPPER(name, bufsz, struct iwl_mld) \ 204 #define WIPHY_DEBUGFS_READ_WRITE_FILE_OPS_MLD(name, bufsz) \ argument 205 MLD_DEBUGFS_OPEN_WRAPPER(name, bufsz, struct iwl_mld) \ [all …]
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | debugfs.c | 136 static const size_t bufsz = 1024; in mt7996_sys_recovery_get() local 138 buff = kmalloc(bufsz, GFP_KERNEL); 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() 157 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() [all …]
|
| /linux-6.15/tools/perf/arch/x86/tests/ |
| H A 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.15/arch/arm64/kernel/ |
| H A 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.15/drivers/net/wireless/realtek/rtw89/ |
| H A D | debug.c | 36 char *buf, size_t bufsz); 92 size_t bufsz; member 97 char *buf, size_t bufsz) in rtw89_debugfs_iter_data_setup() argument 100 iter_data->bufsz = bufsz; in rtw89_debugfs_iter_data_setup() 108 iter_data->bufsz = bufsz; in rtw89_debugfs_iter_data_next() 422 char *buf, size_t bufsz) in rtw89_debug_priv_rf_reg_dump_get() argument 949 char *buf, size_t bufsz) in rtw89_debug_priv_txpwr_table_get() argument 3827 size_t bufsz = iter_data->bufsz; in rtw89_sta_info_get_iter() local 4021 size_t bufsz = iter_data->bufsz; in rtw89_vif_ids_get_iter() local 4086 size_t bufsz = iter_data->bufsz; in rtw89_sta_ids_get_iter() local [all …]
|
| H A D | sar.h | 22 int rtw89_print_sar(struct rtw89_dev *rtwdev, char *buf, size_t bufsz, 24 int rtw89_print_tas(struct rtw89_dev *rtwdev, char *buf, size_t bufsz);
|
| /linux-6.15/drivers/media/platform/qcom/iris/ |
| H A D | iris_hfi_gen1_command.c | 700 struct hfi_buffer_size_actual bufsz; in iris_hfi_gen1_set_bufsize() local 704 bufsz.type = HFI_BUFFER_OUTPUT; in iris_hfi_gen1_set_bufsize() 707 ret = hfi_gen1_set_property(inst, ptype, &bufsz, sizeof(bufsz)); in iris_hfi_gen1_set_bufsize() 711 bufsz.type = HFI_BUFFER_OUTPUT2; in iris_hfi_gen1_set_bufsize() 712 bufsz.size = inst->buffers[BUF_OUTPUT].size; in iris_hfi_gen1_set_bufsize() 714 ret = hfi_gen1_set_property(inst, ptype, &bufsz, sizeof(bufsz)); in iris_hfi_gen1_set_bufsize() 716 bufsz.type = HFI_BUFFER_OUTPUT; in iris_hfi_gen1_set_bufsize() 719 ret = hfi_gen1_set_property(inst, ptype, &bufsz, sizeof(bufsz)); in iris_hfi_gen1_set_bufsize() 723 bufsz.type = HFI_BUFFER_OUTPUT2; in iris_hfi_gen1_set_bufsize() 724 bufsz.size = 0; in iris_hfi_gen1_set_bufsize() [all …]
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/mt7915/ |
| H A 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.15/drivers/net/wireless/intel/iwlwifi/ |
| H A 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.15/kernel/ |
| H A D | kexec_file.c | 406 i, ksegment->buf, ksegment->bufsz, ksegment->mem, in SYSCALL_DEFINE5() 705 ksegment->bufsz = kbuf->bufsz; in kexec_add_buffer() 780 ksegment->bufsz); in kexec_calculate_store_digests() 788 nullsz = ksegment->memsz - ksegment->bufsz; in kexec_calculate_store_digests() 857 kbuf->bufsz = bss_sz = 0; in kexec_purgatory_setup_kbuf() 867 kbuf->bufsz = ALIGN(kbuf->bufsz, align); in kexec_purgatory_setup_kbuf() 868 kbuf->bufsz += sechdrs[i].sh_size; in kexec_purgatory_setup_kbuf() 876 kbuf->bufsz = ALIGN(kbuf->bufsz, bss_align); in kexec_purgatory_setup_kbuf() 877 kbuf->memsz = kbuf->bufsz + bss_sz; in kexec_purgatory_setup_kbuf() 881 kbuf->buffer = vzalloc(kbuf->bufsz); in kexec_purgatory_setup_kbuf() [all …]
|
| /linux-6.15/ipc/ |
| H A D | msg.c | 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() 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() 1188 msr_d.r_maxsize = bufsz; in do_msgrcv() 1258 bufsz = msg_handler(buf, msg, bufsz); in do_msgrcv() 1261 return bufsz; in do_msgrcv() [all …]
|
| /linux-6.15/arch/x86/kernel/ |
| H A 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()
|
| /linux-6.15/arch/s390/kernel/ |
| H A 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.15/net/tipc/ |
| H A 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.15/arch/x86/platform/efi/ |
| H A 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.15/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A 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)
|