Home
last modified time | relevance | path

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

1234

/openbmc/linux/arch/mips/bcm47xx/
H A Dboard.c238 char buf1[30]; in bcm47xx_board_get_nvram() local
245 if (bcm47xx_nvram_getenv("model_name", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
247 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
252 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
254 if (strstarts(buf1, e1->value1)) in bcm47xx_board_get_nvram()
259 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 && in bcm47xx_board_get_nvram()
262 if (!strstarts(buf1, e2->value1) && in bcm47xx_board_get_nvram()
268 if (bcm47xx_nvram_getenv("productid", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
270 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
275 if (bcm47xx_nvram_getenv("ModelId", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
[all …]
/openbmc/linux/tools/perf/tests/workloads/
H A Ddatasym.c10 static buf buf1 = { variable
18 buf1.data1++; in datasym()
19 if (buf1.data1 == 123) { in datasym()
33 buf1.data1++; in datasym()
35 buf1.data2 += buf1.data1; in datasym()
/openbmc/linux/tools/testing/selftests/proc/
H A Dproc-self-syscall.c32 char buf1[64]; in main() local
45 snprintf(buf1, sizeof(buf1), "%ld 0x%lx 0x%lx 0x%lx", in main()
52 if (rv < strlen(buf1)) in main()
54 if (strncmp(buf1, buf2, strlen(buf1)) != 0) in main()
H A Dself.c26 char buf1[64], buf2[64]; in main() local
31 snprintf(buf1, sizeof(buf1), "%u", pid); in main()
34 assert(rv == strlen(buf1)); in main()
36 assert(streq(buf1, buf2)); in main()
H A Dthread-self.c29 char buf1[64], buf2[64]; in f() local
35 snprintf(buf1, sizeof(buf1), "%u/task/%u", pid, tid); in f()
38 assert(rv == strlen(buf1)); in f()
40 assert(streq(buf1, buf2)); in f()
/openbmc/linux/arch/mips/kernel/
H A Dcevt-r4k.c52 unsigned int buf1[4], buf2[3]; in calculate_min_delta() local
71 if (cnt < buf1[k]) { in calculate_min_delta()
73 j, ARRAY_SIZE(buf1) - 1); in calculate_min_delta()
75 buf1[l] = buf1[l - 1]; in calculate_min_delta()
79 if (k < ARRAY_SIZE(buf1)) in calculate_min_delta()
80 buf1[k] = cnt; in calculate_min_delta()
85 if (buf1[ARRAY_SIZE(buf1) - 1] < buf2[k]) { in calculate_min_delta()
94 buf2[k] = buf1[ARRAY_SIZE(buf1) - 1]; in calculate_min_delta()
/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/linux/drivers/edac/
H A Docteon_edac-l2c.c64 char buf1[64]; in _octeon_l2c_poll_oct2() local
71 snprintf(buf1, sizeof(buf1), in _octeon_l2c_poll_oct2()
77 "L2D Double bit error (detected):%s", buf1); in _octeon_l2c_poll_oct2()
83 "L2D Single bit error (corrected):%s", buf1); in _octeon_l2c_poll_oct2()
89 "VBF Double bit error (detected):%s", buf1); in _octeon_l2c_poll_oct2()
95 "VBF Single bit error (corrected):%s", buf1); in _octeon_l2c_poll_oct2()
106 snprintf(buf1, sizeof(buf1), in _octeon_l2c_poll_oct2()
112 "Tag Double bit error (detected):%s", buf1); in _octeon_l2c_poll_oct2()
118 "Tag Single bit error (corrected):%s", buf1); in _octeon_l2c_poll_oct2()
/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/linux/fs/nfsd/
H A Dnfs4idmap.c209 char *buf1, *bp; in idtoname_parse() local
217 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in idtoname_parse()
218 if (buf1 == NULL) in idtoname_parse()
224 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
227 memcpy(ent.authname, buf1, sizeof(ent.authname)); in idtoname_parse()
230 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
232 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse()
236 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
238 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse()
239 if (bp == buf1) in idtoname_parse()
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dsony-btf-mpx.c228 u8 buf1[3], buf2[2]; in mpx_setup() local
241 buf1[0] = 0x11; in mpx_setup()
242 buf1[1] = 0x00; in mpx_setup()
243 buf1[2] = 0x7e; in mpx_setup()
247 msgs[0].buf = buf1; in mpx_setup()
255 buf1[0] = 0x11; in mpx_setup()
256 buf1[1] = 0x02; in mpx_setup()
257 buf1[2] = 0x00; in mpx_setup()
/openbmc/linux/fs/udf/
H A Ddirectory.c330 static void udf_copy_to_bufs(void *buf1, int len1, void *buf2, int len2, in udf_copy_to_bufs() argument
339 memcpy(buf1 + off, src, copy); in udf_copy_to_bufs()
351 static uint16_t udf_crc_fi_bufs(void *buf1, int len1, void *buf2, int len2, in udf_crc_fi_bufs() argument
361 crc = crc_itu_t(crc, buf1 + off, copy); in udf_crc_fi_bufs()
373 static void udf_copy_fi_to_bufs(char *buf1, int len1, char *buf2, int len2, in udf_copy_fi_to_bufs() argument
384 udf_copy_to_bufs(buf1, len1, buf2, len2, off, fi, in udf_copy_fi_to_bufs()
388 udf_copy_to_bufs(buf1, len1, buf2, len2, off, impuse, in udf_copy_fi_to_bufs()
392 udf_copy_to_bufs(buf1, len1, buf2, len2, off, name, in udf_copy_fi_to_bufs()
395 udf_copy_to_bufs(buf1, len1, buf2, len2, off, zeros, in udf_copy_fi_to_bufs()
399 crc = udf_crc_fi_bufs(buf1, len1, buf2, len2, crcoff, crclen); in udf_copy_fi_to_bufs()
[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/linux/tools/perf/tests/
H A Dis_printable_array.c10 char buf1[] = { 'k', 'r', 4, 'v', 'a', 0 }; in test__is_printable_array() local
22 { buf1, sizeof(buf1), 0 }, in test__is_printable_array()
/openbmc/linux/drivers/target/iscsi/
H A Discsi_target_tpg.c587 unsigned char buf1[256], buf2[256], *none = NULL; in iscsit_ta_authentication() local
598 memset(buf1, 0, sizeof(buf1)); in iscsit_ta_authentication()
606 snprintf(buf1, sizeof(buf1), "%s", param->value); in iscsit_ta_authentication()
607 none = strstr(buf1, NONE); in iscsit_ta_authentication()
611 if (!strcmp(buf1, none)) in iscsit_ta_authentication()
616 len = sprintf(buf2, "%s", buf1); in iscsit_ta_authentication()
623 sprintf(buf2, "%s", buf1); in iscsit_ta_authentication()
628 snprintf(buf1, sizeof(buf1), "%s", param->value); in iscsit_ta_authentication()
629 none = strstr(buf1, NONE); in iscsit_ta_authentication()
632 strlcat(buf1, "," NONE, sizeof(buf1)); in iscsit_ta_authentication()
[all …]
/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/linux/tools/perf/util/
H A Dstream.c228 char buf1[512], buf2[512], cbuf1[256], cbuf2[256]; in print_callchain_pair() local
235 scnprintf(buf1, sizeof(buf1), "cycles: %ld, hits: %.2f%%", in print_callchain_pair()
242 printf("%35s\t%35s\n", buf1, buf2); in print_callchain_pair()
261 scnprintf(buf1, sizeof(buf1), "%35s\t%35s", s1, s2); in print_callchain_pair()
262 printf("%s\n", buf1); in print_callchain_pair()
/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/linux/fs/nfs/
H A Ddns_resolve.c231 char buf1[NFS_DNS_HOSTNAME_MAXLEN+1]; in nfs_dns_parse() local
241 len = qword_get(&buf, buf1, sizeof(buf1)); in nfs_dns_parse()
244 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
248 len = qword_get(&buf, buf1, sizeof(buf1)); in nfs_dns_parse()
252 key.hostname = buf1; in nfs_dns_parse()
/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/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/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);
/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/linux/drivers/mfd/
H A Dpcf50633-core.c86 char *buf1 = buf; in dump_regs_show() local
104 buf1 += sprintf(buf1, "%*ph\n", (int)sizeof(dump), dump); in dump_regs_show()
107 return buf1 - buf; in dump_regs_show()

1234