Home
last modified time | relevance | path

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

12

/drivers/net/wireless/intel/iwlwifi/dvm/
Ddebugfs.c112 size_t bufsz; in iwl_dbgfs_sram_read() local
132 bufsz = 50 + len * 4; in iwl_dbgfs_sram_read()
133 buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_sram_read()
137 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read()
139 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read()
152 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
156 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
159 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
172 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
174 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
[all …]
Dmain.c1706 int pos, char **buf, size_t bufsz) in iwl_print_event_log() argument
1750 if (bufsz) { in iwl_print_event_log()
1751 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log()
1762 if (bufsz) { in iwl_print_event_log()
1763 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log()
1786 int pos, char **buf, size_t bufsz) in iwl_print_last_event_logs() argument
1797 pos, buf, bufsz); in iwl_print_last_event_logs()
1800 pos, buf, bufsz); in iwl_print_last_event_logs()
1803 size, mode, pos, buf, bufsz); in iwl_print_last_event_logs()
1807 mode, pos, buf, bufsz); in iwl_print_last_event_logs()
[all …]
/drivers/net/wireless/intel/iwlegacy/
D4965-debug.c37 il4965_stats_flag(struct il_priv *il, char *buf, int bufsz) in il4965_stats_flag() argument
44 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag); in il4965_stats_flag()
46 p += scnprintf(buf + p, bufsz - p, in il4965_stats_flag()
48 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in il4965_stats_flag()
51 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in il4965_stats_flag()
65 int bufsz = in il4965_ucode_rx_stats_read() local
79 buf = kzalloc(bufsz, GFP_KERNEL); in il4965_ucode_rx_stats_read()
107 pos += il4965_stats_flag(il, buf, bufsz); in il4965_ucode_rx_stats_read()
109 scnprintf(buf + pos, bufsz - pos, fmt_header, in il4965_ucode_rx_stats_read()
112 scnprintf(buf + pos, bufsz - pos, fmt_table, "ina_cnt:", in il4965_ucode_rx_stats_read()
[all …]
D3945-debug.c33 il3945_stats_flag(struct il_priv *il, char *buf, int bufsz) in il3945_stats_flag() argument
37 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", in il3945_stats_flag()
40 p += scnprintf(buf + p, bufsz - p, in il3945_stats_flag()
42 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in il3945_stats_flag()
45 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in il3945_stats_flag()
58 int bufsz = in il3945_ucode_rx_stats_read() local
70 buf = kzalloc(bufsz, GFP_KERNEL); in il3945_ucode_rx_stats_read()
94 pos += il3945_stats_flag(il, buf, bufsz); in il3945_ucode_rx_stats_read()
96 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
101 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read()
[all …]
Ddebug.c241 const size_t bufsz = in il_dbgfs_tx_stats_read() local
243 buf = kzalloc(bufsz, GFP_KERNEL); in il_dbgfs_tx_stats_read()
246 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_tx_stats_read()
249 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
252 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in il_dbgfs_tx_stats_read()
255 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
258 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_tx_stats_read()
260 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read()
263 scnprintf(buf + pos, bufsz - pos, "\tbytes: %llu\n", in il_dbgfs_tx_stats_read()
301 const size_t bufsz = in il_dbgfs_rx_stats_read() local
[all …]
/drivers/misc/mei/
Ddebugfs.c32 size_t bufsz = 1; in mei_dbgfs_read_meclients() local
43 bufsz++; in mei_dbgfs_read_meclients()
45 bufsz *= sizeof(HDR) + 1; in mei_dbgfs_read_meclients()
46 buf = kzalloc(bufsz, GFP_KERNEL); in mei_dbgfs_read_meclients()
52 pos += scnprintf(buf + pos, bufsz - pos, HDR); in mei_dbgfs_read_meclients()
62 pos += scnprintf(buf + pos, bufsz - pos, in mei_dbgfs_read_meclients()
94 size_t bufsz = 1; in mei_dbgfs_read_active() local
113 bufsz++; in mei_dbgfs_read_active()
115 bufsz *= sizeof(HDR) + 1; in mei_dbgfs_read_active()
117 buf = kzalloc(bufsz, GFP_KERNEL); in mei_dbgfs_read_active()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Ddebugfs-vif.c202 int bufsz = sizeof(buf); in iwl_dbgfs_tx_pwr_lmt_read() local
205 pos = scnprintf(buf, bufsz, "bss limit = %d\n", in iwl_dbgfs_tx_pwr_lmt_read()
219 int bufsz = sizeof(buf); in iwl_dbgfs_pm_params_read() local
222 pos = iwl_mvm_power_mac_dbgfs_read(mvm, vif, buf, bufsz); in iwl_dbgfs_pm_params_read()
237 int bufsz = sizeof(buf); in iwl_dbgfs_mac_params_read() local
247 pos += scnprintf(buf+pos, bufsz-pos, "type: ibss\n"); in iwl_dbgfs_mac_params_read()
250 pos += scnprintf(buf+pos, bufsz-pos, "type: bss\n"); in iwl_dbgfs_mac_params_read()
253 pos += scnprintf(buf+pos, bufsz-pos, "type: ap\n"); in iwl_dbgfs_mac_params_read()
256 pos += scnprintf(buf+pos, bufsz-pos, "type: p2p client\n"); in iwl_dbgfs_mac_params_read()
259 pos += scnprintf(buf+pos, bufsz-pos, "type: p2p go\n"); in iwl_dbgfs_mac_params_read()
[all …]
Ddebugfs.c329 int i, pos = 0, bufsz = sizeof(buf); in iwl_dbgfs_stations_read() local
334 pos += scnprintf(buf + pos, bufsz - pos, "%.2d: ", i); in iwl_dbgfs_stations_read()
338 pos += scnprintf(buf + pos, bufsz - pos, "N/A\n"); in iwl_dbgfs_stations_read()
340 pos += scnprintf(buf + pos, bufsz - pos, "%ld\n", in iwl_dbgfs_stations_read()
343 pos += scnprintf(buf + pos, bufsz - pos, "%pM\n", in iwl_dbgfs_stations_read()
358 int bufsz = sizeof(buf); in iwl_dbgfs_disable_power_off_read() local
361 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d0=%d\n", in iwl_dbgfs_disable_power_off_read()
363 pos += scnprintf(buf+pos, bufsz-pos, "disable_power_off_d3=%d\n", in iwl_dbgfs_disable_power_off_read()
402 pos += scnprintf(buf + pos, bufsz - pos, \
410 int pos, int bufsz) in iwl_mvm_coex_dump_mbox() argument
[all …]
Dpower.c731 int bufsz) in iwl_mvm_power_mac_dbgfs_read() argument
741 pos += scnprintf(buf+pos, bufsz-pos, "power_scheme = %d\n", in iwl_mvm_power_mac_dbgfs_read()
743 pos += scnprintf(buf+pos, bufsz-pos, "flags = 0x%x\n", in iwl_mvm_power_mac_dbgfs_read()
745 pos += scnprintf(buf+pos, bufsz-pos, "keep_alive = %d\n", in iwl_mvm_power_mac_dbgfs_read()
751 pos += scnprintf(buf+pos, bufsz-pos, "skip_over_dtim = %d\n", in iwl_mvm_power_mac_dbgfs_read()
754 pos += scnprintf(buf+pos, bufsz-pos, "skip_dtim_periods = %d\n", in iwl_mvm_power_mac_dbgfs_read()
757 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
759 pos += scnprintf(buf+pos, bufsz-pos, "tx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
763 pos += scnprintf(buf+pos, bufsz-pos, in iwl_mvm_power_mac_dbgfs_read()
770 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout_uapsd = %d\n", in iwl_mvm_power_mac_dbgfs_read()
[all …]
/drivers/net/wireless/intel/iwlwifi/
Diwl-io.c317 size_t bufsz = ARRAY_SIZE(rfh_tbl) * 53 + in iwl_dump_rfh() local
320 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dump_rfh()
324 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh()
328 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh()
338 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_rfh()
406 size_t bufsz = ARRAY_SIZE(fh_tbl) * 48 + 40; in iwl_dump_fh() local
408 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dump_fh()
412 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
416 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
/drivers/net/wireless/intel/iwlwifi/pcie/
Dtrans.c2276 size_t bufsz; in iwl_dbgfs_tx_queue_read() local
2278 bufsz = sizeof(char) * 75 * trans->cfg->base_params->num_of_queues; in iwl_dbgfs_tx_queue_read()
2283 buf = kzalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_tx_queue_read()
2289 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_tx_queue_read()
2310 size_t bufsz = sizeof(buf); in iwl_dbgfs_rx_queue_read() local
2312 bufsz = sizeof(char) * 121 * trans->num_rx_queues; in iwl_dbgfs_rx_queue_read()
2317 buf = kzalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_rx_queue_read()
2321 for (i = 0; i < trans->num_rx_queues && pos < bufsz; i++) { in iwl_dbgfs_rx_queue_read()
2324 pos += scnprintf(buf + pos, bufsz - pos, "queue#: %2d\n", in iwl_dbgfs_rx_queue_read()
2326 pos += scnprintf(buf + pos, bufsz - pos, "\tread: %u\n", in iwl_dbgfs_rx_queue_read()
[all …]
/drivers/firmware/efi/
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()
/drivers/watchdog/
Dmei_wdt.c524 const size_t bufsz = 32; in mei_dbgfs_read_activation() local
529 pos = scnprintf(buf, bufsz, "%s\n", in mei_dbgfs_read_activation()
546 const size_t bufsz = 32; in mei_dbgfs_read_state() local
547 char buf[bufsz]; in mei_dbgfs_read_state()
550 pos = scnprintf(buf, bufsz, "state: %s\n", in mei_dbgfs_read_state()
/drivers/gpu/drm/radeon/
Dradeon_ioc32.c240 int bufsz; member
257 || __put_user(req32.bufsz, &request->bufsz) in compat_radeon_cp_cmdbuf()
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1418 unsigned int bufsz; in pch_gbe_alloc_rx_buffers() local
1420 bufsz = adapter->rx_buffer_len + NET_IP_ALIGN; in pch_gbe_alloc_rx_buffers()
1425 skb = netdev_alloc_skb(netdev, bufsz); in pch_gbe_alloc_rx_buffers()
1477 unsigned int bufsz; in pch_gbe_alloc_rx_buffers_pool() local
1480 bufsz = adapter->rx_buffer_len; in pch_gbe_alloc_rx_buffers_pool()
1482 size = rx_ring->count * bufsz + PCH_GBE_RESERVE_MEMORY; in pch_gbe_alloc_rx_buffers_pool()
1492 buffer_info->rx_buffer = rx_ring->rx_buff_pool + bufsz * i; in pch_gbe_alloc_rx_buffers_pool()
1493 buffer_info->length = bufsz; in pch_gbe_alloc_rx_buffers_pool()
1509 unsigned int bufsz; in pch_gbe_alloc_tx_buffers() local
1512 bufsz = in pch_gbe_alloc_tx_buffers()
[all …]
/drivers/scsi/bfa/
Dbfad_bsg.h568 int bufsz; member
672 u64 bufsz; member
680 u32 bufsz; member
Dbfad_bsg.c1566 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_update_part()
1577 iocmd->bufsz, 0, bfad_hcb_comp, &fcomp); in bfad_iocmd_flash_update_part()
1598 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_flash_read_part()
1608 iocmd->instance, iocmd_bufptr, iocmd->bufsz, 0, in bfad_iocmd_flash_read_part()
1932 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_read()
1941 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_read()
1983 iocmd->bufsz) != BFA_STATUS_OK) { in bfad_iocmd_phy_update()
1992 iocmd->instance, iocmd_bufptr, iocmd->bufsz, in bfad_iocmd_phy_update()
2009 if (iocmd->bufsz < sizeof(struct bfa_plog_s)) { in bfad_iocmd_porglog_get()
2038 if (iocmd->bufsz < BFA_DEBUG_FW_CORE_CHUNK_SZ || in bfad_iocmd_debug_fw_core()
[all …]
/drivers/media/pci/cx18/
Dcx18-queue.c363 unsigned bufsz = (((char __iomem *)cx->scb) + SCB_RESERVED_SIZE - in cx18_stream_alloc() local
368 bufsz / sizeof(struct cx18_mdl_ent)); in cx18_stream_alloc()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_x550.c668 u16 length, bufsz, i, start; in ixgbe_checksum_ptr_x550() local
671 bufsz = sizeof(buf) / sizeof(buf[0]); in ixgbe_checksum_ptr_x550()
675 status = ixgbe_read_ee_hostif_buffer_X550(hw, ptr, bufsz, buf); in ixgbe_checksum_ptr_x550()
704 if (i == bufsz && !buffer) { in ixgbe_checksum_ptr_x550()
705 ptr += bufsz; in ixgbe_checksum_ptr_x550()
707 if (length < bufsz) in ixgbe_checksum_ptr_x550()
708 bufsz = length; in ixgbe_checksum_ptr_x550()
712 bufsz, buf); in ixgbe_checksum_ptr_x550()
/drivers/net/ethernet/pasemi/
Dpasemi_mac.c608 skb = netdev_alloc_skb(dev, mac->bufsz); in pasemi_mac_replenish_rx_ring()
615 mac->bufsz - LOCAL_SKB_ALIGN, in pasemi_mac_replenish_rx_ring()
625 *buff = XCT_RXB_LEN(mac->bufsz) | XCT_RXB_ADDR(dma); in pasemi_mac_replenish_rx_ring()
755 pci_unmap_single(pdev, dma, mac->bufsz - LOCAL_SKB_ALIGN, in pasemi_mac_clean_rx()
1656 mac->bufsz = new_mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; in pasemi_mac_change_mtu()
1761 mac->bufsz = dev->mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; in pasemi_mac_probe()
Dpasemi_mac.h75 int bufsz; /* RX ring buffer size */ member
/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c1138 int bufsz; in mgc_apply_recover_logs() local
1158 bufsz = PAGE_SIZE - pos; in mgc_apply_recover_logs()
1222 memset(buf, 0, bufsz); in mgc_apply_recover_logs()
1291 LASSERT(pos < bufsz); in mgc_apply_recover_logs()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpcie.c1066 u32 bufsz; in brcmf_pcie_init_ringbuffers() local
1076 bufsz = (BRCMF_NROF_D2H_COMMON_MSGRINGS + max_sub_queues) * in brcmf_pcie_init_ringbuffers()
1078 devinfo->idxbuf = dma_alloc_coherent(&devinfo->pdev->dev, bufsz, in brcmf_pcie_init_ringbuffers()
1099 memset(devinfo->idxbuf, 0, bufsz); in brcmf_pcie_init_ringbuffers()
1100 devinfo->idxbuf_sz = bufsz; in brcmf_pcie_init_ringbuffers()
/drivers/scsi/csiostor/
Dcsio_wr.c1047 uint32_t bufsz, len, lastlen = 0; in csio_wr_process_fl() local
1070 bufsz = csio_wr_fl_bufsz(sge, buf); in csio_wr_process_fl()
1076 lastlen = min(bufsz, len); in csio_wr_process_fl()
/drivers/net/ethernet/intel/igbvf/
Dnetdev.c166 int bufsz; in igbvf_alloc_rx_buffers() local
172 bufsz = adapter->rx_ps_hdr_size; in igbvf_alloc_rx_buffers()
174 bufsz = adapter->rx_buffer_len; in igbvf_alloc_rx_buffers()
205 skb = netdev_alloc_skb_ip_align(netdev, bufsz); in igbvf_alloc_rx_buffers()
213 bufsz, in igbvf_alloc_rx_buffers()

12