/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
H A D | osal_deal_log_format.c | 29 const char *ptr = fmt; in deal_format() local 30 const char *ptr_cur = ptr; in deal_format() 50 ret = strncpy_s(&dest[index], size - index, ptr, ptr_cur - ptr + 1); in deal_format() 55 index += (ptr_cur - ptr + 1); in deal_format() 56 ptr = ptr_cur + g_property_len[i]; in deal_format() 57 ptr_cur = ptr; in deal_format() 63 ret = strcat_s(&dest[index], size - index, ptr); in deal_format()
|
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
H A D | devmgr_uevent.c | 111 char *ptr = NULL; in DevMgrUeventReplaceLineFeed() local 113 while ((ptr = strstr(str, subStr)) != NULL) { in DevMgrUeventReplaceLineFeed() 114 ptr[0] = c; in DevMgrUeventReplaceLineFeed() 116 if (strlen(ptr) < 1 || strlen(ptr) > SIZE_MAX) { in DevMgrUeventReplaceLineFeed() 117 HDF_LOGE("strlen(ptr) overflows"); in DevMgrUeventReplaceLineFeed() 120 const size_t len = strlen(ptr) - 1; in DevMgrUeventReplaceLineFeed() 122 ptr[i] = ptr[i + 1]; in DevMgrUeventReplaceLineFeed() 124 ptr[ in DevMgrUeventReplaceLineFeed() 208 char *ptr = strchr(event, ':'); DevMgrUeventParseHdfEvent() local 273 char *ptr = line; DevMgrUeventParseRule() local [all...] |
/drivers/peripheral/sensor/hal/include/ |
H A D | sensor_common.h | 22 #define CHECK_NULL_PTR_RETURN_VALUE(ptr, ret) do { \ 23 if ((ptr) == NULL) { \ 29 #define CHECK_NULL_PTR_RETURN(ptr) do { \ 30 if ((ptr) == NULL) { \
|
/drivers/peripheral/user_auth/hdi_service/adaptor/inc/ |
H A D | adaptor_memory.h | 27 void Free(void *ptr); 29 #define IAM_FREE_AND_SET_NULL(ptr) \ 31 Free(ptr); \ 32 (ptr) = NULL; \
|
/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/ |
H A D | adaptor_memory.h | 27 void Free(void *ptr); 29 #define IAM_FREE_AND_SET_NULL(ptr) \ 31 Free(ptr); \ 32 (ptr) = NULL; \
|
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiooffloadrender_fuzzer/ |
H A D | audiooffloadrender_fuzzer.cpp | 27 static uint32_t Convert2Uint32(const uint8_t *ptr) in Convert2Uint32() argument 29 if (ptr == nullptr) { in Convert2Uint32() 36 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in Convert2Uint32()
|
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiomanager_fuzzer/ |
H A D | audiomanager_fuzzer.cpp | 27 static uint32_t Convert2Uint32(const uint8_t *ptr) in Convert2Uint32() argument 29 if (ptr == nullptr) { in Convert2Uint32() 36 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in Convert2Uint32()
|
/drivers/peripheral/input/test/fuzztest/input_fuzzer/ |
H A D | input_fuzzer.cpp | 29 uint32_t Convert2Uint32(const uint8_t* ptr) in Convert2Uint32() argument 31 if (ptr == nullptr) { in Convert2Uint32() 38 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in Convert2Uint32()
|
/drivers/peripheral/usb/test/fuzztest/usbdevice_fuzzer/ |
H A D | usbdevice_fuzzer.cpp | 32 uint32_t Convert2Uint32(const uint8_t *ptr) in Convert2Uint32() argument 34 if (ptr == nullptr) { in Convert2Uint32() 41 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in Convert2Uint32()
|
/drivers/peripheral/audio/test/audio_utils/audio_mixer/ |
H A D | audio_mixer.c | 615 long *ptr; in PrintValue() local 626 ptr = CtlElemInfoGetVals(info); in PrintValue() 632 printf("%i", (int)ptr[idx]); in PrintValue() 788 static uint32_t ChannelsMask(char **ptr, unsigned int chns) in ChannelsMask() argument 793 if (strncasecmp(*ptr, msk->name, strlen(msk->name)) == 0) { in ChannelsMask() 795 while (**ptr != '\0' && **ptr != ',' && **ptr != ' ' && **ptr != '\t') { in ChannelsMask() 796 (*ptr) in ChannelsMask() 810 DirMask(char **ptr, unsigned int dir) DirMask() argument 855 FillChnmap(struct AudioMixerCtlElemInfo *info, uint32_t chns, uint32_t dir, char **ptr) FillChnmap() argument 898 char *ptr = NULL; FillChnlsIntVal() local 984 char *ptr = NULL; FillIntVal() local 1031 char *ptr = NULL; FillEnumVal() local 1054 unsigned char *ptr = buf; FillBytesVal() local 1157 char *ptr = NULL; GetSndCardType() local [all...] |
/drivers/peripheral/user_auth/test/unittest/mocks/src/ |
H A D | mock_adaptor_memory.cpp | 39 void MockMemMgr::FreeTest(void *ptr) in FreeTest() argument 41 if (ptr == NULL) { in FreeTest() 44 free(ptr); in FreeTest() 53 IMPLEMENT_FUNCTION_WITH_INVOKER(MockMemMgr, void, Free, (void *ptr), MockMemMgr::FreeTest);
|
/drivers/peripheral/vibrator/hal/include/ |
H A D | vibrator_controller.h | 26 #define CHECK_NULL_PTR_RETURN_VALUE(ptr, ret) do { \ 27 if ((ptr) == NULL) { \ 33 #define CHECK_NULL_PTR_RETURN(ptr) do { \ 34 if ((ptr) == NULL) { \
|
/drivers/hdf_core/framework/test/fuzztest/servmgr_cpp_fuzzer/servstatlistenerstub_fuzzer/ |
H A D | servstatlistenerstub_fuzzer.cpp | 43 uint32_t Convert2Uint32(const uint8_t *ptr) in Convert2Uint32() argument 45 if (ptr == nullptr) { in Convert2Uint32() 52 return (ptr[INDEX_ZERO] << ZEROTH_DIGIT_OFFSET) | (ptr[INDEX_ONE] << FIRST_DIGIT_OFFSET) | in Convert2Uint32() 53 (ptr[INDEX_TWO] << SECOND_DIGIT_OFFSET) | ptr[INDEX_THREE]; in Convert2Uint32()
|
/drivers/peripheral/audio/effect/test/fuzztest/effectmodel_fuzzer/ |
H A D | effectmodel_fuzzer.cpp | 39 static uint32_t Convert2Uint32(const uint8_t *ptr) in Convert2Uint32() argument 41 if (ptr == nullptr) { in Convert2Uint32() 48 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in Convert2Uint32()
|
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codechdi_fuzzer/ |
H A D | codec_fuzzer.cpp | 35 uint32_t Convert2Uint32(const uint8_t* ptr) in Convert2Uint32() argument 37 if (ptr == nullptr) { in Convert2Uint32() 44 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in Convert2Uint32()
|
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codecomx_fuzzer/ |
H A D | codec_fuzzer.cpp | 35 uint32_t Convert2Uint32(const uint8_t* ptr) in Convert2Uint32() argument 37 if (ptr == nullptr) { in Convert2Uint32() 44 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in Convert2Uint32()
|
/drivers/peripheral/input/test/fuzztest/hidddk_fuzzer/ |
H A D | hidddk_fuzzer.cpp | 37 uint32_t Convert2Uint32(const uint8_t *ptr) in Convert2Uint32() argument 39 if (ptr == nullptr) { in Convert2Uint32() 40 HDF_LOGE("%{public}s: ptr is null", __func__); in Convert2Uint32() 47 return (ptr[ZERO_BIT] << ZERO_MOVE_LEN) | (ptr[FIRST_BIT] << FIRST_MOVE_LEN) | (ptr[SECOND_BIT] << in Convert2Uint32() 48 SECOND_MOVE_LEN) | (ptr[THIRD_BIT]); in Convert2Uint32()
|
/drivers/peripheral/light/test/fuzztest/light_fuzzer/ |
H A D | light_fuzzer.cpp | 36 uint32_t Convert2Uint32(const uint8_t* ptr) in Convert2Uint32() argument 38 if (ptr == nullptr) { in Convert2Uint32() 45 return (ptr[ARRAY0] << DIGIT24) | (ptr[ARRAY1] << DIGIT16) | (ptr[ARRAY2] << DIGIT8) | (ptr[ARRAY3]); in Convert2Uint32()
|
/drivers/peripheral/motion/test/fuzztest/motion_fuzzer/ |
H A D | motion_fuzzer.cpp | 37 uint32_t Convert2Uint32(const uint8_t* ptr) in Convert2Uint32() argument 39 if (ptr == nullptr) { in Convert2Uint32() 46 return (ptr[ARRAY0] << DIGIT24) | (ptr[ARRAY1] << DIGIT16) | (ptr[ARRAY2] << DIGIT8) | (ptr[ARRAY3]); in Convert2Uint32()
|
/drivers/peripheral/sensor/test/fuzztest/sensor_fuzzer/ |
H A D | sensor_fuzzer.cpp | 36 uint32_t Convert2Uint32(const uint8_t* ptr) in Convert2Uint32() argument 38 if (ptr == nullptr) { in Convert2Uint32() 45 return (ptr[ARRAY0] << DIGIT24) | (ptr[ARRAY1] << DIGIT16) | (ptr[ARRAY2] << DIGIT8) | (ptr[ARRAY3]); in Convert2Uint32()
|
/drivers/peripheral/usb/test/fuzztest/usb_fuzzer/ |
H A D | usb_fuzzer.cpp | 36 uint32_t Convert2Uint32(const uint8_t *ptr)
in Convert2Uint32() argument 38 if (ptr == nullptr) {
in Convert2Uint32() 39 HDF_LOGE("%{public}s: ptr is null", __func__);
in Convert2Uint32() 46 return (ptr[ZERO_BIT] << ZERO_MOVE_LEN) | (ptr[FIRST_BIT] << FIRST_MOVE_LEN) | (ptr[SECOND_BIT] <<
in Convert2Uint32() 47 SECOND_MOVE_LEN) | (ptr[THIRD_BIT]);
in Convert2Uint32()
|
/drivers/peripheral/usb/test/fuzztest/usbddk_fuzzer/ |
H A D | usbddk_fuzzer.cpp | 37 uint32_t Convert2Uint32(const uint8_t *ptr)
in Convert2Uint32() argument 39 if (ptr == nullptr) {
in Convert2Uint32() 40 HDF_LOGE("%{public}s: ptr is null", __func__);
in Convert2Uint32() 47 return (ptr[ZERO_BIT] << ZERO_MOVE_LEN) | (ptr[FIRST_BIT] << FIRST_MOVE_LEN) | (ptr[SECOND_BIT] <<
in Convert2Uint32() 48 SECOND_MOVE_LEN) | (ptr[THIRD_BIT]);
in Convert2Uint32()
|
/drivers/peripheral/usb/test/fuzztest/usbhost_fuzzer/ |
H A D | usbhost_fuzzer.cpp | 39 uint32_t Convert2Uint32(const uint8_t *ptr) in Convert2Uint32() argument 41 if (ptr == nullptr) { in Convert2Uint32() 48 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in Convert2Uint32()
|
/drivers/peripheral/vibrator/test/fuzztest/vibrator_fuzzer/ |
H A D | vibrator_fuzzer.cpp | 36 uint32_t Convert2Uint32(const uint8_t* ptr) in Convert2Uint32() argument 38 if (ptr == nullptr) { in Convert2Uint32() 45 return (ptr[ARRAY0] << DIGIT24) | (ptr[ARRAY1] << DIGIT16) | (ptr[ARRAY2] << DIGIT8) | (ptr[ARRAY3]); in Convert2Uint32()
|
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/include/ |
H A D | platform_assert.h | 55 #define CHECK_NULL(ptr) CHECK((ptr) == NULL) 56 #define CHECK_NOT_NULL(ptr) CHECK((ptr) != NULL) 77 #define CHECK_NULL_RETURN(ptr, ret) CHECK_AND_RETURN((ptr) == NULL, ret) 78 #define CHECK_NOT_NULL_RETURN(ptr, ret) CHECK_AND_RETURN((ptr) != NULL, ret)
|