Lines Matching refs:bufsz

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()
403 static const size_t bufsz = 2048; in iwl_dbgfs_rs_data_read() local
408 buff = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_rs_data_read()
412 desc += scnprintf(buff + desc, bufsz - desc, "sta_id %d\n", in iwl_dbgfs_rs_data_read()
414 desc += scnprintf(buff + desc, bufsz - desc, in iwl_dbgfs_rs_data_read()
417 desc += scnprintf(buff + desc, bufsz - desc, in iwl_dbgfs_rs_data_read()
420 desc += scnprintf(buff + desc, bufsz - desc, in iwl_dbgfs_rs_data_read()
424 desc += scnprintf(buff + desc, bufsz - desc, in iwl_dbgfs_rs_data_read()
428 desc += rs_pretty_print_rate(buff + desc, bufsz - desc, in iwl_dbgfs_rs_data_read()
430 if (desc < bufsz - 1) in iwl_dbgfs_rs_data_read()
495 int bufsz = sizeof(buf); in iwl_dbgfs_disable_power_off_read() local
498 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d0=%d\n", in iwl_dbgfs_disable_power_off_read()
500 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d3=%d\n", in iwl_dbgfs_disable_power_off_read()
535 int pos, int bufsz) in iwl_mvm_coex_dump_mbox() argument
537 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw0:\n"); in iwl_mvm_coex_dump_mbox()
551 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw1:\n"); in iwl_mvm_coex_dump_mbox()
560 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw2:\n"); in iwl_mvm_coex_dump_mbox()
573 pos += scnprintf(buf+pos, bufsz-pos, "MBOX dw3:\n"); in iwl_mvm_coex_dump_mbox()
599 int ret, pos = 0, bufsz = sizeof(char) * 1024; in iwl_dbgfs_bt_notif_read() local
601 buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_bt_notif_read()
607 pos += iwl_mvm_coex_dump_mbox(notif, buf, pos, bufsz); in iwl_dbgfs_bt_notif_read()
609 pos += scnprintf(buf + pos, bufsz - pos, "bt_ci_compliance = %d\n", in iwl_dbgfs_bt_notif_read()
611 pos += scnprintf(buf + pos, bufsz - pos, "primary_ch_lut = %d\n", in iwl_dbgfs_bt_notif_read()
613 pos += scnprintf(buf + pos, bufsz - pos, "secondary_ch_lut = %d\n", in iwl_dbgfs_bt_notif_read()
616 bufsz - pos, "bt_activity_grading = %d\n", in iwl_dbgfs_bt_notif_read()
618 pos += scnprintf(buf + pos, bufsz - pos, "bt_rrc = %d\n", in iwl_dbgfs_bt_notif_read()
620 pos += scnprintf(buf + pos, bufsz - pos, "bt_ttc = %d\n", in iwl_dbgfs_bt_notif_read()
623 pos += scnprintf(buf + pos, bufsz - pos, "sync_sco = %d\n", in iwl_dbgfs_bt_notif_read()
625 pos += scnprintf(buf + pos, bufsz - pos, "mplut = %d\n", in iwl_dbgfs_bt_notif_read()
643 int bufsz = sizeof(buf); in iwl_dbgfs_bt_cmd_read() local
648 pos += scnprintf(buf + pos, bufsz - pos, "Channel inhibition CMD\n"); in iwl_dbgfs_bt_cmd_read()
649 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_bt_cmd_read()
652 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_bt_cmd_read()
718 static const size_t bufsz = 1024; in iwl_dbgfs_fw_ver_read() local
722 buff = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_fw_ver_read()
727 endpos = pos + bufsz; in iwl_dbgfs_fw_ver_read()
751 static const size_t bufsz = 1024; in iwl_dbgfs_tas_get_status_read() local
792 buff = kzalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_tas_get_status_read()
796 endpos = pos + bufsz; in iwl_dbgfs_tas_get_status_read()
934 size_t bufsz; in iwl_dbgfs_phy_integration_ver_read() local
938 bufsz = mvm->fw->phy_integration_ver_len + 2; in iwl_dbgfs_phy_integration_ver_read()
939 buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_phy_integration_ver_read()
943 pos = scnprintf(buf, bufsz, "%.*s\n", mvm->fw->phy_integration_ver_len, in iwl_dbgfs_phy_integration_ver_read()
953 pos += scnprintf(buf + pos, bufsz - pos, \
967 size_t bufsz; in iwl_dbgfs_fw_rx_stats_read() local
970 bufsz = ((sizeof(struct mvm_statistics_rx) / in iwl_dbgfs_fw_rx_stats_read()
974 bufsz = ((sizeof(struct mvm_statistics_rx_v3) / in iwl_dbgfs_fw_rx_stats_read()
977 buf = kzalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_fw_rx_stats_read()
986 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
1021 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
1056 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
1112 pos += scnprintf(buf + pos, bufsz - pos, fmt_header, in iwl_dbgfs_fw_rx_stats_read()
1155 static const size_t bufsz = 1024; in iwl_dbgfs_frame_stats_read() local
1157 buff = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_frame_stats_read()
1164 endpos = pos + bufsz; in iwl_dbgfs_frame_stats_read()
1275 const size_t bufsz = sizeof(buf); in iwl_dbgfs_scan_ant_rxchain_read() local
1278 pos += scnprintf(buf + pos, bufsz - pos, "Antennas for scan: "); in iwl_dbgfs_scan_ant_rxchain_read()
1280 pos += scnprintf(buf + pos, bufsz - pos, "A"); in iwl_dbgfs_scan_ant_rxchain_read()
1282 pos += scnprintf(buf + pos, bufsz - pos, "B"); in iwl_dbgfs_scan_ant_rxchain_read()
1283 pos += scnprintf(buf + pos, bufsz - pos, " (%x)\n", mvm->scan_rx_ant); in iwl_dbgfs_scan_ant_rxchain_read()
1523 const size_t bufsz = sizeof(buf); in iwl_dbgfs_fw_dbg_conf_read() local
1530 pos += scnprintf(buf + pos, bufsz - pos, "%d\n", conf); in iwl_dbgfs_fw_dbg_conf_read()
1593 #define MVM_DEBUGFS_WRITE_FILE_OPS(name, bufsz) \ argument
1594 _MVM_DEBUGFS_WRITE_FILE_OPS(name, bufsz, struct iwl_mvm)
1595 #define MVM_DEBUGFS_READ_WRITE_FILE_OPS(name, bufsz) \ argument
1596 _MVM_DEBUGFS_READ_WRITE_FILE_OPS(name, bufsz, struct iwl_mvm)
1694 #define MVM_DEBUGFS_WRITE_LINK_STA_FILE_OPS(name, bufsz) \ argument
1695 MVM_DEBUGFS_LINK_STA_WRITE_WRAPPER(name, bufsz) \
1710 #define MVM_DEBUGFS_READ_WRITE_LINK_STA_FILE_OPS(name, bufsz) \ argument
1712 MVM_DEBUGFS_LINK_STA_WRITE_WRAPPER(name, bufsz) \
1734 const size_t bufsz = sizeof(buf); in iwl_dbgfs_prph_reg_read() local
1739 pos += scnprintf(buf + pos, bufsz - pos, "Reg 0x%x: (0x%x)\n", in iwl_dbgfs_prph_reg_read()
1884 size_t bufsz = sizeof(buf); in iwl_dbgfs_uapsd_noagg_bssids_read() local
1890 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_uapsd_noagg_bssids_read()