Home
last modified time | relevance | path

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

12

/drivers/net/wireless/intel/iwlwifi/dvm/
Ddebugfs.c70 size_t bufsz; in iwl_dbgfs_sram_read() local
90 bufsz = 50 + len * 4; in iwl_dbgfs_sram_read()
91 buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_sram_read()
95 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read()
97 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read()
110 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
114 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
117 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
130 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
132 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
[all …]
Dmain.c1689 int pos, char **buf, size_t bufsz) in iwl_print_event_log() argument
1732 if (bufsz) { in iwl_print_event_log()
1733 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log()
1744 if (bufsz) { in iwl_print_event_log()
1745 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log()
1768 int pos, char **buf, size_t bufsz) in iwl_print_last_event_logs() argument
1779 pos, buf, bufsz); in iwl_print_last_event_logs()
1782 pos, buf, bufsz); in iwl_print_last_event_logs()
1785 size, mode, pos, buf, bufsz); in iwl_print_last_event_logs()
1789 mode, pos, buf, bufsz); in iwl_print_last_event_logs()
[all …]
/drivers/net/wireless/intel/iwlegacy/
D4965-debug.c19 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 …]
D3945-debug.c15 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 …]
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()
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 …]
/drivers/net/wireless/intel/iwlwifi/mvm/
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
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 …]
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()
324 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read()
326 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read()
331 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sar_geo_profile_read()
349 int i, pos = 0, bufsz = sizeof(buf); in iwl_dbgfs_stations_read() local
354 pos += scnprintf(buf + pos, bufsz - pos, "%.2d: ", i); in iwl_dbgfs_stations_read()
358 pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); in iwl_dbgfs_stations_read()
360 pos += scnprintf(buf + pos, bufsz - pos, "%ld\n", in iwl_dbgfs_stations_read()
363 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_stations_read()
[all …]
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()
704 pos += scnprintf(buf+pos, bufsz-pos, "skip_dtim_periods = %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()
720 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout_uapsd = %d\n", in iwl_mvm_power_mac_dbgfs_read()
[all …]
Drs.c3692 int rs_pretty_print_rate(char *buf, int bufsz, const u32 rate) in rs_pretty_print_rate() argument
3704 return scnprintf(buf, bufsz, "Legacy | ANT: %s Rate: %s Mbps", in rs_pretty_print_rate()
3746 return scnprintf(buf, bufsz, in rs_pretty_print_rate()
3811 static const size_t bufsz = 2048; in rs_sta_dbgfs_scale_table_read() local
3822 buff = kmalloc(bufsz, GFP_KERNEL); in rs_sta_dbgfs_scale_table_read()
3826 desc += scnprintf(buff + desc, bufsz - desc, in rs_sta_dbgfs_scale_table_read()
3828 desc += scnprintf(buff + desc, bufsz - desc, in rs_sta_dbgfs_scale_table_read()
3832 desc += scnprintf(buff + desc, bufsz - desc, "fixed rate 0x%X\n", in rs_sta_dbgfs_scale_table_read()
3834 desc += scnprintf(buff + desc, bufsz - desc, "valid_tx_ant %s%s%s\n", in rs_sta_dbgfs_scale_table_read()
3838 desc += scnprintf(buff + desc, bufsz - desc, "lq type %s\n", in rs_sta_dbgfs_scale_table_read()
[all …]
/drivers/net/wireless/intel/iwlwifi/
Diwl-io.c284 size_t bufsz = ARRAY_SIZE(rfh_tbl) * 53 + in iwl_dump_rfh() local
287 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dump_rfh()
291 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh()
295 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh()
305 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh()
373 size_t bufsz = ARRAY_SIZE(fh_tbl) * 48 + 40; in iwl_dump_fh() local
375 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dump_fh()
379 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
383 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
/drivers/net/wireless/intel/iwlwifi/fw/
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)
/drivers/firmware/efi/
Druntime-map.c148 int efi_runtime_map_copy(void *buf, size_t bufsz) in efi_runtime_map_copy() argument
152 if (sz > bufsz) in efi_runtime_map_copy()
153 sz = bufsz; in efi_runtime_map_copy()
/drivers/net/wireless/intel/iwlwifi/pcie/
Dtrans.c2562 size_t bufsz; in iwl_dbgfs_rx_queue_read() local
2564 bufsz = sizeof(char) * 121 * trans->num_rx_queues; in iwl_dbgfs_rx_queue_read()
2569 buf = kzalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_rx_queue_read()
2573 for (i = 0; i < trans->num_rx_queues && pos < bufsz; i++) { in iwl_dbgfs_rx_queue_read()
2576 pos += scnprintf(buf + pos, bufsz - pos, "queue#: %2d\n", in iwl_dbgfs_rx_queue_read()
2578 pos += scnprintf(buf + pos, bufsz - pos, "\tread: %u\n", in iwl_dbgfs_rx_queue_read()
2580 pos += scnprintf(buf + pos, bufsz - pos, "\twrite: %u\n", in iwl_dbgfs_rx_queue_read()
2582 pos += scnprintf(buf + pos, bufsz - pos, "\twrite_actual: %u\n", in iwl_dbgfs_rx_queue_read()
2584 pos += scnprintf(buf + pos, bufsz - pos, "\tneed_update: %2d\n", in iwl_dbgfs_rx_queue_read()
2586 pos += scnprintf(buf + pos, bufsz - pos, "\tfree_count: %u\n", in iwl_dbgfs_rx_queue_read()
[all …]
/drivers/infiniband/hw/efa/
Defa_main.c198 u32 bufsz = sizeof(*hinf); in efa_set_host_info() local
206 hinf = dma_alloc_coherent(&dev->pdev->dev, bufsz, &hinf_dma, in efa_set_host_info()
234 hinf_dma, bufsz); in efa_set_host_info()
236 dma_free_coherent(&dev->pdev->dev, bufsz, hinf, hinf_dma); in efa_set_host_info()
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1339 unsigned int bufsz; in pch_gbe_alloc_rx_buffers() local
1341 bufsz = adapter->rx_buffer_len + NET_IP_ALIGN; in pch_gbe_alloc_rx_buffers()
1346 skb = netdev_alloc_skb(netdev, bufsz); in pch_gbe_alloc_rx_buffers()
1398 unsigned int bufsz; in pch_gbe_alloc_rx_buffers_pool() local
1401 bufsz = adapter->rx_buffer_len; in pch_gbe_alloc_rx_buffers_pool()
1403 size = rx_ring->count * bufsz + PCH_GBE_RESERVE_MEMORY; in pch_gbe_alloc_rx_buffers_pool()
1413 buffer_info->rx_buffer = rx_ring->rx_buff_pool + bufsz * i; in pch_gbe_alloc_rx_buffers_pool()
1414 buffer_info->length = bufsz; in pch_gbe_alloc_rx_buffers_pool()
1430 unsigned int bufsz; in pch_gbe_alloc_tx_buffers() local
1433 bufsz = in pch_gbe_alloc_tx_buffers()
[all …]
/drivers/scsi/bfa/
Dbfad_bsg.h560 int bufsz; member
664 u64 bufsz; member
672 u32 bufsz; member
Dbfad_bsg.c1558 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_update_part()
1569 iocmd->bufsz, 0, bfad_hcb_comp, &fcomp); in bfad_iocmd_flash_update_part()
1590 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_read_part()
1600 iocmd->instance, iocmd_bufptr, iocmd->bufsz, 0, in bfad_iocmd_flash_read_part()
1924 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_read()
1933 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_read()
1975 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_update()
1984 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_update()
2001 if (iocmd->bufsz < sizeof(struct bfa_plog_s)) { in bfad_iocmd_porglog_get()
2030 if (iocmd->bufsz < BFA_DEBUG_FW_CORE_CHUNK_SZ || in bfad_iocmd_debug_fw_core()
[all …]
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.c1075 int bufsz, ret; in nfp_nsp_read_module_eeprom() local
1080 bufsz = struct_size(buf, data, round_up(len, NSP_SFF_EEPROM_BLOCK_LEN)); in nfp_nsp_read_module_eeprom()
1081 buf = kzalloc(bufsz, GFP_KERNEL); in nfp_nsp_read_module_eeprom()
1091 ret = __nfp_nsp_module_eeprom(state, buf, bufsz); in nfp_nsp_read_module_eeprom()
/drivers/net/wireless/intel/iwlwifi/fw/api/
Dcoex.h141 pos += scnprintf(buf + pos, bufsz - pos, \
/drivers/media/pci/cx18/
Dcx18-queue.c347 unsigned bufsz = (((char __iomem *)cx->scb) + SCB_RESERVED_SIZE - in cx18_stream_alloc() local
352 bufsz / sizeof(struct cx18_mdl_ent)); in cx18_stream_alloc()
/drivers/watchdog/
Dmei_wdt.c498 const size_t bufsz = 32; in mei_dbgfs_read_activation() local
503 pos = scnprintf(buf, bufsz, "%s\n", in mei_dbgfs_read_activation()
/drivers/net/ethernet/pasemi/
Dpasemi_mac.h64 int bufsz; /* RX ring buffer size */ member
Dpasemi_mac.c596 skb = netdev_alloc_skb(dev, mac->bufsz); in pasemi_mac_replenish_rx_ring()
603 mac->bufsz - LOCAL_SKB_ALIGN, in pasemi_mac_replenish_rx_ring()
613 *buff = XCT_RXB_LEN(mac->bufsz) | XCT_RXB_ADDR(dma); in pasemi_mac_replenish_rx_ring()
744 mac->bufsz - LOCAL_SKB_ALIGN, in pasemi_mac_clean_rx()
1644 mac->bufsz = new_mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; in pasemi_mac_change_mtu()
1755 mac->bufsz = dev->mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; in pasemi_mac_probe()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpcie.c1102 u32 bufsz; in brcmf_pcie_init_ringbuffers() local
1127 bufsz = (max_submissionrings + max_completionrings) * in brcmf_pcie_init_ringbuffers()
1129 devinfo->idxbuf = dma_alloc_coherent(&devinfo->pdev->dev, bufsz, in brcmf_pcie_init_ringbuffers()
1146 memset(devinfo->idxbuf, 0, bufsz); in brcmf_pcie_init_ringbuffers()
1147 devinfo->idxbuf_sz = bufsz; in brcmf_pcie_init_ringbuffers()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_x550.c933 u16 length, bufsz, i, start; in ixgbe_checksum_ptr_x550() local
936 bufsz = ARRAY_SIZE(buf); in ixgbe_checksum_ptr_x550()
940 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, bufsz, buf); in ixgbe_checksum_ptr_x550()
969 if (i == bufsz && !buffer) { in ixgbe_checksum_ptr_x550()
970 ptr += bufsz; in ixgbe_checksum_ptr_x550()
972 if (length < bufsz) in ixgbe_checksum_ptr_x550()
973 bufsz = length; in ixgbe_checksum_ptr_x550()
977 bufsz, buf); in ixgbe_checksum_ptr_x550()

12