Home
last modified time | relevance | path

Searched refs:read_buf (Results 1 – 25 of 41) sorted by relevance

12

/external/libese/third_party/NXPNFC_P61_JCOP_Kit/src/
DAla.cpp1074 UINT8 read_buf[1024]; in ALA_Check_KeyIdentifier() local
1093 memcpy(read_buf, temp_buf, wNewLen); in ALA_Check_KeyIdentifier()
1100 status = ALA_ReadScript(Os_info, read_buf); in ALA_Check_KeyIdentifier()
1105 read_buf, &offset)) in ALA_Check_KeyIdentifier()
1113 else if(((read_buf[offset] == TAG_ALA_CMD_ID)&&(certf_found != STATUS_OK))) in ALA_Check_KeyIdentifier()
1122 memset(read_buf, 0, sizeof(read_buf)); in ALA_Check_KeyIdentifier()
1131 status = ALA_ReadScript(Os_info, read_buf); in ALA_Check_KeyIdentifier()
1138 if((read_buf[offset] == TAG_JSBL_HDR_ID)&& in ALA_Check_KeyIdentifier()
1141 if(read_buf[offset] == TAG_JSBL_HDR_ID && in ALA_Check_KeyIdentifier()
1148 len_byte = Numof_lengthbytes(&read_buf[offset], &wLen); in ALA_Check_KeyIdentifier()
[all …]
/external/syslinux/core/legacynet/
Didle.c25 static __lowmem t_PXENV_UDP_READ read_buf; in pxe_idle_poll() local
27 memset(&read_buf, 0, sizeof read_buf); in pxe_idle_poll()
29 read_buf.src_ip = 0; /* Any destination */ in pxe_idle_poll()
30 read_buf.dest_ip = IPInfo.myip; in pxe_idle_poll()
31 read_buf.s_port = 0; /* Any source port */ in pxe_idle_poll()
32 read_buf.d_port = htons(9); /* Discard port (not used...) */ in pxe_idle_poll()
33 read_buf.buffer_size = sizeof junk_pkt; in pxe_idle_poll()
34 read_buf.buffer = FAR_PTR(junk_pkt); in pxe_idle_poll()
36 pxe_call(PXENV_UDP_READ, &read_buf); in pxe_idle_poll()
/external/ltp/testcases/kernel/syscalls/llseek/
Dllseek03.c107 static char read_buf[BUFSIZ]; in testfunc_seekcur() local
113 SAFE_READ(cleanup, 1, fd, read_buf, 4); in testfunc_seekcur()
127 memset(read_buf, 0, sizeof(read_buf)); in testfunc_seekcur()
130 SAFE_READ(cleanup, 1, fd, read_buf, 3); in testfunc_seekcur()
132 if (strcmp(read_buf, "fgh")) in testfunc_seekcur()
146 static char read_buf[BUFSIZ]; in testfunc_seekend() local
163 memset(read_buf, 0, sizeof(read_buf)); in testfunc_seekend()
165 nread = SAFE_READ(cleanup, 0, fd, read_buf, file_size); in testfunc_seekend()
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek01.c51 char read_buf[64]; in verify_lseek() local
55 SAFE_READ(0, fd, read_buf, sizeof(read_buf)); in verify_lseek()
57 memset(read_buf, 0, sizeof(read_buf)); in verify_lseek()
72 SAFE_READ(1, fd, read_buf, tc->exp_size); in verify_lseek()
74 if (tc->exp_data && strcmp(read_buf, tc->exp_data)) { in verify_lseek()
Dlseek07.c51 char read_buf[64]; in verify_lseek() local
54 memset(read_buf, 0, sizeof(read_buf)); in verify_lseek()
75 SAFE_READ(1, *tc->fd, read_buf, tc->exp_size); in verify_lseek()
77 if (strcmp(read_buf, tc->exp_data)) { in verify_lseek()
79 tc->fname, tc->off, read_buf); in verify_lseek()
82 tc->fname, tc->off, read_buf); in verify_lseek()
/external/ltp/testcases/kernel/syscalls/pread/
Dpread01.c93 char *read_buf[NBUFS]; /* buffer to hold data read from file */ variable
118 nread = pread(fildes, read_buf[2], K1, K2); in main()
136 nread = pread(fildes, read_buf[3], K1, K3); in main()
150 if ((nread = read(fildes, read_buf[0], K1)) != K1) { in main()
159 nread = pread(fildes, read_buf[1], K1, K1); in main()
269 read_buf[count] = malloc(K1); in init_buffers()
271 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) { in init_buffers()
313 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in compare_bufers()
340 free(read_buf[count]); in cleanup()
Dpread03.c90 char *read_buf[NBUFS]; /* buffer to hold data read from file */ variable
117 TEST(pread(fd1, read_buf[0], nbytes, offset)); in main()
187 read_buf[count] = malloc(K1); in init_buffers()
189 if (read_buf[count] == NULL) { in init_buffers()
208 free(read_buf[count]); in cleanup()
Dpread02.c85 char *read_buf[NBUFS]; /* buffer to hold data read from file */ variable
146 TEST(pread(fildes, read_buf[0], nbytes, offset)); in main()
262 read_buf[count] = malloc(K1); in init_buffers()
264 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) { in init_buffers()
287 free(read_buf[count]); in cleanup()
/external/libese/third_party/NXPNFC_P61_JCOP_Kit/inc/
DAla.h222 tJBL_STATUS Check_Certificate_Tag(UINT8 *read_buf, UINT16 *offset1);
224 tJBL_STATUS Check_SerialNo_Tag(UINT8 *read_buf, UINT16 *offset1);
226 tJBL_STATUS Check_LSRootID_Tag(UINT8 *read_buf, UINT16 *offset1);
228 tJBL_STATUS Check_CertHoldID_Tag(UINT8 *read_buf, UINT16 *offset1);
230 tJBL_STATUS Check_Date_Tag(UINT8 *read_buf, UINT16 *offset1);
232 tJBL_STATUS Check_45_Tag(UINT8 *read_buf, UINT16 *offset1, UINT8 *tag45Len);
235 *pTranscv_Info, UINT8 *read_buf, UINT16 *offset1, UINT8 *tag45Len);
238 Ala_TranscieveInfo_t *pTranscv_Info, UINT8 *read_buf, UINT16 *offset);
271 tJBL_STATUS ALA_ReadScript(Ala_ImageInfo_t *Os_info, UINT8 *read_buf);
281 UINT8 Numof_lengthbytes(UINT8 *read_buf, INT32 *wLen);
/external/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait01.c52 char read_buf[write_size]; in get_writesize() local
54 SAFE_READ(1, fds[0], read_buf, sizeof(read_buf)); in get_writesize()
143 char read_buf[sizeof(write_buf)]; in verify_epollin() local
178 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin()
184 char read_buf[sizeof(write_buf)]; in verify_epollio() local
225 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollio()
/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite01.c273 char *read_buf; /* buffer to hold read data */ in check_file_contents() local
276 read_buf = malloc(K1); in check_file_contents()
277 if (read_buf == NULL) { in check_file_contents()
292 nread = read(fildes, read_buf, K1); in check_file_contents()
299 if (memcmp(write_buf[count], read_buf, K1) != 0) { in check_file_contents()
311 free(read_buf); in check_file_contents()
/external/libmojo/mojo/edk/embedder/
Dplatform_channel_pair_posix_unittest.cc189 char read_buf[kNumHandlesToSend]; in TEST_F() local
190 size_t bytes_read = fread(read_buf, 1, sizeof(read_buf), fp.get()); in TEST_F()
192 EXPECT_EQ(std::string(j + 1, c), std::string(read_buf, bytes_read)); in TEST_F()
252 char read_buf[100]; in TEST_F() local
253 size_t bytes_read = fread(read_buf, 1, sizeof(read_buf), fp.get()); in TEST_F()
255 EXPECT_EQ(file_contents, std::string(read_buf, bytes_read)); in TEST_F()
/external/honggfuzz/examples/terminal-emulators/
Dterminal-test.c84 char read_buf[1024 * 1024]; in LLVMFuzzerTestOneInput() local
85 ssize_t sz = read(fd_tty_read, read_buf, sizeof(read_buf)); in LLVMFuzzerTestOneInput()
108 .iov_base = (void*)read_buf, in LLVMFuzzerTestOneInput()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync01.c92 char read_buf[BUF_SIZE]; /* buffer to hold data read from file */ in main() local
119 nread = read(fildes, read_buf, sizeof(read_buf)); in main()
129 if (read_buf[count] != 1) in main()
/external/libxcam/tests/
Dtest-image-blend.cpp172 SmartPtr<VideoBuffer> read_buf; in main() local
329 read_buf = input0; in main()
330 ret = file_in0.read_buf (read_buf); in main()
335 read_buf = input1; in main()
336 ret = file_in1.read_buf (read_buf); in main()
Dtest-soft-image.cpp110 XCamReturn read_buf ();
196 SoftElement::read_buf () in read_buf() function in SoftElement
201 return _file.read_buf (_buf); in read_buf()
494 ret = ins[i]->read_buf(); in run_stitcher()
714 CHECK (ins[0]->read_buf(), "read buffer from file(%s) failed.", ins[0]->get_file_name ()); in main()
715 CHECK (ins[1]->read_buf(), "read buffer from file(%s) failed.", ins[1]->get_file_name ()); in main()
728 CHECK (ins[0]->read_buf(), "read buffer from file(%s) failed.", ins[0]->get_file_name ()); in main()
Dtest-pipe-manager.cpp137 read_buf (SmartPtr<VideoBuffer> &buf, FileFP &file) in read_buf() function
454 ret = read_buf (video_buf, input_fp); in main()
456 ret = read_buf (video_buf, input_fp); in main()
/external/libxcam/xcore/
Dfake_poll_thread.cpp78 FakePollThread::read_buf (SmartPtr<VideoBuffer> &buf) in read_buf() function in XCam::FakePollThread
122 ret = read_buf (buf); in poll_buffer_loop()
124 ret = read_buf (buf); in poll_buffer_loop()
Dimage_file_handle.h38 XCamReturn read_buf (const SmartPtr<VideoBuffer> &buf);
Dfake_poll_thread.h49 XCamReturn read_buf (SmartPtr<VideoBuffer> &buf);
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c61 char read_buf[BUF_SIZE]; in verify_pollin() local
85 SAFE_READ(1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
/external/ltp/testcases/kernel/syscalls/epoll_ctl/
Depoll_ctl01.c90 char read_buf[sizeof(write_buf)]; in check_epoll_ctl() local
132 SAFE_READ(1, fd[0], read_buf, sizeof(write_buf)); in check_epoll_ctl()
/external/ltp/testcases/kernel/syscalls/open/
Dopen12.c144 char read_buf; in test_noatime() local
171 SAFE_READ(cleanup, 1, TEST_RETURN, &read_buf, 1); in test_noatime()
/external/llvm/test/CodeGen/ARM/
D2011-06-29-MergeGlobalsAlign.ll6 @read_buf = external global i32 (i8*, i32)*
/external/swiftshader/third_party/LLVM/test/CodeGen/ARM/
D2011-06-29-MergeGlobalsAlign.ll8 @read_buf = external global i32 (i8*, i32)*

12