Home
last modified time | relevance | path

Searched refs:buf1 (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest_util.c105 int efi_st_memcmp(const void *buf1, const void *buf2, size_t length) in efi_st_memcmp() argument
107 const u8 *pos1 = buf1; in efi_st_memcmp()
119 int efi_st_strcmp_16_8(const u16 *buf1, const char *buf2) in efi_st_strcmp_16_8() argument
121 for (; *buf1 || *buf2; ++buf1, ++buf2) { in efi_st_strcmp_16_8()
122 if (*buf1 != *buf2) in efi_st_strcmp_16_8()
123 return *buf1 - *buf2; in efi_st_strcmp_16_8()
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dcpu.c46 char buf1[32], buf2[32]; in checkcpu() local
172 strmhz(buf1, sysinfo.freq_processor[core])); in checkcpu()
180 strmhz(buf1, sysinfo.freq_processor_dsp[dsp_core])); in checkcpu()
184 printf("\n CCB:%-4s MHz,", strmhz(buf1, sysinfo.freq_systembus)); in checkcpu()
191 strmhz(buf1, sysinfo.freq_ddrbus/2), in checkcpu()
196 strmhz(buf1, sysinfo.freq_ddrbus/2), in checkcpu()
203 strmhz(buf1, sysinfo.freq_ddrbus/2), in checkcpu()
209 strmhz(buf1, sysinfo.freq_ddrbus/2), in checkcpu()
215 strmhz(buf1, sysinfo.freq_ddrbus/2), in checkcpu()
223 printf("LBC:%-4s MHz\n", strmhz(buf1, sysinfo.freq_localbus)); in checkcpu()
[all …]
/openbmc/u-boot/arch/m68k/cpu/mcf5445x/
H A Dcpu.c81 char buf1[32], buf2[32], buf3[32]; in print_cpuinfo() local
86 strmhz(buf1, gd->cpu_clk), in print_cpuinfo()
91 strmhz(buf1, gd->pci_clk), in print_cpuinfo()
96 strmhz(buf1, gd->arch.inp_clk), in print_cpuinfo()
/openbmc/u-boot/arch/powerpc/cpu/mpc86xx/
H A Dcpu.c36 char buf1[32], buf2[32]; in checkcpu() local
75 printf(" CPU:%-4s MHz, ", strmhz(buf1, sysinfo.freq_processor)); in checkcpu()
76 printf("MPX:%-4s MHz\n", strmhz(buf1, sysinfo.freq_systembus)); in checkcpu()
78 strmhz(buf1, sysinfo.freq_systembus / 2), in checkcpu()
82 printf("LBC:%-4s MHz\n", strmhz(buf1, sysinfo.freq_localbus)); in checkcpu()
/openbmc/u-boot/arch/m68k/cpu/mcf5227x/
H A Dcpu.c48 char buf1[32], buf2[32], buf3[32]; in print_cpuinfo() local
53 strmhz(buf1, gd->cpu_clk), in print_cpuinfo()
57 strmhz(buf1, gd->arch.inp_clk), in print_cpuinfo()
/openbmc/phosphor-networkd/test/
H A Dtest_util.cpp23 auto buf1 = stdplus::raw::asView<char>(ip1); in TEST() local
24 auto res1 = addrFromBuf(AF_INET, buf1); in TEST()
28 EXPECT_THROW(addrFromBuf(AF_UNSPEC, buf1), std::invalid_argument); in TEST()
/openbmc/u-boot/include/
H A Defi_selftest.h104 int efi_st_memcmp(const void *buf1, const void *buf2, size_t length);
113 int efi_st_strcmp_16_8(const u16 *buf1, const char *buf2);
H A Denvironment.h278 int env_import_redund(const char *buf1, int buf1_status,
/openbmc/qemu/net/
H A Dstream_data.c98 QEMU_UNINITIALIZED char buf1[NET_BUFSIZE]; in net_stream_data_send() local
101 size = qio_channel_read(d->ioc, buf1, sizeof(buf1), NULL); in net_stream_data_send()
127 buf = buf1; in net_stream_data_send()
H A Dsocket.c160 QEMU_UNINITIALIZED uint8_t buf1[NET_BUFSIZE]; in net_socket_send() local
163 size = recv(s->fd, buf1, sizeof(buf1), 0); in net_socket_send()
184 buf = buf1; in net_socket_send()
/openbmc/u-boot/test/lib/
H A Dstring.c133 u8 buf1[BUFLEN]; in lib_memcpy() local
138 init_buffer(buf1, MASK); in lib_memcpy()
144 ptr = memcpy(buf2 + offset2, buf1 + offset1, in lib_memcpy()
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dcpu.c231 char buf1[32], buf2[32]; in print_cpuinfo() local
267 printf("\n CPU0(ARMV7):%-4s MHz, ", strmhz(buf1, gd->cpu_clk)); in print_cpuinfo()
268 printf("\n Bus:%-4s MHz, ", strmhz(buf1, gd->bus_clk)); in print_cpuinfo()
270 strmhz(buf1, gd->mem_clk/2), strmhz(buf2, gd->mem_clk)); in print_cpuinfo()
/openbmc/u-boot/arch/m68k/cpu/mcf523x/
H A Dcpu.c48 char buf1[32], buf2[32]; in print_cpuinfo() local
53 strmhz(buf1, gd->cpu_clk), in print_cpuinfo()
/openbmc/u-boot/arch/m68k/cpu/mcf547x_8x/
H A Dcpu.c84 char buf1[32], buf2[32]; in print_cpuinfo() local
88 strmhz(buf1, gd->cpu_clk), in print_cpuinfo()
/openbmc/u-boot/arch/m68k/cpu/mcf532x/
H A Dcpu.c87 char buf1[32], buf2[32]; in print_cpuinfo() local
92 strmhz(buf1, gd->cpu_clk), in print_cpuinfo()
/openbmc/u-boot/cmd/
H A Dmem.c229 const void *buf1, *buf2, *base; in do_mem_cmp() local
256 base = buf1 = map_sysmem(addr1, bytes); in do_mem_cmp()
260 word1 = *(u32 *)buf1; in do_mem_cmp()
264 word1 = *(u64 *)buf1; in do_mem_cmp()
268 word1 = *(u16 *)buf1; in do_mem_cmp()
271 word1 = *(u8 *)buf1; in do_mem_cmp()
275 ulong offset = buf1 - base; in do_mem_cmp()
289 buf1 += size; in do_mem_cmp()
296 unmap_sysmem(buf1); in do_mem_cmp()
/openbmc/qemu/chardev/
H A Dchar-mux.c57 char buf1[64]; in mux_chr_write() local
67 snprintf(buf1, sizeof(buf1), in mux_chr_write()
76 (uint8_t *)buf1, strlen(buf1)); in mux_chr_write()
/openbmc/u-boot/drivers/mtd/ubi/
H A Dcrc32.c484 unsigned char buf1[SIZE + 4]; in main() local
493 random_garbage(buf1, i); in main()
496 buf3[j] = buf1[j] ^ buf2[j]; in main()
498 crc1 = test_step(INIT1, buf1, i); in main()
H A Dio.c1326 void *buf1; in self_check_write() local
1332 buf1 = __vmalloc(len, GFP_NOFS, PAGE_KERNEL); in self_check_write()
1333 if (!buf1) { in self_check_write()
1338 err = mtd_read(ubi->mtd, addr, len, &read, buf1); in self_check_write()
1344 uint8_t c1 = ((uint8_t *)buf1)[i]; in self_check_write()
1362 buf1 + i, dump_len, 1); in self_check_write()
1368 vfree(buf1); in self_check_write()
1372 vfree(buf1); in self_check_write()
/openbmc/u-boot/drivers/bios_emulator/x86emu/
H A Ddebug.c186 char buf1[64]; in print_encoded_bytes() local
188 sprintf(buf1 + 2 * i, "%02x", fetch_data_byte_abs(s, o + i)); in print_encoded_bytes()
190 printk("%-20s", buf1); in print_encoded_bytes()
/openbmc/u-boot/env/
H A Dcommon.c138 int env_import_redund(const char *buf1, int buf1_read_fail, in env_import_redund() argument
144 tmp_env1 = (env_t *)buf1; in env_import_redund()
/openbmc/u-boot/arch/m68k/cpu/mcf52x2/
H A Dcpu.c42 char buf1[32], buf2[32]; in print_cpuinfo() local
46 strmhz(buf1, gd->cpu_clk), in print_cpuinfo()
/openbmc/libpldm/tests/
H A Dmsgbuf.cpp1384 uint8_t buf1[sizeof(buf)] = {}; in TEST() local
1386 ASSERT_EQ(pldm_msgbuf_init_errno(dst, sizeof(buf1), buf1, sizeof(buf1)), 0); in TEST()
1389 ASSERT_EQ(pldm_msgbuf_init_errno(src, sizeof(buf1), buf1, sizeof(buf1)), 0); in TEST()
1405 uint8_t buf1[1] = {sizeof(uint16_t)}; in TEST() local
1409 ASSERT_EQ(pldm_msgbuf_init_errno(dst, 0, buf1, sizeof(buf1)), 0); in TEST()
1412 ASSERT_EQ(pldm_msgbuf_init_errno(src, 0, buf1, sizeof(buf1)), 0); in TEST()
/openbmc/qemu/tests/qtest/
H A Dvirtio-scsi-test.c173 uint8_t buf1[512] = { 0 }; in test_unaligned_write_same() local
189 virtio_scsi_do_command(vs, write_same_cdb_1, NULL, 0, buf1, 512, in test_unaligned_write_same()
/openbmc/u-boot/fs/ubifs/
H A Drecovery.c230 void *buf1 = NULL, *buf2 = NULL, *cor1 = NULL, *cor2 = NULL; in ubifs_recover_master_node() local
237 err = get_master_node(c, UBIFS_MST_LNUM, &buf1, &mst1, &cor1); in ubifs_recover_master_node()
246 offs1 = (void *)mst1 - buf1; in ubifs_recover_master_node()
350 vfree(buf1); in ubifs_recover_master_node()
367 vfree(buf1); in ubifs_recover_master_node()

12