/kernel/linux/linux-5.10/arch/mips/bcm47xx/ |
D | board.c | 230 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, e2->value1) && in bcm47xx_board_get_nvram() 260 if (bcm47xx_nvram_getenv("productid", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram() 262 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram() 267 if (bcm47xx_nvram_getenv("ModelId", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram() [all …]
|
/kernel/liteos_a/testsuites/unittest/libc/sys/full/ |
D | sys_test_019.cpp | 41 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, sizeof(buf1), &user5); in TestCase() 102 ret = getpwnam_r("sssssss", &pwd, buf1, sizeof(buf1), &user5); in TestCase()
|
D | sys_test_021.cpp | 41 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, sizeof(buf1), &user5); /* 100000, invalid param for test */ in TestCase() 109 ret = getpwuid_r(-100, &pwd, buf1, sizeof(buf1), &user5); /* -100, invalid param for test */ in TestCase()
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
D | proc-self-syscall.c | 32 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()
|
D | self.c | 26 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()
|
D | thread-self.c | 29 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/liteos_a/testsuites/unittest/net/netdb/full/ |
D | net_netdb_test_017.cpp | 48 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()
|
D | net_netdb_test_005.cpp | 39 char buf1[1]; in GetHostByAddrRTest() local 59 ret = gethostbyaddr_r(&ia, sizeof ia, AF_INET, &addr, buf1, sizeof buf1, &result, &err); in GetHostByAddrRTest()
|
D | net_netdb_test_012.cpp | 51 char buf1[2]; in GetServByPortRTest() local 67 ret = getservbyport_r(htons(test_port_no), "udp", &se, buf1, sizeof buf1, &result); in GetServByPortRTest()
|
D | net_netdb_test_007.cpp | 50 char buf1[1]; in GetHostByNameRTest() local 67 ret = gethostbyname_r("127.0.0.1", &addr, buf1, sizeof buf1, &result, &err); in GetHostByNameRTest()
|
D | net_netdb_test_009.cpp | 49 char buf1[1]; in GetHostByName2RTest() local 66 ret = gethostbyname2_r("127.0.0.1", AF_INET, &addr, buf1, sizeof buf1, &result, &err); in GetHostByName2RTest()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | cevt-r4k.c | 52 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()
|
/kernel/linux/linux-5.10/drivers/edac/ |
D | octeon_edac-l2c.c | 64 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()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | nfs4idmap.c | 208 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() [all …]
|
/kernel/liteos_a/testsuites/unittest/libc/sys/smoke/ |
D | sys_test_031.cpp | 36 char buf1[100] = { 0 }; in TestCase() local 39 ctermid(buf1); in TestCase() 40 ICUNIT_ASSERT_STRING_EQUAL(buf1, "/dev/tty", -1); in TestCase()
|
/kernel/liteos_a/testsuites/unittest/libc/io/full/ |
D | It_stdio_readv_001.cpp | 39 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/linux/linux-5.10/drivers/media/i2c/ |
D | sony-btf-mpx.c | 228 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()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | is_printable_array.c | 10 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-5.10/drivers/target/iscsi/ |
D | iscsi_target_tpg.c | 589 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, sizeof(buf1), "%s", param->value); in iscsit_ta_authentication() 631 none = strstr(buf1, NONE); in iscsit_ta_authentication() 634 strlcat(buf1, "," NONE, sizeof(buf1)); in iscsit_ta_authentication() [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | stream.c | 228 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()
|
/kernel/liteos_a/apps/lms/src/ |
D | sample_usr_lms.c | 76 char *buf1 = (char *)realloc(buf, TEST_SIZE_MIN); in LmsReallocTest() local 77 if (buf1 == NULL) { in LmsReallocTest() 83 BufReadTest(buf1, -1, TEST_SIZE_MIN); in LmsReallocTest() 84 free(buf1); in LmsReallocTest()
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | dns_resolve.c | 232 char buf1[NFS_DNS_HOSTNAME_MAXLEN+1]; in nfs_dns_parse() local 242 len = qword_get(&buf, buf1, sizeof(buf1)); in nfs_dns_parse() 245 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse() 249 len = qword_get(&buf, buf1, sizeof(buf1)); in nfs_dns_parse() 253 key.hostname = buf1; in nfs_dns_parse()
|
/kernel/linux/linux-5.10/kernel/kcsan/ |
D | report.c | 301 char buf1[64]; in sym_strcmp() local 304 snprintf(buf1, sizeof(buf1), "%pS", addr1); in sym_strcmp() 307 return strncmp(buf1, buf2, sizeof(buf1)); in sym_strcmp()
|
/kernel/linux/linux-5.10/kernel/rcu/ |
D | refscale.c | 451 char buf1[64]; in process_durations() local 464 sprintf(buf1, "%d: %llu\t", i, rt->last_duration_ns); in process_durations() 468 strcat(buf, buf1); in process_durations() 490 char buf1[64]; in main_func() local 562 sprintf(buf1, "%d\t%llu.%03u\n", exp + 1, avg, rem); in main_func() 563 strcat(buf, buf1); in main_func()
|
/kernel/linux/linux-5.10/drivers/macintosh/ |
D | rack-meter.c | 46 u32 buf1[SAMPLE_COUNT] ____cacheline_aligned; member 156 memset(rdma->buf1, 0, sizeof(rdma->buf1)); in rackmeter_do_pause() 178 offsetof(struct rackmeter_dma, buf1)); in rackmeter_setup_dbdma() 194 offsetof(struct rackmeter_dma, buf1)); in rackmeter_setup_dbdma() 355 buf = mark == 1 ? db->buf1 : db->buf2; in rackmeter_irq()
|