Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 25 of 339) sorted by relevance

12345678910>>...14

/Linux-v4.19/drivers/net/wireless/ath/ath6kl/
Dtrace.h11 static inline unsigned int ath6kl_get_wmi_id(void *buf, size_t buf_len) in ath6kl_get_wmi_id() argument
15 if (buf_len < sizeof(*hdr)) in ath6kl_get_wmi_id()
40 TP_PROTO(void *buf, size_t buf_len),
42 TP_ARGS(buf, buf_len),
46 __field(size_t, buf_len)
47 __dynamic_array(u8, buf, buf_len)
51 __entry->id = ath6kl_get_wmi_id(buf, buf_len);
52 __entry->buf_len = buf_len;
53 memcpy(__get_dynamic_array(buf), buf, buf_len);
58 __entry->id, __entry->buf_len
[all …]
Ddebug.c305 unsigned int len = 0, buf_len = 1500; in read_file_war_stats() local
308 buf = kzalloc(buf_len, GFP_KERNEL); in read_file_war_stats()
312 len += scnprintf(buf + len, buf_len - len, "\n"); in read_file_war_stats()
313 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_war_stats()
315 len += scnprintf(buf + len, buf_len - len, "%25s\n\n", in read_file_war_stats()
317 len += scnprintf(buf + len, buf_len - len, "%20s %10u\n", in read_file_war_stats()
320 if (WARN_ON(len > buf_len)) in read_file_war_stats()
321 len = buf_len; in read_file_war_stats()
572 unsigned int len = 0, buf_len = 1500; in read_file_tgt_stats() local
581 buf = kzalloc(buf_len, GFP_KERNEL); in read_file_tgt_stats()
[all …]
Dtestmode.c46 void ath6kl_tm_rx_event(struct ath6kl *ar, void *buf, size_t buf_len) in ath6kl_tm_rx_event() argument
50 if (!buf || buf_len == 0) in ath6kl_tm_rx_event()
53 skb = cfg80211_testmode_alloc_event_skb(ar->wiphy, buf_len, GFP_KERNEL); in ath6kl_tm_rx_event()
59 nla_put(skb, ATH6KL_TM_ATTR_DATA, buf_len, buf)) in ath6kl_tm_rx_event()
74 int err, buf_len; in ath6kl_tm_cmd() local
91 buf_len = nla_len(tb[ATH6KL_TM_ATTR_DATA]); in ath6kl_tm_cmd()
93 ath6kl_wmi_test_cmd(ar->wmi, buf, buf_len); in ath6kl_tm_cmd()
/Linux-v4.19/tools/perf/util/
Darm-spe-pkt-decoder.c275 size_t buf_len) in arm_spe_pkt_desc() argument
285 return snprintf(buf, buf_len, "%s", name); in arm_spe_pkt_desc()
287 size_t blen = buf_len; in arm_spe_pkt_desc()
290 ret = snprintf(buf, buf_len, "EV"); in arm_spe_pkt_desc()
294 ret = snprintf(buf, buf_len, " EXCEPTION-GEN"); in arm_spe_pkt_desc()
299 ret = snprintf(buf, buf_len, " RETIRED"); in arm_spe_pkt_desc()
304 ret = snprintf(buf, buf_len, " L1D-ACCESS"); in arm_spe_pkt_desc()
309 ret = snprintf(buf, buf_len, " L1D-REFILL"); in arm_spe_pkt_desc()
314 ret = snprintf(buf, buf_len, " TLB-ACCESS"); in arm_spe_pkt_desc()
319 ret = snprintf(buf, buf_len, " TLB-REFILL"); in arm_spe_pkt_desc()
[all …]
/Linux-v4.19/drivers/net/wireless/ath/ath10k/
Dtrace.h123 const void *buf, size_t buf_len),
125 TP_ARGS(ar, msg, prefix, buf, buf_len),
132 __field(size_t, buf_len)
133 __dynamic_array(u8, buf, buf_len)
141 __entry->buf_len = buf_len;
142 memcpy(__get_dynamic_array(buf), buf, buf_len);
155 TP_PROTO(struct ath10k *ar, int id, const void *buf, size_t buf_len),
157 TP_ARGS(ar, id, buf, buf_len),
163 __field(size_t, buf_len)
164 __dynamic_array(u8, buf, buf_len)
[all …]
Ddebugfs_sta.c530 len += scnprintf(buf + len, buf_len - len, \
536 buf_len - len, "\n"); \
538 buf_len - len, \
543 len += scnprintf(buf + len, buf_len - len, "\n"); \
554 size_t len = 0, buf_len = 1048 * IEEE80211_NUM_TIDS; in ath10k_dbg_sta_read_tid_stats() local
559 buf = kzalloc(buf_len, GFP_KERNEL); in ath10k_dbg_sta_read_tid_stats()
567 len += scnprintf(buf + len, buf_len - len, in ath10k_dbg_sta_read_tid_stats()
569 len += scnprintf(buf + len, buf_len - len, in ath10k_dbg_sta_read_tid_stats()
571 len += scnprintf(buf + len, buf_len - len, "MSDUs from FW\t\t\t"); in ath10k_dbg_sta_read_tid_stats()
574 len += scnprintf(buf + len, buf_len - len, "MSDUs unchained\t\t\t"); in ath10k_dbg_sta_read_tid_stats()
[all …]
/Linux-v4.19/drivers/net/wireless/st/cw1200/
Dhwio.c34 void *buf, size_t buf_len, int buf_id) in __cw1200_reg_read() argument
40 if (WARN_ON(((unsigned long)buf & 3) && (buf_len > 4))) { in __cw1200_reg_read()
51 buf, buf_len); in __cw1200_reg_read()
55 const void *buf, size_t buf_len, int buf_id) in __cw1200_reg_write() argument
66 buf, buf_len); in __cw1200_reg_write()
102 size_t buf_len) in cw1200_reg_read() argument
106 ret = __cw1200_reg_read(priv, addr, buf, buf_len, 0); in cw1200_reg_read()
112 size_t buf_len) in cw1200_reg_write() argument
116 ret = __cw1200_reg_write(priv, addr, buf, buf_len, 0); in cw1200_reg_write()
121 int cw1200_data_read(struct cw1200_common *priv, void *buf, size_t buf_len) in cw1200_data_read() argument
[all …]
Dhwio.h160 void *buf, size_t buf_len);
162 const void *buf, size_t buf_len);
165 void *buf, size_t buf_len);
167 const void *buf, size_t buf_len);
203 size_t buf_len, u32 prefetch, u16 port_addr);
205 size_t buf_len);
208 void *buf, size_t buf_len) in cw1200_apb_read() argument
210 return cw1200_indirect_read(priv, addr, buf, buf_len, in cw1200_apb_read()
216 void *buf, size_t buf_len) in cw1200_ahb_read() argument
218 return cw1200_indirect_read(priv, addr, buf, buf_len, in cw1200_ahb_read()
/Linux-v4.19/drivers/scsi/
Dscsi_logging.c148 static size_t scsi_format_opcode_name(char *buffer, size_t buf_len, in scsi_format_opcode_name() argument
160 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name()
171 off = scnprintf(buffer, buf_len, "%s", cdb_name); in scsi_format_opcode_name()
173 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0); in scsi_format_opcode_name()
174 if (WARN_ON(off >= buf_len)) in scsi_format_opcode_name()
177 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name()
180 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name()
185 off = scnprintf(buffer, buf_len, "%s", sa_name); in scsi_format_opcode_name()
187 off = scnprintf(buffer, buf_len, "%s, sa=0x%x", in scsi_format_opcode_name()
190 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name()
[all …]
/Linux-v4.19/drivers/i2c/busses/
Di2c-at91.c136 size_t buf_len; member
257 dev->buf_len, dma->direction); in at91_twi_dma_cleanup()
266 if (!dev->buf_len) in at91_twi_write_next_byte()
273 if (--dev->buf_len == 0) in at91_twi_write_next_byte()
277 dev_dbg(dev->dev, "wrote 0x%x, to go %zu\n", *dev->buf, dev->buf_len); in at91_twi_write_next_byte()
287 dev->buf_len, DMA_TO_DEVICE); in at91_twi_write_data_dma_callback()
309 if (!dev->buf_len) in at91_twi_write_data_dma()
315 dma_addr = dma_map_single(dev->dev, dev->buf, dev->buf_len, in at91_twi_write_data_dma()
331 part1_len = dev->buf_len & ~0x3; in at91_twi_write_data_dma()
338 part2_len = dev->buf_len & 0x3; in at91_twi_write_data_dma()
[all …]
/Linux-v4.19/fs/jffs2/
Dscan.c447 uint32_t hdr_crc, buf_ofs, buf_len; in jffs2_scan_eraseblock() local
497 buf_len = c->wbuf_pagesize; in jffs2_scan_eraseblock()
499 buf_len = sizeof(*sm); in jffs2_scan_eraseblock()
502 err = jffs2_fill_scan_buf(c, buf + buf_size - buf_len, in jffs2_scan_eraseblock()
503 jeb->offset + c->sector_size - buf_len, in jffs2_scan_eraseblock()
504 buf_len); in jffs2_scan_eraseblock()
523 memcpy(sumptr + sumlen - buf_len, buf + buf_size - buf_len, buf_len); in jffs2_scan_eraseblock()
525 if (buf_len < sumlen) { in jffs2_scan_eraseblock()
529 sumlen - buf_len); in jffs2_scan_eraseblock()
556 buf_len = c->sector_size; in jffs2_scan_eraseblock()
[all …]
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/
Dosdep_service.c81 void rtw_buf_free(u8 **buf, u32 *buf_len) in rtw_buf_free() argument
83 *buf_len = 0; in rtw_buf_free()
88 void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len) in rtw_buf_update() argument
94 if (!buf || !buf_len) in rtw_buf_update()
111 *buf_len = 0; in rtw_buf_update()
113 *buf_len = dup_len; in rtw_buf_update()
/Linux-v4.19/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c542 size_t buf_len) in intel_pt_pkt_desc() argument
555 return snprintf(buf, buf_len, "%s", name); in intel_pt_pkt_desc()
557 size_t blen = buf_len; in intel_pt_pkt_desc()
579 return buf_len - blen; in intel_pt_pkt_desc()
586 return snprintf(buf, buf_len, "%s no ip", name); in intel_pt_pkt_desc()
594 return snprintf(buf, buf_len, "%s 0x%llx", name, payload); in intel_pt_pkt_desc()
596 return snprintf(buf, buf_len, "%s CTC 0x%x FC 0x%x", name, in intel_pt_pkt_desc()
599 return snprintf(buf, buf_len, "%s %lld", name, payload); in intel_pt_pkt_desc()
601 return snprintf(buf, buf_len, "%s TXAbort:%u InTX:%u", in intel_pt_pkt_desc()
607 ret = snprintf(buf, buf_len, "%s 0x%llx (NR=%d)", in intel_pt_pkt_desc()
[all …]
/Linux-v4.19/security/tomoyo/
Drealpath.c255 unsigned int buf_len = PAGE_SIZE / 2; in tomoyo_realpath_from_path() local
264 buf_len <<= 1; in tomoyo_realpath_from_path()
266 buf = kmalloc(buf_len, GFP_NOFS); in tomoyo_realpath_from_path()
270 buf[buf_len - 1] = '\0'; in tomoyo_realpath_from_path()
273 pos = tomoyo_get_socket_name(path, buf, buf_len - 1); in tomoyo_realpath_from_path()
278 pos = dentry->d_op->d_dname(dentry, buf, buf_len - 1); in tomoyo_realpath_from_path()
289 buf_len - 1); in tomoyo_realpath_from_path()
292 pos = tomoyo_get_absolute_path(path, buf, buf_len - 1); in tomoyo_realpath_from_path()
299 buf_len - 1); in tomoyo_realpath_from_path()
/Linux-v4.19/drivers/net/wireless/ath/wil6210/
Dtrace.h40 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len),
42 TP_ARGS(wmi, buf, buf_len),
48 __field(u16, buf_len)
49 __dynamic_array(u8, buf, buf_len)
56 __entry->buf_len = buf_len;
57 memcpy(__get_dynamic_array(buf), buf, buf_len);
62 __entry->mid, __entry->command_id, __entry->buf_len,
68 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len),
69 TP_ARGS(wmi, buf, buf_len)
73 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len),
[all …]
/Linux-v4.19/drivers/crypto/nx/
Dnx-sha512.c80 u64 buf_len = (sctx->count[0] % SHA512_BLOCK_SIZE); in nx_sha512_update() local
90 memcpy(sctx->buf + buf_len, data, len); in nx_sha512_update()
118 if (buf_len) { in nx_sha512_update()
119 data_len = buf_len; in nx_sha512_update()
124 if (data_len != buf_len) { in nx_sha512_update()
142 data_len = to_process - buf_len; in nx_sha512_update()
148 if (data_len != (to_process - buf_len)) { in nx_sha512_update()
153 to_process = data_len + buf_len; in nx_sha512_update()
177 data += to_process - buf_len; in nx_sha512_update()
178 buf_len = 0; in nx_sha512_update()
Dnx-sha256.c80 u64 buf_len = (sctx->count % SHA256_BLOCK_SIZE); in nx_sha256_update() local
90 memcpy(sctx->buf + buf_len, data, len); in nx_sha256_update()
118 if (buf_len) { in nx_sha256_update()
119 data_len = buf_len; in nx_sha256_update()
125 if (data_len != buf_len) { in nx_sha256_update()
143 data_len = to_process - buf_len; in nx_sha256_update()
149 to_process = data_len + buf_len; in nx_sha256_update()
173 data += to_process - buf_len; in nx_sha256_update()
174 buf_len = 0; in nx_sha256_update()
/Linux-v4.19/tools/testing/nvdimm/test/
Dnfit.c224 struct nd_intel_fw_info *nd_cmd, unsigned int buf_len, in nd_intel_test_get_fw_info() argument
231 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_get_fw_info()
233 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_get_fw_info()
250 struct nd_intel_fw_start *nd_cmd, unsigned int buf_len, in nd_intel_test_start_update() argument
257 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_start_update()
259 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_start_update()
280 struct nd_intel_fw_send_data *nd_cmd, unsigned int buf_len, in nd_intel_test_send_data() argument
288 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_send_data()
290 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_send_data()
332 unsigned int buf_len, int idx) in nd_intel_test_finish_fw() argument
[all …]
/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dtestmode.c74 int buf_len, ret, len; in wl1271_tm_cmd_test() local
85 buf_len = nla_len(tb[WL1271_TM_ATTR_DATA]); in wl1271_tm_cmd_test()
90 if (buf_len > sizeof(struct wl1271_command)) in wl1271_tm_cmd_test()
106 ret = wl1271_cmd_test(wl, buf, buf_len, answer); in wl1271_tm_cmd_test()
127 len = nla_total_size(buf_len); in wl1271_tm_cmd_test()
134 if (nla_put(skb, WL1271_TM_ATTR_DATA, buf_len, buf)) { in wl1271_tm_cmd_test()
223 int buf_len, ret; in wl1271_tm_cmd_configure() local
236 buf_len = nla_len(tb[WL1271_TM_ATTR_DATA]); in wl1271_tm_cmd_configure()
238 if (buf_len > sizeof(struct wl1271_command)) in wl1271_tm_cmd_configure()
242 ret = wl1271_cmd_configure(wl, ie_id, buf, buf_len); in wl1271_tm_cmd_configure()
/Linux-v4.19/lib/mpi/
Dmpicoder.c143 int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes, in mpi_read_buffer() argument
165 if (buf_len < n - lzeros) { in mpi_read_buffer()
260 int i, x, buf_len; in mpi_write_to_sgl() local
275 buf_len = miter.length; in mpi_write_to_sgl()
279 i = min_t(unsigned, nbytes - n, buf_len); in mpi_write_to_sgl()
284 buf_len -= i; in mpi_write_to_sgl()
285 if (!buf_len) { in mpi_write_to_sgl()
287 buf_len = miter.length; in mpi_write_to_sgl()
304 if (!--buf_len) { in mpi_write_to_sgl()
306 buf_len = miter.length; in mpi_write_to_sgl()
/Linux-v4.19/net/ceph/
Dcrypto.c159 const void *buf, unsigned int buf_len) in setup_sgtable() argument
165 unsigned int chunk_len = PAGE_ALIGN(off + buf_len); in setup_sgtable()
169 if (buf_len == 0) { in setup_sgtable()
192 unsigned int len = min(chunk_len - off, buf_len); in setup_sgtable()
203 buf_len -= len; in setup_sgtable()
205 WARN_ON(buf_len != 0); in setup_sgtable()
217 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument
227 WARN_ON(crypt_len > buf_len); in ceph_aes_crypt()
281 void *buf, int buf_len, int in_len, int *pout_len) in ceph_crypt() argument
288 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
/Linux-v4.19/drivers/net/wimax/i2400m/
Dusb-notif.c83 size_t buf_len) in i2400mu_notification_grok() argument
90 i2400mu, buf, buf_len); in i2400mu_notification_grok()
92 if (buf_len < sizeof(i2400m_ZERO_BARKER)) in i2400mu_notification_grok()
100 ret = i2400m_is_boot_barker(i2400m, buf, buf_len); in i2400mu_notification_grok()
104 i2400m_unknown_barker(i2400m, buf, buf_len); in i2400mu_notification_grok()
108 i2400mu, buf, buf_len, ret); in i2400mu_notification_grok()
/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/
Dosdep_service.c331 void rtw_buf_free(u8 **buf, u32 *buf_len) in rtw_buf_free() argument
335 if (!buf || !buf_len) in rtw_buf_free()
338 ori_len = *buf_len; in rtw_buf_free()
341 *buf_len = 0; in rtw_buf_free()
347 void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len) in rtw_buf_update() argument
353 if (!buf || !buf_len) in rtw_buf_update()
368 ori_len = *buf_len; in rtw_buf_update()
371 *buf_len = 0; in rtw_buf_update()
373 *buf_len = dup_len; in rtw_buf_update()
/Linux-v4.19/drivers/spi/
Dspi-armada-3700.c114 size_t buf_len; member
437 a3700_spi->buf_len = xfer->len; in a3700_spi_transfer_setup()
471 addr_cnt = a3700_spi->buf_len % 4; in a3700_spi_header_set()
478 a3700_spi->buf_len -= addr_cnt; in a3700_spi_header_set()
503 while (!a3700_is_wfifo_full(a3700_spi) && a3700_spi->buf_len) { in a3700_spi_fifo_write()
506 a3700_spi->buf_len -= 4; in a3700_spi_fifo_write()
524 while (!a3700_is_rfifo_empty(a3700_spi) && a3700_spi->buf_len) { in a3700_spi_fifo_read()
526 if (a3700_spi->buf_len >= 4) { in a3700_spi_fifo_read()
530 a3700_spi->buf_len -= 4; in a3700_spi_fifo_read()
538 while (a3700_spi->buf_len) { in a3700_spi_fifo_read()
[all …]
/Linux-v4.19/drivers/block/drbd/
Ddrbd_vli.h230 size_t buf_len; /* in bytes */ member
241 bs->buf_len = len; in bitstream_init()
249 memset(bs->buf, 0, bs->buf_len); in bitstream_rewind()
268 if ((bs->cur.b + ((bs->cur.bit + bits -1) >> 3)) - bs->buf >= bs->buf_len) in bitstream_put_bits()
301 if (bs->cur.b + ((bs->cur.bit + bs->pad_bits + bits -1) >> 3) - bs->buf >= bs->buf_len) in bitstream_get_bits()
302 bits = ((bs->buf_len - (bs->cur.b - bs->buf)) << 3) in bitstream_get_bits()

12345678910>>...14