/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
D | net_socket_test_003.cpp | 45 #define BUF_SIZE (1024 * 8) macro 54 static char gBuf[BUF_SIZE + 1] = { 0 }; in SampleTcpServer() 86 ret = memset_s(gBuf, BUF_SIZE + 1, 0, BUF_SIZE + 1); in SampleTcpServer() 88 gBuf[BUF_SIZE - 1] = '\0'; in SampleTcpServer() 89 ret = strcpy_s(gBuf, BUF_SIZE - 1, SRV_MSG); in SampleTcpServer() 91 gBuf[BUF_SIZE - 1] = '\0'; in SampleTcpServer() 97 ret = memset_s(gBuf, BUF_SIZE + 1, 0, BUF_SIZE + 1); in SampleTcpServer() 99 gBuf[BUF_SIZE - 1] = '\0'; in SampleTcpServer() 110 ret = memset_s(gBuf, BUF_SIZE + 1, 0, BUF_SIZE + 1); in SampleTcpServer() 112 gBuf[BUF_SIZE - 1] = '\0'; in SampleTcpServer() [all …]
|
D | net_socket_test_002.cpp | 46 #define BUF_SIZE (1024 * 8) macro 48 static char g_buf[BUF_SIZE + 1] = { 0 }; 74 ret = memset_s(g_buf, BUF_SIZE, 0, BUF_SIZE); in UdpTest() 76 ret = strcpy_s(g_buf, BUF_SIZE, MSG); in UdpTest() 83 ret = memset_s(g_buf, BUF_SIZE, 0, BUF_SIZE); in UdpTest() 93 ret = memset_s(g_buf, BUF_SIZE, 0, BUF_SIZE); in UdpTest() 95 ret = strcpy_s(g_buf, BUF_SIZE, MSG); in UdpTest() 109 ret = memset_s(g_buf, BUF_SIZE, 0, BUF_SIZE); in UdpTest()
|
/kernel/liteos_m/components/net/test/ |
D | net_socket_test_008.c | 41 static char g_serverSendBuf[BUF_SIZE + 1] = { 0 }; 42 static char g_clientRecvBuf[BUF_SIZE + 1] = { 0 }; 50 for (i = 0; i < BUF_SIZE; i++) { in InitMsgBuf() 53 g_serverSendBuf[BUF_SIZE] = '\0'; in InitMsgBuf() 88 ret = send(sfd, g_serverSendBuf, BUF_SIZE, 0); in SampleTcpServer() 89 ICUNIT_ASSERT_EQUAL(ret, BUF_SIZE, 5); in SampleTcpServer() 143 ret = recv(sfd, g_clientRecvBuf, BUF_SIZE, 0); in SampleTcpClient() 145 if (recvCount >= BUF_SIZE * SEND_TCP_COUNT) { in SampleTcpClient() 150 ICUNIT_ASSERT_EQUAL(recvCount, BUF_SIZE * SEND_TCP_COUNT, recvCount); in SampleTcpClient()
|
D | net_socket_test_007.c | 37 static char g_buf[BUF_SIZE + 1] = { 0 }; 38 static char g_buf_temp[BUF_SIZE + 1] = { 0 }; 75 for (i = 0; i < BUF_SIZE; i++) { in UdpTestMoreTask() 78 g_buf_temp[BUF_SIZE] = '\0'; in UdpTestMoreTask() 85 … ret = sendto(sfd, g_buf, BUF_SIZE, 0, (struct sockaddr*)&clnAddr, (socklen_t)sizeof(clnAddr)); in UdpTestMoreTask() 92 LWIP_ASSERT("socket invalid param.", ret == BUF_SIZE); in UdpTestMoreTask()
|
D | net_socket_test_012.c | 46 static char g_bufServer[BUF_SIZE + 1] = { 0 }; 47 static char g_bufClient[BUF_SIZE + 1] = { 0 };
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | tcp_inq.c | 29 #define BUF_SIZE 8192 macro 68 buf = malloc(BUF_SIZE); in start_server() 77 r = send(fd, buf, BUF_SIZE, 0); in start_server() 81 if (r != BUF_SIZE) in start_server() 157 buf = malloc(BUF_SIZE); in main() 159 iov[0].iov_len = BUF_SIZE / 2; in main() 170 if (inq != BUF_SIZE - iov[0].iov_len) { in main()
|
/kernel/liteos_a/testsuites/unittest/libc/sys/smoke/ |
D | sys_test_008.cpp | 33 #define BUF_SIZE 256 macro 37 char ebuff[BUF_SIZE]; in TestCase() 54 regerror(ret, ®, ebuff, BUF_SIZE); in TestCase() 63 regerror(ret, ®, ebuff, BUF_SIZE); in TestCase()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | perf_event_attr_fprintf.c | 73 #define BUF_SIZE 1024 macro 75 #define p_hex(val) snprintf(buf, BUF_SIZE, "%#"PRIx64, (uint64_t)(val)) 76 #define p_unsigned(val) snprintf(buf, BUF_SIZE, "%"PRIu64, (uint64_t)(val)) 77 #define p_signed(val) snprintf(buf, BUF_SIZE, "%"PRId64, (int64_t)(val)) 78 #define p_sample_type(val) __p_sample_type(buf, BUF_SIZE, val) 79 #define p_branch_sample_type(val) __p_branch_sample_type(buf, BUF_SIZE, val) 80 #define p_read_format(val) __p_read_format(buf, BUF_SIZE, val) 95 char buf[BUF_SIZE]; in perf_event_attr__fprintf()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | urandom_read.c | 8 #define BUF_SIZE 256 macro 13 char buf[BUF_SIZE]; in urandom_read() 17 read(fd, buf, BUF_SIZE); in urandom_read()
|
/kernel/linux/linux-5.10/sound/parisc/ |
D | harmony.h | 64 #define BUF_SIZE PAGE_SIZE macro 66 #define MAX_BUF_SIZE (MAX_BUFS * BUF_SIZE) 71 #define GRAVEYARD_BUFSZ (GRAVEYARD_BUFS*BUF_SIZE) 73 #define SILENCE_BUFSZ (SILENCE_BUFS*BUF_SIZE)
|
/kernel/linux/linux-5.10/lib/ |
D | test_printf.c | 29 #define BUF_SIZE 256 macro 47 memset(alloced_buffer, FILL_CHAR, BUF_SIZE + 2*PAD_SIZE); in do_test() 64 if (memchr_inv(test_buffer, FILL_CHAR, BUF_SIZE + PAD_SIZE)) { in do_test() 79 if (memchr_inv(test_buffer + written + 1, FILL_CHAR, BUF_SIZE + PAD_SIZE - (written + 1))) { in do_test() 100 if (elen >= BUF_SIZE) { in __test() 115 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test() 604 cmp_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in flags() 610 snprintf(cmp_buffer, BUF_SIZE, "%#lx", (unsigned long) gfp); in flags() 613 snprintf(cmp_buffer, BUF_SIZE, "__GFP_ATOMIC|%#lx", in flags() 701 alloced_buffer = kmalloc(BUF_SIZE + 2*PAD_SIZE, GFP_KERNEL); in selftest()
|
/kernel/liteos_a/testsuites/unittest/libc/io/full/ |
D | IO_test_ppoll_002.cpp | 36 const int BUF_SIZE = 128; variable 47 char buf[BUF_SIZE]; in pthread_01() 61 retVal = read(pfd.fd, buf, BUF_SIZE); in pthread_01()
|
D | IO_test_ppoll_001.cpp | 35 const int BUF_SIZE = 128; variable 46 CHAR buf[BUF_SIZE]; in pthread_01() 64 retVal = read(pfd.fd, buf, BUF_SIZE); in pthread_01()
|
D | IO_test_ppoll_003.cpp | 36 const int BUF_SIZE = 128; variable 55 CHAR buf[BUF_SIZE]; in pthread_01() 72 retVal = read(pfd.fd, buf, BUF_SIZE); in pthread_01()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | ehv_bytechan.c | 41 #define BUF_SIZE 2048 macro 52 unsigned char buf[BUF_SIZE]; /* transmit circular buffer */ 416 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), in ehv_bc_tx_dequeue() 423 bc->tail = (bc->tail + len) & (BUF_SIZE - 1); in ehv_bc_tx_dequeue() 425 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tx_dequeue() 430 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE)) in ehv_bc_tx_dequeue() 479 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write() 484 bc->head = (bc->head + len) & (BUF_SIZE - 1); in ehv_bc_tty_write() 546 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/socket/ |
D | net_fuzz.c | 60 #define BUF_SIZE 40 macro 73 char buf[BUF_SIZE] = { 0 }; in SampleUdpServer() 110 char buf[BUF_SIZE] = { 0 }; in SampleUdpClient() 203 char buf[BUF_SIZE + 1] = { 0 }; in SampleTcpServer() 240 char buf[BUF_SIZE + 1] = { 0 }; in SampleTcpClient() 259 ret = memset_s(buf, sizeof(buf), 0, BUF_SIZE); in SampleTcpClient()
|
/kernel/linux/linux-5.10/drivers/input/joystick/ |
D | joydump.c | 26 #define BUF_SIZE 256 macro 67 buf = kmalloc_array(BUF_SIZE, sizeof(struct joydump), GFP_KERNEL); in joydump_connect() 86 while (i < BUF_SIZE && t < timeout) { in joydump_connect()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
D | It_pid_container_031.cpp | 32 static const int BUF_SIZE = 100; variable 54 char targetpath[BUF_SIZE] = {0}; in ChildFun() 67 ret = sprintf_s(targetpath, BUF_SIZE, "/proc/%d/container/pid", childPid); in ChildFun()
|
/kernel/linux/linux-5.10/tools/vm/ |
D | page_owner_sort.c | 86 #define BUF_SIZE (128 * 1024) macro 114 buf = malloc(BUF_SIZE); in main() 121 ret = read_block(buf, BUF_SIZE, fin); in main()
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
D | slip_common.h | 5 #define BUF_SIZE 1500 macro 8 #define ENC_BUF_SIZE (2 * BUF_SIZE + 2)
|
D | slirp_user.c | 123 .mtu = BUF_SIZE, 124 .max_packet = BUF_SIZE,
|
/kernel/linux/linux-5.10/samples/watch_queue/ |
D | watch_test.c | 30 #define BUF_SIZE 256 macro 164 if (ioctl(fd, IOC_WATCH_QUEUE_SET_SIZE, BUF_SIZE) == -1) { in main()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 903 #define BUF_SIZE 256 in mlx4_err_rule() macro 905 char buf[BUF_SIZE]; in mlx4_err_rule() 909 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 916 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 919 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 923 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 930 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 934 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 942 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 946 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() [all …]
|
/kernel/linux/linux-5.10/Documentation/usb/ |
D | gadget_printer.rst | 167 #define BUF_SIZE 512 221 static char buf[BUF_SIZE]; 231 bytes_read = read(fd[0].fd, buf, BUF_SIZE); 272 static char buf[BUF_SIZE]; 274 int bytes_read = fread(buf, 1, BUF_SIZE, stdin); 318 static char buf[BUF_SIZE]; 331 bytes_read = read(fd, buf, BUF_SIZE);
|
/kernel/linux/linux-5.10/drivers/platform/chrome/ |
D | cros_usbpd_logger.c | 26 #define BUF_SIZE 80 macro 56 i = vsnprintf(buf + pos, BUF_SIZE - pos, fmt, args); in append_str() 87 char buf[BUF_SIZE + 1]; in cros_usbpd_print_log_entry()
|