Home
last modified time | relevance | path

Searched refs:bufsz (Results 1 – 25 of 81) sorted by relevance

1234

/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/dvm/
A Ddebugfs.c66 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 …]
A Dmain.c1726 if (bufsz) { in iwl_print_event_log()
1738 if (bufsz) { in iwl_print_event_log()
1773 pos, buf, bufsz); in iwl_print_last_event_logs()
1776 pos, buf, bufsz); in iwl_print_last_event_logs()
1783 mode, pos, buf, bufsz); in iwl_print_last_event_logs()
1805 size_t bufsz = 0; in iwl_dump_nic_event_log() local
1863 bufsz = capacity * 48; in iwl_dump_nic_event_log()
1865 bufsz = size * 48; in iwl_dump_nic_event_log()
1879 pos, buf, bufsz); in iwl_dump_nic_event_log()
1886 pos, buf, bufsz); in iwl_dump_nic_event_log()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intel/iwlegacy/
A D4965-debug.c28 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 …]
A D3945-debug.c22 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 …]
A Ddebug.c210 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.3-rc2/net/mac80211/
A Ddebugfs_sta.c156 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
221 p += scnprintf(p, bufsz + buf - p, in sta_airtime_read()
256 size_t bufsz = 400; in sta_aql_read() local
274 p += scnprintf(p, bufsz + buf - p, in sta_aql_read()
326 buf = kzalloc(bufsz, GFP_KERNEL); in sta_agg_status_read()
470 ssize_t bufsz = 512; in link_sta_ht_capa_read() local
475 buf = kzalloc(bufsz, GFP_KERNEL); in link_sta_ht_capa_read()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/mvm/
A Ddebugfs-vif.c141 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
176 int bufsz = sizeof(buf); in iwl_dbgfs_mac_params_read() local
211 pos += scnprintf(buf+pos, bufsz-pos, "Load: %d\n", in iwl_dbgfs_mac_params_read()
213 pos += scnprintf(buf+pos, bufsz-pos, "QoS:\n"); in iwl_dbgfs_mac_params_read()
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
[all …]
A Ddebugfs.c307 int bufsz = sizeof(buf); in iwl_dbgfs_sar_geo_profile_read() local
321 pos = scnprintf(buf, bufsz, in iwl_dbgfs_sar_geo_profile_read()
408 if (desc < bufsz - 1) in iwl_dbgfs_rs_data_read()
469 int bufsz = sizeof(buf); in iwl_dbgfs_disable_power_off_read() local
509 int pos, int bufsz) in iwl_mvm_coex_dump_mbox() argument
617 int bufsz = sizeof(buf); in iwl_dbgfs_bt_cmd_read() local
700 endpos = pos + bufsz; in iwl_dbgfs_fw_ver_read()
723 size_t bufsz; in iwl_dbgfs_phy_integration_ver_read() local
756 size_t bufsz; in iwl_dbgfs_fw_rx_stats_read() local
953 endpos = pos + bufsz; in iwl_dbgfs_frame_stats_read()
[all …]
A Dpower.c681 int bufsz) in iwl_mvm_power_mac_dbgfs_read() argument
691 pos += scnprintf(buf+pos, bufsz-pos, "power_scheme = %d\n", in iwl_mvm_power_mac_dbgfs_read()
693 pos += scnprintf(buf+pos, bufsz-pos, "flags = 0x%x\n", in iwl_mvm_power_mac_dbgfs_read()
695 pos += scnprintf(buf+pos, bufsz-pos, "keep_alive = %d\n", in iwl_mvm_power_mac_dbgfs_read()
701 pos += scnprintf(buf+pos, bufsz-pos, "skip_over_dtim = %d\n", in iwl_mvm_power_mac_dbgfs_read()
707 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
709 pos += scnprintf(buf+pos, bufsz-pos, "tx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
713 pos += scnprintf(buf+pos, bufsz-pos, in iwl_mvm_power_mac_dbgfs_read()
727 pos += scnprintf(buf+pos, bufsz-pos, "uapsd_max_sp = %d\n", in iwl_mvm_power_mac_dbgfs_read()
745 pos += scnprintf(buf+pos, bufsz-pos, "snooze_interval = %d\n", in iwl_mvm_power_mac_dbgfs_read()
[all …]
/linux-6.3-rc2/tools/perf/arch/x86/tests/
A Dsample-parsing.c56 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.3-rc2/arch/arm64/kernel/
A Dmachine_kexec_file.c114 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()
A Dkexec_image.c81 kbuf.bufsz = kernel_len; in image_load()
126 kernel_segment->mem, kbuf.bufsz, in image_load()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7915/
A Ddebugfs.c133 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.3-rc2/arch/x86/kernel/
A Dkexec-bzimage64.c463 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()
A Dcrash.c378 ret = prepare_elf_headers(image, &kbuf.buffer, &kbuf.bufsz); in crash_load_segments()
383 image->elf_headers_sz = kbuf.bufsz; in crash_load_segments()
385 kbuf.memsz = kbuf.bufsz; in crash_load_segments()
393 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in crash_load_segments()
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/
A Diwl-io.c286 size_t bufsz = ARRAY_SIZE(rfh_tbl) * 53 + in iwl_dump_rfh() local
289 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dump_rfh()
293 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh()
297 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh()
307 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh()
375 size_t bufsz = ARRAY_SIZE(fh_tbl) * 48 + 40; in iwl_dump_fh() local
377 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dump_fh()
381 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
385 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
/linux-6.3-rc2/ipc/
A Dmsg.c1034 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.3-rc2/kernel/
A Dkexec_file.c392 i, ksegment->buf, ksegment->bufsz, ksegment->mem, in SYSCALL_DEFINE5()
669 ksegment->bufsz = kbuf->bufsz; in kexec_add_buffer()
738 ksegment->bufsz); in kexec_calculate_store_digests()
746 nullsz = ksegment->memsz - ksegment->bufsz; in kexec_calculate_store_digests()
815 kbuf->bufsz = bss_sz = 0; in kexec_purgatory_setup_kbuf()
825 kbuf->bufsz = ALIGN(kbuf->bufsz, align); in kexec_purgatory_setup_kbuf()
826 kbuf->bufsz += sechdrs[i].sh_size; in kexec_purgatory_setup_kbuf()
834 kbuf->bufsz = ALIGN(kbuf->bufsz, bss_align); in kexec_purgatory_setup_kbuf()
835 kbuf->memsz = kbuf->bufsz + bss_sz; in kexec_purgatory_setup_kbuf()
839 kbuf->buffer = vzalloc(kbuf->bufsz); in kexec_purgatory_setup_kbuf()
[all …]
/linux-6.3-rc2/arch/s390/kernel/
A Dkexec_image.c24 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.3-rc2/net/tipc/
A Deth_media.c42 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.3-rc2/drivers/net/wireless/intel/iwlwifi/fw/
A Ddebugfs.c110 #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)
A Drs.c192 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.3-rc2/tools/perf/tests/
A Dsample-parsing.c273 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.3-rc2/arch/x86/platform/efi/
A Druntime-map.c149 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.3-rc2/arch/parisc/kernel/
A Dkexec_file.c46 kbuf.bufsz = kbuf.memsz = initrd_len; in elf_load()
61 kbuf.bufsz = kbuf.memsz = ALIGN(cmdline_len, 8); in elf_load()

Completed in 60 milliseconds

1234