Home
last modified time | relevance | path

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

12345678

/hardware/invensense/60xx/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/intel/img/psb_video/fw/msvdx/
Dmsvdx_bin.c56 FILE *ptr = NULL; in main() local
77 ptr = fopen("msvdx_fw_mfld_DE2.0.bin", "w"); in main()
78 if (ptr == NULL) { in main()
82 fwrite(&fw, sizeof(fw), 1, ptr); in main()
85 fwrite(&fw_DE3.pui8Text[i*4], 4, 1, ptr); in main()
88 fwrite(&fw_DE3.pui8Data[i*4], 4, 1, ptr); in main()
90 fclose(ptr); in main()
93 ptr = fopen("unsigned_msvdx_fw.bin", "w"); in main()
94 if (ptr == NULL) { in main()
106 fwrite(buf, 1, LINKED_LIST_SIZE, ptr); in main()
[all …]
/hardware/intel/common/wrs_omxil_core/utils/inc/
Dlist.h64 #define list_foreach(list, ptr) \ argument
65 for (ptr = list; \
66 ptr != NULL; \
67 ptr = __list_next(ptr))
69 #define list_foreach_safe(list, ptr, nxt) \ argument
70 for (ptr = list, nxt = __list_next(ptr); \
71 ptr != NULL; \
72 ptr = nxt, nxt = __list_next(ptr))
74 #define list_foreach_reverse(list, ptr) \ argument
75 for (ptr = __list_last(list); \
[all …]
/hardware/ti/omap4-aah/
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 …]
/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 …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/halloc/src/
Dhalloc.c50 static void * _realloc(void * ptr, size_t n);
58 void * halloc(void * ptr, size_t len) in halloc() argument
70 if (! ptr) in halloc()
87 p = structof(ptr, hblock_t, data); in halloc()
151 void * ptr = halloc(0, len*=n); in h_calloc() local
152 return ptr ? memset(ptr, 0, len) : NULL; in h_calloc()
155 void * h_realloc(void * ptr, size_t len) in h_realloc() argument
157 return halloc(ptr, len); in h_realloc()
160 void h_free(void * ptr) in h_free() argument
162 halloc(ptr, 0); in h_free()
[all …]
/hardware/ti/omap4-aah/ion/
Dion_test.c65 void _ion_tiler_map_test(unsigned char *ptr) in _ion_tiler_map_test() argument
72 ptr[i] = (unsigned char)i; in _ion_tiler_map_test()
77 if (ptr[i] != (unsigned char)i) in _ion_tiler_map_test()
79 "memory\n", __func__, i, ptr[i]); in _ion_tiler_map_test()
89 unsigned char *ptr; in ion_map_test() local
96 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd); in ion_map_test()
101 _ion_tiler_map_test(ptr); in ion_map_test()
104 ptr[i] = (unsigned char)i; in ion_map_test()
107 if (ptr[i] != (unsigned char)i) in ion_map_test()
109 "memory\n", __func__, i, ptr[i]); in ion_map_test()
[all …]
Dion.c109 int flags, off_t offset, unsigned char **ptr, int *map_fd) in ion_map() argument
122 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset); in ion_map()
123 if (*ptr == MAP_FAILED) { in ion_map()
170 int flags, off_t offset, unsigned char **ptr, int *map_fd) in ion_map_cacheable() argument
184 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset); in ion_map_cacheable()
185 if (*ptr == MAP_FAILED) { in ion_map_cacheable()
193 unsigned char *ptr) in ion_flush_cached() argument
197 .vaddr = (unsigned long)ptr, in ion_flush_cached()
204 unsigned char *ptr) in ion_inval_cached() argument
208 .vaddr = (unsigned long)ptr, in ion_inval_cached()
Dion_test_2.c119 void _ion_tiler_map_test(unsigned char *ptr) in _ion_tiler_map_test() argument
126 ptr[i] = (unsigned char)i; in _ion_tiler_map_test()
131 if (ptr[i] != (unsigned char)i) in _ion_tiler_map_test()
133 "memory\n", __func__, i, ptr[i]); in _ion_tiler_map_test()
137 void _ion_map_test(unsigned char *ptr) in _ion_map_test() argument
142 ptr[i] = (unsigned char)i; in _ion_map_test()
145 if (ptr[i] != (unsigned char)i) in _ion_map_test()
147 "memory\n", __func__, i, ptr[i]); in _ion_map_test()
155 unsigned char **ptr; in ion_map_test() local
189 ptr = (unsigned char **)malloc(count * sizeof(unsigned char **)); in ion_map_test()
[all …]
/hardware/intel/common/wrs_omxil_core/utils/src/
Dlist.c60 struct list *ptr, *tmp; in list_free_all() local
62 list_foreach_safe(list, ptr, tmp) { in list_free_all()
63 __list_free(ptr); in list_free_all()
226 struct list *ptr, *tmp; in list_delete() local
228 list_foreach_safe(list, ptr, tmp) { in list_delete()
229 if (ptr->data == data) { in list_delete()
230 list = __list_delete(list, ptr); in list_delete()
240 struct list *ptr, *tmp; in list_delete_all() local
242 list_foreach_safe(list, ptr, tmp) { in list_delete_all()
243 if (ptr->data == data) in list_delete_all()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
Dreconintra4x4.c124 unsigned char *ptr = Above; in vp8_intra4x4_predict_c() local
125 dst[0 * dst_stride + 0] = (ptr[0] + ptr[1] * 2 + ptr[2] + 2) >> 2; in vp8_intra4x4_predict_c()
127 dst[1 * dst_stride + 0] = (ptr[1] + ptr[2] * 2 + ptr[3] + 2) >> 2; in vp8_intra4x4_predict_c()
130 dst[2 * dst_stride + 0] = (ptr[2] + ptr[3] * 2 + ptr[4] + 2) >> 2; in vp8_intra4x4_predict_c()
134 dst[3 * dst_stride + 0] = (ptr[3] + ptr[4] * 2 + ptr[5] + 2) >> 2; in vp8_intra4x4_predict_c()
137 dst[3 * dst_stride + 1] = (ptr[4] + ptr[5] * 2 + ptr[6] + 2) >> 2; in vp8_intra4x4_predict_c()
139 dst[3 * dst_stride + 2] = (ptr[5] + ptr[6] * 2 + ptr[7] + 2) >> 2; in vp8_intra4x4_predict_c()
140 dst[3 * dst_stride + 3] = (ptr[6] + ptr[7] * 2 + ptr[7] + 2) >> 2; in vp8_intra4x4_predict_c()
Dreconinter.c130 unsigned char *ptr; in vp8_build_inter_predictors_b() local
131ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in vp8_build_inter_predictors_b()
135 sppf(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, d->bmi.mv.as_mv.row & 7, pred_ptr, pitch); in vp8_build_inter_predictors_b()
141 pred_ptr[0] = ptr[0]; in vp8_build_inter_predictors_b()
142 pred_ptr[1] = ptr[1]; in vp8_build_inter_predictors_b()
143 pred_ptr[2] = ptr[2]; in vp8_build_inter_predictors_b()
144 pred_ptr[3] = ptr[3]; in vp8_build_inter_predictors_b()
146 ptr += pre_stride; in vp8_build_inter_predictors_b()
153 unsigned char *ptr; in build_inter_predictors4b() local
154ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + (d->bmi.mv.as_mv.col >> 3); in build_inter_predictors4b()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/x86/
Diwalsh_sse2.asm82 mov word ptr[rdx+32*0], ax
83 mov word ptr[rdx+32*2], cx
86 mov word ptr[rdx+32*4], ax
87 mov word ptr[rdx+32*6], cx
92 mov word ptr[rdx+32*8], ax
93 mov word ptr[rdx+32*10], cx
96 mov word ptr[rdx+32*12], ax
97 mov word ptr[rdx+32*14], cx
103 mov word ptr[rdx+32*1], ax
104 mov word ptr[rdx+32*3], cx
[all …]
Diwalsh_mmx.asm102 mov word ptr[rdx+32*0], ax
103 mov word ptr[rdx+32*1], cx
106 mov word ptr[rdx+32*4], ax
107 mov word ptr[rdx+32*5], cx
110 mov word ptr[rdx+32*8], ax
111 mov word ptr[rdx+32*9], cx
114 mov word ptr[rdx+32*12], ax
115 mov word ptr[rdx+32*13], cx
121 mov word ptr[rdx+32*2], ax
122 mov word ptr[rdx+32*3], cx
[all …]
Dvariance_impl_ssse3.asm47 movsxd rax, dword ptr arg(5) ; xoffset
55 movsxd rdx, dword ptr arg(6) ; yoffset
65 movsxd rcx, dword ptr arg(4) ;Height
84 add rsi, dword ptr arg(1) ;ref_pixels_per_line
86 movsxd r8, dword ptr arg(1) ;ref_pixels_per_line
87 movsxd r9, dword ptr arg(3) ;src_pixels_per_line
137 add rsi, dword ptr arg(1) ;ref_pixels_per_line
138 add rdi, dword ptr arg(3) ;src_pixels_per_line
150 movsxd rdx, dword ptr arg(6) ; yoffset
160 movsxd rcx, dword ptr arg(4) ;Height
[all …]
/hardware/qcom/audio/legacy/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.h83 #define ltoh_ua(ptr) \ argument
84 (sizeof(*(ptr)) == sizeof(uint8) ? *(const uint8 *)(ptr) : \
85 sizeof(*(ptr)) == sizeof(uint16) ? _LTOH16_UA((const uint8 *)(ptr)) : \
86 sizeof(*(ptr)) == sizeof(uint32) ? _LTOH32_UA((const uint8 *)(ptr)) : \
89 #define ntoh_ua(ptr) \ argument
90 (sizeof(*(ptr)) == sizeof(uint8) ? *(const uint8 *)(ptr) : \
91 sizeof(*(ptr)) == sizeof(uint16) ? _NTOH16_UA((const uint8 *)(ptr)) : \
92 sizeof(*(ptr)) == sizeof(uint32) ? _NTOH32_UA((const uint8 *)(ptr)) : \
/hardware/intel/img/libdrm/libdrm/
Dxf86drmMode.c79 void drmModeFreeModeInfo(drmModeModeInfoPtr ptr) in drmModeFreeModeInfo() argument
81 if (!ptr) in drmModeFreeModeInfo()
84 drmFree(ptr); in drmModeFreeModeInfo()
87 void drmModeFreeResources(drmModeResPtr ptr) in drmModeFreeResources() argument
89 if (!ptr) in drmModeFreeResources()
92 drmFree(ptr); in drmModeFreeResources()
96 void drmModeFreeFB(drmModeFBPtr ptr) in drmModeFreeFB() argument
98 if (!ptr) in drmModeFreeFB()
102 drmFree(ptr); in drmModeFreeFB()
105 void drmModeFreeCrtc(drmModeCrtcPtr ptr) in drmModeFreeCrtc() argument
[all …]
/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/ti/omap4-aah/test/CameraHal/
Dsurfacetexture_test.cpp181 unsigned char *ptr; in ion_test() local
205 ptr = (unsigned char *)mmap (NULL, SIZE, PROT_READ|PROT_WRITE, in ion_test()
207 printf("mmap returned %p\n", ptr); in ion_test()
209 ptr = (unsigned char *)mmap (NULL, SIZE, PROT_READ|PROT_WRITE, in ion_test()
211 printf("mmap returned %p\n", ptr); in ion_test()
214 ret = ion_map (fd, handle, SIZE, PROT_READ, 0, 0, &ptr, &map_fd); in ion_test()
222 printf("%d: %p\n", i, ptr); in ion_test()
/hardware/ti/omap4-aah/system-core-headers-ti/ion/
Dion.h38 int flags, off_t offset, unsigned char **ptr, int *map_fd);
42 int prot, int flags, off_t offset, unsigned char **ptr, int *map_fd);
44 unsigned char *ptr);
46 unsigned char *ptr);
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu.c594 void *ptr = NULL; in dhd_pktgen() local
602 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
604 memcpy(&pktgen, ptr, sizeof(pktgen)); in dhd_pktgen()
753 void *ptr = NULL; in dhd_sd_blocksize() local
780 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
781 printf("Function %d block size: %d\n", func, *(int*)ptr); in dhd_sd_blocksize()
888 char *ptr = NULL; in dhd_sdreg() local
904 sdreg.offset = strtoul(argv[1], &ptr, 0); in dhd_sdreg()
905 if (*ptr && *ptr != '/') { in dhd_sdreg()
911 if (*ptr == '/') { in dhd_sdreg()
[all …]
/hardware/invensense/60xx/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 …]

12345678