Home
last modified time | relevance | path

Searched refs:tmpbuf (Results 1 – 25 of 55) sorted by relevance

123

/kernel/linux/linux-5.10/arch/powerpc/boot/
Dmktree.c40 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()
/kernel/linux/linux-5.10/net/sunrpc/
Dsysctl.c65 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 …]
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/hal/
Dsdio_ops.c200 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 …]
/kernel/linux/linux-5.10/drivers/pnp/pnpbios/
Dproc.c68 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()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dsaa6588.c252 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_dp_dual_mode_helper.c66 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()
/kernel/linux/linux-5.10/drivers/oprofile/
Doprofilefs.c56 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()
/kernel/linux/linux-5.10/crypto/
Dpcbc.c49 u8 tmpbuf[MAX_CIPHER_BLOCKSIZE]; in crypto_pcbc_encrypt_inplace() local
52 memcpy(tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace()
55 crypto_xor_cpy(iv, tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace()
116 u8 tmpbuf[MAX_CIPHER_BLOCKSIZE] __aligned(__alignof__(u32)); in crypto_pcbc_decrypt_inplace() local
119 memcpy(tmpbuf, src, bsize); in crypto_pcbc_decrypt_inplace()
122 crypto_xor_cpy(iv, src, tmpbuf, bsize); in crypto_pcbc_decrypt_inplace()
/kernel/linux/linux-5.10/fs/quota/
Dquota_tree.c167 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 …]
/kernel/linux/linux-5.10/drivers/mmc/core/
Dsdio_io.c540 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()
/kernel/linux/linux-5.10/drivers/media/radio/si470x/
Dradio-si470x-i2c.c245 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()
Dradio-si470x-usb.c370 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()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-mem.c288 u8 *tmpbuf; in spi_mem_exec_op() local
323 tmpbuf = kzalloc(tmpbufsize, GFP_KERNEL | GFP_DMA); in spi_mem_exec_op()
324 if (!tmpbuf) in spi_mem_exec_op()
329 tmpbuf[0] = op->cmd.opcode; in spi_mem_exec_op()
330 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op()
341 tmpbuf[i + 1] = op->addr.val >> in spi_mem_exec_op()
344 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op()
353 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
354 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op()
379 kfree(tmpbuf); in spi_mem_exec_op()
Dspi-zynq-qspi.c530 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()
/kernel/linux/linux-5.10/drivers/media/usb/gspca/
Dt613.c329 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 …]
Dpac7311.c539 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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_diag.c554 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()
/kernel/linux/linux-5.10/security/integrity/ima/
Dima_api.c218 void *tmpbuf; in ima_collect_measurement() local
256 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement()
257 if (!tmpbuf) { in ima_collect_measurement()
262 iint->ima_hash = tmpbuf; in ima_collect_measurement()
Dima_fs.c44 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()
/kernel/linux/linux-5.10/fs/bfs/
Dinode.c295 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()
/kernel/linux/linux-5.10/security/selinux/
Dselinuxfs.c128 char tmpbuf[TMPBUFLEN]; in sel_read_enforce() local
131 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce()
133 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce()
206 char tmpbuf[TMPBUFLEN]; in sel_read_handle_unknown() local
213 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", handle_unknown); in sel_read_handle_unknown()
214 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_handle_unknown()
339 char tmpbuf[TMPBUFLEN]; in sel_read_policyvers() local
342 length = scnprintf(tmpbuf, TMPBUFLEN, "%u", POLICYDB_VERSION_MAX); in sel_read_policyvers()
343 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_policyvers()
374 char tmpbuf[TMPBUFLEN]; in sel_read_mls() local
[all …]
/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target_parameters.c1338 char tmpbuf[11]; in iscsi_enforce_integrity_rules() local
1339 memset(tmpbuf, 0, sizeof(tmpbuf)); in iscsi_enforce_integrity_rules()
1340 sprintf(tmpbuf, "%u", MaxBurstLength); in iscsi_enforce_integrity_rules()
1341 if (iscsi_update_param_value(param, tmpbuf)) in iscsi_enforce_integrity_rules()
1360 char *tmpbuf, *start = NULL, *end = NULL; in iscsi_decode_text_input() local
1362 tmpbuf = kzalloc(length + 1, GFP_KERNEL); in iscsi_decode_text_input()
1363 if (!tmpbuf) { in iscsi_decode_text_input()
1368 memcpy(tmpbuf, textbuf, length); in iscsi_decode_text_input()
1369 tmpbuf[length] = '\0'; in iscsi_decode_text_input()
1370 start = tmpbuf; in iscsi_decode_text_input()
[all …]
/kernel/linux/linux-5.10/net/rxrpc/
Drxkad.c107 __be32 *tmpbuf; in rxkad_prime_packet_security() local
115 tmpbuf = kmalloc(tmpsize, GFP_KERNEL); in rxkad_prime_packet_security()
116 if (!tmpbuf) in rxkad_prime_packet_security()
121 kfree(tmpbuf); in rxkad_prime_packet_security()
128 tmpbuf[0] = htonl(conn->proto.epoch); in rxkad_prime_packet_security()
129 tmpbuf[1] = htonl(conn->proto.cid); in rxkad_prime_packet_security()
130 tmpbuf[2] = 0; in rxkad_prime_packet_security()
131 tmpbuf[3] = htonl(conn->security_ix); in rxkad_prime_packet_security()
133 sg_init_one(&sg, tmpbuf, tmpsize); in rxkad_prime_packet_security()
140 memcpy(&conn->csum_iv, tmpbuf + 2, sizeof(conn->csum_iv)); in rxkad_prime_packet_security()
[all …]
/kernel/linux/linux-5.10/sound/usb/usx2y/
Dusbusx2yaudio.c144 urb->transfer_buffer = subs->tmpbuf; in usx2y_urb_play_prepare()
145 memcpy(subs->tmpbuf, runtime->dma_area + in usx2y_urb_play_prepare()
147 memcpy(subs->tmpbuf + len * usx2y->stride, in usx2y_urb_play_prepare()
158 urb->transfer_buffer = subs->tmpbuf; in usx2y_urb_play_prepare()
387 kfree(subs->tmpbuf); in usx2y_urbs_release()
388 subs->tmpbuf = NULL; in usx2y_urbs_release()
406 if (is_playback && NULL == subs->tmpbuf) { /* allocate a temporary buffer for playback */ in usx2y_urbs_allocate()
407 subs->tmpbuf = kcalloc(nr_of_packs(), subs->maxpacksize, GFP_KERNEL); in usx2y_urbs_allocate()
408 if (!subs->tmpbuf) in usx2y_urbs_allocate()
/kernel/linux/linux-5.10/security/
Dcommoncap.c376 char *tmpbuf = NULL; in cap_inode_getsecurity() local
391 &tmpbuf, size, GFP_NOFS); in cap_inode_getsecurity()
394 if (ret < 0 || !tmpbuf) { in cap_inode_getsecurity()
400 cap = (struct vfs_cap_data *) tmpbuf; in cap_inode_getsecurity()
404 nscap = (struct vfs_ns_cap_data *) tmpbuf; in cap_inode_getsecurity()
434 tmpbuf = NULL; in cap_inode_getsecurity()
465 tmpbuf = NULL; in cap_inode_getsecurity()
470 kfree(tmpbuf); in cap_inode_getsecurity()

123