Home
last modified time | relevance | path

Searched refs:buf1 (Results 1 - 25 of 114) sorted by relevance

12345

/kernel/linux/linux-5.10/arch/mips/bcm47xx/
H A Dboard.c230 char buf1[30]; in bcm47xx_board_get_nvram() local
237 if (bcm47xx_nvram_getenv("model_name", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
239 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
244 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
246 if (strstarts(buf1, e1->value1)) in bcm47xx_board_get_nvram()
251 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 && in bcm47xx_board_get_nvram()
254 if (!strstarts(buf1, e in bcm47xx_board_get_nvram()
[all...]
/kernel/linux/linux-6.6/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, e in bcm47xx_board_get_nvram()
[all...]
/kernel/liteos_a/testsuites/unittest/libc/sys/full/
H A Dsys_test_019.cpp41 CHAR buf1[1024] = { 0 }; /* 1024, buffer for test */ in TestCase() local
55 ret = getpwnam_r("root", &pwd, buf1, sizeof(buf1), &user1); in TestCase()
74 ret = getpwnam_r("daemon", &pwd, buf1, sizeof(buf1), &user2); in TestCase()
84 ret = getpwnam_r("bin", &pwd, buf1, sizeof(buf1), &user3); in TestCase()
98 ret = getpwnam_r(nullptr, &pwd, buf1, sizeof(buf1), &user5); in TestCase()
100 ret = getpwnam_r("", &pwd, buf1, sizeo in TestCase()
[all...]
H A Dsys_test_021.cpp41 CHAR buf1[1024] = { 0 }; /* 1024, buffer for test */ in TestCase() local
55 ret = getpwuid_r(0, &pwd, buf1, sizeof(buf1), &user1); in TestCase()
74 ret = getpwuid_r(1, &pwd, buf1, sizeof(buf1), &user2); in TestCase()
85 ret = getpwuid_r(2, &pwd, buf1, sizeof(buf1), &user3); /* 2, from etc/group */ in TestCase()
101 ret = getpwuid_r(200, &pwd, buf1, sizeof(buf1), &user5); /* 200, invalid param for test */ in TestCase()
105 ret = getpwuid_r(100000, &pwd, buf1, sizeo in TestCase()
[all...]
/kernel/liteos_a/testsuites/unittest/net/netdb/full/
H A Dnet_netdb_test_017.cpp48 char buf1[1024] = { 0 }; in GetServByNameRTest() local
53 ret = getservbyname_r("ssh", "tcp", &se, buf1, sizeof buf1, &result); in GetServByNameRTest()
66 ret = getservbyname_r("ssh", "tp", &se, buf1, sizeof buf1, &result); in GetServByNameRTest()
69 ret = getservbyname_r("sh", "tcp", &se, buf1, sizeof buf1, &result); in GetServByNameRTest()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
[all...]
/kernel/linux/linux-5.10/arch/mips/kernel/
H A Dcevt-r4k.c52 unsigned int buf1[4], buf2[3]; in calculate_min_delta() local
69 /* Sorted insert into buf1 */ in calculate_min_delta()
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) in calculate_min_delta()
[all...]
/kernel/linux/linux-6.6/arch/mips/kernel/
H A Dcevt-r4k.c52 unsigned int buf1[4], buf2[3]; in calculate_min_delta() local
69 /* Sorted insert into buf1 */ in calculate_min_delta()
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) in calculate_min_delta()
[all...]
/kernel/linux/linux-6.6/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()
[all...]
/kernel/linux/linux-5.10/fs/nfsd/
H A Dnfs4idmap.c208 char *buf1, *bp; in idtoname_parse() local
216 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in idtoname_parse()
217 if (buf1 == NULL) in idtoname_parse()
223 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
226 memcpy(ent.authname, buf1, sizeof(ent.authname)); in idtoname_parse()
229 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
231 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse()
235 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
237 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse()
238 if (bp == buf1) in idtoname_parse()
378 char *buf1; nametoid_parse() local
[all...]
/kernel/linux/linux-6.6/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()
379 char *buf1; nametoid_parse() local
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/workloads/
H A Ddatasym.c10 static buf buf1 = { variable
18 buf1.data1++; in datasym()
19 buf1.data2 += buf1.data1; in datasym()
/kernel/liteos_a/testsuites/unittest/libc/io/full/
H A DIt_stdio_readv_001.cpp39 char buf1[6] = { 0 }; in Testcase() local
46 iov[0].iov_base = buf1; in Testcase()
47 iov[0].iov_len = sizeof(buf1) - 1; in Testcase()
70 nRet = strcmp(buf1, "hello"); in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/sys/smoke/
H A Dsys_test_031.cpp36 char buf1[100] = { 0 }; in TestCase() local
39 ctermid(buf1); in TestCase()
40 ICUNIT_ASSERT_STRING_EQUAL(buf1, "/dev/tty", -1); in TestCase()
/kernel/linux/linux-5.10/drivers/target/iscsi/
H A Discsi_target_tpg.c589 unsigned char buf1[256], buf2[256], *none = NULL; in iscsit_ta_authentication() local
600 memset(buf1, 0, sizeof(buf1)); in iscsit_ta_authentication()
608 snprintf(buf1, sizeof(buf1), "%s", param->value); in iscsit_ta_authentication()
609 none = strstr(buf1, NONE); in iscsit_ta_authentication()
613 if (!strcmp(buf1, none)) in iscsit_ta_authentication()
618 len = sprintf(buf2, "%s", buf1); in iscsit_ta_authentication()
625 sprintf(buf2, "%s", buf1); in iscsit_ta_authentication()
630 snprintf(buf1, sizeo in iscsit_ta_authentication()
[all...]
/kernel/linux/linux-6.6/fs/udf/
H A Ddirectory.c323 static void udf_copy_to_bufs(void *buf1, int len1, void *buf2, int len2, in udf_copy_to_bufs() argument
332 memcpy(buf1 + off, src, copy); in udf_copy_to_bufs()
344 static uint16_t udf_crc_fi_bufs(void *buf1, int len1, void *buf2, int len2, in udf_crc_fi_bufs() argument
354 crc = crc_itu_t(crc, buf1 + off, copy); in udf_crc_fi_bufs()
366 static void udf_copy_fi_to_bufs(char *buf1, int len1, char *buf2, int len2, in udf_copy_fi_to_bufs() argument
377 udf_copy_to_bufs(buf1, len1, buf2, len2, off, fi, in udf_copy_fi_to_bufs()
381 udf_copy_to_bufs(buf1, len1, buf2, len2, off, impuse, in udf_copy_fi_to_bufs()
385 udf_copy_to_bufs(buf1, len1, buf2, len2, off, name, in udf_copy_fi_to_bufs()
388 udf_copy_to_bufs(buf1, len1, buf2, len2, off, zeros, in udf_copy_fi_to_bufs()
392 crc = udf_crc_fi_bufs(buf1, len in udf_copy_fi_to_bufs()
403 void *buf1, *buf2 = NULL; udf_fiiter_write_fi() local
[all...]
/kernel/linux/linux-6.6/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, sizeo in iscsit_ta_authentication()
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()

Completed in 10 milliseconds

12345