/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,
|
D | testmode.c | 122 u32 cmd_id, buf_len; in ath11k_tm_cmd_wmi() local 144 buf_len = nla_len(tb[ATH11K_TM_ATTR_DATA]); in ath11k_tm_cmd_wmi() 149 cmd_id, buf, buf_len); in ath11k_tm_cmd_wmi() 151 ath11k_dbg_dump(ar->ab, ATH11K_DBG_TESTMODE, NULL, "", buf, buf_len); in ath11k_tm_cmd_wmi() 153 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, buf_len); in ath11k_tm_cmd_wmi() 159 memcpy(skb->data, buf, buf_len); in ath11k_tm_cmd_wmi()
|
/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()
|
/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 …]
|
D | wmi.c | 1956 u32 buf_len = msdu->len; in ath10k_wmi_op_gen_mgmt_tx() local 1982 buf_len += sizeof(struct ieee80211_mmie_16); in ath10k_wmi_op_gen_mgmt_tx() 1987 buf_len += IEEE80211_GCMP_MIC_LEN; in ath10k_wmi_op_gen_mgmt_tx() 1990 buf_len += IEEE80211_CCMP_MIC_LEN; in ath10k_wmi_op_gen_mgmt_tx() 2006 cmd->hdr.buf_len = __cpu_to_le32(buf_len); in ath10k_wmi_op_gen_mgmt_tx() 2310 arg->buf_len = ev_hdr->buf_len; in ath10k_wmi_op_pull_mgmt_rx_ev() 2316 msdu_len = __le32_to_cpu(arg->buf_len); in ath10k_wmi_op_pull_mgmt_rx_ev() 2321 len = ALIGN(le32_to_cpu(arg->buf_len), 4); in ath10k_wmi_op_pull_mgmt_rx_ev() 2354 arg->buf_len = ev_hdr->buf_len; in ath10k_wmi_10_4_op_pull_mgmt_rx_ev() 2360 msdu_len = __le32_to_cpu(arg->buf_len); in ath10k_wmi_10_4_op_pull_mgmt_rx_ev() [all …]
|
/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()
|
/drivers/scsi/ |
D | scsi_logging.c | 106 static size_t scsi_format_opcode_name(char *buffer, size_t buf_len, in scsi_format_opcode_name() argument 118 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name() 129 off = scnprintf(buffer, buf_len, "%s", cdb_name); in scsi_format_opcode_name() 131 off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0); 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() 143 off = scnprintf(buffer, buf_len, "%s", sa_name); in scsi_format_opcode_name() 145 off = scnprintf(buffer, buf_len, "%s, sa=0x%x", in scsi_format_opcode_name() 148 off = scnprintf(buffer, buf_len, in scsi_format_opcode_name() [all …]
|
/drivers/i2c/busses/ |
D | i2c-at91-master.c | 148 dev->buf_len, dma->direction); in at91_twi_dma_cleanup() 157 if (!dev->buf_len) in at91_twi_write_next_byte() 164 if (--dev->buf_len == 0) { in at91_twi_write_next_byte() 170 dev_dbg(dev->dev, "wrote 0x%x, to go %zu\n", *dev->buf, dev->buf_len); in at91_twi_write_next_byte() 180 dev->buf_len, DMA_TO_DEVICE); in at91_twi_write_data_dma_callback() 202 if (!dev->buf_len) in at91_twi_write_data_dma() 208 dma_addr = dma_map_single(dev->dev, dev->buf, dev->buf_len, in at91_twi_write_data_dma() 224 part1_len = dev->buf_len & ~0x3; in at91_twi_write_data_dma() 231 part2_len = dev->buf_len & 0x3; in at91_twi_write_data_dma() 247 sg_dma_len(&dma->sg[0]) = dev->buf_len; in at91_twi_write_data_dma() [all …]
|
D | i2c-davinci.c | 127 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() 623 dev->buf_len = 0; in i2c_davinci_isr() [all …]
|
D | i2c-highlander.c | 48 size_t buf_len; member 241 cnt = (dev->buf_len + 1) >> 1; in highlander_i2c_read() 247 smbus_read_data(data, dev->buf, dev->buf_len); in highlander_i2c_read() 259 smbus_write_data(dev->buf, data, dev->buf_len); in highlander_i2c_write() 261 cnt = (dev->buf_len + 1) >> 1; in highlander_i2c_write() 294 dev->buf_len = 1; in highlander_i2c_smbus_xfer() 298 dev->buf_len = data->block[0]; in highlander_i2c_smbus_xfer() 311 switch (dev->buf_len) { in highlander_i2c_smbus_xfer() 325 dev_err(dev->dev, "unsupported xfer size %zu\n", dev->buf_len); in highlander_i2c_smbus_xfer() 337 highlander_i2c_command(dev, command, dev->buf_len); in highlander_i2c_smbus_xfer()
|
/drivers/net/ethernet/hisilicon/hns3/ |
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, 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/ |
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()
|
/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 …]
|
/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 168 void rtw_buf_free(u8 **buf, u32 *buf_len) in rtw_buf_free() argument 170 if (!buf || !buf_len) in rtw_buf_free() 174 *buf_len = 0; in rtw_buf_free() 180 void rtw_buf_update(u8 **buf, u32 *buf_len, u8 *src, u32 src_len) in rtw_buf_update() argument 186 if (!buf || !buf_len) in rtw_buf_update() 201 ori_len = *buf_len; in rtw_buf_update() 204 *buf_len = 0; in rtw_buf_update() 206 *buf_len = dup_len; in rtw_buf_update()
|
/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()
|
/drivers/crypto/nx/ |
D | nx-sha512.c | 73 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()
|
D | nx-sha256.c | 73 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/spi/ |
D | spi-armada-3700.c | 111 size_t buf_len; member 432 a3700_spi->buf_len = xfer->len; in a3700_spi_transfer_setup() 466 addr_cnt = a3700_spi->buf_len % 4; in a3700_spi_header_set() 473 a3700_spi->buf_len -= addr_cnt; in a3700_spi_header_set() 498 while (!a3700_is_wfifo_full(a3700_spi) && a3700_spi->buf_len) { in a3700_spi_fifo_write() 501 a3700_spi->buf_len -= 4; in a3700_spi_fifo_write() 519 while (!a3700_is_rfifo_empty(a3700_spi) && a3700_spi->buf_len) { in a3700_spi_fifo_read() 521 if (a3700_spi->buf_len >= 4) { in a3700_spi_fifo_read() 525 a3700_spi->buf_len -= 4; in a3700_spi_fifo_read() 533 while (a3700_spi->buf_len) { in a3700_spi_fifo_read() [all …]
|
/drivers/net/wireless/marvell/mwifiex/ |
D | sdio.h | 108 #define MP_TX_AGGR_BUF_HAS_ROOM(a, len) ((a->mpa_tx.buf_len+len) \ 113 memmove(&a->mpa_tx.buf[a->mpa_tx.buf_len], \ 115 a->mpa_tx.buf_len += pkt_len; \ 134 a->mpa_tx.buf_len = 0; \ 148 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size) 153 a->mpa_rx.buf_len = 0; \ 162 u32 buf_len; member 173 u32 buf_len; member 367 card->mpa_rx.buf_len += rx_len; in mp_rx_aggr_setup()
|
/drivers/staging/wfx/ |
D | hif_tx.c | 145 size_t buf_len = sizeof(struct hif_req_configuration) + len; in hif_configuration() local 147 struct hif_req_configuration *body = wfx_alloc_hif(buf_len, &hif); in hif_configuration() 153 wfx_fill_header(hif, -1, HIF_REQ_ID_CONFIGURATION, buf_len); in hif_configuration() 179 int buf_len = sizeof(struct hif_cnf_read_mib) + val_len; in hif_read_mib() local 181 struct hif_cnf_read_mib *reply = kmalloc(buf_len, GFP_KERNEL); in hif_read_mib() 189 ret = wfx_cmd_send(wdev, hif, reply, buf_len, false); in hif_read_mib() 215 int buf_len = sizeof(struct hif_req_write_mib) + val_len; in hif_write_mib() local 216 struct hif_req_write_mib *body = wfx_alloc_hif(buf_len, &hif); in hif_write_mib() 223 wfx_fill_header(hif, vif_id, HIF_REQ_ID_WRITE_MIB, buf_len); in hif_write_mib() 234 size_t buf_len = in hif_scan() local [all …]
|
/drivers/block/drbd/ |
D | drbd_vli.h | 218 size_t buf_len; /* in bytes */ member 229 bs->buf_len = len; in bitstream_init() 237 memset(bs->buf, 0, bs->buf_len); in bitstream_rewind() 256 if ((bs->cur.b + ((bs->cur.bit + bits -1) >> 3)) - bs->buf >= bs->buf_len) in bitstream_put_bits() 289 if (bs->cur.b + ((bs->cur.bit + bs->pad_bits + bits -1) >> 3) - bs->buf >= bs->buf_len) in bitstream_get_bits() 290 bits = ((bs->buf_len - (bs->cur.b - bs->buf)) << 3) in bitstream_get_bits()
|