Home
last modified time | relevance | path

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

12345678910>>...14

/drivers/net/wireless/ath/ath11k/
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 …]
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 …]
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 …]
/drivers/net/wireless/ath/ath6kl/
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 …]
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 …]
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()
/drivers/net/wireless/ath/ath10k/
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 …]
Dwmi.c1976 u32 buf_len = msdu->len; in ath10k_wmi_op_gen_mgmt_tx() local
2002 buf_len += sizeof(struct ieee80211_mmie_16); in ath10k_wmi_op_gen_mgmt_tx()
2007 buf_len += IEEE80211_GCMP_MIC_LEN; in ath10k_wmi_op_gen_mgmt_tx()
2010 buf_len += IEEE80211_CCMP_MIC_LEN; in ath10k_wmi_op_gen_mgmt_tx()
2026 cmd->hdr.buf_len = __cpu_to_le32(buf_len); in ath10k_wmi_op_gen_mgmt_tx()
2330 arg->buf_len = ev_hdr->buf_len; in ath10k_wmi_op_pull_mgmt_rx_ev()
2336 msdu_len = __le32_to_cpu(arg->buf_len); in ath10k_wmi_op_pull_mgmt_rx_ev()
2341 len = ALIGN(le32_to_cpu(arg->buf_len), 4); in ath10k_wmi_op_pull_mgmt_rx_ev()
2374 arg->buf_len = ev_hdr->buf_len; in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
2380 msdu_len = __le32_to_cpu(arg->buf_len); in ath10k_wmi_10_4_op_pull_mgmt_rx_ev()
[all …]
/drivers/net/wireless/st/cw1200/
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 …]
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()
/drivers/scsi/
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 …]
/drivers/i2c/busses/
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 …]
Di2c-davinci.c127 size_t buf_len; member
435 dev->buf_len = msg->len; in i2c_davinci_xfer_msg()
438 davinci_i2c_write_reg(dev, DAVINCI_I2C_CNT_REG, dev->buf_len); in i2c_davinci_xfer_msg()
478 if ((!(msg->flags & I2C_M_RD)) && dev->buf_len) { in i2c_davinci_xfer_msg()
480 dev->buf_len--; in i2c_davinci_xfer_msg()
494 dev->buf_len = 0; in i2c_davinci_xfer_msg()
497 if (dev->buf_len) { in i2c_davinci_xfer_msg()
502 dev->buf_len); in i2c_davinci_xfer_msg()
505 dev->buf_len = 0; in i2c_davinci_xfer_msg()
622 dev->buf_len = 0; in i2c_davinci_isr()
[all …]
/drivers/net/ethernet/hisilicon/hns3/
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 …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
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()
/drivers/staging/rtl8723bs/os_dep/
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()
/drivers/cxl/
Dpmem.c105 unsigned int buf_len) in cxl_pmem_get_config_size() argument
107 if (sizeof(*cmd) > buf_len) in cxl_pmem_get_config_size()
121 unsigned int buf_len) in cxl_pmem_get_config_data() argument
127 if (sizeof(*cmd) > buf_len) in cxl_pmem_get_config_data()
129 if (struct_size(cmd, out_buf, cmd->in_length) > buf_len) in cxl_pmem_get_config_data()
152 unsigned int buf_len) in cxl_pmem_set_config_data() argument
158 if (sizeof(*cmd) > buf_len) in cxl_pmem_set_config_data()
162 if (size_add(struct_size(cmd, in_buf, cmd->in_length), 4) > buf_len) in cxl_pmem_set_config_data()
193 void *buf, unsigned int buf_len) in cxl_pmem_nvdimm_ctl() argument
205 return cxl_pmem_get_config_size(mds, buf, buf_len); in cxl_pmem_nvdimm_ctl()
[all …]
/drivers/net/wireless/ath/wil6210/
Dtrace.h30 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 …]
/drivers/net/wireless/ath/ath12k/
Dtrace.h25 TP_PROTO(struct ath12k *ar, const void *buf, u16 buf_len,
28 TP_ARGS(ar, buf, buf_len, pktlog_checksum),
33 __field(u16, buf_len)
35 __dynamic_array(u8, pktlog, buf_len)
41 __entry->buf_len = buf_len;
43 memcpy(__get_dynamic_array(pktlog), buf, buf_len);
50 __entry->buf_len,
/drivers/crypto/nx/
Dnx-sha512.c73 u64 buf_len = (sctx->count[0] % SHA512_BLOCK_SIZE); in nx_sha512_update() local
83 memcpy(sctx->buf + buf_len, data, len); in nx_sha512_update()
111 if (buf_len) { in nx_sha512_update()
112 data_len = buf_len; in nx_sha512_update()
117 if (data_len != buf_len) { in nx_sha512_update()
135 data_len = to_process - buf_len; in nx_sha512_update()
141 if (data_len != (to_process - buf_len)) { in nx_sha512_update()
146 to_process = data_len + buf_len; in nx_sha512_update()
169 data += to_process - buf_len; in nx_sha512_update()
170 buf_len = 0; in nx_sha512_update()
Dnx-sha256.c73 u64 buf_len = (sctx->count % SHA256_BLOCK_SIZE); in nx_sha256_update() local
83 memcpy(sctx->buf + buf_len, data, len); in nx_sha256_update()
111 if (buf_len) { in nx_sha256_update()
112 data_len = buf_len; in nx_sha256_update()
118 if (data_len != buf_len) { in nx_sha256_update()
136 data_len = to_process - buf_len; in nx_sha256_update()
142 to_process = data_len + buf_len; in nx_sha256_update()
165 data += to_process - buf_len; in nx_sha256_update()
166 buf_len = 0; in nx_sha256_update()
/drivers/net/wireless/ti/wlcore/
Dtestmode.c60 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()
90 ret = wl1271_cmd_test(wl, buf, buf_len, answer); in wl1271_tm_cmd_test()
111 len = nla_total_size(buf_len); in wl1271_tm_cmd_test()
118 if (nla_put(skb, WL1271_TM_ATTR_DATA, buf_len, buf)) { in wl1271_tm_cmd_test()
205 int buf_len, ret; in wl1271_tm_cmd_configure() local
218 buf_len = nla_len(tb[WL1271_TM_ATTR_DATA]); in wl1271_tm_cmd_configure()
220 if (buf_len > sizeof(struct wl1271_command)) in wl1271_tm_cmd_configure()
224 ret = wl1271_cmd_configure(wl, ie_id, buf, buf_len); in wl1271_tm_cmd_configure()
/drivers/spi/
Dspi-armada-3700.c110 size_t buf_len; member
431 a3700_spi->buf_len = xfer->len; in a3700_spi_transfer_setup()
465 addr_cnt = a3700_spi->buf_len % 4; in a3700_spi_header_set()
472 a3700_spi->buf_len -= addr_cnt; in a3700_spi_header_set()
497 while (!a3700_is_wfifo_full(a3700_spi) && a3700_spi->buf_len) { in a3700_spi_fifo_write()
500 a3700_spi->buf_len -= 4; in a3700_spi_fifo_write()
518 while (!a3700_is_rfifo_empty(a3700_spi) && a3700_spi->buf_len) { in a3700_spi_fifo_read()
520 if (a3700_spi->buf_len >= 4) { in a3700_spi_fifo_read()
524 a3700_spi->buf_len -= 4; in a3700_spi_fifo_read()
532 while (a3700_spi->buf_len) { in a3700_spi_fifo_read()
[all …]
/drivers/net/wireless/marvell/mwifiex/
Dsdio.h98 #define MP_TX_AGGR_BUF_HAS_ROOM(a, len) ((a->mpa_tx.buf_len+len) \
103 memmove(&a->mpa_tx.buf[a->mpa_tx.buf_len], \
105 a->mpa_tx.buf_len += pkt_len; \
124 a->mpa_tx.buf_len = 0; \
138 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size)
143 a->mpa_rx.buf_len = 0; \
152 u32 buf_len; member
163 u32 buf_len; member
364 card->mpa_rx.buf_len += rx_len; in mp_rx_aggr_setup()
/drivers/net/wireless/silabs/wfx/
Dhif_tx.c143 size_t buf_len = sizeof(struct wfx_hif_req_configuration) + len; in wfx_hif_configuration() local
145 struct wfx_hif_req_configuration *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_configuration()
151 wfx_fill_header(hif, -1, HIF_REQ_ID_CONFIGURATION, buf_len); in wfx_hif_configuration()
176 int buf_len = sizeof(struct wfx_hif_cnf_read_mib) + val_len; in wfx_hif_read_mib() local
178 struct wfx_hif_cnf_read_mib *reply = kmalloc(buf_len, GFP_KERNEL); in wfx_hif_read_mib()
186 ret = wfx_cmd_send(wdev, hif, reply, buf_len, false); in wfx_hif_read_mib()
209 int buf_len = sizeof(struct wfx_hif_req_write_mib) + val_len; in wfx_hif_write_mib() local
210 struct wfx_hif_req_write_mib *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_write_mib()
217 wfx_fill_header(hif, vif_id, HIF_REQ_ID_WRITE_MIB, buf_len); in wfx_hif_write_mib()
228 size_t buf_len = sizeof(struct wfx_hif_req_start_scan_alt) + chan_num * sizeof(u8); in wfx_hif_scan() local
[all …]

12345678910>>...14