/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/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()
|
H A D | sdio_bus.c | 307 kfree(func->tmpbuf); in sdio_release_func() 326 func->tmpbuf = kmalloc(4, GFP_KERNEL); in sdio_alloc_func() 327 if (!func->tmpbuf) { in sdio_alloc_func()
|
/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 | 174 u8 *tmpbuf; in pkey_ioctl_clr2protk() local 188 tmpbuf = kzalloc(sizeof(*t) + keylen, GFP_KERNEL); in pkey_ioctl_clr2protk() 189 if (!tmpbuf) { in pkey_ioctl_clr2protk() 193 t = (struct clearkeytoken *)tmpbuf; in pkey_ioctl_clr2protk() 202 tmpbuf, sizeof(*t) + keylen, in pkey_ioctl_clr2protk() 207 kfree_sensitive(tmpbuf); in pkey_ioctl_clr2protk() 332 u8 *tmpbuf; in pkey_ioctl_verifyprotk() local 347 tmpbuf = kzalloc(sizeof(*t), GFP_KERNEL); in pkey_ioctl_verifyprotk() 348 if (!tmpbuf) { in pkey_ioctl_verifyprotk() 352 t = (struct protaeskeytoken *)tmpbuf; in pkey_ioctl_verifyprotk() [all …]
|
/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/spi/ |
H A D | spi-mem.c | 377 u8 *tmpbuf; in spi_mem_exec_op() local 430 tmpbuf = kzalloc(tmpbufsize, GFP_KERNEL | GFP_DMA); in spi_mem_exec_op() 431 if (!tmpbuf) in spi_mem_exec_op() 436 tmpbuf[0] = op->cmd.opcode; in spi_mem_exec_op() 437 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op() 449 tmpbuf[i + 1] = op->addr.val >> in spi_mem_exec_op() 452 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op() 462 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op() 463 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op() 491 kfree(tmpbuf); in spi_mem_exec_op()
|
/linux/sound/usb/usx2y/ |
H A D | usbusx2yaudio.c | 122 urb->transfer_buffer = subs->tmpbuf; in usx2y_urb_play_prepare() 123 memcpy(subs->tmpbuf, runtime->dma_area + in usx2y_urb_play_prepare() 125 memcpy(subs->tmpbuf + len * usx2y->stride, in usx2y_urb_play_prepare() 137 urb->transfer_buffer = subs->tmpbuf; in usx2y_urb_play_prepare() 388 kfree(subs->tmpbuf); in usx2y_urbs_release() 389 subs->tmpbuf = NULL; in usx2y_urbs_release() 409 if (is_playback && !subs->tmpbuf) { /* allocate a temporary buffer for playback */ in usx2y_urbs_allocate() 410 subs->tmpbuf = kcalloc(nr_of_packs(), subs->maxpacksize, GFP_KERNEL); in usx2y_urbs_allocate() 411 if (!subs->tmpbuf) in usx2y_urbs_allocate()
|
H A D | usbusx2y.h | 101 char *tmpbuf; /* temporary buffer for playback */ member
|
/linux/net/rxrpc/ |
H A D | rxkad.c | 198 __be32 *tmpbuf; in rxkad_prime_packet_security() 206 tmpbuf = kmalloc(tmpsize, GFP_KERNEL); in rxkad_prime_packet_security() 207 if (!tmpbuf) in rxkad_prime_packet_security() 212 kfree(tmpbuf); in rxkad_prime_packet_security() 219 tmpbuf[0] = htonl(conn->proto.epoch); in rxkad_prime_packet_security() 220 tmpbuf[1] = htonl(conn->proto.cid); in rxkad_prime_packet_security() 221 tmpbuf[2] = 0; in rxkad_prime_packet_security() 222 tmpbuf[3] = htonl(conn->security_ix); in rxkad_prime_packet_security() 224 sg_init_one(&sg, tmpbuf, tmpsize); in rxkad_prime_packet_security() 231 memcpy(&conn->rxkad.csum_iv, tmpbuf in rxkad_prime_packet_security() 196 __be32 *tmpbuf; rxkad_prime_packet_security() local [all...] |
/linux/drivers/target/iscsi/ |
H A D | iscsi_target_parameters.c | 1290 char tmpbuf[11]; in iscsi_enforce_integrity_rules() local 1291 memset(tmpbuf, 0, sizeof(tmpbuf)); in iscsi_enforce_integrity_rules() 1292 sprintf(tmpbuf, "%u", MaxBurstLength); in iscsi_enforce_integrity_rules() 1293 if (iscsi_update_param_value(param, tmpbuf)) in iscsi_enforce_integrity_rules() 1312 char *tmpbuf, *start = NULL, *end = NULL; in iscsi_decode_text_input() local 1314 tmpbuf = kmemdup_nul(textbuf, length, GFP_KERNEL); in iscsi_decode_text_input() 1315 if (!tmpbuf) { in iscsi_decode_text_input() 1320 start = tmpbuf; in iscsi_decode_text_input() 1334 kfree(tmpbuf); in iscsi_decode_text_input() 1366 kfree(tmpbuf); in iscsi_decode_text_input() [all …]
|
/linux/security/ |
H A D | commoncap.c | 419 char *tmpbuf = NULL; in cap_inode_getsecurity() 431 size = vfs_getxattr_alloc(idmap, dentry, XATTR_NAME_CAPS, &tmpbuf, in cap_inode_getsecurity() 434 /* gcc11 complains if we don't check for !tmpbuf */ in cap_inode_getsecurity() 435 if (size < 0 || !tmpbuf) in cap_inode_getsecurity() 439 cap = (struct vfs_cap_data *) tmpbuf; in cap_inode_getsecurity() 443 nscap = (struct vfs_ns_cap_data *) tmpbuf; in cap_inode_getsecurity() 476 tmpbuf = NULL; in cap_inode_getsecurity() 507 tmpbuf = NULL; in cap_inode_getsecurity() 512 kfree(tmpbuf); in cap_inode_getsecurity() 418 char *tmpbuf = NULL; cap_inode_getsecurity() local
|
/linux/fs/pstore/ |
H A D | zone.c | 484 struct psz_buffer *oldbuf, tmpbuf; in psz_recover_zone() local 502 rcnt = info->read((char *)&tmpbuf, len, zone->off); in psz_recover_zone() 508 if (tmpbuf.sig != zone->buffer->sig) { in psz_recover_zone() 513 if (zone->buffer_size < atomic_read(&tmpbuf.datalen) || in psz_recover_zone() 514 zone->buffer_size < atomic_read(&tmpbuf.start)) { in psz_recover_zone() 521 if (!atomic_read(&tmpbuf.datalen)) { in psz_recover_zone() 524 atomic_read(&tmpbuf.datalen)); in psz_recover_zone() 530 atomic_read(&tmpbuf.datalen)); in psz_recover_zone() 532 len = atomic_read(&tmpbuf.datalen) + sizeof(*oldbuf); in psz_recover_zone() 537 memcpy(oldbuf, &tmpbuf, sizeof(*oldbuf)); in psz_recover_zone()
|
/linux/security/integrity/ima/ |
H A 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/drivers/crypto/qce/ |
H A D | sha.h | 44 u8 tmpbuf[QCE_SHA_MAX_BLOCKSIZE]; member
|
/linux/tools/include/nolibc/ |
H A D | stdio.h | 257 char tmpbuf[21]; in __nolibc_printf() local 278 char *out = tmpbuf; in __nolibc_printf() 317 outstr = tmpbuf; in __nolibc_printf()
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | usb.c | 744 char *tmpbuf = NULL; in brcmf_usb_dl_cmd() local 752 tmpbuf = kmalloc(buflen, GFP_ATOMIC); in brcmf_usb_dl_cmd() 753 if (!tmpbuf) { in brcmf_usb_dl_cmd() 770 (void *) tmpbuf, size, in brcmf_usb_dl_cmd() 785 memcpy(buffer, tmpbuf, buflen); in brcmf_usb_dl_cmd() 788 kfree(tmpbuf); in brcmf_usb_dl_cmd() 792 kfree(tmpbuf); in brcmf_usb_dl_cmd()
|