/Linux-v6.1/arch/powerpc/boot/ |
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-v6.1/net/sunrpc/ |
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 …]
|
/Linux-v6.1/drivers/staging/rtl8723bs/hal/ |
D | sdio_ops.c | 182 u8 *tmpbuf; in sdio_read32() local 184 tmpbuf = rtw_malloc(8); in sdio_read32() 185 if (!tmpbuf) in sdio_read32() 189 sd_read(intfhdl, ftaddr, 8, tmpbuf); in sdio_read32() 190 memcpy(&le_tmp, tmpbuf + shift, 4); in sdio_read32() 193 kfree(tmpbuf); in sdio_read32() 226 u8 *tmpbuf; in sdio_readN() local 231 tmpbuf = rtw_malloc(n); in sdio_readN() 232 if (!tmpbuf) in sdio_readN() 235 err = sd_read(intfhdl, ftaddr, n, tmpbuf); in sdio_readN() [all …]
|
/Linux-v6.1/drivers/pnp/pnpbios/ |
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-v6.1/drivers/media/i2c/ |
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-v6.1/drivers/gpu/drm/display/ |
D | drm_dp_dual_mode_helper.c | 67 char *tmpbuf = NULL; in drm_dp_dual_mode_read() local 92 tmpbuf = kmalloc(size + offset, GFP_KERNEL); in drm_dp_dual_mode_read() 93 if (!tmpbuf) in drm_dp_dual_mode_read() 96 msgs[1].buf = tmpbuf; in drm_dp_dual_mode_read() 100 if (tmpbuf) in drm_dp_dual_mode_read() 101 memcpy(buffer, tmpbuf + offset, size); in drm_dp_dual_mode_read() 103 kfree(tmpbuf); in drm_dp_dual_mode_read()
|
/Linux-v6.1/crypto/ |
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-v6.1/fs/quota/ |
D | quota_tree.c | 163 char *tmpbuf = kmalloc(info->dqi_usable_bs, GFP_NOFS); in remove_free_dqentry() local 169 if (!tmpbuf) in remove_free_dqentry() 172 err = read_blk(info, nextblk, tmpbuf); in remove_free_dqentry() 175 ((struct qt_disk_dqdbheader *)tmpbuf)->dqdh_prev_free = in remove_free_dqentry() 177 err = write_blk(info, nextblk, tmpbuf); in remove_free_dqentry() 182 err = read_blk(info, prevblk, tmpbuf); in remove_free_dqentry() 185 ((struct qt_disk_dqdbheader *)tmpbuf)->dqdh_next_free = in remove_free_dqentry() 187 err = write_blk(info, prevblk, tmpbuf); in remove_free_dqentry() 194 kfree(tmpbuf); in remove_free_dqentry() 202 kfree(tmpbuf); in remove_free_dqentry() [all …]
|
/Linux-v6.1/drivers/mmc/core/ |
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-v6.1/arch/x86/kernel/fpu/ |
D | regset.c | 146 struct xregs_state *tmpbuf = NULL; in xstateregs_set() local 159 tmpbuf = vmalloc(count); in xstateregs_set() 160 if (!tmpbuf) in xstateregs_set() 163 if (copy_from_user(tmpbuf, ubuf, count)) { in xstateregs_set() 170 ret = copy_uabi_from_kernel_to_xstate(fpu->fpstate, kbuf ?: tmpbuf); in xstateregs_set() 173 vfree(tmpbuf); in xstateregs_set()
|
/Linux-v6.1/drivers/media/radio/si470x/ |
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()
|
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-v6.1/drivers/media/usb/gspca/ |
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 …]
|
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-v6.1/drivers/spi/ |
D | spi-mem.c | 318 u8 *tmpbuf; in spi_mem_exec_op() local 353 tmpbuf = kzalloc(tmpbufsize, GFP_KERNEL | GFP_DMA); in spi_mem_exec_op() 354 if (!tmpbuf) in spi_mem_exec_op() 359 tmpbuf[0] = op->cmd.opcode; in spi_mem_exec_op() 360 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op() 371 tmpbuf[i + 1] = op->addr.val >> in spi_mem_exec_op() 374 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op() 383 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op() 384 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op() 410 kfree(tmpbuf); in spi_mem_exec_op()
|
D | spi-zynq-qspi.c | 530 u8 *tmpbuf; in zynq_qspi_exec_mem_op() local 572 tmpbuf = kzalloc(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-v6.1/drivers/infiniband/hw/qib/ |
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-v6.1/tools/include/nolibc/ |
D | stdio.h | 177 char tmpbuf[21]; in vfprintf() local 188 char *out = tmpbuf; in vfprintf() 227 outstr = tmpbuf; in vfprintf()
|
/Linux-v6.1/security/integrity/ima/ |
D | ima_api.c | 250 void *tmpbuf; in ima_collect_measurement() local 299 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement() 300 if (!tmpbuf) { in ima_collect_measurement() 305 iint->ima_hash = tmpbuf; in ima_collect_measurement()
|
D | ima_fs.c | 44 char tmpbuf[32]; /* greater than largest 'long' string value */ in ima_show_htable_value() local 47 len = scnprintf(tmpbuf, sizeof(tmpbuf), "%li\n", atomic_long_read(val)); in ima_show_htable_value() 48 return simple_read_from_buffer(buf, count, ppos, tmpbuf, len); in ima_show_htable_value()
|
/Linux-v6.1/fs/bfs/ |
D | inode.c | 295 char *tmpbuf = (char *)get_zeroed_page(GFP_KERNEL); in bfs_dump_imap() local 297 if (!tmpbuf) in bfs_dump_imap() 302 strcat(tmpbuf, "1"); in bfs_dump_imap() 304 strcat(tmpbuf, "0"); in bfs_dump_imap() 306 printf("%s: lasti=%08lx <%s>\n", prefix, BFS_SB(s)->si_lasti, tmpbuf); in bfs_dump_imap() 307 free_page((unsigned long)tmpbuf); in bfs_dump_imap()
|
/Linux-v6.1/security/selinux/ |
D | selinuxfs.c | 129 char tmpbuf[TMPBUFLEN]; in sel_read_enforce() local 132 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce() 134 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 209 char tmpbuf[TMPBUFLEN]; in sel_read_handle_unknown() local 216 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", handle_unknown); in sel_read_handle_unknown() 217 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_handle_unknown() 344 char tmpbuf[TMPBUFLEN]; in sel_read_policyvers() local 347 length = scnprintf(tmpbuf, TMPBUFLEN, "%u", POLICYDB_VERSION_MAX); in sel_read_policyvers() 348 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_policyvers() 379 char tmpbuf[TMPBUFLEN]; in sel_read_mls() local [all …]
|
/Linux-v6.1/sound/usb/usx2y/ |
D | usbusx2yaudio.c | 147 urb->transfer_buffer = subs->tmpbuf; in usx2y_urb_play_prepare() 148 memcpy(subs->tmpbuf, runtime->dma_area + in usx2y_urb_play_prepare() 150 memcpy(subs->tmpbuf + len * usx2y->stride, in usx2y_urb_play_prepare() 162 urb->transfer_buffer = subs->tmpbuf; in usx2y_urb_play_prepare() 407 kfree(subs->tmpbuf); in usx2y_urbs_release() 408 subs->tmpbuf = NULL; in usx2y_urbs_release() 428 if (is_playback && !subs->tmpbuf) { /* allocate a temporary buffer for playback */ in usx2y_urbs_allocate() 429 subs->tmpbuf = kcalloc(nr_of_packs(), subs->maxpacksize, GFP_KERNEL); in usx2y_urbs_allocate() 430 if (!subs->tmpbuf) in usx2y_urbs_allocate()
|
/Linux-v6.1/security/ |
D | commoncap.c | 386 char *tmpbuf = NULL; in cap_inode_getsecurity() local 401 &tmpbuf, size, GFP_NOFS); in cap_inode_getsecurity() 404 if (ret < 0 || !tmpbuf) { in cap_inode_getsecurity() 410 cap = (struct vfs_cap_data *) tmpbuf; in cap_inode_getsecurity() 414 nscap = (struct vfs_ns_cap_data *) tmpbuf; in cap_inode_getsecurity() 447 tmpbuf = NULL; in cap_inode_getsecurity() 478 tmpbuf = NULL; in cap_inode_getsecurity() 483 kfree(tmpbuf); in cap_inode_getsecurity()
|
/Linux-v6.1/net/rxrpc/ |
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 …]
|