/hardware/nxp/secure_element/ls_client/src/ |
D | LsLib.cpp | 571 uint8_t read_buf[1024] = {0}; in LSC_Check_KeyIdentifier() local 583 memcpy(read_buf, temp_buf, wNewLen); in LSC_Check_KeyIdentifier() 588 status = LSC_ReadScript(Os_info, read_buf); in LSC_Check_KeyIdentifier() 592 Check_Complete_7F21_Tag(Os_info, pTranscv_Info, read_buf, &offset)) { in LSC_Check_KeyIdentifier() 601 else if (((read_buf[offset] == TAG_LSC_CMD_ID) && in LSC_Check_KeyIdentifier() 608 memset(read_buf, 0, sizeof(read_buf)); in LSC_Check_KeyIdentifier() 612 status = LSC_ReadScript(Os_info, read_buf); in LSC_Check_KeyIdentifier() 614 if ((read_buf[offset] == TAG_JSBL_HDR_ID) && in LSC_Check_KeyIdentifier() 619 len_byte = Numof_lengthbytes(&read_buf[offset], &wLen); in LSC_Check_KeyIdentifier() 621 if (read_buf[offset] == TAG_SIGNATURE_ID) { in LSC_Check_KeyIdentifier() [all …]
|
/hardware/knowles/athletico/sound_trigger_hal/tests/ |
D | spi_reliability_test.c | 50 void *buf = NULL, *read_buf = NULL; in main() local 69 read_buf = malloc(len); in main() 70 if (NULL == read_buf) { in main() 128 ppb.param_blk = (uintptr_t) read_buf; in main() 137 err = memcmp(buf, read_buf, len); in main() 145 fwrite(read_buf, 1, len, fp); in main() 154 if (read_buf) in main() 155 free (read_buf); in main()
|
/hardware/nxp/secure_element/ls_client/inc/ |
D | LsLib.h | 257 LSCSTATUS Check_Certificate_Tag(uint8_t* read_buf, uint16_t* offset1); 269 LSCSTATUS Check_SerialNo_Tag(uint8_t* read_buf, uint16_t* offset1); 281 LSCSTATUS Check_LSRootID_Tag(uint8_t* read_buf, uint16_t* offset1); 292 LSCSTATUS Check_CertHoldID_Tag(uint8_t* read_buf, uint16_t* offset1); 303 LSCSTATUS Check_Date_Tag(uint8_t* read_buf, uint16_t* offset1); 315 LSCSTATUS Check_45_Tag(uint8_t* read_buf, uint16_t* offset1, uint8_t* tag45Len); 329 uint8_t* read_buf, uint16_t* offset1, 344 uint8_t* read_buf, uint16_t* offset); 440 LSCSTATUS LSC_ReadScript(Lsc_ImageInfo_t* Os_info, uint8_t* read_buf); 532 uint8_t Numof_lengthbytes(uint8_t* read_buf, int32_t* wLen);
|
/hardware/interfaces/bluetooth/1.0/default/test/ |
D | async_fd_watcher_unittest.cc | 285 char read_buf[1] = {0}; in TEST_F() local 286 int n = TEMP_FAILURE_RETRY(read(fd, read_buf, sizeof(read_buf))); in TEST_F() 287 ASSERT_TRUE(n == sizeof(read_buf)); in TEST_F() 288 ASSERT_TRUE(read_buf[0] == '1'); in TEST_F() 293 char read_buf[1] = {0}; in TEST_F() local 294 int n = TEMP_FAILURE_RETRY(read(fd, read_buf, sizeof(read_buf))); in TEST_F() 295 ASSERT_TRUE(n == sizeof(read_buf)); in TEST_F() 296 ASSERT_TRUE(read_buf[0] == '2'); in TEST_F()
|
/hardware/qcom/audio/legacy/alsa_sound/ |
D | AudioUsbALSA.cpp | 100 char *read_buf, *str_start, *channel_start, *ratesStr, *ratesStrForVal, in getCap() local 120 read_buf = (char *)malloc(BUFFSIZE); in getCap() 121 memset(read_buf, 0x0, BUFFSIZE); in getCap() 122 err = read(fd, read_buf, BUFFSIZE); in getCap() 123 str_start = strstr(read_buf, type); in getCap() 127 free(read_buf); in getCap() 135 free(read_buf); in getCap() 142 free(read_buf); in getCap() 157 free(read_buf); in getCap() 165 free(read_buf); in getCap() [all …]
|
/hardware/qcom/audio/hal/audio_extn/ |
D | usb.c | 331 char *read_buf = NULL; in usb_get_capability() local 371 read_buf = (char *)calloc(1, USB_BUFF_SIZE + 1); in usb_get_capability() 373 if (!read_buf) { in usb_get_capability() 379 if(read(fd, read_buf, USB_BUFF_SIZE) < 0) { in usb_get_capability() 383 str_start = strstr(read_buf, ((type == USB_PLAYBACK) ? in usb_get_capability() 392 str_end = strstr(read_buf, ((type == USB_PLAYBACK) ? in usb_get_capability() 511 if (read_buf) free(read_buf); in usb_get_capability()
|
/hardware/interfaces/wifi/1.3/default/ |
D | wifi_chip.cpp | 169 std::array<char, 32 * 1024> read_buf; in cpioWriteHeader() local 171 sprintf(read_buf.data(), in cpioWriteHeader() 178 if (write(out_fd, read_buf.data(), llen) == -1) { in cpioWriteHeader() 202 std::array<char, 32 * 1024> read_buf; in cpioWriteFileContent() local 206 ssize_t bytes_read = read(fd_read, read_buf.data(), read_buf.size()); in cpioWriteFileContent() 212 if (write(out_fd, read_buf.data(), bytes_read) == -1) { in cpioWriteFileContent() 236 std::array<char, 4096> read_buf; in cpioWriteFileTrailer() local 237 read_buf.fill(0); in cpioWriteFileTrailer() 238 if (write(out_fd, read_buf.data(), in cpioWriteFileTrailer() 239 sprintf(read_buf.data(), "070701%040X%056X%08XTRAILER!!!", 1, in cpioWriteFileTrailer()
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | alsa_ucm.c | 2124 char *read_buf = NULL, *next_str = NULL, *current_str = NULL, *buf = NULL; in second_stage_parsing_thread() local 2141 read_buf = (char *) mmap(0, st.st_size, PROT_READ | PROT_WRITE, in second_stage_parsing_thread() 2143 if (read_buf == MAP_FAILED) { in second_stage_parsing_thread() 2148 current_str = read_buf; in second_stage_parsing_thread() 2249 munmap(read_buf, st.st_size); in second_stage_parsing_thread() 2283 char *read_buf, *next_str, *current_str, *buf, *p, *verb_name; in snd_ucm_parse() local 2300 read_buf = (char *) mmap(0, st.st_size, PROT_READ | PROT_WRITE, in snd_ucm_parse() 2302 if (read_buf == MAP_FAILED) { in snd_ucm_parse() 2307 current_str = read_buf; in snd_ucm_parse() 2313 munmap(read_buf, st.st_size); in snd_ucm_parse() [all …]
|