Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 94) sorted by relevance

1234

/hardware/invensense/mlsdk/mllite/
Dml_stored_data.c393 int ptr = INV_CAL_HDR_LEN; in inv_load_cal_V2() local
408 inv_obj.temp_ptrs[i] += 16777216L * ((long)calData[ptr++]); in inv_load_cal_V2()
409 inv_obj.temp_ptrs[i] += 65536L * ((long)calData[ptr++]); in inv_load_cal_V2()
410 inv_obj.temp_ptrs[i] += 256 * ((int)calData[ptr++]); in inv_load_cal_V2()
411 inv_obj.temp_ptrs[i] += (int)calData[ptr++]; in inv_load_cal_V2()
416 inv_obj.temp_valid_data[i] += 16777216L * ((long)calData[ptr++]); in inv_load_cal_V2()
417 inv_obj.temp_valid_data[i] += 65536L * ((long)calData[ptr++]); in inv_load_cal_V2()
418 inv_obj.temp_valid_data[i] += 256 * ((int)calData[ptr++]); in inv_load_cal_V2()
419 inv_obj.temp_valid_data[i] += (int)calData[ptr++]; in inv_load_cal_V2()
427 tmp += 16777216LL * (long long)calData[ptr++]; in inv_load_cal_V2()
[all …]
/hardware/ti/omap4xxx/
Dtm.c23 char *ptr[6]; in main() local
27 ptr[0] = malloc(10); in main()
28 ptr[1] = calloc(1,20); in main()
29 ptr[2] = malloc(30); in main()
30 ptr[3] = malloc(40); in main()
31 ptr[4] = malloc(50); in main()
32 ptr[5] = malloc(60); in main()
34 free(ptr[1]); in main()
35 free(ptr[1]); in main()
36 free(ptr[2]); in main()
[all …]
Dheaptracker.c27 extern void *__real_realloc(void *ptr, size_t size);
29 extern void __real_free(void *ptr);
361 void __wrap_free(void *ptr) in __wrap_free() argument
364 if (!ptr) /* ignore free(NULL) */ in __wrap_free()
367 hdr = meta(ptr); in __wrap_free()
402 void *__wrap_realloc(void *ptr, size_t size) in __wrap_realloc() argument
407 __wrap_free(ptr); in __wrap_realloc()
411 if (!ptr) in __wrap_realloc()
414 hdr = meta(ptr); in __wrap_realloc()
/hardware/qcom/camera/QCamera/stack/common/
Dcam_list.h38 #define member_of(ptr, type, member) ({ \ argument
39 const typeof(((type *)0)->member) *__mptr = (ptr); \
46 static inline void cam_list_init(struct cam_list *ptr) in cam_list_init() argument
48 ptr->next = ptr; in cam_list_init()
49 ptr->prev = ptr; in cam_list_init()
63 static inline void cam_list_del_node(struct cam_list *ptr) in cam_list_del_node() argument
65 struct cam_list *prev = ptr->prev; in cam_list_del_node()
66 struct cam_list *next = ptr->next; in cam_list_del_node()
68 next->prev = ptr->prev; in cam_list_del_node()
69 prev->next = ptr->next; in cam_list_del_node()
[all …]
/hardware/qcom/audio/libalsa-intf/
Dalsa_audio.h92 #define __snd_alloca(ptr,type) do { *ptr = (type *) alloca(sizeof(type)); memset(*ptr, 0, sizeof(ty… argument
93 #define snd_ctl_elem_id_alloca(ptr) __snd_alloca(ptr, snd_ctl_elem_id) argument
94 #define snd_ctl_card_info_alloca(ptr) __snd_alloca(ptr, snd_ctl_card_info) argument
95 #define snd_ctl_event_alloca(ptr) __snd_alloca(ptr, snd_ctl_event) argument
96 #define snd_ctl_elem_list_alloca(ptr) __snd_alloca(ptr, snd_ctl_elem_list) argument
97 #define snd_ctl_elem_info_alloca(ptr) __snd_alloca(ptr, snd_ctl_elem_info) argument
98 #define snd_ctl_elem_value_alloca(ptr) __snd_alloca(ptr, snd_ctl_elem_value) argument
/hardware/ti/omap4xxx/camera/
DMemoryManager.cpp171 unsigned int ptr = (unsigned int) *bufEntry++; in freeBuffer() local
172 if(mIonBufLength.valueFor(ptr)) in freeBuffer()
174 munmap((void *)ptr, mIonBufLength.valueFor(ptr)); in freeBuffer()
175 close(mIonFdMap.valueFor(ptr)); in freeBuffer()
176 ion_free(mIonFd, (ion_handle*)mIonHandleMap.valueFor(ptr)); in freeBuffer()
177 mIonHandleMap.removeItem(ptr); in freeBuffer()
178 mIonBufLength.removeItem(ptr); in freeBuffer()
179 mIonFdMap.removeItem(ptr); in freeBuffer()
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmendian.h81 #define ltoh_ua(ptr) \ argument
82 (sizeof(*(ptr)) == sizeof(uint8) ? *(const uint8 *)(ptr) : \
83 sizeof(*(ptr)) == sizeof(uint16) ? _LTOH16_UA((const uint8 *)(ptr)) : \
84 sizeof(*(ptr)) == sizeof(uint32) ? _LTOH32_UA((const uint8 *)(ptr)) : \
87 #define ntoh_ua(ptr) \ argument
88 (sizeof(*(ptr)) == sizeof(uint8) ? *(const uint8 *)(ptr) : \
89 sizeof(*(ptr)) == sizeof(uint16) ? _NTOH16_UA((const uint8 *)(ptr)) : \
90 sizeof(*(ptr)) == sizeof(uint32) ? _NTOH32_UA((const uint8 *)(ptr)) : \
/hardware/broadcom/wlan/bcm4329/dhdutil/include/
Dbcmendian.h81 #define ltoh_ua(ptr) \ argument
82 (sizeof(*(ptr)) == sizeof(uint8) ? *(const uint8 *)(ptr) : \
83 sizeof(*(ptr)) == sizeof(uint16) ? _LTOH16_UA((const uint8 *)(ptr)) : \
84 sizeof(*(ptr)) == sizeof(uint32) ? _LTOH32_UA((const uint8 *)(ptr)) : \
87 #define ntoh_ua(ptr) \ argument
88 (sizeof(*(ptr)) == sizeof(uint8) ? *(const uint8 *)(ptr) : \
89 sizeof(*(ptr)) == sizeof(uint16) ? _NTOH16_UA((const uint8 *)(ptr)) : \
90 sizeof(*(ptr)) == sizeof(uint32) ? _NTOH32_UA((const uint8 *)(ptr)) : \
/hardware/ti/wlan/wl1271/utils/
Dmem.c152 void *ptr; in mem_Calloc() local
161 ptr = mem_Alloc (hMem, total); in mem_Calloc()
163 if (ptr != NULL) in mem_Calloc()
165 os_memorySet (pMemMng->hOs, ptr, 0, total); in mem_Calloc()
168 return ptr; in mem_Calloc()
191 void mem_Free (TI_HANDLE hMem, void* ptr, TI_UINT32 size) in mem_Free() argument
194 TMemBlock *pMemBlock = (TMemBlock *)((TI_UINT8 *)ptr - sizeof(TMemBlock)); in mem_Free()
197 os_printf ("os_memoryFree(%p, %u)\n", ptr, size); in mem_Free()
/hardware/ti/omap3/omx/system/src/openmax_il/perf/src/
Dperf_config.c118 char const *ptr; in read_line() local
129 for (ptr = line; *ptr && !isspace(*ptr) && *ptr != '.' && *ptr != '='; ptr++); in read_line()
131 if (*ptr == '.') in read_line()
134 if (!tag || strncmp(line, tag, ptr - line)) return; in read_line()
137 line = ptr + 1; in read_line()
/hardware/ti/omap3/omx/system/src/openmax_il/common/inc/
DOMX_TI_Debug.h198 char line[80], *ptr, *end, out[75], err[75]; \
201 for (ptr = line; isspace(*ptr); ptr++); \
202 if (!strncmp(ptr, tag_str, strlen(tag_str))) { \
203 ptr += strlen(tag_str); \
204 end = ptr + strlen(ptr); \
205 while (end > ptr && isspace(end[-1])) *--end = '\0'; \
206 if (file && !strncmp(ptr, "_ERR", 4) && isspace(ptr[4])) { \
207 ptr += 4; \
208 while (isspace(*ptr)) ptr++; \
209 strcpy(err, ptr); \
[all …]
/hardware/invensense/mlsdk/mlutils/
Dmputest.c1118 int ptr; in inv_mpu_test() local
1195 ptr = 0; in inv_mpu_test()
1196 dataStore[ptr++] = 0; /* total len of factory cal */ in inv_mpu_test()
1197 dataStore[ptr++] = 0; in inv_mpu_test()
1198 dataStore[ptr++] = 0; in inv_mpu_test()
1199 dataStore[ptr++] = ML_INIT_CAL_LEN; in inv_mpu_test()
1200 dataStore[ptr++] = 0; in inv_mpu_test()
1201 dataStore[ptr++] = 5; /* record type 5 - initial calibration */ in inv_mpu_test()
1205 USHORT_TO_CHARS(&dataStore[ptr], tmp); in inv_mpu_test()
1206 ptr += 2; in inv_mpu_test()
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu.c587 void *ptr = NULL; in dhd_pktgen() local
595 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
597 memcpy(&pktgen, ptr, sizeof(pktgen)); in dhd_pktgen()
746 void *ptr = NULL; in dhd_sd_blocksize() local
773 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
774 printf("Function %d block size: %d\n", func, *(int*)ptr); in dhd_sd_blocksize()
881 char *ptr = NULL; in dhd_sdreg() local
897 sdreg.offset = strtoul(argv[1], &ptr, 0); in dhd_sdreg()
898 if (*ptr && *ptr != '/') { in dhd_sdreg()
904 if (*ptr == '/') { in dhd_sdreg()
[all …]
/hardware/invensense/mlsdk/platform/include/
Dmlos.h63 inv_error_t inv_free(void *ptr);
89 static inline void kfree(void *ptr) in kfree() argument
91 inv_free(ptr); in kfree()
/hardware/broadcom/wlan/bcm4329/dhdutil/
Ddhdu.c570 void *ptr = NULL; in dhd_pktgen() local
578 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
580 memcpy(&pktgen, ptr, sizeof(pktgen)); in dhd_pktgen()
729 void *ptr = NULL; in dhd_sd_blocksize() local
756 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
757 printf("Function %d block size: %d\n", func, *(int*)ptr); in dhd_sd_blocksize()
864 char *ptr = NULL; in dhd_sdreg() local
880 sdreg.offset = strtoul(argv[1], &ptr, 0); in dhd_sdreg()
881 if (*ptr && *ptr != '/') { in dhd_sdreg()
887 if (*ptr == '/') { in dhd_sdreg()
[all …]
/hardware/invensense/libsensors_iio/software/core/mllite/linux/
Dmlos.h51 inv_error_t inv_free(void *ptr);
79 static inline void kfree(void *ptr) in kfree() argument
81 inv_free(ptr); in kfree()
Dmlos_linux.c58 inv_error_t inv_free(void *ptr) in inv_free() argument
61 if (ptr) { in inv_free()
62 free(ptr); in inv_free()
/hardware/ti/omap3/omx/system/src/openmax_il/omx_core/inc/
DOMX_DebugMem.h19 void* OMX_DebugMem_realloc(void *ptr, size_t size,
21 void OMX_DebugMem_free(void* ptr,
23 int OMX_DebugMem_validate(void *ptr,
/hardware/ti/omap4xxx/domx/omx_core/inc/
DOMX_DebugMem.h43 void* OMX_DebugMem_realloc(void *ptr, size_t size,
45 void OMX_DebugMem_free(void* ptr,
47 int OMX_DebugMem_validate(void *ptr,
/hardware/qcom/camera/
DQCameraHWI_Record_7x27A.cpp54 void QCameraStream_record::deleteInstance(QCameraStream *ptr) in deleteInstance() argument
57 if (ptr){ in deleteInstance()
58 ptr->release(); in deleteInstance()
59 delete ptr; in deleteInstance()
60 ptr = NULL; in deleteInstance()
/hardware/ti/wlan/wl1271/stad/src/Sta_Management/
Dtemplates.c85 nullDataTemplate_t *pBuffer = (nullDataTemplate_t *)pTemplate->ptr; in buildNullTemplate()
136 disconnTemplate_t *pBuffer = (disconnTemplate_t *)pTemplate->ptr; in buildDisconnTemplate()
192 tTemplateStruct.ptr = (TI_UINT8 *)&tProbeReqTemplate; in setDefaultProbeReqTemplate()
226 probeReqTemplate_t *pBuffer = (probeReqTemplate_t *)pTemplate->ptr; in buildProbeReqTemplate()
404 probeRspTemplate_t *pBuffer = (probeRspTemplate_t *)pTemplate->ptr; in buildProbeRspTemplate()
632 psPollTemplate_t *pBuffer = (psPollTemplate_t *)pTemplate->ptr; in buildPsPollTemplate()
701 QosNullDataTemplate_t *pBuffer = (QosNullDataTemplate_t *)pTemplate->ptr; in buildQosNullDataTemplate()
768 ArpRspTemplate_t *pBuffer = (ArpRspTemplate_t *)pTemplate->ptr; in buildArpRspTemplate()
769 TI_UINT8 *ptr = (TI_UINT8 *)pBuffer; in buildArpRspTemplate() local
863 ptr = (TI_UINT8 *)&pBuffer->LLC.DSAP; in buildArpRspTemplate()
[all …]
/hardware/ti/wlan/mac80211/ti-utils/
Dini.c120 #define COMPARE_N_ADD(temp, str, val, ptr, size) \ argument
123 unsigned char *p = ptr; \
126 if (i != sizeof(ptr)-1) { \
133 #define DBG_COMPARE_N_ADD(temp, str, val, ptr, size) \ argument
136 unsigned char *p = ptr; \
139 if (i != sizeof(ptr)-1) { \
143 p = ptr; \
153 #define COMPARE_N_ADD2(temp, str, val, ptr, size) \ argument
156 unsigned short *p = ptr; \
159 if (i != sizeof(ptr)-1) { \
[all …]
/hardware/ti/omap4xxx/test/CameraHal/
Dcamera_test_menu.cpp572 uint8_t *ptr = (uint8_t*) mem->pointer(); in my_preview_callback() local
574 …x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x", ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5], ptr[6], ptr in my_preview_callback()
726 uint8_t *ptr = (uint8_t*) dataPtr->pointer(); in postDataTimestamp() local
728 …x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x", ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5], ptr[6], ptr in postDataTimestamp()
/hardware/ti/omap4xxx/ion/
Dion.c108 int flags, off_t offset, unsigned char **ptr, int *map_fd) in ion_map() argument
121 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset); in ion_map()
122 if (*ptr == MAP_FAILED) { in ion_map()
/hardware/qcom/camera/QCamera/stack/mm-camera-test/src/
Dmm_qcamera_app.c156 my_cam_app.hal_lib.ptr = dlopen("/usr/lib/hw/camera.msm7630.so", RTLD_LAZY); in mm_app_load_hal()
158 my_cam_app.hal_lib.ptr = dlopen("/usr/lib/hw/camera.msm7627A.so", RTLD_LAZY); in mm_app_load_hal()
161 my_cam_app.hal_lib.ptr = dlopen("libmmcamera_interface_badger.so", RTLD_NOW); in mm_app_load_hal()
163 if (!my_cam_app.hal_lib.ptr) { in mm_app_load_hal()
168 dlsym(my_cam_app.hal_lib.ptr, in mm_app_load_hal()
171 dlsym(my_cam_app.hal_lib.ptr, in mm_app_load_hal()

1234