/Linux-v5.4/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.4/tools/perf/util/ |
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.4/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.4/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.4/drivers/i2c/busses/ |
D | i2c-at91-master.c | 109 dev->buf_len, dma->direction); in at91_twi_dma_cleanup() 118 if (!dev->buf_len) in at91_twi_write_next_byte() 125 if (--dev->buf_len == 0) { in at91_twi_write_next_byte() 131 dev_dbg(dev->dev, "wrote 0x%x, to go %zu\n", *dev->buf, dev->buf_len); in at91_twi_write_next_byte() 141 dev->buf_len, DMA_TO_DEVICE); in at91_twi_write_data_dma_callback() 163 if (!dev->buf_len) in at91_twi_write_data_dma() 169 dma_addr = dma_map_single(dev->dev, dev->buf, dev->buf_len, in at91_twi_write_data_dma() 185 part1_len = dev->buf_len & ~0x3; in at91_twi_write_data_dma() 192 part2_len = dev->buf_len & 0x3; in at91_twi_write_data_dma() 208 sg_dma_len(&dma->sg[0]) = dev->buf_len; in at91_twi_write_data_dma() [all …]
|
/Linux-v5.4/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.4/security/integrity/ima/ |
D | ima_modsig.c | 60 int ima_read_modsig(enum ima_hooks func, const void *buf, loff_t buf_len, in ima_read_modsig() argument 70 if (buf_len <= marker_len + sizeof(*sig)) in ima_read_modsig() 73 p = buf + buf_len - marker_len; in ima_read_modsig() 77 buf_len -= marker_len; in ima_read_modsig() 80 rc = mod_check_sig(sig, buf_len, func_tokens[func]); in ima_read_modsig() 85 buf_len -= sig_len + sizeof(*sig); in ima_read_modsig() 92 hdr->pkcs7_msg = pkcs7_parse_message(buf + buf_len, sig_len); in ima_read_modsig() 99 memcpy(hdr->raw_pkcs7, buf + buf_len, sig_len); in ima_read_modsig()
|
/Linux-v5.4/drivers/staging/rtl8188eu/os_dep/ |
D | osdep_service.c | 62 void rtw_buf_free(u8 **buf, u32 *buf_len) in rtw_buf_free() argument 64 *buf_len = 0; in rtw_buf_free() 69 void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len) in rtw_buf_update() argument 75 if (!buf || !buf_len) in rtw_buf_update() 92 *buf_len = 0; in rtw_buf_update() 94 *buf_len = dup_len; in rtw_buf_update()
|
/Linux-v5.4/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.4/fs/jffs2/ |
D | scan.c | 447 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() 559 buf_len = c->sector_size; in jffs2_scan_eraseblock() [all …]
|
/Linux-v5.4/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.4/security/tomoyo/ |
D | realpath.c | 264 unsigned int buf_len = PAGE_SIZE / 2; in tomoyo_realpath_from_path() local 275 buf_len <<= 1; in tomoyo_realpath_from_path() 277 buf = kmalloc(buf_len, GFP_NOFS); in tomoyo_realpath_from_path() 281 buf[buf_len - 1] = '\0'; in tomoyo_realpath_from_path() 284 pos = tomoyo_get_socket_name(path, buf, buf_len - 1); in tomoyo_realpath_from_path() 289 pos = dentry->d_op->d_dname(dentry, buf, buf_len - 1); in tomoyo_realpath_from_path() 301 buf_len - 1); in tomoyo_realpath_from_path() 304 pos = tomoyo_get_absolute_path(path, buf, buf_len - 1); in tomoyo_realpath_from_path() 311 buf_len - 1); in tomoyo_realpath_from_path()
|
/Linux-v5.4/drivers/net/wireless/ath/wil6210/ |
D | trace.h | 41 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len), 43 TP_ARGS(wmi, buf, buf_len), 49 __field(u16, buf_len) 50 __dynamic_array(u8, buf, buf_len) 57 __entry->buf_len = buf_len; 58 memcpy(__get_dynamic_array(buf), buf, buf_len); 63 __entry->mid, __entry->command_id, __entry->buf_len, 69 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len), 70 TP_ARGS(wmi, buf, buf_len) 74 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len), [all …]
|
/Linux-v5.4/tools/testing/nvdimm/test/ |
D | nfit.c | 231 struct nd_intel_fw_info *nd_cmd, unsigned int buf_len, in nd_intel_test_get_fw_info() argument 238 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_get_fw_info() 240 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_get_fw_info() 257 struct nd_intel_fw_start *nd_cmd, unsigned int buf_len, in nd_intel_test_start_update() argument 264 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_start_update() 266 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_start_update() 287 struct nd_intel_fw_send_data *nd_cmd, unsigned int buf_len, in nd_intel_test_send_data() argument 295 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_send_data() 297 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_send_data() 339 unsigned int buf_len, int idx) in nd_intel_test_finish_fw() argument [all …]
|
/Linux-v5.4/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()
|
D | nx-sha256.c | 68 u64 buf_len = (sctx->count % SHA256_BLOCK_SIZE); in nx_sha256_update() local 78 memcpy(sctx->buf + buf_len, data, len); in nx_sha256_update() 106 if (buf_len) { in nx_sha256_update() 107 data_len = buf_len; in nx_sha256_update() 113 if (data_len != buf_len) { in nx_sha256_update() 131 data_len = to_process - buf_len; in nx_sha256_update() 137 to_process = data_len + buf_len; in nx_sha256_update() 160 data += to_process - buf_len; in nx_sha256_update() 161 buf_len = 0; in nx_sha256_update()
|
/Linux-v5.4/kernel/bpf/ |
D | helpers.c | 364 static int __bpf_strtoull(const char *buf, size_t buf_len, u64 flags, in __bpf_strtoull() argument 369 size_t cur_len = buf_len; in __bpf_strtoull() 374 if (!buf || !buf_len || !res || !is_negative) in __bpf_strtoull() 383 while (cur_buf < buf + buf_len && isspace(*cur_buf)) in __bpf_strtoull() 386 *is_negative = (cur_buf < buf + buf_len && *cur_buf == '-'); in __bpf_strtoull() 415 static int __bpf_strtoll(const char *buf, size_t buf_len, u64 flags, in __bpf_strtoll() argument 422 err = __bpf_strtoull(buf, buf_len, flags, &_res, &is_negative); in __bpf_strtoll() 437 BPF_CALL_4(bpf_strtol, const char *, buf, size_t, buf_len, u64, flags, in BPF_CALL_4() argument 443 err = __bpf_strtoll(buf, buf_len, flags, &_res); in BPF_CALL_4() 462 BPF_CALL_4(bpf_strtoul, const char *, buf, size_t, buf_len, u64, flags, in BPF_CALL_4() argument [all …]
|
/Linux-v5.4/net/ceph/ |
D | crypto.c | 161 const void *buf, unsigned int buf_len) in setup_sgtable() argument 167 unsigned int chunk_len = PAGE_ALIGN(off + buf_len); in setup_sgtable() 171 if (buf_len == 0) { in setup_sgtable() 194 unsigned int len = min(chunk_len - off, buf_len); in setup_sgtable() 205 buf_len -= len; in setup_sgtable() 207 WARN_ON(buf_len != 0); in setup_sgtable() 219 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument 229 WARN_ON(crypt_len > buf_len); in ceph_aes_crypt() 283 void *buf, int buf_len, int in_len, int *pout_len) in ceph_crypt() argument 290 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
|
/Linux-v5.4/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()
|
/Linux-v5.4/lib/mpi/ |
D | mpicoder.c | 143 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-v5.4/drivers/net/wimax/i2400m/ |
D | usb-notif.c | 83 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-v5.4/drivers/spi/ |
D | spi-armada-3700.c | 111 size_t buf_len; member 434 a3700_spi->buf_len = xfer->len; in a3700_spi_transfer_setup() 468 addr_cnt = a3700_spi->buf_len % 4; in a3700_spi_header_set() 475 a3700_spi->buf_len -= addr_cnt; in a3700_spi_header_set() 500 while (!a3700_is_wfifo_full(a3700_spi) && a3700_spi->buf_len) { in a3700_spi_fifo_write() 503 a3700_spi->buf_len -= 4; in a3700_spi_fifo_write() 521 while (!a3700_is_rfifo_empty(a3700_spi) && a3700_spi->buf_len) { in a3700_spi_fifo_read() 523 if (a3700_spi->buf_len >= 4) { in a3700_spi_fifo_read() 527 a3700_spi->buf_len -= 4; in a3700_spi_fifo_read() 535 while (a3700_spi->buf_len) { in a3700_spi_fifo_read() [all …]
|