| /linux/drivers/firmware/google/ |
| H A D | gsmi.c | 94 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() 440 .data_ptr = gsmi_dev.data_buf->address, in gsmi_set_variable() 464 memset(gsmi_dev.data_buf->start, 0, gsmi_dev.data_buf->length); in gsmi_set_variable() 465 memcpy(gsmi_dev.data_buf->start, data, data_size); in gsmi_set_variable() 495 .data_ptr = gsmi_dev.data_buf->address, in eventlog_write() 507 if ((count - sizeof(u32)) > gsmi_dev.data_buf->length) in eventlog_write() [all …]
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | xtlv.c | 40 u8 *data_buf; in brcmf_xtlv_pack_header() local 49 data_buf = lenp + sizeof(u16); in brcmf_xtlv_pack_header() 56 data_buf = lenp + sizeof(u8); in brcmf_xtlv_pack_header() 63 data_buf = lenp + sizeof(u16); in brcmf_xtlv_pack_header() 70 data_buf = lenp + sizeof(u8); in brcmf_xtlv_pack_header() 82 memcpy(data_buf, data, len); in brcmf_xtlv_pack_header()
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_cmd.c | 260 u16 cmd_action, void *data_buf) in mwifiex_cmd_rf_tx_power() argument 1123 u16 cmd_action, void *data_buf) in mwifiex_cmd_reg_access() argument 1125 struct mwifiex_ds_reg_rw *reg_rw = data_buf; in mwifiex_cmd_reg_access() 1185 struct mwifiex_ds_read_eeprom *rd_eeprom = data_buf; in mwifiex_cmd_reg_access() 1601 struct host_cmd_ds_command *cmd, void *data_buf) in mwifiex_cmd_cfg_data() argument 1604 struct property *prop = data_buf; in mwifiex_cmd_cfg_data() 1644 u16 cmd_action, void *data_buf) in mwifiex_cmd_set_mc_policy() argument 1647 const u16 *drcs_info = data_buf; in mwifiex_cmd_set_mc_policy() 1726 u16 cmd_action, void *data_buf) in mwifiex_cmd_coalesce_cfg() argument 1730 struct mwifiex_ds_coalesce_cfg *cfg = data_buf; in mwifiex_cmd_coalesce_cfg() [all …]
|
| H A D | sta_cmdresp.c | 157 u32 *data_buf) in mwifiex_ret_802_11_snmp_mib() argument 170 if (data_buf) in mwifiex_ret_802_11_snmp_mib() 171 *data_buf = ul_temp; in mwifiex_ret_802_11_snmp_mib() 324 static int mwifiex_get_power_level(struct mwifiex_private *priv, void *data_buf) in mwifiex_get_power_level() argument 330 if (!data_buf) in mwifiex_get_power_level() 333 pg_tlv_hdr = (struct mwifiex_types_power_group *)((u8 *)data_buf); in mwifiex_get_power_level() 754 void *data_buf) in mwifiex_ret_p2p_mode_cfg() argument 758 if (data_buf) in mwifiex_ret_p2p_mode_cfg() 759 put_unaligned_le16(le16_to_cpu(mode_cfg->mode), data_buf); in mwifiex_ret_p2p_mode_cfg() 784 void *data_buf) in mwifiex_ret_reg_access() argument [all …]
|
| H A D | 11n_rxreorder.h | 56 void *data_buf); 62 void *data_buf);
|
| H A D | cmdevt.c | 30 u32 cmd_no, void *data_buf, bool sync) in mwifiex_init_cmd_node() argument 40 cmd_node->data_buf = data_buf; in mwifiex_init_cmd_node() 85 cmd_node->data_buf = NULL; in mwifiex_clean_cmd_node() 543 u16 cmd_action, u32 cmd_oid, void *data_buf, bool sync) in mwifiex_send_cmd() argument 611 mwifiex_init_cmd_node(priv, cmd_node, cmd_no, data_buf, sync); in mwifiex_send_cmd() 637 cmd_oid, data_buf, in mwifiex_send_cmd() 642 cmd_oid, data_buf, in mwifiex_send_cmd() 647 ret = mwifiex_cmd_host_cmd(priv, cmd_ptr, data_buf); in mwifiex_send_cmd() 841 if (adapter->curr_cmd->data_buf) { in mwifiex_process_cmdresp() 842 hostcmd = adapter->curr_cmd->data_buf; in mwifiex_process_cmdresp()
|
| H A D | uap_cmd.c | 792 u16 cmd_action, void *data_buf) in mwifiex_cmd_uap_add_station() argument 795 struct mwifiex_sta_info *add_sta = (struct mwifiex_sta_info *)data_buf; in mwifiex_cmd_uap_add_station() 933 void *data_buf, void *cmd_buf) in mwifiex_uap_prepare_cmd() argument 939 if (mwifiex_cmd_uap_sys_config(cmd, cmd_action, type, data_buf)) in mwifiex_uap_prepare_cmd() 952 if (mwifiex_cmd_uap_sta_deauth(priv, cmd, data_buf)) in mwifiex_uap_prepare_cmd() 957 data_buf)) in mwifiex_uap_prepare_cmd() 962 data_buf)) in mwifiex_uap_prepare_cmd()
|
| H A D | 11h.c | 134 void *data_buf) in mwifiex_cmd_issue_chan_report_request() argument 137 struct mwifiex_radar_params *radar_params = (void *)data_buf; in mwifiex_cmd_issue_chan_report_request()
|
| /linux/block/ |
| H A D | t10-pi.c | 17 void *data_buf; member 46 pi->guard_tag = t10_pi_csum(0, iter->data_buf, iter->interval, in t10_pi_generate() 58 iter->data_buf += iter->interval; in t10_pi_generate() 92 csum = t10_pi_csum(0, iter->data_buf, iter->interval, in t10_pi_verify() 107 iter->data_buf += iter->interval; in t10_pi_verify() 225 pi->guard_tag = ext_pi_crc64(0, iter->data_buf, iter->interval); in ext_pi_crc64_generate() 236 iter->data_buf += iter->interval; in ext_pi_crc64_generate() 277 csum = ext_pi_crc64(0, iter->data_buf, iter->interval); in ext_pi_crc64_verify() 291 iter->data_buf += iter->interval; in ext_pi_crc64_verify() 390 iter.data_buf = kaddr; in blk_integrity_generate() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | lwt_reroute.c | 82 char data_buf[8]; /* only #pkts matter, so use a random small buffer */ in overflow_fq() local 85 .iov_base = data_buf, in overflow_fq() 86 .iov_len = sizeof(data_buf), in overflow_fq() 104 memset(data_buf, 0, sizeof(data_buf)); in overflow_fq()
|
| /linux/drivers/spi/ |
| H A D | spi-qpic-snand.c | 108 u8 *data_buf; member 707 static int qcom_spi_read_cw_raw(struct qcom_nand_controller *snandc, u8 *data_buf, in qcom_spi_read_cw_raw() argument 777 qcom_read_data_dma(snandc, reg_off, data_buf, data_size1, 0); in qcom_spi_read_cw_raw() 783 qcom_read_data_dma(snandc, reg_off, data_buf + data_size1, data_size2, 0); in qcom_spi_read_cw_raw() 801 u8 *data_buf = NULL, *oob_buf = NULL; in qcom_spi_read_page_raw() local 806 data_buf = op->data.buf.in; in qcom_spi_read_page_raw() 812 ret = qcom_spi_read_cw_raw(snandc, data_buf, oob_buf, cw); in qcom_spi_read_page_raw() 816 if (data_buf) in qcom_spi_read_page_raw() 817 data_buf += ecc_cfg->cw_data; in qcom_spi_read_page_raw() 829 u8 *data_buf = NULL, *oob_buf = NULL; in qcom_spi_read_page_ecc() local [all …]
|
| H A D | spi-amlogic-spifc-a4.c | 201 u8 *data_buf; member 704 ret = aml_sfc_dma_buffer_setup(sfc, sfc->data_buf, data_len, in aml_sfc_read_page_hwecc() 730 memcpy(op->data.buf.in, sfc->data_buf, page_size); in aml_sfc_read_page_hwecc() 734 memcpy(op->data.buf.in, sfc->data_buf, page_size); in aml_sfc_read_page_hwecc() 758 memcpy(sfc->data_buf, op->data.buf.out, page_size); in aml_sfc_write_page_hwecc() 769 ret = aml_sfc_dma_buffer_setup(sfc, sfc->data_buf, data_len, in aml_sfc_write_page_hwecc() 1134 sfc->data_buf = devm_kzalloc(dev, SFC_BUF_SIZE, GFP_KERNEL); in aml_sfc_probe() 1135 if (!sfc->data_buf) in aml_sfc_probe() 1137 sfc->info_buf = (__le64 *)(sfc->data_buf + SFC_DATABUF_SIZE); in aml_sfc_probe()
|
| /linux/drivers/scsi/pm8001/ |
| H A D | pm80xx_hwi.c | 100 pm8001_ha->forensic_info.data_buf.direct_data = buf; in pm80xx_get_fatal_dump() 102 pm8001_ha->forensic_info.data_buf.direct_data += in pm80xx_get_fatal_dump() 103 sprintf(pm8001_ha->forensic_info.data_buf.direct_data, in pm80xx_get_fatal_dump() 105 return (char *)pm8001_ha->forensic_info.data_buf.direct_data - in pm80xx_get_fatal_dump() 109 if (pm8001_ha->forensic_info.data_buf.direct_offset == 0) { in pm80xx_get_fatal_dump() 114 pm8001_ha->forensic_info.data_buf.direct_len = SYSFS_OFFSET; in pm80xx_get_fatal_dump() 115 pm8001_ha->forensic_info.data_buf.direct_offset = 0; in pm80xx_get_fatal_dump() 116 pm8001_ha->forensic_info.data_buf.read_len = 0; in pm80xx_get_fatal_dump() 123 pm8001_ha->forensic_info.data_buf.direct_data = direct_data; in pm80xx_get_fatal_dump() 126 pm8001_ha->forensic_info.data_buf.read_len); in pm80xx_get_fatal_dump() [all …]
|
| /linux/sound/soc/sof/amd/ |
| H A D | acp-loader.c | 76 if (!adata->data_buf) { in acp_dsp_block_write() 77 adata->data_buf = dma_alloc_coherent(&pci->dev, in acp_dsp_block_write() 81 if (!adata->data_buf) in acp_dsp_block_write() 84 dest = adata->data_buf + offset; in acp_dsp_block_write() 236 dma_free_coherent(&pci->dev, ACP_DEFAULT_DRAM_LENGTH, adata->data_buf, in acp_dsp_pre_fw_run() 238 adata->data_buf = NULL; in acp_dsp_pre_fw_run()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | mxc_nand.c | 184 void *data_buf; member 619 memcpy32_fromio(host->data_buf, host->main_area0, 16); in send_read_id_v3() 633 memcpy32_fromio(host->data_buf, host->main_area0, 16); in send_read_id_v1_v2() 793 ret = nand_read_page_op(chip, page, 0, host->data_buf, mtd->writesize); in mxc_nand_read_oob() 835 memset(host->data_buf, 0xff, mtd->writesize); in mxc_nand_write_oob() 838 return nand_prog_page_op(chip, page, 0, host->data_buf, mtd->writesize); in mxc_nand_write_oob() 1432 devm_kfree(dev, (void *)host->data_buf); in mxcnd_attach_chip() 1433 host->data_buf = devm_kzalloc(dev, mtd->writesize + mtd->oobsize, in mxcnd_attach_chip() 1435 if (!host->data_buf) in mxcnd_attach_chip() 1537 void *buf = host->data_buf; in copy_page_from_sram() [all …]
|
| H A D | meson_nand.c | 135 u8 *data_buf; member 400 return meson_chip->data_buf + len; in meson_nfc_oob_ptr() 411 return meson_chip->data_buf + len; in meson_nfc_data_ptr() 766 ret = meson_nfc_dma_buffer_setup(nand, meson_chip->data_buf, in meson_nfc_write_page_sub() 800 memcpy(meson_chip->data_buf, buf, mtd->writesize); in meson_nfc_write_page_hwecc() 845 ret = meson_nfc_dma_buffer_setup(nand, meson_chip->data_buf, in meson_nfc_read_page_sub() 923 } else if (buf && buf != meson_chip->data_buf) { in meson_nfc_read_page_hwecc() 924 memcpy(buf, meson_chip->data_buf, mtd->writesize); in meson_nfc_read_page_hwecc() 1219 kfree(meson_chip->data_buf); in meson_nfc_free_buffer() 1233 meson_chip->data_buf = kmalloc(page_bytes, GFP_KERNEL); in meson_chip_buffer_init() [all …]
|
| /linux/drivers/iio/chemical/ |
| H A D | sgp30.c | 212 u8 *data_buf = &buf->start; in sgp_verify_buffer() local 215 crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN, in sgp_verify_buffer() 217 if (crc != data_buf[i + SGP_WORD_LEN]) { in sgp_verify_buffer() 244 u8 *data_buf; in sgp_read_cmd() local 254 data_buf = &buf->start; in sgp_read_cmd() 255 ret = i2c_master_recv(client, data_buf, size); in sgp_read_cmd()
|
| /linux/drivers/infiniband/ulp/iser/ |
| H A D | iser_initiator.c | 347 struct iser_data_buf *data_buf, *prot_buf; in iser_send_command() local 359 data_buf = &iser_task->data[ISER_DIR_IN]; in iser_send_command() 362 data_buf = &iser_task->data[ISER_DIR_OUT]; in iser_send_command() 367 data_buf->sg = scsi_sglist(sc); in iser_send_command() 368 data_buf->size = scsi_sg_count(sc); in iser_send_command() 370 data_buf->data_len = scsi_bufflen(sc); in iser_send_command() 375 prot_buf->data_len = (data_buf->data_len >> in iser_send_command()
|
| /linux/drivers/regulator/ |
| H A D | rpi-panel-attiny-regulator.c | 243 u8 data_buf[1] = { 0, }; in attiny_i2c_read() local 262 msgs[0].buf = data_buf; in attiny_i2c_read() 268 *buf = data_buf[0]; in attiny_i2c_read()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_qos.c | 665 struct sfi_counter_data *data_buf; in enetc_streamcounter_hw_get() local 679 &dma, (void *)&data_buf); in enetc_streamcounter_hw_get() 687 cnt->matching_frames_count = ((u64)data_buf->matchh << 32) + in enetc_streamcounter_hw_get() 688 data_buf->matchl; in enetc_streamcounter_hw_get() 690 cnt->not_passing_sdu_count = ((u64)data_buf->msdu_droph << 32) + in enetc_streamcounter_hw_get() 691 data_buf->msdu_dropl; in enetc_streamcounter_hw_get() 697 ((u64)data_buf->stream_gate_droph << 32) + in enetc_streamcounter_hw_get() 698 data_buf->stream_gate_dropl; in enetc_streamcounter_hw_get() 704 cnt->red_frames_count = ((u64)data_buf->flow_meter_droph << 32) + in enetc_streamcounter_hw_get() 705 data_buf->flow_meter_dropl; in enetc_streamcounter_hw_get()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_tcm.c | 223 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); in bot_send_read_response() 224 if (!cmd->data_buf) in bot_send_read_response() 229 cmd->data_buf, in bot_send_read_response() 232 fu->bot_req_in->buf = cmd->data_buf; in bot_send_read_response() 565 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); in uasp_prepare_r_request() 566 if (!cmd->data_buf) in uasp_prepare_r_request() 571 cmd->data_buf, in uasp_prepare_r_request() 574 stream->req_in->buf = cmd->data_buf; in uasp_prepare_r_request() 792 kfree(cmd->data_buf); in uasp_send_read_response() 793 cmd->data_buf = NULL; in uasp_send_read_response() [all …]
|
| /linux/drivers/macintosh/ |
| H A D | smu.c | 126 DPRINTK("SMU: data buffer: %8ph\n", cmd->data_buf); in smu_start_cmd() 131 memcpy(smu->cmd_buf->data, cmd->data_buf, cmd->data_len); in smu_start_cmd() 305 cmd->data_buf = scmd->buffer; in smu_queue_simple() 810 scmd->data_buf = cmd->pdata; in smu_i2c_low_completion() 832 cmd->scmd.data_buf = (u8 *)(char *)&cmd->info; in smu_queue_i2c() 918 cmd.data_buf = params; in smu_read_datablock() 1157 pp->cmd.data_buf = pp->buffer; in smu_write()
|
| /linux/drivers/input/touchscreen/ |
| H A D | melfas_mip4.c | 884 u8 *data_buf; in mip4_bl_program_page() local 898 data_buf = kmalloc(2 + MIP4_BL_PACKET_SIZE, GFP_KERNEL); in mip4_bl_program_page() 899 if (!data_buf) in mip4_bl_program_page() 933 put_unaligned_be16(buf_addr + buf_offset, data_buf); in mip4_bl_program_page() 934 memcpy(&data_buf[2], &data[buf_offset], MIP4_BL_PACKET_SIZE); in mip4_bl_program_page() 936 data_buf, 2 + MIP4_BL_PACKET_SIZE); in mip4_bl_program_page() 962 kfree(data_buf); in mip4_bl_program_page()
|
| /linux/arch/riscv/kvm/ |
| H A D | vcpu_insn.c | 377 u8 data_buf[8]; in kvm_riscv_vcpu_mmio_load() local 470 if (!kvm_io_bus_read(vcpu, KVM_MMIO_BUS, fault_addr, len, data_buf)) { in kvm_riscv_vcpu_mmio_load() 472 memcpy(run->mmio.data, data_buf, len); in kvm_riscv_vcpu_mmio_load()
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | dlpar.c | 143 char *data_buf; in dlpar_configure_connector() local 152 data_buf = rtas_work_area_raw_buf(work_area); in dlpar_configure_connector() 154 ccwa = (struct cc_workarea *)&data_buf[0]; in dlpar_configure_connector()
|