Home
last modified time | relevance | path

Searched refs:databuf (Results 1 – 15 of 15) sorted by relevance

/drivers/char/hw_random/
Dtx4939-rng.c31 u64 databuf[3]; member
76 rngdev->databuf[0] = in tx4939_rng_data_present()
78 rngdev->databuf[1] = in tx4939_rng_data_present()
80 rngdev->databuf[2] = in tx4939_rng_data_present()
83 sizeof(rngdev->databuf) / sizeof(u32); in tx4939_rng_data_present()
103 *buffer = *((u32 *)&rngdev->databuf + rngdev->data_avail); in tx4939_rng_data_read()
/drivers/mtd/nand/
Decc.c537 tweak->databuf.in = ctx->spare_databuf; in nand_ecc_tweak_req()
538 memset(tweak->databuf.in, 0xFF, ctx->page_buffer_size); in nand_ecc_tweak_req()
552 memcpy((void *)tweak->databuf.out + orig->dataoffs, in nand_ecc_tweak_req()
553 orig->databuf.out, orig->datalen); in nand_ecc_tweak_req()
573 memcpy(orig->databuf.in, in nand_ecc_restore_req()
574 tweak->databuf.in + orig->dataoffs, in nand_ecc_restore_req()
Decc-sw-bch.c319 for (i = 0, data = req->databuf.out; in nand_ecc_sw_bch_prepare_io_req()
340 u8 *data = req->databuf.in; in nand_ecc_sw_bch_finish_io_req()
368 for (eccsteps = nand->ecc.ctx.nsteps, i = 0, data = req->databuf.in; in nand_ecc_sw_bch_finish_io_req()
Decc-sw-hamming.c572 for (i = 0, data = req->databuf.out; in nand_ecc_sw_hamming_prepare_io_req()
593 u8 *data = req->databuf.in; in nand_ecc_sw_hamming_finish_io_req()
621 for (eccsteps = nand->ecc.ctx.nsteps, i = 0, data = req->databuf.in; in nand_ecc_sw_hamming_finish_io_req()
/drivers/mtd/nand/spi/
Dcore.c371 buf = spinand->databuf; in spinand_read_from_cache_op()
400 memcpy(req->databuf.in, spinand->databuf + req->dataoffs, in spinand_read_from_cache_op()
424 void *buf = spinand->databuf; in spinand_write_to_cache_op()
438 memset(spinand->databuf, 0xff, nanddev_page_size(nand)); in spinand_write_to_cache_op()
441 memcpy(spinand->databuf + req->dataoffs, req->databuf.out, in spinand_write_to_cache_op()
1193 spinand->databuf = kzalloc(nanddev_page_size(nand) + in spinand_init()
1196 if (!spinand->databuf) { in spinand_init()
1201 spinand->oobbuf = spinand->databuf + nanddev_page_size(nand); in spinand_init()
1265 kfree(spinand->databuf); in spinand_init()
1276 kfree(spinand->databuf); in spinand_cleanup()
/drivers/firmware/tegra/
Dbpmp-debugfs.c362 char *databuf = NULL; in bpmp_debug_store() local
371 databuf = kmalloc(count, GFP_KERNEL); in bpmp_debug_store()
372 if (!databuf) in bpmp_debug_store()
375 if (copy_from_user(databuf, buf, count)) { in bpmp_debug_store()
380 err = mrq_debug_write(bpmp, filename, databuf, count); in bpmp_debug_store()
383 kfree(databuf); in bpmp_debug_store()
/drivers/net/wireless/realtek/rtlwifi/
Dusb.c46 u8 *databuf; in _usbctrl_vendorreq_async_write() local
58 databuf = kzalloc(databuf_maxlen, GFP_ATOMIC); in _usbctrl_vendorreq_async_write()
59 if (!databuf) { in _usbctrl_vendorreq_async_write()
66 kfree(databuf); in _usbctrl_vendorreq_async_write()
77 memcpy(databuf, pdata, len); in _usbctrl_vendorreq_async_write()
79 (unsigned char *)dr, databuf, len, in _usbctrl_vendorreq_async_write()
83 kfree(databuf); in _usbctrl_vendorreq_async_write()
/drivers/scsi/hisi_sas/
Dhisi_sas_v3_hw.c3316 u32 *databuf; in debugfs_snapshot_port_reg_v3_hw() local
3319 databuf = hisi_hba->debugfs_port_reg[dump_index][phy_cnt].data; in debugfs_snapshot_port_reg_v3_hw()
3320 for (i = 0; i < port->count; i++, databuf++) { in debugfs_snapshot_port_reg_v3_hw()
3322 *databuf = hisi_sas_phy_read32(hisi_hba, phy_cnt, in debugfs_snapshot_port_reg_v3_hw()
3331 u32 *databuf = hisi_hba->debugfs_regs[dump_index][DEBUGFS_GLOBAL].data; in debugfs_snapshot_global_reg_v3_hw() local
3334 for (i = 0; i < debugfs_global_reg.count; i++, databuf++) in debugfs_snapshot_global_reg_v3_hw()
3335 *databuf = hisi_sas_read32(hisi_hba, 4 * i); in debugfs_snapshot_global_reg_v3_hw()
3341 u32 *databuf = hisi_hba->debugfs_regs[dump_index][DEBUGFS_AXI].data; in debugfs_snapshot_axi_reg_v3_hw() local
3345 for (i = 0; i < axi->count; i++, databuf++) in debugfs_snapshot_axi_reg_v3_hw()
3346 *databuf = hisi_sas_read32(hisi_hba, 4 * i + axi->base_off); in debugfs_snapshot_axi_reg_v3_hw()
[all …]
/drivers/iio/light/
Dvl6180.c128 static int vl6180_read(struct i2c_client *client, u16 cmd, void *databuf, in vl6180_read() argument
134 { .addr = client->addr, .len = len, .buf = databuf, in vl6180_read()
/drivers/mtd/nand/raw/atmel/
Dnand-controller.c857 void *databuf, *eccbuf; in atmel_nand_pmecc_correct_data() local
874 databuf = buf; in atmel_nand_pmecc_correct_data()
877 ret = atmel_pmecc_correct_sector(nand->pmecc, i, databuf, in atmel_nand_pmecc_correct_data()
880 ret = nand_check_erased_ecc_chunk(databuf, in atmel_nand_pmecc_correct_data()
894 databuf += chip->ecc.size; in atmel_nand_pmecc_correct_data()
/drivers/mtd/
Dmtdcore.c1941 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes() argument
1944 return mtd_ooblayout_get_bytes(mtd, databuf, oobbuf, start, nbytes, in mtd_ooblayout_get_databytes()
1961 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes() argument
1964 return mtd_ooblayout_set_bytes(mtd, databuf, oobbuf, start, nbytes, in mtd_ooblayout_set_databytes()
/drivers/hid/
Dhid-sony.c660 u8 *databuf; in ghl_init_urb() local
670 databuf = devm_kzalloc(&sc->hdev->dev, poke_size, GFP_ATOMIC); in ghl_init_urb()
671 if (databuf == NULL) in ghl_init_urb()
680 memcpy(databuf, ghl_magic_data, poke_size); in ghl_init_urb()
683 (unsigned char *) cr, databuf, poke_size, in ghl_init_urb()
/drivers/s390/crypto/
Dzcrypt_ep11misc.c1071 u8 *databuf, size_t *datasize) in ep11_wrapkey() argument
1191 memcpy(databuf, rep_pl->data, rep_pl->data_len); in ep11_wrapkey()
/drivers/mtd/nand/raw/
Dmeson_nand.c475 static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf, in meson_nfc_dma_buffer_setup() argument
483 nfc->daddr = dma_map_single(nfc->dev, databuf, datalen, dir); in meson_nfc_dma_buffer_setup()
/drivers/net/wireless/ath/wil6210/
Ddebugfs.c333 unsigned char databuf[MAX_MBOXITEM_SIZE]; in wil_print_mbox_ring() local
341 wil_memcpy_fromio_32(databuf, src, len); in wil_print_mbox_ring()
342 wil_seq_hexdump(s, databuf, len, " : "); in wil_print_mbox_ring()