| /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/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/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/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/security/selinux/ |
| H A D | selinuxfs.c | 123 char tmpbuf[TMPBUFLEN]; in sel_read_enforce() 126 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce() 128 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 199 char tmpbuf[TMPBUFLEN]; in sel_read_handle_unknown() 206 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", handle_unknown); in sel_read_handle_unknown() 207 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_handle_unknown() 289 char tmpbuf[TMPBUFLEN]; in sel_read_policyvers() 292 length = scnprintf(tmpbuf, TMPBUFLEN, "%u", POLICYDB_VERSION_MAX); in sel_read_policyvers() 293 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_policyvers() 320 char tmpbuf[TMPBUFLE in sel_read_mls() 125 char tmpbuf[TMPBUFLEN]; sel_read_enforce() local 201 char tmpbuf[TMPBUFLEN]; sel_read_handle_unknown() local 291 char tmpbuf[TMPBUFLEN]; sel_read_policyvers() local 322 char tmpbuf[TMPBUFLEN]; sel_read_mls() local 638 char tmpbuf[TMPBUFLEN]; sel_read_checkreqprot() local 1300 char tmpbuf[TMPBUFLEN]; sel_read_avc_cache_threshold() local 1625 char tmpbuf[TMPBUFLEN]; sel_read_policycap() local [all...] |
| /linux/security/integrity/ima/ |
| H A D | ima_api.c | 257 void *tmpbuf; in ima_collect_measurement() local 307 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS); in ima_collect_measurement() 308 if (!tmpbuf) { in ima_collect_measurement() 313 iint->ima_hash = tmpbuf; in ima_collect_measurement()
|
| H A D | ima_fs.c | 56 char tmpbuf[32]; /* greater than largest 'long' string value */ in ima_show_htable_violations() 59 len = scnprintf(tmpbuf, sizeof(tmpbuf), "%li\n", atomic_long_read(val)); 60 return simple_read_from_buffer(buf, count, ppos, tmpbuf, len); 44 char tmpbuf[32]; /* greater than largest 'long' string value */ ima_show_htable_value() local
|
| /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 | 186 __be32 tmpbuf[4]; 194 tmpbuf[0] = htonl(conn->proto.epoch); in rxkad_prime_packet_security() 195 tmpbuf[1] = htonl(conn->proto.cid); in rxkad_prime_packet_security() 196 tmpbuf[2] = 0; in rxkad_prime_packet_security() 197 tmpbuf[3] = htonl(conn->security_ix); in rxkad_prime_packet_security() 199 static_assert(sizeof(tmpbuf) % FCRYPT_BSIZE == 0); in rxkad_prime_packet_security() 200 fcrypt_pcbc_encrypt(cipher, /* iv= */ token->kad->session_key, tmpbuf, in rxkad_prime_packet_security() 201 tmpbuf, sizeof(tmpbuf) / FCRYPT_BSIZE); in rxkad_prime_packet_security() 202 memcpy(&conn->rxkad.csum_iv, &tmpbuf[ in rxkad_prime_packet_security() 198 __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 …]
|
| H A D | iscsi_target_nego.c | 1117 char *tmpbuf, *start = NULL, *end = NULL, *key, *value; in iscsi_target_locate_portal() local 1135 tmpbuf = kmemdup_nul(login->req_buf, payload_length, GFP_KERNEL); in iscsi_target_locate_portal() 1136 if (!tmpbuf) { in iscsi_target_locate_portal() 1141 start = tmpbuf; in iscsi_target_locate_portal() 1325 kfree(tmpbuf); in iscsi_target_locate_portal()
|
| /linux/security/ |
| H A D | commoncap.c | 429 char *tmpbuf = NULL; in cap_inode_getsecurity() local 441 size = vfs_getxattr_alloc(idmap, dentry, XATTR_NAME_CAPS, &tmpbuf, in cap_inode_getsecurity() 444 /* gcc11 complains if we don't check for !tmpbuf */ in cap_inode_getsecurity() 445 if (size < 0 || !tmpbuf) in cap_inode_getsecurity() 449 cap = (struct vfs_cap_data *) tmpbuf; in cap_inode_getsecurity() 453 nscap = (struct vfs_ns_cap_data *) tmpbuf; in cap_inode_getsecurity() 486 tmpbuf = NULL; in cap_inode_getsecurity() 517 tmpbuf = NULL; in cap_inode_getsecurity() 522 kfree(tmpbuf); in cap_inode_getsecurity()
|
| /linux/drivers/crypto/qce/ |
| H A D | sha.h | 44 u8 tmpbuf[QCE_SHA_MAX_BLOCKSIZE]; member
|
| /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/drivers/mmc/core/ |
| H A D | sdio_bus.c | 329 kfree(func->tmpbuf); in sdio_release_func() 348 func->tmpbuf = kmalloc(4, GFP_KERNEL); in sdio_alloc_func() 349 if (!func->tmpbuf) { in sdio_alloc_func()
|
| /linux/tools/include/nolibc/ |
| H A D | stdio.h | 257 char tmpbuf[21]; __nolibc_printf() local
|
| /linux/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
| H A D | rtl_btc.h | 25 void rtl_btc_btinfo_notify(struct rtl_priv *rtlpriv, u8 *tmpbuf, u8 length);
|
| H A D | halbtc8192e2ant.h | 157 u8 *tmpbuf, u8 length);
|
| H A D | halbtc8821a1ant.h | 163 u8 *tmpbuf, u8 length);
|
| /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()
|
| /linux/lib/ |
| H A D | dynamic_debug.c | 1008 char *tmpbuf; in ddebug_proc_write() local 1017 tmpbuf = memdup_user_nul(ubuf, len); in ddebug_proc_write() 1018 if (IS_ERR(tmpbuf)) in ddebug_proc_write() 1019 return PTR_ERR(tmpbuf); in ddebug_proc_write() 1022 ret = ddebug_exec_queries(tmpbuf, NULL); in ddebug_proc_write() 1023 kfree(tmpbuf); in ddebug_proc_write()
|
| /linux/drivers/s390/crypto/ |
| H A D | pkey_cca.c | 570 u8 tmpbuf[SECKEYBLOBSIZE]; /* 64 bytes */ in cca_slowpath_key2protkey() local 588 tmpbuf, &tmplen, NULL, pflags); in cca_slowpath_key2protkey() 592 rc = cca_key2protkey(NULL, 0, tmpbuf, tmplen, in cca_slowpath_key2protkey()
|