Home
last modified time | relevance | path

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

1234

/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/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/mp4/parser/
Dviddec_parse_sc_mp4.c23 uint8_t *ptr; in viddec_parse_sc_mp4() local
33 ptr = cxt->buf; in viddec_parse_sc_mp4()
43 if(((((uint32_t)ptr) & 0x3) == 0) && (phase == 0)) in viddec_parse_sc_mp4()
50 data = *((uint32_t *)ptr); in viddec_parse_sc_mp4()
60 ptr+=4;size+=4;data_left-=4; in viddec_parse_sc_mp4()
74 if(*ptr == FIRST_STARTCODE_BYTE) in viddec_parse_sc_mp4()
77 ptr++;size++;data_left--; in viddec_parse_sc_mp4()
82 if ( (((uint32_t)ptr) & 0x3) == 0 ) in viddec_parse_sc_mp4()
86 if(*((uint32_t *)ptr) != 0) in viddec_parse_sc_mp4()
90 ptr+=4;size+=4;data_left-=4; in viddec_parse_sc_mp4()
[all …]
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/
Dviddec_parse_sc.c19 uint8_t *ptr; in viddec_parse_sc() local
30 ptr = cxt->buf; in viddec_parse_sc()
40 if(((((uint32_t)ptr) & 0x3) == 0) && (phase == 0)) in viddec_parse_sc()
47 data = *((uint32_t *)ptr); in viddec_parse_sc()
57 ptr+=4;size+=4;data_left-=4; in viddec_parse_sc()
71 if(*ptr == FIRST_STARTCODE_BYTE) in viddec_parse_sc()
74 ptr++;size++;data_left--; in viddec_parse_sc()
79 if ( (((uint32_t)ptr) & 0x3) == 0 ) in viddec_parse_sc()
83 if(*((uint32_t *)ptr) != 0) in viddec_parse_sc()
87 ptr+=4;size+=4;data_left-=4; in viddec_parse_sc()
[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/qcom/bt/msm8996/libbt-vendor/src/
Dhw_ar3k.c391 unsigned char *ptr = cmd + 1; in set_cntrlr_baud() local
392 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud()
397 ptr = cmd + 1; in set_cntrlr_baud()
401 ptr += HCI_COMMAND_HDR_SIZE; in set_cntrlr_baud()
404 ptr[0] = (char)baud; in set_cntrlr_baud()
405 ptr[1] = (char)(baud >> 8); in set_cntrlr_baud()
437 static int get_ps_type(char *ptr, int index, char *type, char *sub_type) in get_ps_type() argument
446 if (__is_delim(ptr[i])) { in get_ps_type()
451 if (isalpha(ptr[i])) { in get_ps_type()
453 (*type) = toupper(ptr[i]); in get_ps_type()
[all …]
/hardware/qcom/bt/msm8992/libbt-vendor/src/
Dhw_ar3k.c389 unsigned char *ptr = cmd + 1; in set_cntrlr_baud() local
390 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud()
395 ptr = cmd + 1; in set_cntrlr_baud()
399 ptr += HCI_COMMAND_HDR_SIZE; in set_cntrlr_baud()
402 ptr[0] = (char)baud; in set_cntrlr_baud()
403 ptr[1] = (char)(baud >> 8); in set_cntrlr_baud()
435 static int get_ps_type(char *ptr, int index, char *type, char *sub_type) in get_ps_type() argument
444 if (__is_delim(ptr[i])) { in get_ps_type()
449 if (isalpha(ptr[i])) { in get_ps_type()
451 (*type) = toupper(ptr[i]); in get_ps_type()
[all …]
/hardware/qcom/bt/msm8909/libbt-vendor/src/
Dhw_ar3k.c389 unsigned char *ptr = cmd + 1; in set_cntrlr_baud() local
390 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud()
395 ptr = cmd + 1; in set_cntrlr_baud()
399 ptr += HCI_COMMAND_HDR_SIZE; in set_cntrlr_baud()
402 ptr[0] = (char)baud; in set_cntrlr_baud()
403 ptr[1] = (char)(baud >> 8); in set_cntrlr_baud()
435 static int get_ps_type(char *ptr, int index, char *type, char *sub_type) in get_ps_type() argument
444 if (__is_delim(ptr[i])) { in get_ps_type()
449 if (isalpha(ptr[i])) { in get_ps_type()
451 (*type) = toupper(ptr[i]); in get_ps_type()
[all …]
/hardware/qcom/bt/msm8998/libbt-vendor/src/
Dhw_ar3k.c392 unsigned char *ptr = cmd + 1; in set_cntrlr_baud() local
393 hci_command_hdr *ch = (void *)ptr; in set_cntrlr_baud()
398 ptr = cmd + 1; in set_cntrlr_baud()
402 ptr += HCI_COMMAND_HDR_SIZE; in set_cntrlr_baud()
405 ptr[0] = (char)baud; in set_cntrlr_baud()
406 ptr[1] = (char)(baud >> 8); in set_cntrlr_baud()
438 static int get_ps_type(char *ptr, int index, char *type, char *sub_type) in get_ps_type() argument
447 if (__is_delim(ptr[i])) { in get_ps_type()
452 if (isalpha(ptr[i])) { in get_ps_type()
454 (*type) = toupper(ptr[i]); in get_ps_type()
[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/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/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu.c595 void *ptr = NULL; in dhd_pktgen() local
603 if ((ret = dhd_var_getbuf(dhd, "pktgen", NULL, 0, &ptr)) != 0) in dhd_pktgen()
605 memcpy(&pktgen, ptr, sizeof(pktgen)); in dhd_pktgen()
754 void *ptr = NULL; in dhd_sd_blocksize() local
781 if ((ret = dhd_var_getbuf(dhd, cmd->name, &func, sizeof(func), &ptr)) >= 0) in dhd_sd_blocksize()
782 printf("Function %d block size: %d\n", func, *(int*)ptr); in dhd_sd_blocksize()
889 char *ptr = NULL; in dhd_sdreg() local
905 sdreg.offset = strtoul(argv[1], &ptr, 0); in dhd_sdreg()
906 if (*ptr && *ptr != '/') { in dhd_sdreg()
912 if (*ptr == '/') { in dhd_sdreg()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dmlos.h52 inv_error_t inv_free(void *ptr);
80 static inline void kfree(void *ptr) in kfree() argument
82 inv_free(ptr); in kfree()
Dmlos_linux.c58 inv_error_t inv_free(void *ptr) in inv_free() argument
60 if (ptr) in inv_free()
61 free(ptr); in inv_free()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dmlos.h52 inv_error_t inv_free(void *ptr);
80 static inline void kfree(void *ptr) in kfree() argument
82 inv_free(ptr); in kfree()
Dmlos_linux.c58 inv_error_t inv_free(void *ptr) in inv_free() argument
60 if (ptr) in inv_free()
61 free(ptr); in inv_free()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/common/inc/
Dvidc_debug.h68 #define VALIDATE_OMX_PARAM_DATA(ptr, paramType) \ argument
70 if (ptr == NULL) { return OMX_ErrorBadParameter; } \
71 paramType *p = reinterpret_cast<paramType *>(ptr); \
/hardware/intel/bootstub/
Dbootstub.c62 u32 ptr; member
154 u8 *initramfs, *ptr; in bzImage_setup() local
157 ptr = (u8*)aosp->kernel_addr; in bzImage_setup()
173 ptr = (u8*)BZIMAGE_OFFSET; in bzImage_setup()
203 if (*(u32 *)ptr == SETUP_SIGNATURE && *(u32 *)(ptr+4) == 0) in bzImage_setup()
205 ptr++; in bzImage_setup()
207 ptr+=4; in bzImage_setup()
208 return (((unsigned int)ptr+511)/512)*512; in bzImage_setup()
296 gdt.ptr = (u32)&boot_gdt; in setup_gdt()
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/common/inc/
Dvidc_debug.h72 #define VALIDATE_OMX_PARAM_DATA(ptr, paramType) \ argument
74 if (ptr == NULL) { return OMX_ErrorBadParameter; } \
75 paramType *p = reinterpret_cast<paramType *>(ptr); \
/hardware/intel/common/libmix/videodecoder/securevideo/clovertrail/
DVideoDecoderAVCSecure.cpp353 uint8_t *ptr; in findNalUnitOffset() local
366 ptr = (uint8_t *) (stream + offset); in findNalUnitOffset()
372 if (((((uint32_t)ptr) & 0x3) == 0) && (phase == 0)) { in findNalUnitOffset()
374 data = *((uint32_t *)ptr); in findNalUnitOffset()
381 ptr += 4; in findNalUnitOffset()
392 if (*ptr == STARTCODE_00) { in findNalUnitOffset()
398 } else if ((*ptr == STARTCODE_01) && (phase == 2)) { in findNalUnitOffset()
405 ptr++; in findNalUnitOffset()
413 return (int32_t)(ptr - stream); in findNalUnitOffset()
/hardware/intel/common/libmix/videodecoder/securevideo/merrplus/
DVideoDecoderAVCSecure.cpp356 uint8_t *ptr; in findNalUnitOffset() local
369 ptr = (uint8_t *) (stream + offset); in findNalUnitOffset()
375 if (((((uint32_t)ptr) & 0x3) == 0) && (phase == 0)) { in findNalUnitOffset()
377 data = *((uint32_t *)ptr); in findNalUnitOffset()
384 ptr += 4; in findNalUnitOffset()
395 if (*ptr == STARTCODE_00) { in findNalUnitOffset()
401 } else if ((*ptr == STARTCODE_01) && (phase == 2)) { in findNalUnitOffset()
408 ptr++; in findNalUnitOffset()
416 return (int32_t)(ptr - stream); in findNalUnitOffset()
/hardware/qcom/msm8994/original-kernel-headers/linux/mmc/
Dioctl.h46 #define mmc_ioc_cmd_set_data(ic, ptr) ic.data_ptr = (__u64)(unsigned long) ptr argument
/hardware/qcom/msm8994/kernel-headers/linux/mmc/
Dioctl.h42 #define mmc_ioc_cmd_set_data(ic, ptr) ic.data_ptr = (__u64)(unsigned long) ptr argument
/hardware/qcom/msm8996/original-kernel-headers/linux/mmc/
Dioctl.h46 #define mmc_ioc_cmd_set_data(ic, ptr) ic.data_ptr = (__u64)(unsigned long) ptr argument
/hardware/qcom/msm8996/kernel-headers/linux/mmc/
Dioctl.h42 #define mmc_ioc_cmd_set_data(ic,ptr) ic.data_ptr = (__u64) (unsigned long) ptr argument

1234