/openbmc/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()
|
/openbmc/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 …]
|
/openbmc/linux/drivers/staging/rtl8723bs/hal/ |
H A D | sdio_ops.c | 182 u8 *tmpbuf; in sdio_read32() local 185 if (!tmpbuf) in sdio_read32() 226 u8 *tmpbuf; in sdio_readN() local 232 if (!tmpbuf) in sdio_readN() 329 u8 *tmpbuf; in sdio_writeN() local 494 u8 *tmpbuf; in _sdio_local_read() local 507 if (!tmpbuf) in _sdio_local_read() 532 u8 *tmpbuf; in sdio_local_read() local 548 if (!tmpbuf) in sdio_local_read() 573 u8 *tmpbuf; in sdio_local_write() local [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/gsoap/gsoap/ |
H A D | 0001-Simplify-check-for-gethostbyname_r.patch | 28 while ((r = gethostbyname_r(addr, hostent, tmpbuf, tmplen, &hostent, &soap->errnum)) < 0) 30 if (tmpbuf != soap->tmpbuf) 32 if (!tmpbuf) 36 - hostent = gethostbyname_r(addr, hostent, tmpbuf, tmplen, &soap->errnum); 60 char *tmpbuf = soap->tmpbuf; 61 size_t tmplen = sizeof(soap->tmpbuf); 68 while ((r = gethostbyname_r(addr, hostent, tmpbuf, tmplen, &hostent, &soap->errnum)) < 0) 70 if (tmpbuf != soap->tmpbuf) 72 if (!tmpbuf) 76 - hostent = gethostbyname_r(addr, hostent, tmpbuf, tmplen, &soap->errnum);
|
/openbmc/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()
|
/openbmc/u-boot/disk/ |
H A D | part_iso.c | 26 static unsigned char tmpbuf[CD_SECTSIZE] __aligned(ARCH_DMA_MINALIGN); 55 iso_boot_rec_t *pbr = (iso_boot_rec_t *)tmpbuf; /* boot record */ in part_get_info_iso_verb() 56 iso_pri_rec_t *ppr = (iso_pri_rec_t *)tmpbuf; /* primary desc */ in part_get_info_iso_verb() 57 iso_val_entry_t *pve = (iso_val_entry_t *)tmpbuf; in part_get_info_iso_verb() 65 if (iso_dread(dev_desc, PVD_OFFSET, 1, (ulong *)tmpbuf) != 1) in part_get_info_iso_verb() 85 if (iso_dread(dev_desc, i, 1, (ulong *)tmpbuf) != 1) in part_get_info_iso_verb() 105 if (iso_dread(dev_desc, bootaddr, 1, (ulong *)tmpbuf) != 1) { in part_get_info_iso_verb() 112 chksumbuf = (unsigned short *)tmpbuf; in part_get_info_iso_verb() 143 pide=(iso_init_def_entry_t *)&tmpbuf[offset]; in part_get_info_iso_verb()
|
/openbmc/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()
|
/openbmc/linux/drivers/gpu/drm/display/ |
H A 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()
|
/openbmc/linux/crypto/ |
H A 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()
|
/openbmc/linux/fs/quota/ |
H A D | quota_tree.c | 175 if (!tmpbuf) in remove_free_dqentry() 178 err = read_blk(info, nextblk, tmpbuf); 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() 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() 220 if (!tmpbuf) in insert_free_dqentry() 228 err = read_blk(info, info->dqi_free_entry, tmpbuf); in insert_free_dqentry() 237 kfree(tmpbuf); in insert_free_dqentry() [all …]
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | xhci.c | 884 uint8_t tmpbuf[4]; in xhci_submit_root() local 971 tmpbuf[1] = 0; in xhci_submit_root() 972 srcptr = tmpbuf; in xhci_submit_root() 976 memset(tmpbuf, 0, 4); in xhci_submit_root() 979 tmpbuf[0] |= USB_PORT_STAT_CONNECTION; in xhci_submit_root() 999 tmpbuf[0] |= USB_PORT_STAT_ENABLE; in xhci_submit_root() 1001 tmpbuf[0] |= USB_PORT_STAT_SUSPEND; in xhci_submit_root() 1005 tmpbuf[0] |= USB_PORT_STAT_RESET; in xhci_submit_root() 1020 tmpbuf[2] |= USB_PORT_STAT_C_ENABLE; in xhci_submit_root() 1024 tmpbuf[2] |= USB_PORT_STAT_C_RESET; in xhci_submit_root() [all …]
|
H A D | ehci-hcd.c | 670 uint8_t tmpbuf[4]; in ehci_submit_root() local 766 tmpbuf[1] = 0; in ehci_submit_root() 767 srcptr = tmpbuf; in ehci_submit_root() 771 memset(tmpbuf, 0, 4); in ehci_submit_root() 774 tmpbuf[0] |= USB_PORT_STAT_CONNECTION; in ehci_submit_root() 776 tmpbuf[0] |= USB_PORT_STAT_ENABLE; in ehci_submit_root() 778 tmpbuf[0] |= USB_PORT_STAT_SUSPEND; in ehci_submit_root() 782 tmpbuf[0] |= USB_PORT_STAT_RESET; in ehci_submit_root() 805 tmpbuf[2] |= USB_PORT_STAT_C_ENABLE; in ehci_submit_root() 809 tmpbuf[2] |= USB_PORT_STAT_C_RESET; in ehci_submit_root() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | spi-mem.c | 268 tmpbuf = kzalloc(tmpbufsize, GFP_KERNEL | GFP_DMA); in spi_mem_exec_op() 269 if (!tmpbuf) in spi_mem_exec_op() 274 tmpbuf[0] = op->cmd.opcode; in spi_mem_exec_op() 275 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op() 286 tmpbuf[i + 1] = op->addr.val >> in spi_mem_exec_op() 289 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op() 298 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op() 299 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op() 324 kfree(tmpbuf); in spi_mem_exec_op()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/rarpd/rarpd/ |
H A D | 0003-rarpd.c-bug-fix.patch | 202 + char tmpbuf[16*3]; 214 - char tmpbuf[16*3]; 215 - char *ptr = tmpbuf; 224 - syslog(LOG_INFO, "RARP request from %s on if%d", tmpbuf, sll.sll_ifindex); 225 + ptr = tmpbuf; 226 + snprintf(tmpbuf, 2, "%02x", sll.sll_addr[0]); 227 + for (ptr=tmpbuf+2, i=1; i<sll.sll_halen; i++) { 240 + syslog(LOG_INFO, "RARP request from %s on %s", tmpbuf, tmpname); 249 + syslog(LOG_INFO, "RARP response to %s %s on %s", tmpbuf,
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/u-boot/drivers/usb/eth/ |
H A D | lan7x.c | 22 ALLOC_CACHE_ALIGN_BUFFER(u32, tmpbuf, 1); in lan7x_write_reg() 25 tmpbuf[0] = data; in lan7x_write_reg() 30 0, index, tmpbuf, sizeof(data), in lan7x_write_reg() 43 ALLOC_CACHE_ALIGN_BUFFER(u32, tmpbuf, 1); in lan7x_read_reg() 48 0, index, tmpbuf, sizeof(*data), in lan7x_read_reg() 50 *data = tmpbuf[0]; in lan7x_read_reg()
|
/openbmc/linux/arch/x86/kernel/fpu/ |
H A D | regset.c | 147 struct xregs_state *tmpbuf = NULL; in xstateregs_set() local 160 tmpbuf = vmalloc(count); in xstateregs_set() 161 if (!tmpbuf) in xstateregs_set() 164 if (copy_from_user(tmpbuf, ubuf, count)) { in xstateregs_set() 171 ret = copy_uabi_from_kernel_to_xstate(fpu->fpstate, kbuf ?: tmpbuf, &target->thread.pkru); in xstateregs_set() 174 vfree(tmpbuf); in xstateregs_set()
|
/openbmc/linux/drivers/spi/ |
H A 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()
|
/openbmc/u-boot/common/ |
H A D | usb.c | 922 ALLOC_CACHE_ALIGN_BUFFER(unsigned char, tmpbuf, USB_BUFSIZ); in get_descriptor_len() 925 desc = (struct usb_device_descriptor *)tmpbuf; in get_descriptor_len() 939 memcpy(&dev->descriptor, tmpbuf, sizeof(dev->descriptor)); in get_descriptor_len() 1070 unsigned char *tmpbuf = NULL; in usb_select_config() local 1094 tmpbuf = (unsigned char *)malloc_cache_aligned(err); in usb_select_config() 1095 if (!tmpbuf) in usb_select_config() 1098 err = usb_get_configuration_no(dev, 0, tmpbuf, err); in usb_select_config() 1104 free(tmpbuf); in usb_select_config() 1107 usb_parse_config(dev, tmpbuf, 0); in usb_select_config() 1108 free(tmpbuf); in usb_select_config()
|
/openbmc/qemu/hw/net/ |
H A D | xen_nic.c | 134 void *tmpbuf = NULL; in net_tx_packets() local 200 if (!tmpbuf) { in net_tx_packets() 201 tmpbuf = g_malloc(XEN_PAGE_SIZE); in net_tx_packets() 203 memcpy(tmpbuf, page + txreq.offset, txreq.size); in net_tx_packets() 204 net_checksum_calculate(tmpbuf, txreq.size, CSUM_ALL); in net_tx_packets() 205 qemu_send_packet(qemu_get_queue(netdev->nic), tmpbuf, in net_tx_packets() 220 g_free(tmpbuf); in net_tx_packets()
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A 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()
|