| /OK3568_Linux_fs/kernel/drivers/char/hw_random/ |
| H A D | tx4939-rng.c | 31 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlinux/ |
| H A D | moal_proc.c | 352 char databuf[101]; in woal_config_write() local 368 if (count >= sizeof(databuf)) { in woal_config_write() 373 memset(databuf, 0, sizeof(databuf)); in woal_config_write() 374 copy_len = MIN((sizeof(databuf) - 1), count); in woal_config_write() 375 if (copy_from_user(databuf, buf, copy_len)) { in woal_config_write() 380 line = databuf; in woal_config_write() 381 if (!strncmp(databuf, "soft_reset", strlen("soft_reset"))) { in woal_config_write() 390 if (!strncmp(databuf, "drv_mode", strlen("drv_mode"))) { in woal_config_write() 400 if (!strncmp(databuf, "sdcmd52rw=", strlen("sdcmd52rw=")) && in woal_config_write() 402 parse_cmd52_string((const char *)databuf, (size_t) count, &func, in woal_config_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlinux/ |
| H A D | moal_proc.c | 462 char databuf[200]; in woal_config_write() local 482 if (count >= sizeof(databuf)) { in woal_config_write() 487 memset(databuf, 0, sizeof(databuf)); in woal_config_write() 488 copy_len = MIN((sizeof(databuf) - 1), count); in woal_config_write() 489 if (copy_from_user(databuf, buf, copy_len)) { in woal_config_write() 494 line = databuf; in woal_config_write() 495 if (!strncmp(databuf, "soft_reset", strlen("soft_reset"))) { in woal_config_write() 504 if (!strncmp(databuf, "drv_mode", strlen("drv_mode"))) { in woal_config_write() 516 if (!strncmp(databuf, "sdcmd52rw=", strlen("sdcmd52rw=")) && in woal_config_write() 518 parse_cmd52_string((const char *)databuf, (size_t)count, in woal_config_write() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | ohci-hcd.c | 1257 ALLOC_ALIGN_BUFFER(__u8, databuf, 16, sizeof(u32)); in ohci_submit_rh_msg() 1288 *(u16 *)databuf = cpu_to_le16(1); in ohci_submit_rh_msg() 1291 *(u16 *)databuf = cpu_to_le16(0); in ohci_submit_rh_msg() 1294 *(u16 *)databuf = cpu_to_le16(0); in ohci_submit_rh_msg() 1297 *(u32 *)databuf = cpu_to_le32( in ohci_submit_rh_msg() 1301 *(u32 *)databuf = cpu_to_le32(RD_RH_PORTSTAT); in ohci_submit_rh_msg() 1364 databuf = root_hub_dev_des; OK(len); in ohci_submit_rh_msg() 1371 databuf = root_hub_config_des; OK(len); in ohci_submit_rh_msg() 1379 databuf = root_hub_str_index0; in ohci_submit_rh_msg() 1388 databuf = root_hub_str_index1; in ohci_submit_rh_msg() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/aw883xx/ |
| H A D | aw883xx.c | 1756 unsigned int databuf[2] = { 0 }; in aw883xx_reg_store() local 1758 if (2 == sscanf(buf, "%x %x", &databuf[0], &databuf[1])) in aw883xx_reg_store() 1759 aw883xx_reg_write(aw883xx, databuf[0], databuf[1]); in aw883xx_reg_store() 1769 unsigned int databuf[2] = { 0 }; in aw883xx_rw_store() local 1771 if (2 == sscanf(buf, "%x %x", &databuf[0], &databuf[1])) { in aw883xx_rw_store() 1772 aw883xx->reg_addr = (uint8_t)databuf[0]; in aw883xx_rw_store() 1773 if (aw883xx->aw_pa->ops.aw_check_rd_access(databuf[0])) in aw883xx_rw_store() 1774 aw883xx_reg_write(aw883xx, databuf[0], databuf[1]); in aw883xx_rw_store() 1775 } else if (1 == sscanf(buf, "%x", &databuf[0])) { in aw883xx_rw_store() 1776 aw883xx->reg_addr = (uint8_t)databuf[0]; in aw883xx_rw_store() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/spi/ |
| H A D | core.c | 253 adjreq.databuf.in = spinand->databuf; in spinand_read_from_cache_op() 254 buf = spinand->databuf; in spinand_read_from_cache_op() 294 memcpy(req->databuf.in, spinand->databuf + req->dataoffs, in spinand_read_from_cache_op() 323 memset(spinand->databuf, 0xff, in spinand_write_to_cache_op() 328 memcpy(spinand->databuf + req->dataoffs, req->databuf.out, in spinand_write_to_cache_op() 332 adjreq.databuf.out = spinand->databuf; in spinand_write_to_cache_op() 334 buf = spinand->databuf; in spinand_write_to_cache_op() 1133 spinand->databuf = kzalloc(nanddev_page_size(nand) + in spinand_init() 1136 if (!spinand->databuf) { in spinand_init() 1141 spinand->oobbuf = spinand->databuf + nanddev_page_size(nand); in spinand_init() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | rockchip_nand_spl_v9.c | 79 u8 *databuf; member 219 if (nandc_read_page(page, g_rk_nand->databuf) == -1) { in is_badblock() 284 if (nandc_read_page(page, g_rk_nand->databuf) < 0) in spl_nand_read_page() 286 memcpy(buf, g_rk_nand->databuf + offset, read_size); in spl_nand_read_page() 384 g_rk_nand->databuf = kzalloc(nand_page_size, GFP_KERNEL); in rockchip_nandc_probe() 493 g_rk_nand->databuf = kzalloc(nand_page_size, GFP_KERNEL); in board_nand_init() 511 kfree(g_rk_nand->databuf); in board_nand_init()
|
| H A D | rockchip_nand_spl.c | 83 u8 *databuf; member 224 if (nandc_read_page(page, g_rk_nand->databuf) == -1) { in is_badblock() 289 if (nandc_read_page(page, g_rk_nand->databuf) < 0) in spl_nand_read_page() 291 memcpy(buf, g_rk_nand->databuf + offset, read_size); in spl_nand_read_page() 386 g_rk_nand->databuf = kzalloc(nand_page_size, GFP_KERNEL); in rockchip_nandc_probe() 495 g_rk_nand->databuf = kzalloc(nand_page_size, GFP_KERNEL); in board_nand_init() 513 kfree(g_rk_nand->databuf); in board_nand_init()
|
| H A D | tegra_nand.c | 388 static int check_ecc_error(struct nand_ctlr *reg, u8 *databuf, in check_ecc_error() argument 402 if ((reg_val & DEC_STATUS_A_ECC_FAIL) && databuf) { in check_ecc_error() 410 !blank_check(databuf, a_len)) in check_ecc_error()
|
| /OK3568_Linux_fs/kernel/drivers/firmware/tegra/ |
| H A D | bpmp-debugfs.c | 307 char *databuf = NULL; in bpmp_debug_show() local 314 len = seq_get_buf(m, &databuf); in bpmp_debug_show() 315 if (!databuf) in bpmp_debug_show() 322 err = mrq_debug_read(bpmp, filename, databuf, len, &nbytes); in bpmp_debug_show() 334 char *databuf = NULL; in bpmp_debug_store() local 343 databuf = kmalloc(count, GFP_KERNEL); in bpmp_debug_store() 344 if (!databuf) in bpmp_debug_store() 347 if (copy_from_user(databuf, buf, count)) { in bpmp_debug_store() 352 err = mrq_debug_write(bpmp, filename, databuf, count); in bpmp_debug_store() 355 kfree(databuf); in bpmp_debug_store()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/spi/ |
| H A D | core.c | 346 buf = spinand->databuf; in spinand_read_from_cache_op() 375 memcpy(req->databuf.in, spinand->databuf + req->dataoffs, in spinand_read_from_cache_op() 399 void *buf = spinand->databuf; in spinand_write_to_cache_op() 410 memset(spinand->databuf, 0xff, nbytes); in spinand_write_to_cache_op() 413 memcpy(spinand->databuf + req->dataoffs, req->databuf.out, in spinand_write_to_cache_op() 1195 spinand->databuf = kzalloc(nanddev_page_size(nand) + in spinand_init() 1198 if (!spinand->databuf) { in spinand_init() 1203 spinand->oobbuf = spinand->databuf + nanddev_page_size(nand); in spinand_init() 1296 kfree(spinand->databuf); in spinand_init() 1307 kfree(spinand->databuf); in spinand_cleanup()
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/aw87xxx/ |
| H A D | aw87xxx.c | 778 unsigned int databuf[2] = { 0 }; in aw87xxx_attr_set_reg() local 783 if (sscanf(buf, "0x%x 0x%x", &databuf[0], &databuf[1]) == 2) { in aw87xxx_attr_set_reg() 784 if (databuf[0] >= aw87xxx->aw_dev.reg_max_addr) { in aw87xxx_attr_set_reg() 786 databuf[0], aw87xxx->aw_dev.reg_max_addr); in aw87xxx_attr_set_reg() 792 databuf[0], databuf[1]); in aw87xxx_attr_set_reg() 795 databuf[0], databuf[1]); in aw87xxx_attr_set_reg() 798 databuf[0], databuf[1]); in aw87xxx_attr_set_reg()
|
| /OK3568_Linux_fs/external/xserver/hw/xquartz/mach-startup/ |
| H A D | stub.c | 147 char databuf[] = "display"; in send_fd_handoff() local 158 iov[0].iov_base = databuf; in send_fd_handoff() 159 iov[0].iov_len = sizeof(databuf); in send_fd_handoff()
|
| H A D | bundle-main.c | 169 char databuf[] = "display"; in accept_fd_handoff() local 180 iov[0].iov_base = databuf; in accept_fd_handoff() 181 iov[0].iov_len = sizeof(databuf); in accept_fd_handoff()
|
| /OK3568_Linux_fs/u-boot/include/linux/mtd/ |
| H A D | nand.h | 103 } databuf; member 620 iter->req.databuf.in = req->datbuf; in nanddev_io_iter_init() 642 iter->req.databuf.in += iter->req.datalen; in nanddev_io_iter_next_page()
|
| H A D | mtd.h | 387 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, 389 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf,
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | usb.c | 46 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()
|
| /OK3568_Linux_fs/u-boot/drivers/mmc/ |
| H A D | fsl_esdhc.c | 171 uint databuf; in esdhc_pio_read_write() local 192 databuf = in_le32(®s->datport); in esdhc_pio_read_write() 193 *((uint *)buffer) = databuf; in esdhc_pio_read_write() 214 databuf = *((uint *)buffer); in esdhc_pio_read_write() 218 out_le32(®s->datport, databuf); in esdhc_pio_read_write()
|
| /OK3568_Linux_fs/kernel/include/linux/mtd/ |
| H A D | nand.h | 120 } databuf; member 826 iter->req.databuf.in = req->datbuf; in nanddev_io_iter_init() 848 iter->req.databuf.in += iter->req.datalen; in nanddev_io_iter_next_page()
|
| H A D | mtd.h | 434 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, 436 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf,
|
| /OK3568_Linux_fs/kernel/drivers/scsi/hisi_sas/ |
| H A D | hisi_sas_main.c | 2742 u32 *databuf; in hisi_sas_debugfs_snapshot_port_reg() local 2745 databuf = hisi_hba->debugfs_port_reg[dump_index][phy_cnt].data; in hisi_sas_debugfs_snapshot_port_reg() 2746 for (i = 0; i < port->count; i++, databuf++) { in hisi_sas_debugfs_snapshot_port_reg() 2748 *databuf = port->read_port_reg(hisi_hba, phy_cnt, in hisi_sas_debugfs_snapshot_port_reg() 2757 u32 *databuf = hisi_hba->debugfs_regs[dump_index][DEBUGFS_GLOBAL].data; in hisi_sas_debugfs_snapshot_global_reg() local 2763 for (i = 0; i < global->count; i++, databuf++) in hisi_sas_debugfs_snapshot_global_reg() 2764 *databuf = global->read_global_reg(hisi_hba, 4 * i); in hisi_sas_debugfs_snapshot_global_reg() 2770 u32 *databuf = hisi_hba->debugfs_regs[dump_index][DEBUGFS_AXI].data; in hisi_sas_debugfs_snapshot_axi_reg() local 2776 for (i = 0; i < axi->count; i++, databuf++) in hisi_sas_debugfs_snapshot_axi_reg() 2777 *databuf = axi->read_global_reg(hisi_hba, in hisi_sas_debugfs_snapshot_axi_reg() [all …]
|
| /OK3568_Linux_fs/kernel/net/sunrpc/auth_gss/ |
| H A D | auth_gss.c | 253 char databuf[UPCALL_BUF_LEN]; member 394 memcpy(gss_msg->databuf, &uid, sizeof(uid)); in gss_encode_v0_msg() 395 gss_msg->msg.data = gss_msg->databuf; in gss_encode_v0_msg() 398 BUILD_BUG_ON(sizeof(uid) > sizeof(gss_msg->databuf)); in gss_encode_v0_msg() 420 char *p = gss_msg->databuf; in gss_encode_v1_msg() 421 size_t buflen = sizeof(gss_msg->databuf); in gss_encode_v1_msg() 474 trace_rpcgss_upcall_msg(gss_msg->databuf); in gss_encode_v1_msg() 479 gss_msg->msg.data = gss_msg->databuf; in gss_encode_v1_msg()
|
| /OK3568_Linux_fs/kernel/drivers/iio/light/ |
| H A D | ucs12cm0.c | 140 static int ucs12cm0_read(struct i2c_client *client, u8 cmd, void *databuf, in ucs12cm0_read() argument 151 .buf = databuf, in ucs12cm0_read()
|
| H A D | vl6180.c | 217 static int vl6180_read(struct i2c_client *client, u16 cmd, void *databuf, in vl6180_read() argument 223 { .addr = client->addr, .len = len, .buf = databuf, in vl6180_read()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/ |
| H A D | mtdcore.c | 1433 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes() argument 1436 return mtd_ooblayout_get_bytes(mtd, databuf, oobbuf, start, nbytes, in mtd_ooblayout_get_databytes() 1453 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes() argument 1456 return mtd_ooblayout_set_bytes(mtd, databuf, oobbuf, start, nbytes, in mtd_ooblayout_set_databytes()
|