/Linux-v5.10/drivers/net/wireless/ath/ath11k/ |
D | debugfs_htt_stats.c | 38 u32 len = stats_req->buf_len; in htt_print_stats_string_tlv() 39 u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; in htt_print_stats_string_tlv() local 46 len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_STATS_STRING_TLV:"); in htt_print_stats_string_tlv() 56 len += HTT_DBG_OUT(buf + len, buf_len - len, "data = %s\n", data); in htt_print_stats_string_tlv() 58 if (len >= buf_len) in htt_print_stats_string_tlv() 59 buf[buf_len - 1] = 0; in htt_print_stats_string_tlv() 63 stats_req->buf_len = len; in htt_print_stats_string_tlv() 71 u32 len = stats_req->buf_len; in htt_print_tx_pdev_stats_cmn_tlv() 72 u32 buf_len = ATH11K_HTT_STATS_BUF_SIZE; in htt_print_tx_pdev_stats_cmn_tlv() local 74 len += HTT_DBG_OUT(buf + len, buf_len - len, "HTT_TX_PDEV_STATS_CMN_TLV:"); in htt_print_tx_pdev_stats_cmn_tlv() [all …]
|
D | trace.h | 24 TP_PROTO(struct ath11k *ar, const void *buf, u16 buf_len, 27 TP_ARGS(ar, buf, buf_len, pktlog_checksum), 32 __field(u16, buf_len) 34 __dynamic_array(u8, pktlog, buf_len) 40 __entry->buf_len = buf_len; 42 memcpy(__get_dynamic_array(pktlog), buf, buf_len); 49 __entry->buf_len,
|
/Linux-v5.10/drivers/net/wireless/ath/ath6kl/ |
D | trace.h | 11 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 …]
|
D | debug.c | 305 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 …]
|
D | testmode.c | 46 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-v5.10/tools/perf/util/arm-spe-decoder/ |
D | arm-spe-pkt-decoder.c | 275 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-v5.10/drivers/net/wireless/ath/ath10k/ |
D | trace.h | 116 const void *buf, size_t buf_len), 118 TP_ARGS(ar, msg, prefix, buf, buf_len), 125 __field(size_t, buf_len) 126 __dynamic_array(u8, buf, buf_len) 134 __entry->buf_len = buf_len; 135 memcpy(__get_dynamic_array(buf), buf, buf_len); 148 TP_PROTO(struct ath10k *ar, int id, const void *buf, size_t buf_len), 150 TP_ARGS(ar, id, buf, buf_len), 156 __field(size_t, buf_len) 157 __dynamic_array(u8, buf, buf_len) [all …]
|
/Linux-v5.10/drivers/net/wireless/st/cw1200/ |
D | hwio.c | 31 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 …]
|
D | hwio.h | 157 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()
|
/Linux-v5.10/drivers/i2c/busses/ |
D | i2c-at91-master.c | 149 dev->buf_len, dma->direction); in at91_twi_dma_cleanup() 158 if (!dev->buf_len) in at91_twi_write_next_byte() 165 if (--dev->buf_len == 0) { in at91_twi_write_next_byte() 171 dev_dbg(dev->dev, "wrote 0x%x, to go %zu\n", *dev->buf, dev->buf_len); in at91_twi_write_next_byte() 181 dev->buf_len, DMA_TO_DEVICE); in at91_twi_write_data_dma_callback() 203 if (!dev->buf_len) in at91_twi_write_data_dma() 209 dma_addr = dma_map_single(dev->dev, dev->buf, dev->buf_len, in at91_twi_write_data_dma() 225 part1_len = dev->buf_len & ~0x3; in at91_twi_write_data_dma() 232 part2_len = dev->buf_len & 0x3; in at91_twi_write_data_dma() 248 sg_dma_len(&dma->sg[0]) = dev->buf_len; in at91_twi_write_data_dma() [all …]
|
/Linux-v5.10/drivers/scsi/ |
D | scsi_logging.c | 105 static size_t scsi_format_opcode_name(char *buffer, size_t buf_len, in scsi_format_opcode_name() argument 117 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name() 128 off = scnprintf(buffer, buf_len, "%s", cdb_name); in scsi_format_opcode_name() 130 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0); in scsi_format_opcode_name() 131 if (WARN_ON(off >= buf_len)) in scsi_format_opcode_name() 134 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name() 137 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name() 142 off = scnprintf(buffer, buf_len, "%s", sa_name); in scsi_format_opcode_name() 144 off = scnprintf(buffer, buf_len, "%s, sa=0x%x", in scsi_format_opcode_name() 147 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name() [all …]
|
/Linux-v5.10/security/integrity/ima/ |
D | ima_modsig.c | 40 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()
|
/Linux-v5.10/samples/watch_queue/ |
D | watch_test.c | 71 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()
|
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/ |
D | osdep_service.c | 58 void rtw_buf_free(u8 **buf, u32 *buf_len) in rtw_buf_free() argument 60 *buf_len = 0; in rtw_buf_free() 65 void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len) in rtw_buf_update() argument 71 if (!buf || !buf_len) in rtw_buf_update() 88 *buf_len = 0; in rtw_buf_update() 90 *buf_len = dup_len; in rtw_buf_update()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | hv_vhca_stats.c | 34 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()
|
/Linux-v5.10/fs/jffs2/ |
D | scan.c | 448 uint32_t hdr_crc, buf_ofs, buf_len; in jffs2_scan_eraseblock() local 498 buf_len = c->wbuf_pagesize; in jffs2_scan_eraseblock() 500 buf_len = sizeof(*sm); in jffs2_scan_eraseblock() 503 err = jffs2_fill_scan_buf(c, buf + buf_size - buf_len, in jffs2_scan_eraseblock() 504 jeb->offset + c->sector_size - buf_len, in jffs2_scan_eraseblock() 505 buf_len); in jffs2_scan_eraseblock() 524 memcpy(sumptr + sumlen - buf_len, buf + buf_size - buf_len, buf_len); in jffs2_scan_eraseblock() 526 if (buf_len < sumlen) { in jffs2_scan_eraseblock() 530 sumlen - buf_len); in jffs2_scan_eraseblock() 560 buf_len = c->sector_size; in jffs2_scan_eraseblock() [all …]
|
/Linux-v5.10/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-pkt-decoder.c | 659 size_t buf_len) in intel_pt_pkt_desc() argument 672 return snprintf(buf, buf_len, "%s", name); in intel_pt_pkt_desc() 674 size_t blen = buf_len; in intel_pt_pkt_desc() 696 return buf_len - blen; in intel_pt_pkt_desc() 703 return snprintf(buf, buf_len, "%s no ip", name); in intel_pt_pkt_desc() 711 return snprintf(buf, buf_len, "%s 0x%llx", name, payload); in intel_pt_pkt_desc() 713 return snprintf(buf, buf_len, "%s CTC 0x%x FC 0x%x", name, in intel_pt_pkt_desc() 716 return snprintf(buf, buf_len, "%s %lld", name, payload); in intel_pt_pkt_desc() 718 return snprintf(buf, buf_len, "%s TXAbort:%u InTX:%u", in intel_pt_pkt_desc() 724 ret = snprintf(buf, buf_len, "%s 0x%llx (NR=%d)", in intel_pt_pkt_desc() [all …]
|
/Linux-v5.10/tools/testing/nvdimm/test/ |
D | nfit.c | 235 struct nd_intel_fw_info *nd_cmd, unsigned int buf_len, in nd_intel_test_get_fw_info() argument 242 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_get_fw_info() 244 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_get_fw_info() 261 struct nd_intel_fw_start *nd_cmd, unsigned int buf_len, in nd_intel_test_start_update() argument 268 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_start_update() 270 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_start_update() 291 struct nd_intel_fw_send_data *nd_cmd, unsigned int buf_len, in nd_intel_test_send_data() argument 299 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_send_data() 301 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_send_data() 343 unsigned int buf_len, int idx) in nd_intel_test_finish_fw() argument [all …]
|
/Linux-v5.10/fs/vboxsf/ |
D | vboxsf_wrappers.c | 201 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 …]
|
/Linux-v5.10/tools/lib/api/ |
D | io.h | 17 unsigned int buf_len; member 29 char *buf, unsigned int buf_len) in io__init() argument 32 io->buf_len = buf_len; in io__init() 48 ssize_t n = read(io->fd, io->buf, io->buf_len); in io__get_char()
|
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 174 void rtw_buf_free(u8 **buf, u32 *buf_len) in rtw_buf_free() argument 176 if (!buf || !buf_len) in rtw_buf_free() 180 *buf_len = 0; in rtw_buf_free() 186 void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len) in rtw_buf_update() argument 192 if (!buf || !buf_len) in rtw_buf_update() 207 ori_len = *buf_len; in rtw_buf_update() 210 *buf_len = 0; in rtw_buf_update() 212 *buf_len = dup_len; in rtw_buf_update()
|
/Linux-v5.10/drivers/net/wireless/ath/wil6210/ |
D | trace.h | 30 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len), 32 TP_ARGS(wmi, buf, buf_len), 38 __field(u16, buf_len) 39 __dynamic_array(u8, buf, buf_len) 46 __entry->buf_len = buf_len; 47 memcpy(__get_dynamic_array(buf), buf, buf_len); 52 __entry->mid, __entry->command_id, __entry->buf_len, 58 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len), 59 TP_ARGS(wmi, buf, buf_len) 63 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len), [all …]
|
/Linux-v5.10/security/tomoyo/ |
D | realpath.c | 241 unsigned int buf_len = PAGE_SIZE / 2; in tomoyo_realpath_from_path() local 252 buf_len <<= 1; in tomoyo_realpath_from_path() 254 buf = kmalloc(buf_len, GFP_NOFS); in tomoyo_realpath_from_path() 258 buf[buf_len - 1] = '\0'; in tomoyo_realpath_from_path() 261 pos = dentry->d_op->d_dname(dentry, buf, buf_len - 1); in tomoyo_realpath_from_path() 273 buf_len - 1); in tomoyo_realpath_from_path() 276 pos = tomoyo_get_absolute_path(path, buf, buf_len - 1); in tomoyo_realpath_from_path() 283 buf_len - 1); in tomoyo_realpath_from_path()
|
/Linux-v5.10/drivers/crypto/nx/ |
D | nx-sha512.c | 68 u64 buf_len = (sctx->count[0] % SHA512_BLOCK_SIZE); in nx_sha512_update() local 78 memcpy(sctx->buf + buf_len, data, len); in nx_sha512_update() 106 if (buf_len) { in nx_sha512_update() 107 data_len = buf_len; in nx_sha512_update() 112 if (data_len != buf_len) { in nx_sha512_update() 130 data_len = to_process - buf_len; in nx_sha512_update() 136 if (data_len != (to_process - buf_len)) { in nx_sha512_update() 141 to_process = data_len + buf_len; in nx_sha512_update() 164 data += to_process - buf_len; in nx_sha512_update() 165 buf_len = 0; in nx_sha512_update()
|
/Linux-v5.10/drivers/net/wireless/ti/wlcore/ |
D | testmode.c | 60 int buf_len, ret, len; in wl1271_tm_cmd_test() local 71 buf_len = nla_len(tb[WL1271_TM_ATTR_DATA]); in wl1271_tm_cmd_test() 76 if (buf_len > sizeof(struct wl1271_command)) in wl1271_tm_cmd_test() 92 ret = wl1271_cmd_test(wl, buf, buf_len, answer); in wl1271_tm_cmd_test() 113 len = nla_total_size(buf_len); in wl1271_tm_cmd_test() 120 if (nla_put(skb, WL1271_TM_ATTR_DATA, buf_len, buf)) { in wl1271_tm_cmd_test() 209 int buf_len, ret; in wl1271_tm_cmd_configure() local 222 buf_len = nla_len(tb[WL1271_TM_ATTR_DATA]); in wl1271_tm_cmd_configure() 224 if (buf_len > sizeof(struct wl1271_command)) in wl1271_tm_cmd_configure() 228 ret = wl1271_cmd_configure(wl, ie_id, buf, buf_len); in wl1271_tm_cmd_configure()
|