Home
last modified time | relevance | path

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

12

/linux-2.6.39/drivers/net/wireless/iwlwifi/
Diwl-agn-debugfs.c37 static int iwl_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz) in iwl_statistics_flag() argument
47 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag); in iwl_statistics_flag()
49 p += scnprintf(buf + p, bufsz - p, in iwl_statistics_flag()
51 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in iwl_statistics_flag()
54 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in iwl_statistics_flag()
67 int bufsz = sizeof(struct statistics_rx_phy) * 40 + in iwl_ucode_rx_stats_read() local
80 buf = kzalloc(bufsz, GFP_KERNEL); in iwl_ucode_rx_stats_read()
129 pos += iwl_statistics_flag(priv, buf, bufsz); in iwl_ucode_rx_stats_read()
130 pos += scnprintf(buf + pos, bufsz - pos, in iwl_ucode_rx_stats_read()
132 pos += scnprintf(buf + pos, bufsz - pos, in iwl_ucode_rx_stats_read()
[all …]
Diwl-debugfs.c121 const size_t bufsz = 100 + in iwl_dbgfs_tx_statistics_read() local
123 buf = kzalloc(bufsz, GFP_KERNEL); in iwl_dbgfs_tx_statistics_read()
126 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in iwl_dbgfs_tx_statistics_read()
128 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_tx_statistics_read()
133 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in iwl_dbgfs_tx_statistics_read()
135 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_tx_statistics_read()
140 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in iwl_dbgfs_tx_statistics_read()
141 pos += scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in iwl_dbgfs_tx_statistics_read()
143 pos += scnprintf(buf + pos, bufsz - pos, "\tbytes: %llu\n", in iwl_dbgfs_tx_statistics_read()
179 const size_t bufsz = 100 + in iwl_dbgfs_rx_statistics_read() local
[all …]
Diwl-agn.c2138 int pos, char **buf, size_t bufsz) in iwl_print_event_log() argument
2182 if (bufsz) { in iwl_print_event_log()
2183 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log()
2194 if (bufsz) { in iwl_print_event_log()
2195 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_print_event_log()
2219 int pos, char **buf, size_t bufsz) in iwl_print_last_event_logs() argument
2230 pos, buf, bufsz); in iwl_print_last_event_logs()
2233 pos, buf, bufsz); in iwl_print_last_event_logs()
2236 size, mode, pos, buf, bufsz); in iwl_print_last_event_logs()
2240 mode, pos, buf, bufsz); in iwl_print_last_event_logs()
[all …]
Diwl-debug.h82 int bufsz);
Diwl-agn-lib.c2206 size_t bufsz = 0; in iwl_dump_fh() local
2221 bufsz = ARRAY_SIZE(fh_tbl) * 48 + 40; in iwl_dump_fh()
2222 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl_dump_fh()
2225 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
2228 pos += scnprintf(*buf + pos, bufsz - pos, in iwl_dump_fh()
/linux-2.6.39/drivers/net/wireless/iwlegacy/
Diwl-4965-debugfs.c36 static int iwl4965_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz) in iwl4965_statistics_flag() argument
43 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag); in iwl4965_statistics_flag()
45 p += scnprintf(buf + p, bufsz - p, in iwl4965_statistics_flag()
47 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in iwl4965_statistics_flag()
50 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in iwl4965_statistics_flag()
63 int bufsz = sizeof(struct statistics_rx_phy) * 40 + in iwl4965_ucode_rx_stats_read() local
76 buf = kzalloc(bufsz, GFP_KERNEL); in iwl4965_ucode_rx_stats_read()
104 pos += iwl4965_statistics_flag(priv, buf, bufsz); in iwl4965_ucode_rx_stats_read()
105 pos += scnprintf(buf + pos, bufsz - pos, in iwl4965_ucode_rx_stats_read()
107 pos += scnprintf(buf + pos, bufsz - pos, in iwl4965_ucode_rx_stats_read()
[all …]
Diwl-3945-debugfs.c32 static int iwl3945_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz) in iwl3945_statistics_flag() argument
36 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", in iwl3945_statistics_flag()
40 p += scnprintf(buf + p, bufsz - p, in iwl3945_statistics_flag()
42 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in iwl3945_statistics_flag()
46 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in iwl3945_statistics_flag()
60 int bufsz = sizeof(struct iwl39_statistics_rx_phy) * 40 + in iwl3945_ucode_rx_stats_read() local
72 buf = kzalloc(bufsz, GFP_KERNEL); in iwl3945_ucode_rx_stats_read()
96 pos += iwl3945_statistics_flag(priv, buf, bufsz); in iwl3945_ucode_rx_stats_read()
97 pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" in iwl3945_ucode_rx_stats_read()
100 pos += scnprintf(buf + pos, bufsz - pos, in iwl3945_ucode_rx_stats_read()
[all …]
Diwl-debugfs.c115 const size_t bufsz = 100 + in iwl_legacy_dbgfs_tx_statistics_read() local
117 buf = kzalloc(bufsz, GFP_KERNEL); in iwl_legacy_dbgfs_tx_statistics_read()
120 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in iwl_legacy_dbgfs_tx_statistics_read()
122 pos += scnprintf(buf + pos, bufsz - pos, in iwl_legacy_dbgfs_tx_statistics_read()
127 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in iwl_legacy_dbgfs_tx_statistics_read()
129 pos += scnprintf(buf + pos, bufsz - pos, in iwl_legacy_dbgfs_tx_statistics_read()
134 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in iwl_legacy_dbgfs_tx_statistics_read()
135 pos += scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in iwl_legacy_dbgfs_tx_statistics_read()
137 pos += scnprintf(buf + pos, bufsz - pos, "\tbytes: %llu\n", in iwl_legacy_dbgfs_tx_statistics_read()
174 const size_t bufsz = 100 + in iwl_legacy_dbgfs_rx_statistics_read() local
[all …]
Diwl4965-base.c1719 int pos, char **buf, size_t bufsz) in iwl4965_print_event_log() argument
1759 if (bufsz) { in iwl4965_print_event_log()
1760 pos += scnprintf(*buf + pos, bufsz - pos, in iwl4965_print_event_log()
1772 if (bufsz) { in iwl4965_print_event_log()
1773 pos += scnprintf(*buf + pos, bufsz - pos, in iwl4965_print_event_log()
1797 int pos, char **buf, size_t bufsz) in iwl4965_print_last_event_logs() argument
1808 pos, buf, bufsz); in iwl4965_print_last_event_logs()
1811 pos, buf, bufsz); in iwl4965_print_last_event_logs()
1814 size, mode, pos, buf, bufsz); in iwl4965_print_last_event_logs()
1818 mode, pos, buf, bufsz); in iwl4965_print_last_event_logs()
[all …]
Diwl3945-base.c1420 int pos, char **buf, size_t bufsz) in iwl3945_print_event_log() argument
1456 if (bufsz) { in iwl3945_print_event_log()
1457 pos += scnprintf(*buf + pos, bufsz - pos, in iwl3945_print_event_log()
1468 if (bufsz) { in iwl3945_print_event_log()
1469 pos += scnprintf(*buf + pos, bufsz - pos, in iwl3945_print_event_log()
1493 int pos, char **buf, size_t bufsz) in iwl3945_print_last_event_logs() argument
1504 pos, buf, bufsz); in iwl3945_print_last_event_logs()
1507 pos, buf, bufsz); in iwl3945_print_last_event_logs()
1511 pos, buf, bufsz); in iwl3945_print_last_event_logs()
1516 pos, buf, bufsz); in iwl3945_print_last_event_logs()
[all …]
Diwl-4965-lib.c1223 size_t bufsz = 0; in iwl4965_dump_fh() local
1238 bufsz = ARRAY_SIZE(fh_tbl) * 48 + 40; in iwl4965_dump_fh()
1239 *buf = kmalloc(bufsz, GFP_KERNEL); in iwl4965_dump_fh()
1242 pos += scnprintf(*buf + pos, bufsz - pos, in iwl4965_dump_fh()
1245 pos += scnprintf(*buf + pos, bufsz - pos, in iwl4965_dump_fh()
/linux-2.6.39/drivers/staging/brcm80211/util/nvram/
Dnvram_ro.c33 int bufsz; /* allocated size */ member
50 uint nvs, bufsz; in get_flash_nvram() local
54 bufsz = nvs + VARS_T_OH; in get_flash_nvram()
56 new = kmalloc(bufsz, GFP_ATOMIC); in get_flash_nvram()
63 new->bufsz = bufsz; in get_flash_nvram()
88 uint bufsz = VARS_T_OH; in nvram_append() local
91 new = kmalloc(bufsz, GFP_ATOMIC); in nvram_append()
96 new->bufsz = bufsz; in nvram_append()
/linux-2.6.39/arch/powerpc/platforms/cell/spufs/
Dcoredump.c173 const int bufsz = PAGE_SIZE; in spufs_arch_write_note() local
203 nread = do_coredump_read(i, ctx, buf, bufsz, &pos); in spufs_arch_write_note()
210 } while (nread == bufsz && total < sz); in spufs_arch_write_note()
/linux-2.6.39/include/linux/
Dkexec.h63 size_t bufsz; member
71 compat_size_t bufsz; member
/linux-2.6.39/drivers/gpu/drm/radeon/
Dradeon_ioc32.c241 int bufsz; member
258 || __put_user(req32.bufsz, &request->bufsz) in compat_radeon_cp_cmdbuf()
/linux-2.6.39/kernel/
Dkexec.c214 if (image->segment[i].bufsz > image->segment[i].memsz) in do_kimage_alloc()
795 ubytes = segment->bufsz; in kimage_load_normal_segment()
859 ubytes = segment->bufsz; in kimage_load_crash_segment()
1055 out.bufsz = in.bufsz; in compat_sys_kexec_load()
/linux-2.6.39/drivers/net/
Dpasemi_mac.h78 int bufsz; /* RX ring buffer size */ member
Dpasemi_mac.c645 skb = dev_alloc_skb(mac->bufsz); in pasemi_mac_replenish_rx_ring()
652 mac->bufsz - LOCAL_SKB_ALIGN, in pasemi_mac_replenish_rx_ring()
662 *buff = XCT_RXB_LEN(mac->bufsz) | XCT_RXB_ADDR(dma); in pasemi_mac_replenish_rx_ring()
792 pci_unmap_single(pdev, dma, mac->bufsz - LOCAL_SKB_ALIGN, in pasemi_mac_clean_rx()
1699 mac->bufsz = new_mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; in pasemi_mac_change_mtu()
1816 mac->bufsz = dev->mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; in pasemi_mac_probe()
/linux-2.6.39/arch/powerpc/kernel/
Drtas.c374 u32 bufsz; in __fetch_rtas_last_error() local
380 bufsz = rtas_get_error_log_max(); in __fetch_rtas_last_error()
386 err_args.args[1] = bufsz; in __fetch_rtas_last_error()
/linux-2.6.39/drivers/media/video/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()
/linux-2.6.39/drivers/staging/brcm80211/util/
Dbcmsrom.c81 static int otp_read_pci(si_t *sih, u16 *buf, uint bufsz);
1513 static int otp_read_pci(si_t *sih, u16 *buf, uint bufsz) in otp_read_pci() argument
1519 ASSERT(bufsz <= OTP_SZ_MAX); in otp_read_pci()
1528 memcpy(buf, otp, bufsz); in otp_read_pci()
1544 htol16_buf(buf, bufsz); in otp_read_pci()
1551 ltoh16_buf(buf, bufsz); in otp_read_pci()
/linux-2.6.39/drivers/net/e1000/
De1000_main.c4086 unsigned int bufsz = 256 - 16 /*for skb_reserve */ ; in e1000_alloc_jumbo_rx_buffers() local
4098 skb = netdev_alloc_skb_ip_align(netdev, bufsz); in e1000_alloc_jumbo_rx_buffers()
4106 if (!e1000_check_64k_bound(adapter, skb->data, bufsz)) { in e1000_alloc_jumbo_rx_buffers()
4109 "%p\n", bufsz, skb->data); in e1000_alloc_jumbo_rx_buffers()
4111 skb = netdev_alloc_skb_ip_align(netdev, bufsz); in e1000_alloc_jumbo_rx_buffers()
4119 if (!e1000_check_64k_bound(adapter, skb->data, bufsz)) { in e1000_alloc_jumbo_rx_buffers()
4195 unsigned int bufsz = adapter->rx_buffer_len; in e1000_alloc_rx_buffers() local
4207 skb = netdev_alloc_skb_ip_align(netdev, bufsz); in e1000_alloc_rx_buffers()
4215 if (!e1000_check_64k_bound(adapter, skb->data, bufsz)) { in e1000_alloc_rx_buffers()
4218 "%p\n", bufsz, skb->data); in e1000_alloc_rx_buffers()
[all …]
/linux-2.6.39/drivers/net/ixgbevf/
Dixgbevf_main.c355 unsigned int bufsz = rx_ring->rx_buf_len + NET_IP_ALIGN; in ixgbevf_alloc_rx_buffers() local
386 bufsz); in ixgbevf_alloc_rx_buffers()
1311 u16 bufsz = IXGBEVF_RXBUFFER_2048; in ixgbevf_configure_srrctl() local
1313 if (bufsz < (PAGE_SIZE / 2)) in ixgbevf_configure_srrctl()
1314 bufsz = (PAGE_SIZE / 2); in ixgbevf_configure_srrctl()
1316 bufsz = min((u16)IXGBEVF_MAX_RXBUFFER, bufsz); in ixgbevf_configure_srrctl()
1318 srrctl |= bufsz >> IXGBE_SRRCTL_BSIZEPKT_SHIFT; in ixgbevf_configure_srrctl()
/linux-2.6.39/drivers/net/pch_gbe/
Dpch_gbe_main.c1184 unsigned int bufsz; in pch_gbe_alloc_rx_buffers() local
1186 bufsz = adapter->rx_buffer_len + PCH_GBE_DMA_ALIGN; in pch_gbe_alloc_rx_buffers()
1195 skb = netdev_alloc_skb(netdev, bufsz); in pch_gbe_alloc_rx_buffers()
1252 unsigned int bufsz; in pch_gbe_alloc_tx_buffers() local
1255 bufsz = in pch_gbe_alloc_tx_buffers()
1260 skb = netdev_alloc_skb(adapter->netdev, bufsz); in pch_gbe_alloc_tx_buffers()
/linux-2.6.39/drivers/net/igbvf/
Dnetdev.c150 int bufsz; in igbvf_alloc_rx_buffers() local
156 bufsz = adapter->rx_ps_hdr_size; in igbvf_alloc_rx_buffers()
158 bufsz = adapter->rx_buffer_len; in igbvf_alloc_rx_buffers()
182 skb = netdev_alloc_skb_ip_align(netdev, bufsz); in igbvf_alloc_rx_buffers()
190 bufsz, in igbvf_alloc_rx_buffers()

12