/linux/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()
|
/linux/net/sunrpc/ |
H A D | sysctl.c | 46 char tmpbuf[256]; in proc_do_xprt() local 53 len = svc_print_xprts(tmpbuf, sizeof(tmpbuf)); in proc_do_xprt() 54 len = memory_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt() 68 char tmpbuf[20], *s = NULL; in proc_dodebug() local 89 if (left > sizeof(tmpbuf) - 1) in proc_dodebug() 91 memcpy(tmpbuf, p, left); in proc_dodebug() 92 tmpbuf[left] = '\0'; in proc_dodebug() 94 value = simple_strtol(tmpbuf, &s, 0); in proc_dodebug() 96 left -= (s - tmpbuf); in proc_dodebug() 110 len = sprintf(tmpbuf, "0x%04x", *(unsigned int *) table->data); in proc_dodebug() [all …]
|
/linux/drivers/staging/rtl8723bs/hal/ |
H A D | sdio_ops.c | 181 u8 *tmpbuf; in sdio_read32() local 183 tmpbuf = rtw_malloc(8); in sdio_read32() 184 if (!tmpbuf) in sdio_read32() 188 sd_read(intfhdl, ftaddr, 8, tmpbuf); in sdio_read32() 189 memcpy(&le_tmp, tmpbuf + shift, 4); in sdio_read32() 192 kfree(tmpbuf); in sdio_read32() 225 u8 *tmpbuf; in sdio_readN() local 230 tmpbuf = rtw_malloc(n); in sdio_readN() 231 if (!tmpbuf) in sdio_readN() 234 err = sd_read(intfhdl, ftaddr, n, tmpbuf); in sdio_readN() [all …]
|
/linux/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()
|
/linux/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()
|
/linux/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()
|
/linux/fs/quota/ |
H A D | quota_tree.c | 169 char *tmpbuf = kmalloc(info->dqi_usable_bs, GFP_KERNEL); in remove_free_dqentry() local 175 if (!tmpbuf) in remove_free_dqentry() 178 err = read_blk(info, nextblk, tmpbuf); in remove_free_dqentry() 181 ((struct qt_disk_dqdbheader *)tmpbuf)->dqdh_prev_free = in remove_free_dqentry() 183 err = write_blk(info, nextblk, tmpbuf); in remove_free_dqentry() 188 err = read_blk(info, prevblk, tmpbuf); in remove_free_dqentry() 191 ((struct qt_disk_dqdbheader *)tmpbuf)->dqdh_next_free = in remove_free_dqentry() 193 err = write_blk(info, prevblk, tmpbuf); in remove_free_dqentry() 200 kfree(tmpbuf); in remove_free_dqentry() 208 kfree(tmpbuf); in remove_free_dqentry() [all …]
|
/linux/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()
|
/linux/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 …]
|
H A D | pac7311.c | 539 unsigned char tmpbuf[4]; in pac_start_frame() local 544 tmpbuf[0] = lines >> 8; in pac_start_frame() 545 tmpbuf[1] = lines & 0xff; in pac_start_frame() 546 tmpbuf[2] = samples_per_line >> 8; in pac_start_frame() 547 tmpbuf[3] = samples_per_line & 0xff; in pac_start_frame() 550 tmpbuf, sizeof(tmpbuf)); in pac_start_frame()
|
/linux/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()
|
H A D | radio-si470x-usb.c | 370 unsigned char tmpbuf[3]; in si470x_int_in_callback() local 434 put_unaligned_le16(rds, &tmpbuf); in si470x_int_in_callback() 435 tmpbuf[2] = blocknum; /* offset name */ in si470x_int_in_callback() 436 tmpbuf[2] |= blocknum << 3; /* received offset */ in si470x_int_in_callback() 438 tmpbuf[2] |= 0x80; /* uncorrectable errors */ in si470x_int_in_callback() 440 tmpbuf[2] |= 0x40; /* corrected error(s) */ in si470x_int_in_callback() 443 memcpy(&radio->buffer[radio->wr_index], &tmpbuf, 3); in si470x_int_in_callback()
|
/linux/drivers/s390/crypto/ |
H A D | pkey_api.c | 171 u8 *tmpbuf; in pkey_ioctl_clr2protk() local 185 tmpbuf = kzalloc(sizeof(*t) + keylen, GFP_KERNEL); in pkey_ioctl_clr2protk() 186 if (!tmpbuf) { in pkey_ioctl_clr2protk() 190 t = (struct clearkeytoken *)tmpbuf; in pkey_ioctl_clr2protk() 199 tmpbuf, sizeof(*t) + keylen, in pkey_ioctl_clr2protk() 204 kfree_sensitive(tmpbuf); in pkey_ioctl_clr2protk() 329 u8 *tmpbuf; in pkey_ioctl_verifyprotk() local 344 tmpbuf = kzalloc(sizeof(*t), GFP_KERNEL); in pkey_ioctl_verifyprotk() 345 if (!tmpbuf) { in pkey_ioctl_verifyprotk() 349 t = (struct protaeskeytoken *)tmpbuf; in pkey_ioctl_verifyprotk() [all …]
|
H A D | pkey_ep11.c | 508 u8 *tmpbuf; in ep11_slowpath_key2protkey() local 521 tmpbuf = kmalloc(MAXEP11AESKEYBLOBSIZE, GFP_ATOMIC); in ep11_slowpath_key2protkey() 522 if (!tmpbuf) in ep11_slowpath_key2protkey() 530 tmpbuf, &tmplen, NULL); in ep11_slowpath_key2protkey() 534 rc = ep11_key2protkey(NULL, 0, tmpbuf, tmplen, in ep11_slowpath_key2protkey() 539 kfree(tmpbuf); in ep11_slowpath_key2protkey()
|
H A D | pkey_cca.c | 559 u8 *tmpbuf; in cca_slowpath_key2protkey() local 572 tmpbuf = kmalloc(SECKEYBLOBSIZE, GFP_ATOMIC); in cca_slowpath_key2protkey() 573 if (!tmpbuf) in cca_slowpath_key2protkey() 581 tmpbuf, &tmplen, NULL); in cca_slowpath_key2protkey() 585 rc = cca_key2protkey(NULL, 0, tmpbuf, tmplen, in cca_slowpath_key2protkey() 590 kfree(tmpbuf); in cca_slowpath_key2protkey()
|
/linux/arch/x86/kernel/fpu/ |
H A D | regset.c | 147 struct xregs_state *tmpbuf = NULL; in xstateregs_set() local 160 tmpbuf = vmalloc(count); in xstateregs_set() 161 if (!tmpbuf) in xstateregs_set() 164 if (copy_from_user(tmpbuf, ubuf, count)) { in xstateregs_set() 171 ret = copy_uabi_from_kernel_to_xstate(fpu->fpstate, kbuf ?: tmpbuf, &target->thread.pkru); in xstateregs_set() 174 vfree(tmpbuf); in xstateregs_set()
|
/linux/drivers/spi/ |
H A D | spi-mem.c | 364 u8 *tmpbuf; in spi_mem_exec_op() local 403 tmpbuf = kzalloc(tmpbufsize, GFP_KERNEL | GFP_DMA); in spi_mem_exec_op() 404 if (!tmpbuf) in spi_mem_exec_op() 409 tmpbuf[0] = op->cmd.opcode; in spi_mem_exec_op() 410 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op() 421 tmpbuf[i + 1] = op->addr.val >> in spi_mem_exec_op() 424 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op() 433 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op() 434 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op() 460 kfree(tmpbuf); in spi_mem_exec_op()
|
H A D | spi-zynq-qspi.c | 530 u8 *tmpbuf; in zynq_qspi_exec_mem_op() local 572 tmpbuf = kmalloc(op->dummy.nbytes, GFP_KERNEL); in zynq_qspi_exec_mem_op() 573 if (!tmpbuf) in zynq_qspi_exec_mem_op() 576 memset(tmpbuf, 0xff, op->dummy.nbytes); in zynq_qspi_exec_mem_op() 578 xqspi->txbuf = tmpbuf; in zynq_qspi_exec_mem_op() 589 kfree(tmpbuf); in zynq_qspi_exec_mem_op()
|
/linux/security/selinux/ |
H A D | selinuxfs.c | 126 char tmpbuf[TMPBUFLEN]; in sel_read_enforce() local 129 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce() 131 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 202 char tmpbuf[TMPBUFLEN]; in sel_read_handle_unknown() local 209 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", handle_unknown); in sel_read_handle_unknown() 210 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_handle_unknown() 314 char tmpbuf[TMPBUFLEN]; in sel_read_policyvers() local 317 length = scnprintf(tmpbuf, TMPBUFLEN, "%u", POLICYDB_VERSION_MAX); in sel_read_policyvers() 318 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_policyvers() 345 char tmpbuf[TMPBUFLEN]; in sel_read_mls() local [all …]
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_diag.c | 554 u32 *tmpbuf = NULL; in qib_diagpkt_write() local 610 tmpbuf = vmalloc(plen); in qib_diagpkt_write() 611 if (!tmpbuf) { in qib_diagpkt_write() 616 if (copy_from_user(tmpbuf, in qib_diagpkt_write() 647 qib_pio_copy(piobuf + 2, tmpbuf, plen - 1); in qib_diagpkt_write() 649 __raw_writel(tmpbuf[plen - 1], piobuf + plen + 1); in qib_diagpkt_write() 651 qib_pio_copy(piobuf + 2, tmpbuf, plen); in qib_diagpkt_write() 672 vfree(tmpbuf); in qib_diagpkt_write()
|
/linux/fs/bfs/ |
H A D | inode.c | 292 char *tmpbuf = (char *)get_zeroed_page(GFP_KERNEL); in bfs_dump_imap() local 294 if (!tmpbuf) in bfs_dump_imap() 299 strcat(tmpbuf, "1"); in bfs_dump_imap() 301 strcat(tmpbuf, "0"); in bfs_dump_imap() 303 printf("%s: lasti=%08lx <%s>\n", prefix, BFS_SB(s)->si_lasti, tmpbuf); in bfs_dump_imap() 304 free_page((unsigned long)tmpbuf); in bfs_dump_imap()
|
/linux/net/rxrpc/ |
H A D | rxkad.c | 190 __be32 *tmpbuf; in rxkad_prime_packet_security() local 198 tmpbuf = kmalloc(tmpsize, GFP_KERNEL); in rxkad_prime_packet_security() 199 if (!tmpbuf) in rxkad_prime_packet_security() 204 kfree(tmpbuf); in rxkad_prime_packet_security() 211 tmpbuf[0] = htonl(conn->proto.epoch); in rxkad_prime_packet_security() 212 tmpbuf[1] = htonl(conn->proto.cid); in rxkad_prime_packet_security() 213 tmpbuf[2] = 0; in rxkad_prime_packet_security() 214 tmpbuf[3] = htonl(conn->security_ix); in rxkad_prime_packet_security() 216 sg_init_one(&sg, tmpbuf, tmpsize); in rxkad_prime_packet_security() 223 memcpy(&conn->rxkad.csum_iv, tmpbuf + 2, sizeof(conn->rxkad.csum_iv)); in rxkad_prime_packet_security() [all …]
|
/linux/security/integrity/ima/ |
H A D | ima_api.c | 255 void *tmpbuf; in ima_collect_measurement() local 300 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement() 301 if (!tmpbuf) { in ima_collect_measurement() 306 iint->ima_hash = tmpbuf; in ima_collect_measurement()
|
/linux/sound/usb/usx2y/ |
H A D | usbusx2yaudio.c | 149 urb->transfer_buffer = subs->tmpbuf; in usx2y_urb_play_prepare() 150 memcpy(subs->tmpbuf, runtime->dma_area + in usx2y_urb_play_prepare() 152 memcpy(subs->tmpbuf + len * usx2y->stride, in usx2y_urb_play_prepare() 164 urb->transfer_buffer = subs->tmpbuf; in usx2y_urb_play_prepare() 415 kfree(subs->tmpbuf); in usx2y_urbs_release() 416 subs->tmpbuf = NULL; in usx2y_urbs_release() 436 if (is_playback && !subs->tmpbuf) { /* allocate a temporary buffer for playback */ in usx2y_urbs_allocate() 437 subs->tmpbuf = kcalloc(nr_of_packs(), subs->maxpacksize, GFP_KERNEL); in usx2y_urbs_allocate() 438 if (!subs->tmpbuf) in usx2y_urbs_allocate()
|
/linux/tools/include/nolibc/ |
H A D | stdio.h | 223 char tmpbuf[21]; in vfprintf() 234 char *out = tmpbuf; in vfprintf() 273 outstr = tmpbuf; in vfprintf() 222 char tmpbuf[21]; vfprintf() local
|