Home
last modified time | relevance | path

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

12345678910>>...21

/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A Ddebugfs_htt_stats.c44 u32 len = stats_req->buf_len; in htt_print_stats_string_tlv()
45 u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; in htt_print_stats_string_tlv() local
50 len += scnprintf(buf + len, buf_len - len, "HTT_STATS_STRING_TLV:\n"); in htt_print_stats_string_tlv()
52 len += scnprintf(buf + len, buf_len - len, in htt_print_stats_string_tlv()
56 buf_len - len, in htt_print_stats_string_tlv()
60 len += scnprintf(buf + len, buf_len - len, "\n\n"); in htt_print_stats_string_tlv()
62 if (len >= buf_len) in htt_print_stats_string_tlv()
63 buf[buf_len - 1] = 0; in htt_print_stats_string_tlv()
67 stats_req->buf_len = len; in htt_print_stats_string_tlv()
75 u32 len = stats_req->buf_len; in htt_print_tx_pdev_stats_cmn_tlv()
[all …]
H A Dtrace.h37 TP_PROTO(struct ath11k *ar, const void *buf, u16 buf_len,
40 TP_ARGS(ar, buf, buf_len, pktlog_checksum),
45 __field(u16, buf_len)
47 __dynamic_array(u8, pktlog, buf_len)
53 __entry->buf_len = buf_len;
55 memcpy(__get_dynamic_array(pktlog), buf, buf_len);
62 __entry->buf_len,
161 TP_PROTO(struct ath11k_base *ab, int id, const void *buf, size_t buf_len),
163 TP_ARGS(ab, id, buf, buf_len),
169 __field(size_t, buf_len)
[all …]
H A Dtestmode.c306 u32 cmd_id, buf_len; in ath11k_tm_cmd_wmi() local
324 buf_len = nla_len(tb[ATH11K_TM_ATTR_DATA]); in ath11k_tm_cmd_wmi()
325 if (!buf_len) { in ath11k_tm_cmd_wmi()
336 if (buf_len < sizeof(struct wmi_tlv) + sizeof(u32)) { in ath11k_tm_cmd_wmi()
363 cmd_id, buf_len); in ath11k_tm_cmd_wmi()
365 ath11k_dbg_dump(ar->ab, ATH11K_DBG_TESTMODE, NULL, "", buf, buf_len); in ath11k_tm_cmd_wmi()
367 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, buf_len); in ath11k_tm_cmd_wmi()
373 memcpy(skb->data, buf, buf_len); in ath11k_tm_cmd_wmi()
395 u32 cmd_id, buf_len, hdr_info; in ath11k_tm_cmd_wmi_ftm() local
418 buf_len = nla_len(tb[ATH11K_TM_ATTR_DATA]); in ath11k_tm_cmd_wmi_ftm()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath6kl/
H A 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 …]
H A 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 …]
H A 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()
/openbmc/linux/tools/perf/util/arm-spe-decoder/
H A Darm-spe-pkt-decoder.c293 char *buf, size_t buf_len) in arm_spe_pkt_desc_event() argument
298 arm_spe_pkt_out_string(&err, &buf, &buf_len, "EV"); in arm_spe_pkt_desc_event()
301 arm_spe_pkt_out_string(&err, &buf, &buf_len, " EXCEPTION-GEN"); in arm_spe_pkt_desc_event()
303 arm_spe_pkt_out_string(&err, &buf, &buf_len, " RETIRED"); in arm_spe_pkt_desc_event()
305 arm_spe_pkt_out_string(&err, &buf, &buf_len, " L1D-ACCESS"); in arm_spe_pkt_desc_event()
307 arm_spe_pkt_out_string(&err, &buf, &buf_len, " L1D-REFILL"); in arm_spe_pkt_desc_event()
309 arm_spe_pkt_out_string(&err, &buf, &buf_len, " TLB-ACCESS"); in arm_spe_pkt_desc_event()
311 arm_spe_pkt_out_string(&err, &buf, &buf_len, " TLB-REFILL"); in arm_spe_pkt_desc_event()
313 arm_spe_pkt_out_string(&err, &buf, &buf_len, " NOT-TAKEN"); in arm_spe_pkt_desc_event()
315 arm_spe_pkt_out_string(&err, &buf, &buf_len, " MISPRED"); in arm_spe_pkt_desc_event()
[all …]
/openbmc/linux/security/selinux/
H A Dima.c25 int buf_len, len, i, rc; in selinux_ima_collect_state() local
27 buf_len = strlen("initialized=0;enforcing=0;checkreqprot=0;") + 1; in selinux_ima_collect_state()
31 buf_len += strlen(selinux_policycap_names[i]) + len; in selinux_ima_collect_state()
33 buf = kzalloc(buf_len, GFP_KERNEL); in selinux_ima_collect_state()
37 rc = strscpy(buf, "initialized", buf_len); in selinux_ima_collect_state()
40 rc = strlcat(buf, selinux_initialized() ? on : off, buf_len); in selinux_ima_collect_state()
41 WARN_ON(rc >= buf_len); in selinux_ima_collect_state()
43 rc = strlcat(buf, "enforcing", buf_len); in selinux_ima_collect_state()
44 WARN_ON(rc >= buf_len); in selinux_ima_collect_state()
46 rc = strlcat(buf, enforcing_enabled() ? on : off, buf_len); in selinux_ima_collect_state()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dtrace.h110 const void *buf, size_t buf_len),
112 TP_ARGS(ar, msg, prefix, buf, buf_len),
119 __field(size_t, buf_len)
120 __dynamic_array(u8, buf, buf_len)
128 __entry->buf_len = buf_len;
129 memcpy(__get_dynamic_array(buf), buf, buf_len);
142 TP_PROTO(struct ath10k *ar, int id, const void *buf, size_t buf_len),
144 TP_ARGS(ar, id, buf, buf_len),
150 __field(size_t, buf_len)
151 __dynamic_array(u8, buf, buf_len)
[all …]
/openbmc/linux/drivers/net/wireless/st/cw1200/
H A Dhwio.c31 void *buf, size_t buf_len, int buf_id) in __cw1200_reg_read() argument
37 if (WARN_ON(((unsigned long)buf & 3) && (buf_len > 4))) { in __cw1200_reg_read()
48 buf, buf_len); in __cw1200_reg_read()
52 const void *buf, size_t buf_len, int buf_id) in __cw1200_reg_write() argument
63 buf, buf_len); in __cw1200_reg_write()
99 size_t buf_len) in cw1200_reg_read() argument
103 ret = __cw1200_reg_read(priv, addr, buf, buf_len, 0); in cw1200_reg_read()
109 size_t buf_len) in cw1200_reg_write() argument
113 ret = __cw1200_reg_write(priv, addr, buf, buf_len, 0); in cw1200_reg_write()
118 int cw1200_data_read(struct cw1200_common *priv, void *buf, size_t buf_len) in cw1200_data_read() argument
[all …]
H A Dhwio.h157 void *buf, size_t buf_len);
159 const void *buf, size_t buf_len);
162 void *buf, size_t buf_len);
164 const void *buf, size_t buf_len);
200 size_t buf_len, u32 prefetch, u16 port_addr);
202 size_t buf_len);
205 void *buf, size_t buf_len) in cw1200_apb_read() argument
207 return cw1200_indirect_read(priv, addr, buf, buf_len, in cw1200_apb_read()
213 void *buf, size_t buf_len) in cw1200_ahb_read() argument
215 return cw1200_indirect_read(priv, addr, buf, buf_len, in cw1200_ahb_read()
/openbmc/linux/drivers/scsi/
H A Dscsi_logging.c108 static size_t scsi_format_opcode_name(char *buffer, size_t buf_len, in scsi_format_opcode_name() argument
120 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name()
131 off = scnprintf(buffer, buf_len, "%s", cdb_name); in scsi_format_opcode_name()
133 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0); in scsi_format_opcode_name()
134 if (WARN_ON(off >= buf_len)) in scsi_format_opcode_name()
137 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name()
140 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name()
145 off = scnprintf(buffer, buf_len, "%s", sa_name); in scsi_format_opcode_name()
147 off = scnprintf(buffer, buf_len, "%s, sa=0x%x", in scsi_format_opcode_name()
150 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name()
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-at91-master.c147 dev->buf_len, dma->direction); in at91_twi_dma_cleanup()
156 if (!dev->buf_len) in at91_twi_write_next_byte()
163 if (--dev->buf_len == 0) { in at91_twi_write_next_byte()
169 dev_dbg(dev->dev, "wrote 0x%x, to go %zu\n", *dev->buf, dev->buf_len); in at91_twi_write_next_byte()
179 dev->buf_len, DMA_TO_DEVICE); in at91_twi_write_data_dma_callback()
201 if (!dev->buf_len) in at91_twi_write_data_dma()
207 dma_addr = dma_map_single(dev->dev, dev->buf, dev->buf_len, in at91_twi_write_data_dma()
223 part1_len = dev->buf_len & ~0x3; in at91_twi_write_data_dma()
230 part2_len = dev->buf_len & 0x3; in at91_twi_write_data_dma()
246 sg_dma_len(&dma->sg[0]) = dev->buf_len; in at91_twi_write_data_dma()
[all …]
/openbmc/linux/scripts/dtc/
H A Dfdtoverlay.c45 static void *apply_one(char *base, const char *overlay, size_t *buf_len, in apply_one() argument
59 tmp = xrealloc(tmp, *buf_len); in apply_one()
60 ret = fdt_open_into(base, tmp, *buf_len); in apply_one()
72 *buf_len += BUF_INCREMENT; in apply_one()
99 size_t buf_len; in do_fdtoverlay() local
102 blob = utilfdt_read(input_filename, &buf_len); in do_fdtoverlay()
107 if (fdt_totalsize(blob) > buf_len) { in do_fdtoverlay()
110 (unsigned long)buf_len, fdt_totalsize(blob)); in do_fdtoverlay()
135 buf_len = fdt_totalsize(blob); in do_fdtoverlay()
139 blob = apply_one(blob, ovblob[i], &buf_len, argv[i]); in do_fdtoverlay()
/openbmc/linux/security/integrity/ima/
H A Dima_modsig.c40 int ima_read_modsig(enum ima_hooks func, const void *buf, loff_t buf_len, in ima_read_modsig() argument
50 if (buf_len <= marker_len + sizeof(*sig)) in ima_read_modsig()
53 p = buf + buf_len - marker_len; in ima_read_modsig()
57 buf_len -= marker_len; in ima_read_modsig()
60 rc = mod_check_sig(sig, buf_len, func_tokens[func]); in ima_read_modsig()
65 buf_len -= sig_len + sizeof(*sig); in ima_read_modsig()
72 hdr->pkcs7_msg = pkcs7_parse_message(buf + buf_len, sig_len); in ima_read_modsig()
79 memcpy(hdr->raw_pkcs7, buf + buf_len, sig_len); in ima_read_modsig()
/openbmc/linux/samples/watch_queue/
H A Dwatch_test.c71 ssize_t buf_len; in consumer() local
74 buf_len = read(fd, buffer, sizeof(buffer)); in consumer()
75 if (buf_len == -1) { in consumer()
80 if (buf_len == 0) { in consumer()
85 if (buf_len > sizeof(buffer)) { in consumer()
86 fprintf(stderr, "Read buffer overrun: %zd\n", buf_len); in consumer()
90 printf("read() = %zd\n", buf_len); in consumer()
93 end = buffer + buf_len; in consumer()
/openbmc/linux/fs/jffs2/
H A Dscan.c450 uint32_t hdr_crc, buf_ofs, buf_len; in jffs2_scan_eraseblock() local
500 buf_len = c->wbuf_pagesize; in jffs2_scan_eraseblock()
502 buf_len = sizeof(*sm); in jffs2_scan_eraseblock()
505 err = jffs2_fill_scan_buf(c, buf + buf_size - buf_len, in jffs2_scan_eraseblock()
506 jeb->offset + c->sector_size - buf_len, in jffs2_scan_eraseblock()
507 buf_len); in jffs2_scan_eraseblock()
526 memcpy(sumptr + sumlen - buf_len, buf + buf_size - buf_len, buf_len); in jffs2_scan_eraseblock()
528 if (buf_len < sumlen) { in jffs2_scan_eraseblock()
532 sumlen - buf_len); in jffs2_scan_eraseblock()
562 buf_len = c->sector_size; in jffs2_scan_eraseblock()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dhv_vhca_stats.c34 int buf_len) in mlx5e_hv_vhca_fill_stats() argument
43 data + buf_len)) in mlx5e_hv_vhca_fill_stats()
63 int buf_len, rc; in mlx5e_hv_vhca_stats_work() local
69 buf_len = mlx5e_hv_vhca_stats_buf_size(priv); in mlx5e_hv_vhca_stats_work()
73 memset(buf, 0, buf_len); in mlx5e_hv_vhca_stats_work()
74 mlx5e_hv_vhca_fill_stats(priv, buf, buf_len); in mlx5e_hv_vhca_stats_work()
76 rc = mlx5_hv_vhca_agent_write(agent, buf, buf_len); in mlx5e_hv_vhca_stats_work()
125 int buf_len = mlx5e_hv_vhca_stats_buf_size(priv); in mlx5e_hv_vhca_stats_create() local
128 priv->stats_agent.buf = kvzalloc(buf_len, GFP_KERNEL); in mlx5e_hv_vhca_stats_create()
/openbmc/u-boot/drivers/crypto/
H A Dace_sha.c27 int ace_sha_hash_digest(const unsigned char *pbuf, unsigned int buf_len, in ace_sha_hash_digest() argument
35 if (buf_len == 0) { in ace_sha_hash_digest()
67 writel(buf_len, &ace_sha_reg->hash_msgsize_low); in ace_sha_hash_digest()
72 writel(buf_len, &ace_sha_reg->fc_hrdmal); in ace_sha_hash_digest()
102 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument
105 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA256)) in hw_sha256()
109 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument
112 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA1)) in hw_sha1()
/openbmc/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-pkt-decoder.c688 size_t buf_len) in intel_pt_pkt_desc() argument
701 return snprintf(buf, buf_len, "%s", name); in intel_pt_pkt_desc()
703 size_t blen = buf_len; in intel_pt_pkt_desc()
725 return buf_len - blen; in intel_pt_pkt_desc()
732 return snprintf(buf, buf_len, "%s no ip", name); in intel_pt_pkt_desc()
740 return snprintf(buf, buf_len, "%s 0x%llx", name, payload); in intel_pt_pkt_desc()
742 return snprintf(buf, buf_len, "%s CTC 0x%x FC 0x%x", name, in intel_pt_pkt_desc()
745 return snprintf(buf, buf_len, "%s IF:%d %lld", in intel_pt_pkt_desc()
748 return snprintf(buf, buf_len, "%s TXAbort:%u InTX:%u", in intel_pt_pkt_desc()
754 ret = snprintf(buf, buf_len, "%s 0x%llx (NR=%d)", in intel_pt_pkt_desc()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_debugfs.c49 .buf_len = HNS3_DBG_READ_LEN,
56 .buf_len = HNS3_DBG_READ_LEN,
63 .buf_len = HNS3_DBG_READ_LEN,
70 .buf_len = HNS3_DBG_READ_LEN_1MB,
77 .buf_len = HNS3_DBG_READ_LEN,
84 .buf_len = HNS3_DBG_READ_LEN,
91 .buf_len = HNS3_DBG_READ_LEN,
98 .buf_len = HNS3_DBG_READ_LEN,
105 .buf_len = HNS3_DBG_READ_LEN,
112 .buf_len = HNS3_DBG_READ_LEN,
[all …]
/openbmc/linux/drivers/staging/rtl8723bs/os_dep/
H A Dosdep_service.c111 void rtw_buf_free(u8 **buf, u32 *buf_len) in rtw_buf_free() argument
113 if (!buf || !buf_len) in rtw_buf_free()
117 *buf_len = 0; in rtw_buf_free()
123 void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len) in rtw_buf_update() argument
129 if (!buf || !buf_len) in rtw_buf_update()
144 ori_len = *buf_len; in rtw_buf_update()
147 *buf_len = 0; in rtw_buf_update()
149 *buf_len = dup_len; in rtw_buf_update()
/openbmc/linux/tools/testing/nvdimm/test/
H A Dnfit.c232 struct nd_intel_fw_info *nd_cmd, unsigned int buf_len, in nd_intel_test_get_fw_info() argument
239 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_get_fw_info()
241 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_get_fw_info()
258 struct nd_intel_fw_start *nd_cmd, unsigned int buf_len, in nd_intel_test_start_update() argument
265 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_start_update()
267 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_start_update()
288 struct nd_intel_fw_send_data *nd_cmd, unsigned int buf_len, in nd_intel_test_send_data() argument
296 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_send_data()
298 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_send_data()
340 unsigned int buf_len, int idx) in nd_intel_test_finish_fw() argument
[all …]
/openbmc/linux/fs/vboxsf/
H A Dvboxsf_wrappers.c201 int vboxsf_read(u32 root, u64 handle, u64 offset, u32 *buf_len, u8 *buf) in vboxsf_read() argument
214 parms.cb.u.value32 = *buf_len; in vboxsf_read()
216 parms.buffer.u.pointer.size = *buf_len; in vboxsf_read()
221 *buf_len = parms.cb.u.value32; in vboxsf_read()
225 int vboxsf_write(u32 root, u64 handle, u64 offset, u32 *buf_len, u8 *buf) in vboxsf_write() argument
238 parms.cb.u.value32 = *buf_len; in vboxsf_write()
240 parms.buffer.u.pointer.size = *buf_len; in vboxsf_write()
245 *buf_len = parms.cb.u.value32; in vboxsf_write()
252 u32 *buf_len, struct shfl_dirinfo *buf, u32 *file_count) in vboxsf_dirinfo() argument
265 parms.cb.u.value32 = *buf_len; in vboxsf_dirinfo()
[all …]
/openbmc/linux/security/tomoyo/
H A Drealpath.c241 unsigned int buf_len = PAGE_SIZE / 2; in tomoyo_realpath_from_path() local
249 buf_len <<= 1; in tomoyo_realpath_from_path()
251 buf = kmalloc(buf_len, GFP_NOFS); in tomoyo_realpath_from_path()
255 buf[buf_len - 1] = '\0'; in tomoyo_realpath_from_path()
258 pos = dentry->d_op->d_dname(dentry, buf, buf_len - 1); in tomoyo_realpath_from_path()
268 buf_len - 1); in tomoyo_realpath_from_path()
271 pos = tomoyo_get_absolute_path(path, buf, buf_len - 1); in tomoyo_realpath_from_path()
278 buf_len - 1); in tomoyo_realpath_from_path()

12345678910>>...21