| /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/openbmc/meta-openembedded/meta-oe/recipes-support/gsoap/gsoap/ |
| H A D | 0001-Provide-strtod_l-signature-on-non-glibc-linux-musl-s.patch | 34 char *tmpbuf = soap->tmpbuf; 35 size_t tmplen = sizeof(soap->tmpbuf); 42 while ((r = gethostbyname_r(addr, hostent, tmpbuf, tmplen, &hostent, &soap->errnum)) < 0) 44 if (tmpbuf != soap->tmpbuf) 74 while ((r = gethostbyname_r(addr, hostent, tmpbuf, tmplen, &hostent, &soap->errnum)) < 0) 76 if (tmpbuf != soap->tmpbuf)
|
| /openbmc/u-boot/drivers/usb/host/ |
| H A D | xhci.c | 884 uint8_t tmpbuf[4]; in xhci_submit_root() local 970 tmpbuf[0] = 1; /* USB_STATUS_SELFPOWERED */ in xhci_submit_root() 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() 986 tmpbuf[1] |= USB_PORT_STAT_LOW_SPEED >> 8; in xhci_submit_root() 990 tmpbuf[1] |= USB_PORT_STAT_HIGH_SPEED >> 8; in xhci_submit_root() 994 tmpbuf[1] |= USB_PORT_STAT_SUPER_SPEED >> 8; in xhci_submit_root() 999 tmpbuf[0] |= USB_PORT_STAT_ENABLE; in xhci_submit_root() [all …]
|
| H A D | ehci-hcd.c | 670 uint8_t tmpbuf[4]; in ehci_submit_root() local 765 tmpbuf[0] = 1; /* USB_STATUS_SELFPOWERED */ in ehci_submit_root() 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() 780 tmpbuf[0] |= USB_PORT_STAT_OVERCURRENT; in ehci_submit_root() 782 tmpbuf[0] |= USB_PORT_STAT_RESET; in ehci_submit_root() [all …]
|
| /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/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/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()
|
| H A D | smsc95xx.c | 164 ALLOC_CACHE_ALIGN_BUFFER(u32, tmpbuf, 1); in smsc95xx_write_reg() 167 tmpbuf[0] = data; in smsc95xx_write_reg() 172 0, index, tmpbuf, sizeof(data), in smsc95xx_write_reg() 185 ALLOC_CACHE_ALIGN_BUFFER(u32, tmpbuf, 1); in smsc95xx_read_reg() 190 0, index, tmpbuf, sizeof(*data), in smsc95xx_read_reg() 192 *data = tmpbuf[0]; in smsc95xx_read_reg()
|
| /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/qemu/hw/audio/ |
| H A D | gus.c | 186 QEMU_UNINITIALIZED char tmpbuf[4096]; in GUS_read_DMA() local 192 int to_copy = MIN ((size_t) left, sizeof (tmpbuf)); in GUS_read_DMA() 196 copied = k->read_memory(s->isa_dma, nchan, tmpbuf, pos, to_copy); in GUS_read_DMA() 197 gus_dma_transferdata (&s->emu, tmpbuf, copied, left == copied); in GUS_read_DMA()
|
| H A D | cs4231a.c | 531 QEMU_UNINITIALIZED uint8_t tmpbuf[4096]; in cs_write_audio() local 543 if (to_copy > sizeof (tmpbuf)) { in cs_write_audio() 544 to_copy = sizeof (tmpbuf); in cs_write_audio() 547 copied = k->read_memory(s->isa_dma, nchan, tmpbuf, dma_pos, to_copy); in cs_write_audio() 553 linbuf[i] = s->tab[tmpbuf[i]]; in cs_write_audio() 558 copied = AUD_write (s->voice, tmpbuf, copied); in cs_write_audio()
|
| H A D | es1370.c | 607 QEMU_UNINITIALIZED uint8_t tmpbuf[4096]; in es1370_transfer_audio() local 629 to_copy = MIN(to_transfer, sizeof(tmpbuf)); in es1370_transfer_audio() 630 acquired = AUD_read (s->adc_voice, tmpbuf, to_copy); in es1370_transfer_audio() 635 pci_dma_write (&s->dev, addr, tmpbuf, acquired); in es1370_transfer_audio() 647 to_copy = MIN(to_transfer, sizeof(tmpbuf)); in es1370_transfer_audio() 648 pci_dma_read (&s->dev, addr, tmpbuf, to_copy); in es1370_transfer_audio() 649 copied = AUD_write (voice, tmpbuf, to_copy); in es1370_transfer_audio()
|
| H A D | ac97.c | 889 QEMU_UNINITIALIZED uint8_t tmpbuf[4096]; in write_audio() local 903 to_copy = MIN(temp, sizeof(tmpbuf)); in write_audio() 904 pci_dma_read(&s->dev, addr, tmpbuf, to_copy); in write_audio() 905 copied = AUD_write(s->voice_po, tmpbuf, to_copy); in write_audio() 922 s->last_samp = *(uint32_t *)&tmpbuf[to_copy - 4]; in write_audio() 962 QEMU_UNINITIALIZED uint8_t tmpbuf[4096]; in read_audio() local 978 to_copy = MIN(temp, sizeof(tmpbuf)); in read_audio() 979 acquired = AUD_read(voice, tmpbuf, to_copy); in read_audio() 984 pci_dma_write(&s->dev, addr, tmpbuf, acquired); in read_audio()
|
| H A D | via-ac97.c | 178 QEMU_UNINITIALIZED uint8_t tmpbuf[4096]; in out_cb() local 190 to_copy = MIN(temp, sizeof(tmpbuf)); in out_cb() 191 pci_dma_read(&s->dev, c->addr, tmpbuf, to_copy); in out_cb() 192 copied = AUD_write(s->vo, tmpbuf, to_copy); in out_cb()
|
| H A D | sb16.c | 1184 QEMU_UNINITIALIZED uint8_t tmpbuf[4096]; in write_audio() local 1195 if (to_copy > sizeof (tmpbuf)) { in write_audio() 1196 to_copy = sizeof (tmpbuf); in write_audio() 1199 copied = k->read_memory(isa_dma, nchan, tmpbuf, dma_pos, to_copy); in write_audio() 1200 copied = AUD_write (s->voice, tmpbuf, copied); in write_audio()
|
| /openbmc/u-boot/cmd/ |
| H A D | mtdparts.c | 1090 char tmpbuf[32]; in generate_mtdparts() local 1124 memsize_format(tmpbuf, size); in generate_mtdparts() 1125 len = strlen(tmpbuf); in generate_mtdparts() 1128 memcpy(p, tmpbuf, len); in generate_mtdparts() 1138 memsize_format(tmpbuf, offset); in generate_mtdparts() 1139 len = strlen(tmpbuf) + 1; in generate_mtdparts() 1143 memcpy(p, tmpbuf, len - 1); in generate_mtdparts() 1990 char tmpbuf[PART_ADD_DESC_MAXLEN]; local 2019 sprintf(tmpbuf, "%s:%s(%s)%s", 2021 debug("add tmpbuf: %s\n", tmpbuf); [all …]
|
| /openbmc/u-boot/lib/ |
| H A D | sha1.c | 355 unsigned char tmpbuf[20]; in sha1_hmac() local 371 sha1_finish (&ctx, tmpbuf); in sha1_hmac() 375 sha1_update (&ctx, tmpbuf, 20); in sha1_hmac() 380 memset (tmpbuf, 0, 20); in sha1_hmac()
|
| /openbmc/u-boot/fs/fat/ |
| H A D | fat_write.c | 416 ALLOC_CACHE_ALIGN_BUFFER(__u8, tmpbuf, mydata->sect_size); in set_cluster() 421 memcpy(tmpbuf, buffer, mydata->sect_size); in set_cluster() 422 ret = disk_write(startsect++, 1, tmpbuf); in set_cluster() 446 ALLOC_CACHE_ALIGN_BUFFER(__u8, tmpbuf, mydata->sect_size); in set_cluster() 448 memset(tmpbuf, 0, mydata->sect_size); in set_cluster() 449 memcpy(tmpbuf, buffer, size); in set_cluster() 450 ret = disk_write(startsect, 1, tmpbuf); in set_cluster()
|
| H A D | fat.c | 262 ALLOC_CACHE_ALIGN_BUFFER(__u8, tmpbuf, mydata->sect_size); in get_cluster() 267 ret = disk_read(startsect++, 1, tmpbuf); in get_cluster() 273 memcpy(buffer, tmpbuf, mydata->sect_size); in get_cluster() 290 ALLOC_CACHE_ALIGN_BUFFER(__u8, tmpbuf, mydata->sect_size); in get_cluster() 292 ret = disk_read(startsect, 1, tmpbuf); in get_cluster() 298 memcpy(buffer, tmpbuf, size); in get_cluster()
|
| /openbmc/qemu/target/xtensa/ |
| H A D | xtensa-isa.c | 1005 static xtensa_insnbuf tmpbuf; in xtensa_operand_encode() local 1008 if (!tmpbuf) { in xtensa_operand_encode() 1009 tmpbuf = xtensa_insnbuf_alloc(isa); in xtensa_operand_encode() 1010 CHECK_ALLOC(tmpbuf, -1); in xtensa_operand_encode() 1031 (*set_fn)(tmpbuf, *valp); in xtensa_operand_encode() 1032 return (*get_fn)(tmpbuf) != *valp; in xtensa_operand_encode()
|
| /openbmc/u-boot/fs/zfs/ |
| H A D | zfs.c | 635 void *tmpbuf = 0; in dmu_read() local 670 err = zio_read(bp, endian, &tmpbuf, 0, data); in dmu_read() 674 bp_array = tmpbuf; in dmu_read()
|
| /openbmc/qemu/hw/block/ |
| H A D | fdc.c | 1672 uint8_t tmpbuf[FD_SECTOR_LEN]; in fdctrl_transfer_handler() local 1674 k->read_memory(fdctrl->dma, nchan, tmpbuf, fdctrl->data_pos, in fdctrl_transfer_handler() 1676 ret = memcmp(tmpbuf, fdctrl->fifo + rel_pos, len); in fdctrl_transfer_handler()
|
| /openbmc/qemu/ui/ |
| H A D | vnc.c | 3161 pixman_image_t *tmpbuf = NULL; in vnc_refresh_server_surface() local 3192 tmpbuf = qemu_pixman_linebuf_create(VNC_SERVER_FB_FORMAT, w); in vnc_refresh_server_surface() 3210 qemu_pixman_linebuf_fill(tmpbuf, vd->guest.fb, width, 0, y); in vnc_refresh_server_surface() 3211 guest_ptr = (uint8_t *)pixman_image_get_data(tmpbuf); in vnc_refresh_server_surface() 3250 qemu_pixman_image_unref(tmpbuf); in vnc_refresh_server_surface()
|