Searched refs:tmpbuf (Results 1 - 25 of 53) sorted by last modified time

123

/linux-master/net/rxrpc/
H A Drxkad.c190 __be32 *tmpbuf; local
198 tmpbuf = kmalloc(tmpsize, GFP_KERNEL);
199 if (!tmpbuf)
204 kfree(tmpbuf);
211 tmpbuf[0] = htonl(conn->proto.epoch);
212 tmpbuf[1] = htonl(conn->proto.cid);
213 tmpbuf[2] = 0;
214 tmpbuf[3] = htonl(conn->security_ix);
216 sg_init_one(&sg, tmpbuf, tmpsize);
223 memcpy(&conn->rxkad.csum_iv, tmpbuf
[all...]
/linux-master/drivers/gpu/drm/display/
H A Ddrm_dp_dual_mode_helper.c67 char *tmpbuf = NULL; local
92 tmpbuf = kmalloc(size + offset, GFP_KERNEL);
93 if (!tmpbuf)
96 msgs[1].buf = tmpbuf;
100 if (tmpbuf)
101 memcpy(buffer, tmpbuf + offset, size);
103 kfree(tmpbuf);
/linux-master/security/selinux/
H A Dselinuxfs.c126 char tmpbuf[TMPBUFLEN]; local
129 length = scnprintf(tmpbuf, TMPBUFLEN, "%d",
131 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length);
202 char tmpbuf[TMPBUFLEN]; local
209 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", handle_unknown);
210 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length);
314 char tmpbuf[TMPBUFLEN]; local
317 length = scnprintf(tmpbuf, TMPBUFLEN, "%u", POLICYDB_VERSION_MAX);
318 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length);
345 char tmpbuf[TMPBUFLE local
668 char tmpbuf[TMPBUFLEN]; local
1410 char tmpbuf[TMPBUFLEN]; local
1750 char tmpbuf[TMPBUFLEN]; local
[all...]
/linux-master/drivers/spi/
H A Dspi-mem.c361 u8 *tmpbuf; local
400 tmpbuf = kzalloc(tmpbufsize, GFP_KERNEL | GFP_DMA);
401 if (!tmpbuf)
406 tmpbuf[0] = op->cmd.opcode;
407 xfers[xferpos].tx_buf = tmpbuf;
418 tmpbuf[i + 1] = op->addr.val >>
421 xfers[xferpos].tx_buf = tmpbuf + 1;
430 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes);
431 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1;
457 kfree(tmpbuf);
[all...]
H A Dspi-zynq-qspi.c530 u8 *tmpbuf; local
572 tmpbuf = kzalloc(op->dummy.nbytes, GFP_KERNEL);
573 if (!tmpbuf)
576 memset(tmpbuf, 0xff, op->dummy.nbytes);
578 xqspi->txbuf = tmpbuf;
589 kfree(tmpbuf);
/linux-master/drivers/media/usb/s2255/
H A Ds2255drv.c596 const char *tmpbuf; local
605 tmpbuf =
610 planar422p_to_yuv_packed((const unsigned char *)tmpbuf,
616 memcpy(vbuf, tmpbuf, vc->width * vc->height);
621 memcpy(vbuf, tmpbuf, jpgsize);
624 memcpy(vbuf, tmpbuf,
/linux-master/crypto/
H A Dpcbc.c50 u8 tmpbuf[MAX_CIPHER_BLOCKSIZE]; local
53 memcpy(tmpbuf, src, bsize);
56 crypto_xor_cpy(iv, tmpbuf, src, bsize);
117 u8 tmpbuf[MAX_CIPHER_BLOCKSIZE] __aligned(__alignof__(u32));
120 memcpy(tmpbuf, src, bsize);
123 crypto_xor_cpy(iv, src, tmpbuf, bsize);
/linux-master/arch/s390/kvm/
H A Dkvm-s390.c2865 void *tmpbuf = NULL; local
2874 tmpbuf = vmalloc(mop->size);
2875 if (!tmpbuf)
2892 r = access_guest_abs_with_key(kvm, mop->gaddr, tmpbuf,
2896 if (copy_to_user(uaddr, tmpbuf, mop->size))
2899 if (copy_from_user(tmpbuf, uaddr, mop->size)) {
2903 r = access_guest_abs_with_key(kvm, mop->gaddr, tmpbuf,
2910 vfree(tmpbuf);
5365 void *tmpbuf = NULL; local
5378 tmpbuf
[all...]
/linux-master/sound/core/
H A Dump.c736 char tmpbuf[offsetof(struct snd_ump_block_info, name)]; local
744 memcpy(tmpbuf, &fb->info, sizeof(tmpbuf));
745 fill_fb_info(ump, (struct snd_ump_block_info *)tmpbuf, buf);
746 return memcmp(&fb->info, tmpbuf, sizeof(tmpbuf)) != 0;
/linux-master/lib/
H A Ddynamic_debug.c1003 char *tmpbuf; local
1012 tmpbuf = memdup_user_nul(ubuf, len);
1013 if (IS_ERR(tmpbuf))
1014 return PTR_ERR(tmpbuf);
1017 ret = ddebug_exec_queries(tmpbuf, NULL);
1018 kfree(tmpbuf);
/linux-master/fs/quota/
H A Dquota_tree.c169 char *tmpbuf = kmalloc(info->dqi_usable_bs, GFP_KERNEL); local
175 if (!tmpbuf)
178 err = read_blk(info, nextblk, tmpbuf);
181 ((struct qt_disk_dqdbheader *)tmpbuf)->dqdh_prev_free =
183 err = write_blk(info, nextblk, tmpbuf);
188 err = read_blk(info, prevblk, tmpbuf);
191 ((struct qt_disk_dqdbheader *)tmpbuf)->dqdh_next_free =
193 err = write_blk(info, prevblk, tmpbuf);
200 kfree(tmpbuf);
208 kfree(tmpbuf);
216 char *tmpbuf = kmalloc(info->dqi_usable_bs, GFP_KERNEL); local
[all...]
/linux-master/drivers/mmc/core/
H A Dsdio_bus.c304 kfree(func->tmpbuf);
323 func->tmpbuf = kmalloc(4, GFP_KERNEL);
324 if (!func->tmpbuf) {
/linux-master/security/integrity/ima/
H A Dima_api.c253 void *tmpbuf; local
298 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS);
299 if (!tmpbuf) {
304 iint->ima_hash = tmpbuf;
/linux-master/fs/pstore/
H A Dzone.c484 struct psz_buffer *oldbuf, tmpbuf; local
502 rcnt = info->read((char *)&tmpbuf, len, zone->off);
508 if (tmpbuf.sig != zone->buffer->sig) {
513 if (zone->buffer_size < atomic_read(&tmpbuf.datalen) ||
514 zone->buffer_size < atomic_read(&tmpbuf.start)) {
521 if (!atomic_read(&tmpbuf.datalen)) {
524 atomic_read(&tmpbuf.datalen));
530 atomic_read(&tmpbuf.datalen));
532 len = atomic_read(&tmpbuf.datalen) + sizeof(*oldbuf);
537 memcpy(oldbuf, &tmpbuf, sizeo
[all...]
/linux-master/fs/bfs/
H A Dinode.c292 char *tmpbuf = (char *)get_zeroed_page(GFP_KERNEL); local
294 if (!tmpbuf)
299 strcat(tmpbuf, "1");
301 strcat(tmpbuf, "0");
303 printf("%s: lasti=%08lx <%s>\n", prefix, BFS_SB(s)->si_lasti, tmpbuf);
304 free_page((unsigned long)tmpbuf);
/linux-master/drivers/s390/crypto/
H A Dpkey_api.c463 u8 *tmpbuf = NULL; local
486 tmpbuf = kmalloc(tmpbuflen, GFP_ATOMIC);
487 if (!tmpbuf)
490 rc = cca_clr2seckey(0xFFFF, 0xFFFF, t->keytype, t->clearkey, tmpbuf);
493 rc = pkey_skey2pkey(tmpbuf,
501 tmpbuf, &tmpbuflen);
504 rc = pkey_ep11key2pkey(tmpbuf, tmpbuflen,
513 kfree(tmpbuf);
/linux-master/fs/proc/
H A Dbase.c1255 char tmpbuf[TMPBUFLEN]; local
1259 length = scnprintf(tmpbuf, TMPBUFLEN, "%u",
1263 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length);
1321 char tmpbuf[TMPBUFLEN]; local
1325 length = scnprintf(tmpbuf, TMPBUFLEN, "%u",
1328 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length);
/linux-master/tools/perf/util/
H A Ddso.c320 char tmpbuf[] = KMOD_DECOMP_NAME; local
339 fd = mkstemp(tmpbuf);
352 unlink(tmpbuf);
355 strlcpy(pathname, tmpbuf, len);
/linux-master/drivers/usb/gadget/udc/
H A Datmel_usba_udc.c90 char tmpbuf[38]; local
97 len = scnprintf(tmpbuf, sizeof(tmpbuf),
113 remaining = __copy_to_user(buf, tmpbuf, len);
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dusb.c751 char *tmpbuf; local
757 tmpbuf = kmalloc(buflen, GFP_ATOMIC);
758 if (!tmpbuf)
773 (void *) tmpbuf, size,
787 memcpy(buffer, tmpbuf, buflen);
791 kfree(tmpbuf);
/linux-master/tools/include/nolibc/
H A Dstdio.h222 char tmpbuf[21]; local
233 char *out = tmpbuf;
272 outstr = tmpbuf;
/linux-master/security/
H A Dcommoncap.c390 char *tmpbuf = NULL; local
402 size = vfs_getxattr_alloc(idmap, dentry, XATTR_NAME_CAPS, &tmpbuf,
405 /* gcc11 complains if we don't check for !tmpbuf */
406 if (size < 0 || !tmpbuf)
410 cap = (struct vfs_cap_data *) tmpbuf;
414 nscap = (struct vfs_ns_cap_data *) tmpbuf;
447 tmpbuf = NULL;
478 tmpbuf = NULL;
483 kfree(tmpbuf);
/linux-master/drivers/crypto/bcm/
H A Dcipher.c2093 u8 *tmpbuf; local
2112 tmpbuf = kmalloc(req->nbytes, gfp);
2113 if (!tmpbuf)
2116 if (sg_copy_to_buffer(req->src, nents, tmpbuf, req->nbytes) !=
2118 kfree(tmpbuf);
2123 ret = crypto_shash_update(ctx->shash, tmpbuf, req->nbytes);
2124 kfree(tmpbuf);
2187 u8 *tmpbuf; local
2208 tmpbuf = kmalloc(req->nbytes, gfp);
2209 if (!tmpbuf) {
[all...]
/linux-master/sound/usb/usx2y/
H A Dusbusx2y.h75 char *tmpbuf; /* temporary buffer for playback */ member in struct:snd_usx2y_substream
H A Dusbusx2yaudio.c147 urb->transfer_buffer = subs->tmpbuf;
148 memcpy(subs->tmpbuf, runtime->dma_area +
150 memcpy(subs->tmpbuf + len * usx2y->stride,
162 urb->transfer_buffer = subs->tmpbuf;
407 kfree(subs->tmpbuf);
408 subs->tmpbuf = NULL;
428 if (is_playback && !subs->tmpbuf) { /* allocate a temporary buffer for playback */
429 subs->tmpbuf = kcalloc(nr_of_packs(), subs->maxpacksize, GFP_KERNEL);
430 if (!subs->tmpbuf)

Completed in 299 milliseconds

123