Home
last modified time | relevance | path

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

123

/drivers/firmware/google/
Dgsmi.c90 struct gsmi_buf *data_buf; /* generic data buffer */ member
299 .data_ptr = gsmi_dev.data_buf->address, in gsmi_get_variable()
320 memset(gsmi_dev.data_buf->start, 0, gsmi_dev.data_buf->length); in gsmi_get_variable()
339 gsmi_dev.data_buf->length); in gsmi_get_variable()
343 memcpy(data, gsmi_dev.data_buf->start, *data_size); in gsmi_get_variable()
421 .data_ptr = gsmi_dev.data_buf->address, in gsmi_set_variable()
445 memset(gsmi_dev.data_buf->start, 0, gsmi_dev.data_buf->length); in gsmi_set_variable()
446 memcpy(gsmi_dev.data_buf->start, data, data_size); in gsmi_set_variable()
474 .data_ptr = gsmi_dev.data_buf->address, in eventlog_write()
487 if (count > gsmi_dev.data_buf->length) in eventlog_write()
[all …]
/drivers/net/wireless/marvell/mwifiex/
Dsta_cmd.c291 u16 cmd_action, void *data_buf) in mwifiex_cmd_rf_tx_power() argument
1139 u16 cmd_action, void *data_buf) in mwifiex_cmd_reg_access() argument
1141 struct mwifiex_ds_reg_rw *reg_rw = data_buf; in mwifiex_cmd_reg_access()
1201 struct mwifiex_ds_read_eeprom *rd_eeprom = data_buf; in mwifiex_cmd_reg_access()
1503 struct host_cmd_ds_command *cmd, void *data_buf) in mwifiex_cmd_cfg_data() argument
1506 struct property *prop = data_buf; in mwifiex_cmd_cfg_data()
1538 u16 cmd_action, void *data_buf) in mwifiex_cmd_set_mc_policy() argument
1541 const u16 *drcs_info = data_buf; in mwifiex_cmd_set_mc_policy()
1620 u16 cmd_action, void *data_buf) in mwifiex_cmd_coalesce_cfg() argument
1624 struct mwifiex_ds_coalesce_cfg *cfg = data_buf; in mwifiex_cmd_coalesce_cfg()
[all …]
Dsta_cmdresp.c174 u32 *data_buf) in mwifiex_ret_802_11_snmp_mib() argument
187 if (data_buf) in mwifiex_ret_802_11_snmp_mib()
188 *data_buf = ul_temp; in mwifiex_ret_802_11_snmp_mib()
341 static int mwifiex_get_power_level(struct mwifiex_private *priv, void *data_buf) in mwifiex_get_power_level() argument
347 if (!data_buf) in mwifiex_get_power_level()
350 pg_tlv_hdr = (struct mwifiex_types_power_group *)((u8 *)data_buf); in mwifiex_get_power_level()
739 void *data_buf) in mwifiex_ret_p2p_mode_cfg() argument
743 if (data_buf) in mwifiex_ret_p2p_mode_cfg()
744 *((u16 *)data_buf) = le16_to_cpu(mode_cfg->mode); in mwifiex_ret_p2p_mode_cfg()
769 void *data_buf) in mwifiex_ret_reg_access() argument
[all …]
D11n_rxreorder.h68 void *data_buf);
74 void *data_buf);
Dcmdevt.c40 u32 cmd_oid, void *data_buf, bool sync) in mwifiex_init_cmd_node() argument
49 cmd_node->data_buf = data_buf; in mwifiex_init_cmd_node()
95 cmd_node->data_buf = NULL; in mwifiex_clean_cmd_node()
555 u16 cmd_action, u32 cmd_oid, void *data_buf, bool sync) in mwifiex_send_cmd() argument
617 mwifiex_init_cmd_node(priv, cmd_node, cmd_oid, data_buf, sync); in mwifiex_send_cmd()
642 cmd_oid, data_buf, in mwifiex_send_cmd()
647 cmd_oid, data_buf, in mwifiex_send_cmd()
652 ret = mwifiex_cmd_host_cmd(priv, cmd_ptr, data_buf); in mwifiex_send_cmd()
839 if (adapter->curr_cmd->data_buf) { in mwifiex_process_cmdresp()
840 hostcmd = adapter->curr_cmd->data_buf; in mwifiex_process_cmdresp()
D11h.c149 void *data_buf) in mwifiex_cmd_issue_chan_report_request() argument
152 struct mwifiex_radar_params *radar_params = (void *)data_buf; in mwifiex_cmd_issue_chan_report_request()
Dmain.h732 void *data_buf; member
1053 u16 cmd_action, u32 cmd_oid, void *data_buf, bool sync);
1106 void *data_buf, void *cmd_buf);
1109 void *data_buf, void *cmd_buf);
1213 void *data_buf);
1220 void *data_buf);
1582 void *data_buf);
/drivers/mtd/nand/
Dqcom_nandc.c966 static bool erased_chunk_check_and_fixup(u8 *data_buf, int data_len) in erased_chunk_check_and_fixup() argument
976 empty1 = data_buf[3]; in erased_chunk_check_and_fixup()
977 empty2 = data_buf[175]; in erased_chunk_check_and_fixup()
985 data_buf[3] = 0xff; in erased_chunk_check_and_fixup()
986 data_buf[175] = 0xff; in erased_chunk_check_and_fixup()
993 if (memchr_inv(data_buf, 0xff, data_len)) { in erased_chunk_check_and_fixup()
994 data_buf[3] = empty1; in erased_chunk_check_and_fixup()
995 data_buf[175] = empty2; in erased_chunk_check_and_fixup()
1013 static int parse_read_errors(struct qcom_nand_host *host, u8 *data_buf, in parse_read_errors() argument
1050 erased = erased_chunk_check_and_fixup(data_buf, in parse_read_errors()
[all …]
Dmxc_nand.c198 uint8_t *data_buf; member
527 memcpy32_fromio(host->data_buf, host->main_area0, 16); in send_read_id_v3()
541 memcpy32_fromio(host->data_buf, host->main_area0, 16); in send_read_id_v1_v2()
669 ret = *(uint16_t *)(host->data_buf + host->buf_start); in mxc_nand_read_byte()
673 ret = *(uint8_t *)(host->data_buf + host->buf_start); in mxc_nand_read_byte()
687 ret = *(uint16_t *)(host->data_buf + host->buf_start); in mxc_nand_read_word()
706 memcpy(host->data_buf + col, buf, n); in mxc_nand_write_buf()
724 memcpy(buf, host->data_buf + col, n); in mxc_nand_read_buf()
792 u8 *d = host->data_buf + mtd->writesize; in copy_spare()
1262 memcpy32_fromio(host->data_buf, host->main_area0, in mxc_nand_command()
[all …]
Dlpc32xx_slc.c243 uint8_t *data_buf; member
527 dma_buf = host->data_buf; in lpc32xx_xfer()
530 memcpy(host->data_buf, buf, mtd->writesize); in lpc32xx_xfer()
616 memcpy(buf, host->data_buf, mtd->writesize); in lpc32xx_xfer()
883 host->data_buf = devm_kzalloc(&pdev->dev, host->dma_buf_len, in lpc32xx_nand_probe()
885 if (host->data_buf == NULL) { in lpc32xx_nand_probe()
903 host->ecc_buf = (uint32_t *)(host->data_buf + LPC32XX_DMA_DATA_SIZE); in lpc32xx_nand_probe()
/drivers/mmc/core/
Dmmc_ops.c604 u8 *data_buf; in mmc_send_tuning() local
615 data_buf = kzalloc(size, GFP_KERNEL); in mmc_send_tuning()
616 if (!data_buf) in mmc_send_tuning()
638 sg_init_one(&sg, data_buf, size); in mmc_send_tuning()
655 if (memcmp(data_buf, tuning_block_pattern, size)) in mmc_send_tuning()
659 kfree(data_buf); in mmc_send_tuning()
672 u8 *data_buf; in mmc_send_bus_test() local
681 data_buf = kmalloc(len, GFP_KERNEL); in mmc_send_bus_test()
682 if (!data_buf) in mmc_send_bus_test()
692 kfree(data_buf); in mmc_send_bus_test()
[all …]
Dsd_ops.c250 void *data_buf; in mmc_app_send_scr() local
265 data_buf = kmalloc(sizeof(card->raw_scr), GFP_KERNEL); in mmc_app_send_scr()
266 if (data_buf == NULL) in mmc_app_send_scr()
282 sg_init_one(&sg, data_buf, 8); in mmc_app_send_scr()
288 memcpy(scr, data_buf, sizeof(card->raw_scr)); in mmc_app_send_scr()
289 kfree(data_buf); in mmc_app_send_scr()
/drivers/staging/media/lirc/
Dlirc_sasem.c105 unsigned char data_buf[SASEM_DATA_BUF_SZ]; /* user data member
362 int *data_buf = NULL; in vfd_write() local
385 data_buf = memdup_user(buf, n_bytes); in vfd_write()
386 if (IS_ERR(data_buf)) { in vfd_write()
387 retval = PTR_ERR(data_buf); in vfd_write()
388 data_buf = NULL; in vfd_write()
392 memcpy(context->tx.data_buf, data_buf, n_bytes); in vfd_write()
396 context->tx.data_buf[i] = ' '; in vfd_write()
416 memcpy(context->usb_tx_buf, context->tx.data_buf, 8); in vfd_write()
420 context->tx.data_buf + 8, 8); in vfd_write()
[all …]
Dlirc_imon.c103 unsigned char data_buf[IMON_DATA_BUF_SZ]; /* user data buffer */ member
385 int *data_buf = NULL; in vfd_write() local
409 data_buf = memdup_user(buf, n_bytes); in vfd_write()
410 if (IS_ERR(data_buf)) { in vfd_write()
411 retval = PTR_ERR(data_buf); in vfd_write()
412 data_buf = NULL; in vfd_write()
416 memcpy(context->tx.data_buf, data_buf, n_bytes); in vfd_write()
420 context->tx.data_buf[i] = ' '; in vfd_write()
423 context->tx.data_buf[i] = 0xFF; in vfd_write()
429 memcpy(context->usb_tx_buf, context->tx.data_buf + offset, 7); in vfd_write()
[all …]
/drivers/scsi/pm8001/
Dpm80xx_hwi.c99 pm8001_ha->forensic_info.data_buf.direct_data = buf; in pm80xx_get_fatal_dump()
101 pm8001_ha->forensic_info.data_buf.direct_data += in pm80xx_get_fatal_dump()
102 sprintf(pm8001_ha->forensic_info.data_buf.direct_data, in pm80xx_get_fatal_dump()
104 return (char *)pm8001_ha->forensic_info.data_buf.direct_data - in pm80xx_get_fatal_dump()
107 if (pm8001_ha->forensic_info.data_buf.direct_offset == 0) { in pm80xx_get_fatal_dump()
112 pm8001_ha->forensic_info.data_buf.direct_len = SYSFS_OFFSET; in pm80xx_get_fatal_dump()
113 pm8001_ha->forensic_info.data_buf.read_len = 0; in pm80xx_get_fatal_dump()
115 pm8001_ha->forensic_info.data_buf.direct_data = direct_data; in pm80xx_get_fatal_dump()
138 pm8001_ha->forensic_info.data_buf.direct_data += in pm80xx_get_fatal_dump()
139 sprintf(pm8001_ha->forensic_info.data_buf.direct_data, in pm80xx_get_fatal_dump()
[all …]
/drivers/isdn/hardware/eicon/
Dcapimain.c60 void **data_buf) in diva_os_alloc_message_buffer() argument
64 *data_buf = skb_put(dmb, size); in diva_os_alloc_message_buffer()
/drivers/net/ethernet/amazon/ena/
Dena_ethtool.c833 u64 *data_buf; in ena_dump_stats_ex() local
852 data_buf = devm_kzalloc(&adapter->pdev->dev, in ena_dump_stats_ex()
855 if (!data_buf) { in ena_dump_stats_ex()
863 ena_get_ethtool_stats(netdev, NULL, data_buf); in ena_dump_stats_ex()
871 data_buf[i]); in ena_dump_stats_ex()
878 data_buf[i]); in ena_dump_stats_ex()
881 devm_kfree(&adapter->pdev->dev, data_buf); in ena_dump_stats_ex()
/drivers/infiniband/ulp/iser/
Diser_initiator.c367 struct iser_data_buf *data_buf, *prot_buf; in iser_send_command() local
381 data_buf = &iser_task->data[ISER_DIR_IN]; in iser_send_command()
384 data_buf = &iser_task->data[ISER_DIR_OUT]; in iser_send_command()
389 data_buf->sg = scsi_sglist(sc); in iser_send_command()
390 data_buf->size = scsi_sg_count(sc); in iser_send_command()
392 data_buf->data_len = scsi_bufflen(sc); in iser_send_command()
397 prot_buf->data_len = (data_buf->data_len >> in iser_send_command()
/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 …]
Dtcm.h72 void *data_buf; /* used if no sg support available */ member
/drivers/staging/ks7010/
Dks7010_sdio.c696 unsigned char *data_buf; in ks7010_sdio_update_index() local
698 data_buf = kmalloc(sizeof(u32), GFP_KERNEL); in ks7010_sdio_update_index()
699 if (!data_buf) { in ks7010_sdio_update_index()
704 memcpy(data_buf, &index, sizeof(index)); in ks7010_sdio_update_index()
705 retval = ks7010_sdio_write(priv, WRITE_INDEX, data_buf, sizeof(index)); in ks7010_sdio_update_index()
711 retval = ks7010_sdio_write(priv, READ_INDEX, data_buf, sizeof(index)); in ks7010_sdio_update_index()
717 kfree(data_buf); in ks7010_sdio_update_index()
/drivers/macintosh/
Dsmu.c126 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()
815 scmd->data_buf = cmd->pdata; in smu_i2c_low_completion()
837 cmd->scmd.data_buf = (u8 *)(char *)&cmd->info; in smu_queue_i2c()
921 cmd.data_buf = params; in smu_read_datablock()
1160 pp->cmd.data_buf = pp->buffer; in smu_write()
/drivers/ide/
Dide-taskfile.c475 u8 *data_buf = NULL; in ide_taskfile_ioctl() local
596 data_buf = outbuf; in ide_taskfile_ioctl()
614 data_buf = inbuf; in ide_taskfile_ioctl()
637 err = ide_raw_taskfile(drive, &cmd, data_buf, nsect); in ide_taskfile_ioctl()
/drivers/input/touchscreen/
Dmelfas_mip4.c860 u8 *data_buf; in mip4_bl_program_page() local
874 data_buf = kmalloc(2 + MIP4_BL_PACKET_SIZE, GFP_KERNEL); in mip4_bl_program_page()
875 if (!data_buf) in mip4_bl_program_page()
909 put_unaligned_be16(buf_addr + buf_offset, data_buf); in mip4_bl_program_page()
910 memcpy(&data_buf[2], &data[buf_offset], MIP4_BL_PACKET_SIZE); in mip4_bl_program_page()
912 data_buf, 2 + MIP4_BL_PACKET_SIZE); in mip4_bl_program_page()
938 kfree(data_buf); in mip4_bl_program_page()
/drivers/net/wireless/ath/ath10k/
Dpci.c888 void *data_buf = NULL; in ath10k_pci_diag_read_mem() local
903 data_buf = (unsigned char *)dma_alloc_coherent(ar->dev, in ath10k_pci_diag_read_mem()
908 if (!data_buf) { in ath10k_pci_diag_read_mem()
912 memset(data_buf, 0, alloc_nbytes); in ath10k_pci_diag_read_mem()
980 memcpy(data, data_buf, nbytes); in ath10k_pci_diag_read_mem()
988 if (data_buf) in ath10k_pci_diag_read_mem()
989 dma_free_coherent(ar->dev, alloc_nbytes, data_buf, in ath10k_pci_diag_read_mem()
1044 void *data_buf = NULL; in ath10k_pci_diag_write_mem() local
1060 data_buf = (unsigned char *)dma_alloc_coherent(ar->dev, in ath10k_pci_diag_write_mem()
1064 if (!data_buf) { in ath10k_pci_diag_write_mem()
[all …]

123