Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 123) sorted by relevance

12345

/device/google/coral/json-c/
Dprintbuf.c31 static int printbuf_extend(struct printbuf *p, int min_size);
35 struct printbuf *p; in printbuf_new() local
37 p = (struct printbuf*)calloc(1, sizeof(struct printbuf)); in printbuf_new()
38 if(!p) return NULL; in printbuf_new()
39 p->size = 32; in printbuf_new()
40 p->bpos = 0; in printbuf_new()
41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new()
42 free(p); in printbuf_new()
45 return p; in printbuf_new()
57 static int printbuf_extend(struct printbuf *p, int min_size) in printbuf_extend() argument
[all …]
Dprintbuf.h40 printbuf_memappend(struct printbuf *p, const char *buf, int size);
42 #define printbuf_memappend_fast(p, bufptr, bufsize) \ argument
44 if ((p->size - p->bpos) > bufsize) { \
45 memcpy(p->buf + p->bpos, (bufptr), bufsize); \
46 p->bpos += bufsize; \
47 p->buf[p->bpos]= '\0'; \
48 } else { printbuf_memappend(p, (bufptr), bufsize); } \
51 #define printbuf_length(p) ((p)->bpos) argument
65 sprintbuf(struct printbuf *p, const char *msg, ...);
68 printbuf_reset(struct printbuf *p);
[all …]
/device/google/crosshatch/json-c/
Dprintbuf.c31 static int printbuf_extend(struct printbuf *p, int min_size);
35 struct printbuf *p; in printbuf_new() local
37 p = (struct printbuf*)calloc(1, sizeof(struct printbuf)); in printbuf_new()
38 if(!p) return NULL; in printbuf_new()
39 p->size = 32; in printbuf_new()
40 p->bpos = 0; in printbuf_new()
41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new()
42 free(p); in printbuf_new()
45 return p; in printbuf_new()
57 static int printbuf_extend(struct printbuf *p, int min_size) in printbuf_extend() argument
[all …]
Dprintbuf.h40 printbuf_memappend(struct printbuf *p, const char *buf, int size);
42 #define printbuf_memappend_fast(p, bufptr, bufsize) \ argument
44 if ((p->size - p->bpos) > bufsize) { \
45 memcpy(p->buf + p->bpos, (bufptr), bufsize); \
46 p->bpos += bufsize; \
47 p->buf[p->bpos]= '\0'; \
48 } else { printbuf_memappend(p, (bufptr), bufsize); } \
51 #define printbuf_length(p) ((p)->bpos) argument
65 sprintbuf(struct printbuf *p, const char *msg, ...);
68 printbuf_reset(struct printbuf *p);
[all …]
/device/google/bonito/json-c/
Dprintbuf.c31 static int printbuf_extend(struct printbuf *p, int min_size);
35 struct printbuf *p; in printbuf_new() local
37 p = (struct printbuf*)calloc(1, sizeof(struct printbuf)); in printbuf_new()
38 if(!p) return NULL; in printbuf_new()
39 p->size = 32; in printbuf_new()
40 p->bpos = 0; in printbuf_new()
41 if(!(p->buf = (char*)malloc(p->size))) { in printbuf_new()
42 free(p); in printbuf_new()
45 return p; in printbuf_new()
57 static int printbuf_extend(struct printbuf *p, int min_size) in printbuf_extend() argument
[all …]
Dprintbuf.h40 printbuf_memappend(struct printbuf *p, const char *buf, int size);
42 #define printbuf_memappend_fast(p, bufptr, bufsize) \ argument
44 if ((p->size - p->bpos) > bufsize) { \
45 memcpy(p->buf + p->bpos, (bufptr), bufsize); \
46 p->bpos += bufsize; \
47 p->buf[p->bpos]= '\0'; \
48 } else { printbuf_memappend(p, (bufptr), bufsize); } \
51 #define printbuf_length(p) ((p)->bpos) argument
65 sprintbuf(struct printbuf *p, const char *msg, ...);
68 printbuf_reset(struct printbuf *p);
[all …]
/device/generic/goldfish-opengl/system/vulkan_enc/
Dvulkan_enc_unittests.cpp30 WorkPool p; in TEST() local
35 WorkPool p; in TEST() local
43 p.schedule(tasks); in TEST()
48 WorkPool p; in TEST() local
55 p.schedule(tasks); in TEST()
60 WorkPool p; in TEST() local
73 p.schedule(tasks); in TEST()
80 WorkPool p; in TEST() local
91 handle = p.schedule(tasks); in TEST()
95 p.waitAny(handle, -1); in TEST()
[all …]
/device/linaro/dragonboard/qcom/tqftpserv/
Dtqftpserv.c80 char *p; in tftp_send_data() local
83 p = buf; in tftp_send_data()
85 *p++ = 0; in tftp_send_data()
86 *p++ = OP_DATA; in tftp_send_data()
88 *p++ = (block >> 8) & 0xff; in tftp_send_data()
89 *p++ = block & 0xff; in tftp_send_data()
91 len = pread(client->fd, p, client->blksize, offset); in tftp_send_data()
99 p += len; in tftp_send_data()
102 len = send(client->sock, buf, p - buf, 0); in tftp_send_data()
124 char *p = buf; in tftp_send_oack() local
[all …]
/device/google/coral/
Dinit.qcom.usb.sh203 mkdir -p streaming/uncompressed/u/360p
204 echo "666666\n1000000\n5000000\n" > streaming/uncompressed/u/360p/dwFrameInterval
206 mkdir -p streaming/uncompressed/u/720p
207 echo 1280 > streaming/uncompressed/u/720p/wWidth
208 echo 720 > streaming/uncompressed/u/720p/wWidth
209 echo 29491200 > streaming/uncompressed/u/720p/dwMinBitRate
210 echo 29491200 > streaming/uncompressed/u/720p/dwMaxBitRate
211 echo 1843200 > streaming/uncompressed/u/720p/dwMaxVideoFrameBufferSize
212 echo 5000000 > streaming/uncompressed/u/720p/dwDefaultFrameInterval
213 echo "5000000\n" > streaming/uncompressed/u/720p/dwFrameInterval
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/ipc/xt-shmem/hikey/
Ddsp_debug.c88 char *p = scratch + 15; in __xprintf() local
89 *p = 0; in __xprintf()
91 *--p = hex2asc(n); in __xprintf()
94 while(p > (scratch + 7)) *--p = '0'; in __xprintf()
95 xputs(p, xputc, cookie); in __xprintf()
101 char *p = scratch + 15; in __xprintf() local
102 *p = 0; in __xprintf()
108 *--p = (n % 10) + '0'; in __xprintf()
111 xputs(p, xputc, cookie); in __xprintf()
120 char *p = scratch + 31; in __xprintf() local
[all …]
/device/google/contexthub/firmware/app/chre/chre_test1.app/
Dmain.cpp67 int *p; member in A
70 p = new int[1]; in A()
71 if (p != nullptr) in A()
72 *p = _x; in A()
73 chreLog(CHRE_LOG_INFO, APP_LABEL "A::A(int): *p=%d", p != nullptr ? *p : 0); in A()
76 chreLog(CHRE_LOG_INFO, APP_LABEL "A::~A(): *p=%d", p != nullptr ? *p : 0); in ~A()
77 delete p; in ~A()
78 p = nullptr; in ~A()
/device/google/contexthub/firmware/os/platform/stm32/
DeeData.c30 uint32_t *p = __eedata_start + (offset ? *offset : 0); in eeFind() local
34 while (p < __eedata_end) { in eeFind()
35 uint32_t info = *p++; in eeFind()
38 void *data = p; in eeFind()
41 p += (sz + 3) / 4; in eeFind()
58 *offset = p - __eedata_start; in eeFind()
100 uint32_t *p = __eedata_start; in eeDataGetFree() local
103 while (p < __eedata_end) { in eeDataGetFree()
104 uint32_t info = *p; in eeDataGetFree()
112 p++; in eeDataGetFree()
[all …]
/device/generic/goldfish-opengl/shared/qemupipe/
Dqemu_pipe_common.cpp18 char* p = (char*)buffer; in qemu_pipe_read_fully() local
21 int n = QEMU_PIPE_RETRY(qemu_pipe_read(pipe, p, size)); in qemu_pipe_read_fully()
24 p += n; in qemu_pipe_read_fully()
32 const char* p = (const char*)buffer; in qemu_pipe_write_fully() local
35 int n = QEMU_PIPE_RETRY(qemu_pipe_write(pipe, p, size)); in qemu_pipe_write_fully()
38 p += n; in qemu_pipe_write_fully()
/device/generic/goldfish-opengl/system/hals/
Dcb_handle_30.h62 static cb_handle_30_t* from(void* p) { in from()
63 if (!p) { return nullptr; } in from()
64 cb_handle_30_t* cb = static_cast<cb_handle_30_t*>(p); in from()
68 static const cb_handle_30_t* from(const void* p) { in from()
69 return from(const_cast<void*>(p)); in from()
72 static cb_handle_30_t* from_unconst(const void* p) { in from_unconst()
73 return from(const_cast<void*>(p)); in from_unconst()
/device/linaro/hikey/hifi/xaf/host-apf/playback/tinyalsa/
Dpcm.c125 static inline int param_is_mask(int p) in param_is_mask() argument
127 return (p >= SNDRV_PCM_HW_PARAM_FIRST_MASK) && in param_is_mask()
128 (p <= SNDRV_PCM_HW_PARAM_LAST_MASK); in param_is_mask()
131 static inline int param_is_interval(int p) in param_is_interval() argument
133 return (p >= SNDRV_PCM_HW_PARAM_FIRST_INTERVAL) && in param_is_interval()
134 (p <= SNDRV_PCM_HW_PARAM_LAST_INTERVAL); in param_is_interval()
137 static inline struct snd_interval *param_to_interval(struct snd_pcm_hw_params *p, int n) in param_to_interval() argument
139 return &(p->intervals[n - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL]); in param_to_interval()
142 static inline struct snd_mask *param_to_mask(struct snd_pcm_hw_params *p, int n) in param_to_mask() argument
144 return &(p->masks[n - SNDRV_PCM_HW_PARAM_FIRST_MASK]); in param_to_mask()
[all …]
/device/google/contexthub/firmware/lib/libm/
Def_asin.c47 float t,w,p,q,c,r,s; local
61 p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5)))));
63 w = p/q;
70 p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5)))));
74 w = p/q;
82 r = p/q;
83 p = (float)2.0*s*r-(pio2_lo-(float)2.0*c);
85 t = pio4_hi-(p-q);
/device/google/contexthub/firmware/lib/libc/
Dnew.cpp35 void operator delete(void *p) in operator delete() argument
37 eOsHeapFree(p); in operator delete()
40 void operator delete[](void *p) in operator delete[]() argument
42 eOsHeapFree(p); in operator delete[]()
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/
Dxf-msg.c48 …XF_CHK_ERR(pool->p = xf_mem_alloc(XF_MM(sizeof(*pool->p) * n), XF_PROXY_ALIGNMENT, core, 1), -ENOM… in xf_msg_pool_init()
51 for (pool->head = &pool->p[i = 0]; i < n - 1; i++) in xf_msg_pool_init()
70 xf_mem_free(pool->p, XF_MM(sizeof(*pool->p) * pool->n), core, 1); in xf_msg_pool_destroy()
100 BUG(!xf_msg_from_pool(pool, m) < 0, _x("Bad pool/message: %p/%p"), pool->p, _m); in xf_msg_pool_put()
/device/generic/goldfish-opengl/shared/gralloc_cb/include/
Dgralloc_cb_bp.h90 static cb_handle_t* from(void* p) { in from()
91 if (!p) { return NULL; } in from()
92 cb_handle_t* cb = static_cast<cb_handle_t*>(p); in from()
96 static const cb_handle_t* from(const void* p) { in from()
97 return from(const_cast<void*>(p)); in from()
100 static cb_handle_t* from_unconst(const void* p) { in from_unconst()
101 return from(const_cast<void*>(p)); in from_unconst()
/device/generic/opengl-transport/host/libs/virglrenderer/GLESv3_dec/
Dgles3.types5 GLeglImageOES 32 %p
39 GLsync 64 %p
42 GLint32* 32 %p
44 GLint64* 32 %p
46 GLuint32* 32 %p
48 GLuint64* 32 %p
/device/linaro/hikey/hifi/xaf/hifi-dpf/build_hikey/
Dxa_hikey.img7 … � p� 0� @� P� `� p� �5�������������������������������������I�� �I �I0�I@@IPPI``IppI��I��I��I��I…
11 �p� �0��0�E>����|� ����0�)Q9aIq�a�E�_
35 …nfo_type������xa_mixer_set_mem_ptr������������xa_mixer����������@� �`��P�0�p��H�(�h��X�8�x��D�…
37 …������������������������%��8��L��b��y����������������&��J��p�����������#��X…
40 ��:��'��#��/��M��~���������������p��J��A ��Z"���$���&��)��1,��/��2��a5���8���<��z…
43p���\���O��&�3 �e2"�Nk$�0�&�qN)���+�y�.���1��"5��8�^D<��.@��ZD���H��M�ƐR�\�W�6�]� �c�H6j�B…
44 ������!��"���������$&��!��"���������p&��!��"����������&��)�h(��(�(�+��������C2…
51 �+��{- �҂��_ �d~��� ��y��� �Nu��� ��p��' ��k��Y �g�Ӌ �6b�ؽ �?]��� �4X��!
/device/linaro/hikey/hifi/firmware/
Dhifi-hikey960.img7 … � p� 0� @� P� `� p� �5�������������������������������������I�� �I �I0�I@@IPPI``IppI��I��I��I��I…
11 �p� �0��0�E>����|� ����0�)Q9aIq�a�E�_
34p���������������xa_codec_prepare_runtime��������xa_codec_empty_this_buffer������xa_codec_fill_this…
37 …nfo_type������xa_mixer_set_mem_ptr������������xa_mixer����������@� �`��P�0�p��H�(�h��X�8�x��D�…
39 …������������������������%��8��L��b��y����������������&��J��p�����������#��X…
42 ��:��'��#��/��M��~���������������p��J��A ��Z"���$���&��)��1,��/��2��a5���8���<��z…
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-mm.h66 #define XF_ALIGNED_OBJ(p) \ argument
67 (&(p)->__obj)
69 #define XF_IS_ALIGNED(p) \ argument
70 (((u32)(p) & (XF_PROXY_ALIGNMENT - 1)) == 0)
/device/linaro/hikey/hifi/xaf/host-apf/proxy/
Dxf-proxy.c567 xf_pool_t *p; in xf_pool_alloc() local
582 p = xaf_malloc(offset_of(xf_pool_t, buffer) + number * sizeof(xf_buffer_t), id); in xf_pool_alloc()
583 XF_CHK_ERR(p, -ENOMEM); in xf_pool_alloc()
587 r = xf_proxy_buffer_alloc(proxy, number * length, &p->p); in xf_pool_alloc()
594 xaf_free(p, id); in xf_pool_alloc()
600 p->number = number, p->length = length; in xf_pool_alloc()
601 p->proxy = proxy; in xf_pool_alloc()
605 for (p->free = b = &p->buffer[0], data = p->p; number > 0; number--, b++) in xf_pool_alloc()
620 TRACE(BUFFER, _b("[%p]: pool[%p] created: %u * %u"), proxy, p, p->number, p->length); in xf_pool_alloc()
623 *pool = p; in xf_pool_alloc()
[all …]
/device/google/cuttlefish/tools/
Dtombstone_to_line.py85 for p in patterns:
86 groups = p[0].match(line)
91 info = lookup_addr(args, groups.group(p[2]), groups.group(p[3]))
96 source_match(line, info, len(groups.group(p[1])), out_file)
98 simple_match(line, info, len(groups.group(p[1])), out_file)

12345