/kernel/linux/linux-5.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,
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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 …]
|
/kernel/liteos_m/components/net/lwip-2.1/porting/src/ |
D | api_shell.c | 55 int print_netif(struct netif *netif, char *print_buf, unsigned int buf_len); 92 int print_netif(struct netif *netif, char *print_buf, unsigned int buf_len) in print_netif() argument 97 if (buf_len < 1) { in print_netif() 101 ret = snprintf_s(tmp, buf_len, (buf_len - 1), "%s\t", netif->name); in print_netif() 103 ret = snprintf_s(tmp, buf_len, (buf_len - 1), "%s%u\t", netif->name, netif->num); in print_netif() 106 if ((ret <= 0) || ((unsigned int)ret >= buf_len)) in print_netif() 109 buf_len -= (unsigned int)ret; in print_netif() 111 ret = snprintf_s(tmp, buf_len, (buf_len - 1), "ip:%s ", ipaddr_ntoa(&netif->ip_addr)); in print_netif() 112 if ((ret <= 0) || ((unsigned int)ret >= buf_len)) in print_netif() 115 buf_len -= (unsigned int)ret; in print_netif() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/hievent/ |
D | hievent_driver.c | 83 size_t buf_len) in hievent_read_ring_buffer() argument 88 if (buf_left > buf_len) { in hievent_read_ring_buffer() 89 retval = copy_to_user(buffer, hievent_buffer_head(), buf_len); in hievent_read_ring_buffer() 91 size_t mem_len = (buf_len > buf_left) ? buf_left : buf_len; in hievent_read_ring_buffer() 98 buf_len - buf_left); in hievent_read_ring_buffer() 104 size_t buf_len) in hievent_read_ring_head_buffer() argument 108 if (buf_left > buf_len) { in hievent_read_ring_head_buffer() 109 memcpy(buffer, hievent_buffer_head(), buf_len); in hievent_read_ring_head_buffer() 111 size_t mem_len = (buf_len > buf_left) ? buf_left : buf_len; in hievent_read_ring_head_buffer() 115 buf_len - buf_left); in hievent_read_ring_head_buffer() [all …]
|
/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-5.10/drivers/staging/hilog/ |
D | hilog.c | 108 static int hilog_read_ring_buff(unsigned char __user *buffer, size_t buf_len) in hilog_read_ring_buff() argument 113 if (buf_left > buf_len) { in hilog_read_ring_buff() 114 retval = copy_to_user(buffer, hilog_buffer_head(), buf_len); in hilog_read_ring_buff() 116 size_t mem_len = (buf_len > buf_left) ? buf_left : buf_len; in hilog_read_ring_buff() 123 buf_len - buf_left); in hilog_read_ring_buff() 128 static int hilog_read_ring_head_buffer(unsigned char *buffer, size_t buf_len) in hilog_read_ring_head_buffer() argument 132 if (buf_left > buf_len) { in hilog_read_ring_head_buffer() 133 memcpy(buffer, hilog_buffer_head(), buf_len); in hilog_read_ring_head_buffer() 135 size_t mem_len = (buf_len > buf_left) ? buf_left : buf_len; in hilog_read_ring_head_buffer() 138 memcpy(buffer + buf_left, hilog_dev.buffer, buf_len - buf_left); in hilog_read_ring_head_buffer() [all …]
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | scan.c | 450 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 …]
|
/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-5.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 …]
|
/kernel/liteos_a/net/lwip-2.1/enhancement/src/ |
D | api_shell.c | 106 int print_netif(struct netif *netif, char *print_buf, unsigned int buf_len); 124 void lwip_arp_show_internal(struct netif *netif, char *printf_buf, unsigned int buf_len); 269 int print_netif(struct netif *netif, char *print_buf, unsigned int buf_len) argument 279 if (buf_len < 1) { 283 ret = snprintf_s(tmp, buf_len, (buf_len - 1), "%.2s\t", netif->name); 285 ret = snprintf_s(tmp, buf_len, (buf_len - 1), "%s\t", netif_get_name(netif)); 287 if ((ret <= 0) || ((unsigned int)ret >= buf_len)) 290 buf_len -= (unsigned int)ret; 292 ret = snprintf_s(tmp, buf_len, (buf_len - 1), "ip:%s ", ipaddr_ntoa(&netif->ip_addr)); 293 if ((ret <= 0) || ((unsigned int)ret >= buf_len)) [all …]
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.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()
|