/linux/drivers/net/wireless/ath/ath11k/ |
A D | debugfs_htt_stats.c | 55 buf_len - len, in htt_print_stats_string_tlv() 61 if (len >= buf_len) in htt_print_stats_string_tlv() 62 buf[buf_len - 1] = 0; in htt_print_stats_string_tlv() 179 if (len >= buf_len) in htt_print_tx_pdev_stats_cmn_tlv() 203 if (len >= buf_len) in htt_print_tx_pdev_stats_urrn_tlv_v() 227 if (len >= buf_len) in htt_print_tx_pdev_stats_flush_tlv_v() 251 if (len >= buf_len) in htt_print_tx_pdev_stats_sifs_tlv_v() 275 if (len >= buf_len) in htt_print_tx_pdev_stats_phy_err_tlv_v() 300 if (len >= buf_len) in htt_print_tx_pdev_stats_sifs_hist_tlv_v() 335 if (len >= buf_len) in htt_print_tx_pdev_stats_tx_ppdu_stats_tlv_v() [all …]
|
A 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/drivers/net/wireless/ath/ath6kl/ |
A D | trace.h | 52 __entry->buf_len = buf_len; 75 __entry->buf_len = buf_len; 102 __entry->buf_len = buf_len; 116 __entry->buf_len 185 __entry->buf_len = buf_len; 196 size_t buf_len), 210 __entry->buf_len = buf_len; 218 __entry->buf_len 238 __entry->buf_len = buf_len; 246 __entry->buf_len [all …]
|
A D | debug.c | 320 if (WARN_ON(len > buf_len)) in read_file_war_stats() 321 len = buf_len; in read_file_war_stats() 681 if (len > buf_len) in read_file_tgt_stats() 682 len = buf_len; in read_file_tgt_stats() 747 if (len > buf_len) in read_file_credit_dist_stats() 748 len = buf_len; in read_file_credit_dist_stats() 828 if (len > buf_len) in ath6kl_endpoint_stats_read() 829 len = buf_len; in ath6kl_endpoint_stats_read() 1169 unsigned int len, buf_len; in ath6kl_roam_table_read() local 1215 if (len > buf_len) in ath6kl_roam_table_read() [all …]
|
A 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/tools/perf/util/arm-spe-decoder/ |
A D | arm-spe-pkt-decoder.c | 293 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() 333 char *buf, size_t buf_len) in arm_spe_pkt_desc_op_type() argument 359 arm_spe_pkt_out_string(&err, &buf, &buf_len, in arm_spe_pkt_desc_op_type() 419 char *buf, size_t buf_len) in arm_spe_pkt_desc_addr() argument 432 arm_spe_pkt_out_string(&err, &buf, &buf_len, in arm_spe_pkt_desc_addr() 437 arm_spe_pkt_out_string(&err, &buf, &buf_len, in arm_spe_pkt_desc_addr() 445 arm_spe_pkt_out_string(&err, &buf, &buf_len, in arm_spe_pkt_desc_addr() 459 char *buf, size_t buf_len) in arm_spe_pkt_desc_counter() argument 486 size_t buf_len) in arm_spe_pkt_desc() argument [all …]
|
/linux/security/selinux/ |
A D | ima.c | 27 int buf_len, len, i, rc; in selinux_ima_collect_state() local 35 buf = kzalloc(buf_len, GFP_KERNEL); in selinux_ima_collect_state() 39 rc = strscpy(buf, "initialized", buf_len); in selinux_ima_collect_state() 43 WARN_ON(rc >= buf_len); in selinux_ima_collect_state() 45 rc = strlcat(buf, "enforcing", buf_len); in selinux_ima_collect_state() 46 WARN_ON(rc >= buf_len); in selinux_ima_collect_state() 49 WARN_ON(rc >= buf_len); in selinux_ima_collect_state() 52 WARN_ON(rc >= buf_len); in selinux_ima_collect_state() 55 WARN_ON(rc >= buf_len); in selinux_ima_collect_state() 59 WARN_ON(rc >= buf_len); in selinux_ima_collect_state() [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
A D | trace.h | 134 __entry->buf_len = buf_len; 164 __entry->buf_len = buf_len; 173 __entry->buf_len 194 __entry->buf_len = buf_len; 203 __entry->buf_len 222 __entry->buf_len = buf_len; 230 __entry->buf_len 251 __entry->buf_len = buf_len; 260 __entry->buf_len 281 __entry->buf_len = buf_len; [all …]
|
/linux/drivers/net/wireless/st/cw1200/ |
A D | hwio.c | 48 buf, buf_len); in __cw1200_reg_read() 63 buf, buf_len); in __cw1200_reg_write() 99 size_t buf_len) in cw1200_reg_read() argument 109 size_t buf_len) in cw1200_reg_write() argument 128 buf_len, buf_id_rx + 1); in cw1200_data_read() 145 size_t buf_len) in cw1200_data_write() argument 155 buf_len, buf_id_tx); in cw1200_data_write() 177 if ((buf_len / 2) >= 0x1000) { in cw1200_indirect_read() 236 size_t buf_len) in cw1200_apb_write() argument 240 if ((buf_len / 2) >= 0x1000) { in cw1200_apb_write() [all …]
|
A 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/drivers/i2c/busses/ |
A D | i2c-at91-master.c | 157 if (!dev->buf_len) in at91_twi_write_next_byte() 164 if (--dev->buf_len == 0) { in at91_twi_write_next_byte() 202 if (!dev->buf_len) in at91_twi_write_data_dma() 278 if (!dev->buf_len) { in at91_twi_read_next_byte() 285 --dev->buf_len; in at91_twi_read_next_byte() 299 dev->buf_len); in at91_twi_read_next_byte() 303 dev->buf_len = 1; in at91_twi_read_next_byte() 327 dev->buf_len = 2; in at91_twi_read_data_dma_callback() 339 size_t buf_len; in at91_twi_read_data_dma() local 341 buf_len = (dev->use_alt_cmd) ? dev->buf_len : dev->buf_len - 2; in at91_twi_read_data_dma() [all …]
|
/linux/drivers/scsi/ |
A D | scsi_logging.c | 118 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name() 132 if (WARN_ON(off >= buf_len)) in scsi_format_opcode_name() 135 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name() 138 off += scnprintf(buffer + off, buf_len - off, in scsi_format_opcode_name() 148 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name() 151 WARN_ON(off >= buf_len); in scsi_format_opcode_name() 258 off += scnprintf(buffer + off, buf_len - off, in scsi_format_extd_sense() 263 off += scnprintf(buffer + off, buf_len - off, in scsi_format_extd_sense() 279 off += scnprintf(buffer + off, buf_len - off, in scsi_format_sense_hdr() 282 off += scnprintf(buffer + off, buf_len - off, in scsi_format_sense_hdr() [all …]
|
/linux/scripts/dtc/ |
A D | fdtoverlay.c | 45 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()
|
/linux/drivers/cxl/ |
A D | pmem.c | 85 unsigned int buf_len) in cxl_pmem_get_config_size() argument 87 if (sizeof(*cmd) > buf_len) in cxl_pmem_get_config_size() 100 unsigned int buf_len) in cxl_pmem_get_config_data() argument 105 if (sizeof(*cmd) > buf_len) in cxl_pmem_get_config_data() 125 unsigned int buf_len) in cxl_pmem_set_config_data() argument 130 if (sizeof(*cmd) > buf_len) in cxl_pmem_set_config_data() 162 void *buf, unsigned int buf_len) in cxl_pmem_nvdimm_ctl() argument 174 return cxl_pmem_get_config_size(cxlm, buf, buf_len); in cxl_pmem_nvdimm_ctl() 176 return cxl_pmem_get_config_data(cxlm, buf, buf_len); in cxl_pmem_nvdimm_ctl() 178 return cxl_pmem_set_config_data(cxlm, buf, buf_len); in cxl_pmem_nvdimm_ctl() [all …]
|
/linux/fs/jffs2/ |
A D | scan.c | 500 buf_len = sizeof(*sm); 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() 560 buf_len = c->sector_size; in jffs2_scan_eraseblock() 653 buf_len, ofs); in jffs2_scan_eraseblock() 698 scan_end = buf_len; in jffs2_scan_eraseblock() 704 if (!buf_len) { in jffs2_scan_eraseblock() 712 scan_end = buf_len; in jffs2_scan_eraseblock() 714 buf_len, ofs); in jffs2_scan_eraseblock() [all …]
|
/linux/samples/watch_queue/ |
A 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/security/integrity/ima/ |
A 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/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A 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/tools/testing/nvdimm/test/ |
A D | nfit.c | 1445 buf_len, i); in nfit_test_ctl() 1449 buf_len, i); in nfit_test_ctl() 1453 buf_len, i); in nfit_test_ctl() 1457 buf_len, i); in nfit_test_ctl() 1469 buf_len, in nfit_test_ctl() 1474 buf_len, in nfit_test_ctl() 1481 buf_len, in nfit_test_ctl() 1536 buf_len); in nfit_test_ctl() 1540 buf_len); in nfit_test_ctl() 1544 buf_len); in nfit_test_ctl() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
A D | hns3_debugfs.c | 49 .buf_len = HNS3_DBG_READ_LEN, 56 .buf_len = HNS3_DBG_READ_LEN, 63 .buf_len = HNS3_DBG_READ_LEN, 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, 119 .buf_len = HNS3_DBG_READ_LEN, [all …]
|
/linux/tools/perf/util/intel-pt-decoder/ |
A D | intel-pt-pkt-decoder.c | 655 size_t buf_len) in intel_pt_pkt_desc() argument 668 return snprintf(buf, buf_len, "%s", name); in intel_pt_pkt_desc() 670 size_t blen = buf_len; in intel_pt_pkt_desc() 692 return buf_len - blen; in intel_pt_pkt_desc() 699 return snprintf(buf, buf_len, "%s no ip", name); in intel_pt_pkt_desc() 712 return snprintf(buf, buf_len, "%s %lld", name, payload); in intel_pt_pkt_desc() 714 return snprintf(buf, buf_len, "%s TXAbort:%u InTX:%u", in intel_pt_pkt_desc() 720 ret = snprintf(buf, buf_len, "%s 0x%llx (NR=%d)", in intel_pt_pkt_desc() 729 return snprintf(buf, buf_len, "%s IP:0", name); in intel_pt_pkt_desc() 732 return snprintf(buf, buf_len, "%s IP:1", name); in intel_pt_pkt_desc() [all …]
|
/linux/fs/vboxsf/ |
A D | vboxsf_wrappers.c | 214 parms.cb.u.value32 = *buf_len; in vboxsf_read() 221 *buf_len = parms.cb.u.value32; in vboxsf_read() 238 parms.cb.u.value32 = *buf_len; in vboxsf_write() 245 *buf_len = parms.cb.u.value32; in vboxsf_write() 265 parms.cb.u.value32 = *buf_len; in vboxsf_dirinfo() 289 *buf_len = parms.cb.u.value32; in vboxsf_dirinfo() 295 u32 *buf_len, void *buf) in vboxsf_fsinfo() argument 308 parms.cb.u.value32 = *buf_len; in vboxsf_fsinfo() 310 parms.info.u.pointer.size = *buf_len; in vboxsf_fsinfo() 316 *buf_len = parms.cb.u.value32; in vboxsf_fsinfo() [all …]
|
/linux/drivers/net/wireless/ath/wil6210/ |
A 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/drivers/staging/rtl8723bs/os_dep/ |
A D | osdep_service.c | 161 void rtw_buf_free(u8 **buf, u32 *buf_len) in rtw_buf_free() argument 163 if (!buf || !buf_len) in rtw_buf_free() 167 *buf_len = 0; in rtw_buf_free() 173 void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len) in rtw_buf_update() argument 179 if (!buf || !buf_len) in rtw_buf_update() 194 ori_len = *buf_len; in rtw_buf_update() 197 *buf_len = 0; in rtw_buf_update() 199 *buf_len = dup_len; in rtw_buf_update()
|
/linux/security/tomoyo/ |
A 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()
|