Home
last modified time | relevance | path

Searched refs:data_buf (Results 1 – 25 of 91) sorted by relevance

1234

/Linux-v5.15/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dxtlv.c38 u8 *data_buf; in brcmf_xtlv_pack_header() local
47 data_buf = lenp + sizeof(u16); in brcmf_xtlv_pack_header()
54 data_buf = lenp + sizeof(u8); in brcmf_xtlv_pack_header()
61 data_buf = lenp + sizeof(u16); in brcmf_xtlv_pack_header()
68 data_buf = lenp + sizeof(u8); in brcmf_xtlv_pack_header()
80 memcpy(data_buf, data, len); in brcmf_xtlv_pack_header()
/Linux-v5.15/drivers/firmware/google/
Dgsmi.c94 struct gsmi_buf *data_buf; /* generic data buffer */ member
317 .data_ptr = gsmi_dev.data_buf->address, in gsmi_get_variable()
338 memset(gsmi_dev.data_buf->start, 0, gsmi_dev.data_buf->length); in gsmi_get_variable()
357 gsmi_dev.data_buf->length); in gsmi_get_variable()
361 memcpy(data, gsmi_dev.data_buf->start, *data_size); in gsmi_get_variable()
439 .data_ptr = gsmi_dev.data_buf->address, in gsmi_set_variable()
463 memset(gsmi_dev.data_buf->start, 0, gsmi_dev.data_buf->length); in gsmi_set_variable()
464 memcpy(gsmi_dev.data_buf->start, data, data_size); in gsmi_set_variable()
494 .data_ptr = gsmi_dev.data_buf->address, in eventlog_write()
506 if ((count - sizeof(u32)) > gsmi_dev.data_buf->length) in eventlog_write()
[all …]
/Linux-v5.15/drivers/net/wireless/marvell/mwifiex/
Dsta_cmd.c287 u16 cmd_action, void *data_buf) in mwifiex_cmd_rf_tx_power() argument
1146 u16 cmd_action, void *data_buf) in mwifiex_cmd_reg_access() argument
1148 struct mwifiex_ds_reg_rw *reg_rw = data_buf; in mwifiex_cmd_reg_access()
1208 struct mwifiex_ds_read_eeprom *rd_eeprom = data_buf; in mwifiex_cmd_reg_access()
1511 struct host_cmd_ds_command *cmd, void *data_buf) in mwifiex_cmd_cfg_data() argument
1514 struct property *prop = data_buf; in mwifiex_cmd_cfg_data()
1546 u16 cmd_action, void *data_buf) in mwifiex_cmd_set_mc_policy() argument
1549 const u16 *drcs_info = data_buf; in mwifiex_cmd_set_mc_policy()
1628 u16 cmd_action, void *data_buf) in mwifiex_cmd_coalesce_cfg() argument
1632 struct mwifiex_ds_coalesce_cfg *cfg = data_buf; in mwifiex_cmd_coalesce_cfg()
[all …]
Dsta_cmdresp.c169 u32 *data_buf) in mwifiex_ret_802_11_snmp_mib() argument
182 if (data_buf) in mwifiex_ret_802_11_snmp_mib()
183 *data_buf = ul_temp; in mwifiex_ret_802_11_snmp_mib()
336 static int mwifiex_get_power_level(struct mwifiex_private *priv, void *data_buf) in mwifiex_get_power_level() argument
342 if (!data_buf) in mwifiex_get_power_level()
345 pg_tlv_hdr = (struct mwifiex_types_power_group *)((u8 *)data_buf); in mwifiex_get_power_level()
742 void *data_buf) in mwifiex_ret_p2p_mode_cfg() argument
746 if (data_buf) in mwifiex_ret_p2p_mode_cfg()
747 put_unaligned_le16(le16_to_cpu(mode_cfg->mode), data_buf); in mwifiex_ret_p2p_mode_cfg()
772 void *data_buf) in mwifiex_ret_reg_access() argument
[all …]
D11n_rxreorder.h68 void *data_buf);
74 void *data_buf);
Dcmdevt.c42 u32 cmd_no, void *data_buf, bool sync) in mwifiex_init_cmd_node() argument
52 cmd_node->data_buf = data_buf; in mwifiex_init_cmd_node()
97 cmd_node->data_buf = NULL; in mwifiex_clean_cmd_node()
559 u16 cmd_action, u32 cmd_oid, void *data_buf, bool sync) in mwifiex_send_cmd() argument
622 mwifiex_init_cmd_node(priv, cmd_node, cmd_no, data_buf, sync); in mwifiex_send_cmd()
646 cmd_oid, data_buf, in mwifiex_send_cmd()
651 cmd_oid, data_buf, in mwifiex_send_cmd()
656 ret = mwifiex_cmd_host_cmd(priv, cmd_ptr, data_buf); in mwifiex_send_cmd()
845 if (adapter->curr_cmd->data_buf) { in mwifiex_process_cmdresp()
846 hostcmd = adapter->curr_cmd->data_buf; in mwifiex_process_cmdresp()
/Linux-v5.15/arch/arm64/kvm/
Dmmio.c131 u8 data_buf[8]; in io_mem_abort() local
163 kvm_mmio_write_buf(data_buf, len, data); in io_mem_abort()
166 data_buf); in io_mem_abort()
172 data_buf); in io_mem_abort()
184 memcpy(run->mmio.data, data_buf, len); in io_mem_abort()
191 memcpy(run->mmio.data, data_buf, len); in io_mem_abort()
/Linux-v5.15/drivers/mtd/nand/raw/
Dqcom_nandc.c1607 static bool erased_chunk_check_and_fixup(u8 *data_buf, int data_len) in erased_chunk_check_and_fixup() argument
1617 empty1 = data_buf[3]; in erased_chunk_check_and_fixup()
1618 empty2 = data_buf[175]; in erased_chunk_check_and_fixup()
1626 data_buf[3] = 0xff; in erased_chunk_check_and_fixup()
1627 data_buf[175] = 0xff; in erased_chunk_check_and_fixup()
1634 if (memchr_inv(data_buf, 0xff, data_len)) { in erased_chunk_check_and_fixup()
1635 data_buf[3] = empty1; in erased_chunk_check_and_fixup()
1636 data_buf[175] = empty2; in erased_chunk_check_and_fixup()
1672 u8 *data_buf, u8 *oob_buf, int page, int cw) in qcom_nandc_read_cw_raw() argument
1720 read_data_dma(nandc, reg_off, data_buf, data_size1, 0); in qcom_nandc_read_cw_raw()
[all …]
Dmxc_nand.c182 uint8_t *data_buf; member
613 memcpy32_fromio(host->data_buf, host->main_area0, 16); in send_read_id_v3()
627 memcpy32_fromio(host->data_buf, host->main_area0, 16); in send_read_id_v1_v2()
891 memset(host->data_buf, 0xff, mtd->writesize); in mxc_nand_write_oob()
893 return mxc_nand_write_page(chip, host->data_buf, false, page); in mxc_nand_write_oob()
907 ret = *(uint16_t *)(host->data_buf + host->buf_start); in mxc_nand_read_byte()
911 ret = *(uint8_t *)(host->data_buf + host->buf_start); in mxc_nand_read_byte()
932 memcpy(host->data_buf + col, buf, n); in mxc_nand_write_buf()
951 memcpy(buf, host->data_buf + col, n); in mxc_nand_read_buf()
1384 memcpy32_fromio(host->data_buf, host->main_area0, 512); in mxc_nand_command()
[all …]
Dmeson_nand.c118 u8 *data_buf; member
338 return meson_chip->data_buf + len; in meson_nfc_oob_ptr()
349 return meson_chip->data_buf + len; in meson_nfc_data_ptr()
647 ret = meson_nfc_dma_buffer_setup(nand, meson_chip->data_buf, in meson_nfc_write_page_sub()
688 memcpy(meson_chip->data_buf, buf, mtd->writesize); in meson_nfc_write_page_hwecc()
731 ret = meson_nfc_dma_buffer_setup(nand, meson_chip->data_buf, in meson_nfc_read_page_sub()
816 } else if (buf && buf != meson_chip->data_buf) { in meson_nfc_read_page_hwecc()
817 memcpy(buf, meson_chip->data_buf, mtd->writesize); in meson_nfc_read_page_hwecc()
1075 kfree(meson_chip->data_buf); in meson_nfc_free_buffer()
1089 meson_chip->data_buf = kmalloc(page_bytes, GFP_KERNEL); in meson_chip_buffer_init()
[all …]
Dlpc32xx_slc.c234 uint8_t *data_buf; member
516 dma_buf = host->data_buf; in lpc32xx_xfer()
519 memcpy(host->data_buf, buf, mtd->writesize); in lpc32xx_xfer()
605 memcpy(buf, host->data_buf, mtd->writesize); in lpc32xx_xfer()
794 host->ecc_buf = (uint32_t *)(host->data_buf + LPC32XX_DMA_DATA_SIZE); in lpc32xx_nand_attach_chip()
919 host->data_buf = devm_kzalloc(&pdev->dev, host->dma_buf_len, in lpc32xx_nand_probe()
921 if (host->data_buf == NULL) { in lpc32xx_nand_probe()
/Linux-v5.15/drivers/mmc/core/
Dmmc_ops.c646 u8 *data_buf; in mmc_send_tuning() local
657 data_buf = kzalloc(size, GFP_KERNEL); in mmc_send_tuning()
658 if (!data_buf) in mmc_send_tuning()
680 sg_init_one(&sg, data_buf, size); in mmc_send_tuning()
697 if (memcmp(data_buf, tuning_block_pattern, size)) in mmc_send_tuning()
701 kfree(data_buf); in mmc_send_tuning()
739 u8 *data_buf; in mmc_send_bus_test() local
748 data_buf = kmalloc(len, GFP_KERNEL); in mmc_send_bus_test()
749 if (!data_buf) in mmc_send_bus_test()
759 kfree(data_buf); in mmc_send_bus_test()
[all …]
/Linux-v5.15/arch/powerpc/platforms/pseries/
Ddlpar.c141 char *data_buf; in dlpar_configure_connector() local
149 data_buf = kzalloc(RTAS_DATA_BUF_SIZE, GFP_KERNEL); in dlpar_configure_connector()
150 if (!data_buf) in dlpar_configure_connector()
153 ccwa = (struct cc_workarea *)&data_buf[0]; in dlpar_configure_connector()
164 memcpy(rtas_data_buf, data_buf, RTAS_DATA_BUF_SIZE); in dlpar_configure_connector()
166 memcpy(data_buf, rtas_data_buf, RTAS_DATA_BUF_SIZE); in dlpar_configure_connector()
231 kfree(data_buf); in dlpar_configure_connector()
/Linux-v5.15/drivers/scsi/pm8001/
Dpm80xx_hwi.c101 pm8001_ha->forensic_info.data_buf.direct_data = buf; in pm80xx_get_fatal_dump()
103 pm8001_ha->forensic_info.data_buf.direct_data += in pm80xx_get_fatal_dump()
104 sprintf(pm8001_ha->forensic_info.data_buf.direct_data, in pm80xx_get_fatal_dump()
106 return (char *)pm8001_ha->forensic_info.data_buf.direct_data - in pm80xx_get_fatal_dump()
110 if (pm8001_ha->forensic_info.data_buf.direct_offset == 0) { in pm80xx_get_fatal_dump()
115 pm8001_ha->forensic_info.data_buf.direct_len = SYSFS_OFFSET; in pm80xx_get_fatal_dump()
116 pm8001_ha->forensic_info.data_buf.direct_offset = 0; in pm80xx_get_fatal_dump()
117 pm8001_ha->forensic_info.data_buf.read_len = 0; in pm80xx_get_fatal_dump()
124 pm8001_ha->forensic_info.data_buf.direct_data = direct_data; in pm80xx_get_fatal_dump()
127 pm8001_ha->forensic_info.data_buf.read_len); in pm80xx_get_fatal_dump()
[all …]
/Linux-v5.15/block/
Dt10-pi.c38 pi->guard_tag = fn(iter->data_buf, iter->interval); in t10_pi_generate()
46 iter->data_buf += iter->interval; in t10_pi_generate()
84 csum = fn(iter->data_buf, iter->interval); in t10_pi_verify()
95 iter->data_buf += iter->interval; in t10_pi_verify()
/Linux-v5.15/drivers/iio/chemical/
Dsgp30.c209 u8 *data_buf = &buf->start; in sgp_verify_buffer() local
212 crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN, in sgp_verify_buffer()
214 if (crc != data_buf[i + SGP_WORD_LEN]) { in sgp_verify_buffer()
241 u8 *data_buf; in sgp_read_cmd() local
251 data_buf = &buf->start; in sgp_read_cmd()
252 ret = i2c_master_recv(client, data_buf, size); in sgp_read_cmd()
/Linux-v5.15/drivers/gpu/drm/tiny/
Dgm12u320.c90 unsigned char *data_buf[GM12U320_BLOCK_COUNT]; member
182 gm12u320->data_buf[i] = drmm_kzalloc(&gm12u320->dev, in gm12u320_usb_alloc()
184 if (!gm12u320->data_buf[i]) in gm12u320_usb_alloc()
187 memcpy(gm12u320->data_buf[i], hdr, DATA_BLOCK_HEADER_SIZE); in gm12u320_usb_alloc()
188 memcpy(gm12u320->data_buf[i] + in gm12u320_usb_alloc()
297 gm12u320->data_buf[block] + dst_offset, in gm12u320_copy_fb_to_blocks()
304 gm12u320->data_buf[block] + dst_offset, in gm12u320_copy_fb_to_blocks()
353 gm12u320->data_buf[block], block_size, in gm12u320_fb_update_work()
/Linux-v5.15/drivers/media/i2c/ccs/
Dccs-reg-access.c74 unsigned char data_buf[sizeof(u32)] = { 0 }; in ____ccs_read_addr() local
78 if (len > sizeof(data_buf)) in ____ccs_read_addr()
96 msg.buf = &data_buf[sizeof(data_buf) - len]; in ____ccs_read_addr()
105 *val = get_unaligned_be32(data_buf); in ____ccs_read_addr()
/Linux-v5.15/drivers/net/ethernet/freescale/enetc/
Denetc_qos.c631 struct sfi_counter_data *data_buf; in enetc_streamcounter_hw_get() local
642 data_buf = kzalloc(data_size, __GFP_DMA | GFP_KERNEL); in enetc_streamcounter_hw_get()
643 if (!data_buf) in enetc_streamcounter_hw_get()
646 dma = dma_map_single(&priv->si->pdev->dev, data_buf, in enetc_streamcounter_hw_get()
662 cnt->matching_frames_count = ((u64)data_buf->matchh << 32) + in enetc_streamcounter_hw_get()
663 data_buf->matchl; in enetc_streamcounter_hw_get()
665 cnt->not_passing_sdu_count = ((u64)data_buf->msdu_droph << 32) + in enetc_streamcounter_hw_get()
666 data_buf->msdu_dropl; in enetc_streamcounter_hw_get()
672 ((u64)data_buf->stream_gate_droph << 32) + in enetc_streamcounter_hw_get()
673 data_buf->stream_gate_dropl; in enetc_streamcounter_hw_get()
[all …]
/Linux-v5.15/drivers/infiniband/ulp/iser/
Diser_initiator.c370 struct iser_data_buf *data_buf, *prot_buf; in iser_send_command() local
384 data_buf = &iser_task->data[ISER_DIR_IN]; in iser_send_command()
387 data_buf = &iser_task->data[ISER_DIR_OUT]; in iser_send_command()
392 data_buf->sg = scsi_sglist(sc); in iser_send_command()
393 data_buf->size = scsi_sg_count(sc); in iser_send_command()
395 data_buf->data_len = scsi_bufflen(sc); in iser_send_command()
400 prot_buf->data_len = (data_buf->data_len >> in iser_send_command()
/Linux-v5.15/drivers/usb/gadget/function/
Df_tcm.c216 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); in bot_send_read_response()
217 if (!cmd->data_buf) in bot_send_read_response()
222 cmd->data_buf, in bot_send_read_response()
225 fu->bot_req_in->buf = cmd->data_buf; in bot_send_read_response()
260 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_KERNEL); in bot_send_write_request()
261 if (!cmd->data_buf) in bot_send_write_request()
264 fu->bot_req_out->buf = cmd->data_buf; in bot_send_write_request()
518 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); in uasp_prepare_r_request()
519 if (!cmd->data_buf) in uasp_prepare_r_request()
524 cmd->data_buf, in uasp_prepare_r_request()
[all …]
/Linux-v5.15/drivers/net/ethernet/amazon/ena/
Dena_ethtool.c934 u64 *data_buf; in ena_dump_stats_ex() local
953 data_buf = devm_kcalloc(&adapter->pdev->dev, in ena_dump_stats_ex()
956 if (!data_buf) { in ena_dump_stats_ex()
964 ena_get_stats(adapter, data_buf, false); in ena_dump_stats_ex()
972 data_buf[i]); in ena_dump_stats_ex()
979 data_buf[i]); in ena_dump_stats_ex()
982 devm_kfree(&adapter->pdev->dev, data_buf); in ena_dump_stats_ex()
/Linux-v5.15/drivers/macintosh/
Dsmu.c125 DPRINTK("SMU: data buffer: %8ph\n", cmd->data_buf); in smu_start_cmd()
130 memcpy(smu->cmd_buf->data, cmd->data_buf, cmd->data_len); in smu_start_cmd()
304 cmd->data_buf = scmd->buffer; in smu_queue_simple()
815 scmd->data_buf = cmd->pdata; in smu_i2c_low_completion()
837 cmd->scmd.data_buf = (u8 *)(char *)&cmd->info; in smu_queue_i2c()
922 cmd.data_buf = params; in smu_read_datablock()
1161 pp->cmd.data_buf = pp->buffer; in smu_write()
/Linux-v5.15/drivers/media/i2c/
Dov9734.c373 u8 data_buf[4] = {0}; in ov9734_read_reg() local
376 if (len > sizeof(data_buf)) in ov9734_read_reg()
387 msgs[1].buf = &data_buf[sizeof(data_buf) - len]; in ov9734_read_reg()
393 *val = get_unaligned_be32(data_buf); in ov9734_read_reg()
/Linux-v5.15/drivers/staging/ks7010/
Dks7010_sdio.c645 unsigned char *data_buf; in ks7010_sdio_update_index() local
647 data_buf = kmemdup(&index, sizeof(u32), GFP_KERNEL); in ks7010_sdio_update_index()
648 if (!data_buf) in ks7010_sdio_update_index()
651 ret = ks7010_sdio_write(priv, WRITE_INDEX_REG, data_buf, sizeof(index)); in ks7010_sdio_update_index()
655 ret = ks7010_sdio_write(priv, READ_INDEX_REG, data_buf, sizeof(index)); in ks7010_sdio_update_index()
662 kfree(data_buf); in ks7010_sdio_update_index()

1234