| /OK3568_Linux_fs/kernel/arch/powerpc/boot/ |
| H A D | mktree.c | 40 unsigned int tmpbuf[IMGBLK / sizeof(unsigned int)]; variable 99 if (read(in_fd, tmpbuf, sizeof(tmpbuf)) != sizeof(tmpbuf)) { in main() 105 if (tmpbuf[0] != htonl(0x7f454c46)) { in main() 125 if (read(in_fd, tmpbuf, sizeof(tmpbuf)) < 0) { in main() 129 cp = tmpbuf; in main() 130 for (i = 0; i < sizeof(tmpbuf) / sizeof(unsigned int); i++) in main() 132 if (write(out_fd, tmpbuf, sizeof(tmpbuf)) != sizeof(tmpbuf)) { in main()
|
| /OK3568_Linux_fs/kernel/net/sunrpc/ |
| H A D | sysctl.c | 65 char tmpbuf[256]; in proc_do_xprt() local 72 len = svc_print_xprts(tmpbuf, sizeof(tmpbuf)); in proc_do_xprt() 73 len = memory_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt() 87 char tmpbuf[20], *s = NULL; in proc_dodebug() local 108 if (left > sizeof(tmpbuf) - 1) in proc_dodebug() 110 memcpy(tmpbuf, p, left); in proc_dodebug() 111 tmpbuf[left] = '\0'; in proc_dodebug() 113 value = simple_strtol(tmpbuf, &s, 0); in proc_dodebug() 115 left -= (s - tmpbuf); in proc_dodebug() 129 len = sprintf(tmpbuf, "0x%04x", *(unsigned int *) table->data); in proc_dodebug() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8723bs/hal/ |
| H A D | sdio_ops.c | 200 u8 *tmpbuf; in sdio_read32() local 202 tmpbuf = rtw_malloc(8); in sdio_read32() 203 if (!tmpbuf) { in sdio_read32() 209 sd_read(intfhdl, ftaddr, 8, tmpbuf); in sdio_read32() 210 memcpy(&le_tmp, tmpbuf + shift, 4); in sdio_read32() 213 kfree(tmpbuf); in sdio_read32() 246 u8 *tmpbuf; in sdio_readN() local 251 tmpbuf = rtw_malloc(n); in sdio_readN() 252 if (!tmpbuf) in sdio_readN() 255 err = sd_read(intfhdl, ftaddr, n, tmpbuf); in sdio_readN() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch/ |
| H A D | focaltech_upgrade_ft8201.c | 424 u8 *tmpbuf = NULL; in read_replace_3gamma() local 452 tmpbuf = buf + base_addr; in read_replace_3gamma() 453 ret = replace_3gamma(tmpbuf, gamma, gamma_len); in read_replace_3gamma() 459 ret = cal_lcdinitcode_ecc(tmpbuf, &initcode_ecc); in read_replace_3gamma() 465 tmpbuf[LIC_LCD_ECC_H_OFF] = (u8)(initcode_ecc >> 8); in read_replace_3gamma() 466 tmpbuf[LIC_LCD_ECC_L_OFF] = (u8)(initcode_ecc); in read_replace_3gamma() 467 tmpbuf[LIC_ECC_REG_H_OFF] = (u8)(initcode_ecc >> 8); in read_replace_3gamma() 468 tmpbuf[LIC_ECC_REG_L_OFF] = (u8)(initcode_ecc); in read_replace_3gamma() 470 hlic_len = (u16)(((u16)tmpbuf[2]) << 8) + tmpbuf[3]; in read_replace_3gamma() 471 initcode_checksum = cal_lcdinitcode_checksum(tmpbuf + 2, hlic_len - 2); in read_replace_3gamma() [all …]
|
| H A D | focaltech_ex_fun.c | 95 u8 tmpbuf[PROC_BUF_SIZE] = { 0 }; in fts_debug_write() local 115 writebuf = tmpbuf; in fts_debug_write() 213 u8 tmpbuf[PROC_BUF_SIZE] = { 0 }; in fts_debug_read() local 229 buf = tmpbuf; in fts_debug_read() 304 u8 tmpbuf[PROC_BUF_SIZE] = { 0 }; in fts_debug_write() local 323 writebuf = tmpbuf; in fts_debug_write() 418 u8 tmpbuf[PROC_BUF_SIZE] = { 0 }; in fts_debug_read() local 436 buf = tmpbuf; in fts_debug_read() 738 char *tmpbuf; in fts_parse_buf() local 760 tmpbuf = (char *)kzalloc(rw_op.len, GFP_KERNEL); in fts_parse_buf() [all …]
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/allwinner/music/common/ |
| H A D | mount.cpp | 61 char tmpbuf[256]; in AutoMountCallback() local 98 strcpy(tmpbuf, bufname); in AutoMountCallback() 100 if (tmpbuf[len - 1 - i] == '/') { in AutoMountCallback() 101 tmpbuf[len - 1 - i] = 0; in AutoMountCallback() 108 int rmret = readlink(tmpbuf, real_path, sizeof(real_path)); in AutoMountCallback() 110 ALOGV("mount path not a symlink %s err=%d", tmpbuf, errno); in AutoMountCallback() 112 strcpy(real_path, tmpbuf); in AutoMountCallback()
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/allwinner/video/common/ |
| H A D | mount.cpp | 61 char tmpbuf[256]; in AutoMountCallback() local 98 strcpy(tmpbuf, bufname); in AutoMountCallback() 100 if (tmpbuf[len - 1 - i] == '/') { in AutoMountCallback() 101 tmpbuf[len - 1 - i] = 0; in AutoMountCallback() 108 int rmret = readlink(tmpbuf, real_path, sizeof(real_path)); in AutoMountCallback() 110 ALOGV("mount path not a symlink %s err=%d", tmpbuf, errno); in AutoMountCallback() 112 strcpy(real_path, tmpbuf); in AutoMountCallback()
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/allwinner/MediaUI/common/ |
| H A D | mount.cpp | 61 char tmpbuf[256]; in AutoMountCallback() local 98 strcpy(tmpbuf, bufname); in AutoMountCallback() 100 if (tmpbuf[len - 1 - i] == '/') { in AutoMountCallback() 101 tmpbuf[len - 1 - i] = 0; in AutoMountCallback() 108 int rmret = readlink(tmpbuf, real_path, sizeof(real_path)); in AutoMountCallback() 110 ALOGV("mount path not a symlink %s err=%d", tmpbuf, errno); in AutoMountCallback() 112 strcpy(real_path, tmpbuf); in AutoMountCallback()
|
| /OK3568_Linux_fs/kernel/drivers/pnp/pnpbios/ |
| H A D | proc.c | 68 char *tmpbuf; in escd_proc_show() local 81 tmpbuf = kzalloc(escd.escd_size, GFP_KERNEL); in escd_proc_show() 82 if (!tmpbuf) in escd_proc_show() 85 if (pnp_bios_read_escd(tmpbuf, escd.nv_storage_base)) { in escd_proc_show() 86 kfree(tmpbuf); in escd_proc_show() 91 (unsigned char)(tmpbuf[0]) + (unsigned char)(tmpbuf[1]) * 256; in escd_proc_show() 97 kfree(tmpbuf); in escd_proc_show() 101 seq_write(m, tmpbuf, escd_size); in escd_proc_show() 102 kfree(tmpbuf); in escd_proc_show()
|
| /OK3568_Linux_fs/u-boot/disk/ |
| H A D | part_iso.c | 27 static unsigned char tmpbuf[CD_SECTSIZE] __aligned(ARCH_DMA_MINALIGN); 56 iso_boot_rec_t *pbr = (iso_boot_rec_t *)tmpbuf; /* boot record */ in part_get_info_iso_verb() 57 iso_pri_rec_t *ppr = (iso_pri_rec_t *)tmpbuf; /* primary desc */ in part_get_info_iso_verb() 58 iso_val_entry_t *pve = (iso_val_entry_t *)tmpbuf; in part_get_info_iso_verb() 66 if (iso_dread(dev_desc, PVD_OFFSET, 1, (ulong *)tmpbuf) != 1) in part_get_info_iso_verb() 86 if (iso_dread(dev_desc, i, 1, (ulong *)tmpbuf) != 1) in part_get_info_iso_verb() 106 if (iso_dread(dev_desc, bootaddr, 1, (ulong *)tmpbuf) != 1) { in part_get_info_iso_verb() 113 chksumbuf = (unsigned short *)tmpbuf; in part_get_info_iso_verb() 144 pide=(iso_init_def_entry_t *)&tmpbuf[offset]; in part_get_info_iso_verb()
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | saa6588.c | 252 unsigned char tmpbuf[6]; in saa6588_i2c_poll() local 258 if (6 != i2c_master_recv(client, &tmpbuf[0], 6)) { in saa6588_i2c_poll() 264 s->sync = tmpbuf[0] & 0x10; in saa6588_i2c_poll() 267 blocknum = tmpbuf[0] >> 5; in saa6588_i2c_poll() 292 swap(tmpbuf[2], tmpbuf[0]); in saa6588_i2c_poll() 305 if ((tmpbuf[2] & 0x03) == 0x03) in saa6588_i2c_poll() 307 else if ((tmpbuf[2] & 0x03) != 0x00) in saa6588_i2c_poll() 309 tmpbuf[2] = tmp; /* Is this enough ? Should we also check other bits ? */ in saa6588_i2c_poll() 312 block_to_buf(s, tmpbuf); in saa6588_i2c_poll()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_dp_dual_mode_helper.c | 66 char *tmpbuf = NULL; in drm_dp_dual_mode_read() local 91 tmpbuf = kmalloc(size + offset, GFP_KERNEL); in drm_dp_dual_mode_read() 92 if (!tmpbuf) in drm_dp_dual_mode_read() 95 msgs[1].buf = tmpbuf; in drm_dp_dual_mode_read() 99 if (tmpbuf) in drm_dp_dual_mode_read() 100 memcpy(buffer, tmpbuf + offset, size); in drm_dp_dual_mode_read() 102 kfree(tmpbuf); in drm_dp_dual_mode_read()
|
| /OK3568_Linux_fs/kernel/drivers/oprofile/ |
| H A D | oprofilefs.c | 56 char tmpbuf[TMPBUFSIZE]; in oprofilefs_ulong_to_user() local 57 size_t maxlen = snprintf(tmpbuf, TMPBUFSIZE, "%lu\n", val); in oprofilefs_ulong_to_user() 60 return simple_read_from_buffer(buf, count, offset, tmpbuf, maxlen); in oprofilefs_ulong_to_user() 73 char tmpbuf[TMPBUFSIZE]; in oprofilefs_ulong_from_user() local 82 memset(tmpbuf, 0x0, TMPBUFSIZE); in oprofilefs_ulong_from_user() 84 if (copy_from_user(tmpbuf, buf, count)) in oprofilefs_ulong_from_user() 88 *val = simple_strtoul(tmpbuf, NULL, 0); in oprofilefs_ulong_from_user()
|
| /OK3568_Linux_fs/kernel/fs/quota/ |
| H A D | quota_tree.c | 167 char *tmpbuf = getdqbuf(info->dqi_usable_bs); in remove_free_dqentry() local 173 if (!tmpbuf) in remove_free_dqentry() 176 err = read_blk(info, nextblk, tmpbuf); in remove_free_dqentry() 179 ((struct qt_disk_dqdbheader *)tmpbuf)->dqdh_prev_free = in remove_free_dqentry() 181 err = write_blk(info, nextblk, tmpbuf); in remove_free_dqentry() 186 err = read_blk(info, prevblk, tmpbuf); in remove_free_dqentry() 189 ((struct qt_disk_dqdbheader *)tmpbuf)->dqdh_next_free = in remove_free_dqentry() 191 err = write_blk(info, prevblk, tmpbuf); in remove_free_dqentry() 198 kfree(tmpbuf); in remove_free_dqentry() 206 kfree(tmpbuf); in remove_free_dqentry() [all …]
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | pcbc.c | 50 u8 tmpbuf[MAX_CIPHER_BLOCKSIZE]; in crypto_pcbc_encrypt_inplace() local 53 memcpy(tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace() 56 crypto_xor_cpy(iv, tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace() 117 u8 tmpbuf[MAX_CIPHER_BLOCKSIZE] __aligned(__alignof__(u32)); in crypto_pcbc_decrypt_inplace() local 120 memcpy(tmpbuf, src, bsize); in crypto_pcbc_decrypt_inplace() 123 crypto_xor_cpy(iv, src, tmpbuf, bsize); in crypto_pcbc_decrypt_inplace()
|
| /OK3568_Linux_fs/external/mpp/mpp/legacy/ |
| H A D | ppOp.cpp | 83 char *tmpbuf = (char *)malloc(src_vir_width * src_vir_height / 2); in main() local 124 …tmpbuf[i * src_vir_width + j * 2 + 0] = tmp[src_vir_width * src_vir_height + i * SRC_WIDTH / 2 + j… in main() 125 …tmpbuf[i * src_vir_width + j * 2 + 1] = tmp[src_vir_width * src_vir_height + SRC_WIDTH * SRC_HEIGH… in main() 128 memcpy(&tmp[src_vir_width * src_vir_height], tmpbuf, src_vir_width * src_vir_height / 2); in main() 235 if (tmpbuf)free(tmpbuf); in main()
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | xhci.c | 885 uint8_t tmpbuf[4]; in xhci_submit_root() local 971 tmpbuf[0] = 1; /* USB_STATUS_SELFPOWERED */ in xhci_submit_root() 972 tmpbuf[1] = 0; in xhci_submit_root() 973 srcptr = tmpbuf; in xhci_submit_root() 977 memset(tmpbuf, 0, 4); in xhci_submit_root() 980 tmpbuf[0] |= USB_PORT_STAT_CONNECTION; in xhci_submit_root() 987 tmpbuf[1] |= USB_PORT_STAT_LOW_SPEED >> 8; in xhci_submit_root() 991 tmpbuf[1] |= USB_PORT_STAT_HIGH_SPEED >> 8; in xhci_submit_root() 995 tmpbuf[1] |= USB_PORT_STAT_SUPER_SPEED >> 8; in xhci_submit_root() 1000 tmpbuf[0] |= USB_PORT_STAT_ENABLE; in xhci_submit_root() [all …]
|
| H A D | ehci-hcd.c | 656 uint8_t tmpbuf[4]; in ehci_submit_root() local 751 tmpbuf[0] = 1; /* USB_STATUS_SELFPOWERED */ in ehci_submit_root() 752 tmpbuf[1] = 0; in ehci_submit_root() 753 srcptr = tmpbuf; in ehci_submit_root() 757 memset(tmpbuf, 0, 4); in ehci_submit_root() 760 tmpbuf[0] |= USB_PORT_STAT_CONNECTION; in ehci_submit_root() 762 tmpbuf[0] |= USB_PORT_STAT_ENABLE; in ehci_submit_root() 764 tmpbuf[0] |= USB_PORT_STAT_SUSPEND; in ehci_submit_root() 766 tmpbuf[0] |= USB_PORT_STAT_OVERCURRENT; in ehci_submit_root() 768 tmpbuf[0] |= USB_PORT_STAT_RESET; in ehci_submit_root() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/rarpd/rarpd/ |
| H A D | 0003-rarpd.c-bug-fix.patch | 200 + char tmpbuf[16*3]; 212 - char tmpbuf[16*3]; 213 - char *ptr = tmpbuf; 222 - syslog(LOG_INFO, "RARP request from %s on if%d", tmpbuf, sll.sll_ifindex); 223 + ptr = tmpbuf; 224 + snprintf(tmpbuf, 2, "%02x", sll.sll_addr[0]); 225 + for (ptr=tmpbuf+2, i=1; i<sll.sll_halen; i++) { 238 + syslog(LOG_INFO, "RARP request from %s on %s", tmpbuf, tmpname); 247 + syslog(LOG_INFO, "RARP response to %s %s on %s", tmpbuf,
|
| /OK3568_Linux_fs/u-boot/drivers/spi/ |
| H A D | spi-mem.c | 273 tmpbuf = kzalloc(tmpbufsize, GFP_KERNEL | GFP_DMA); in spi_mem_exec_op() 274 if (!tmpbuf) in spi_mem_exec_op() 279 tmpbuf[0] = op->cmd.opcode; in spi_mem_exec_op() 280 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op() 291 tmpbuf[i + 1] = op->addr.val >> in spi_mem_exec_op() 294 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op() 303 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op() 304 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op() 329 kfree(tmpbuf); in spi_mem_exec_op()
|
| /OK3568_Linux_fs/kernel/drivers/mmc/core/ |
| H A D | sdio_io.c | 540 ret = sdio_memcpy_fromio(func, func->tmpbuf, addr, 2); in sdio_readw() 546 return le16_to_cpup((__le16 *)func->tmpbuf); in sdio_readw() 565 *(__le16 *)func->tmpbuf = cpu_to_le16(b); in sdio_writew() 567 ret = sdio_memcpy_toio(func, addr, func->tmpbuf, 2); in sdio_writew() 588 ret = sdio_memcpy_fromio(func, func->tmpbuf, addr, 4); in sdio_readl() 594 return le32_to_cpup((__le32 *)func->tmpbuf); in sdio_readl() 613 *(__le32 *)func->tmpbuf = cpu_to_le32(b); in sdio_writel() 615 ret = sdio_memcpy_toio(func, addr, func->tmpbuf, 4); in sdio_writel()
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch_ft5436/ |
| H A D | focaltech_ex_fun.c | 88 u8 tmpbuf[PROC_BUF_SIZE] = { 0 }; in fts_debug_write() local 108 writebuf = tmpbuf; in fts_debug_write() 217 u8 tmpbuf[PROC_BUF_SIZE] = { 0 }; in fts_debug_read() local 233 readbuf = tmpbuf; in fts_debug_read() 297 u8 tmpbuf[PROC_BUF_SIZE] = { 0 }; in fts_debug_write() local 317 writebuf = tmpbuf; in fts_debug_write() 426 u8 tmpbuf[PROC_BUF_SIZE] = { 0 }; in fts_debug_read() local 442 readbuf = tmpbuf; in fts_debug_read() 771 char *tmpbuf; in fts_parse_buf() local 793 tmpbuf = (char *)kzalloc(rw_op.len, GFP_KERNEL); in fts_parse_buf() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/gspca/ |
| H A D | t613.c | 329 u8 *tmpbuf; in reg_w_buf() local 331 tmpbuf = kmemdup(buffer, len, GFP_KERNEL); in reg_w_buf() 332 if (!tmpbuf) { in reg_w_buf() 341 tmpbuf, len, 500); in reg_w_buf() 342 kfree(tmpbuf); in reg_w_buf() 352 u8 *p, *tmpbuf; in reg_w_ixbuf() local 355 p = tmpbuf = gspca_dev->usb_buf; in reg_w_ixbuf() 357 p = tmpbuf = kmalloc_array(len, 2, GFP_KERNEL); in reg_w_ixbuf() 358 if (!tmpbuf) { in reg_w_ixbuf() 373 tmpbuf, len * 2, 500); in reg_w_ixbuf() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/radio/si470x/ |
| H A D | radio-si470x-i2c.c | 245 unsigned char tmpbuf[3]; in si470x_i2c_interrupt() local 297 put_unaligned_le16(rds, &tmpbuf); in si470x_i2c_interrupt() 298 tmpbuf[2] = blocknum; /* offset name */ in si470x_i2c_interrupt() 299 tmpbuf[2] |= blocknum << 3; /* received offset */ in si470x_i2c_interrupt() 301 tmpbuf[2] |= 0x80; /* uncorrectable errors */ in si470x_i2c_interrupt() 303 tmpbuf[2] |= 0x40; /* corrected error(s) */ in si470x_i2c_interrupt() 306 memcpy(&radio->buffer[radio->wr_index], &tmpbuf, 3); in si470x_i2c_interrupt()
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-mem.c | 304 u8 *tmpbuf; in spi_mem_exec_op() local 339 tmpbuf = kzalloc(tmpbufsize, GFP_KERNEL | GFP_DMA); in spi_mem_exec_op() 340 if (!tmpbuf) in spi_mem_exec_op() 345 tmpbuf[0] = op->cmd.opcode; in spi_mem_exec_op() 346 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op() 357 tmpbuf[i + 1] = op->addr.val >> in spi_mem_exec_op() 360 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op() 369 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op() 370 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op() 395 kfree(tmpbuf); in spi_mem_exec_op()
|