Home
last modified time | relevance | path

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

1234567891011

/device/generic/vulkan-cereal/stream-servers/apigen-codec-common/X11/
DXos_r.h232 # define _XGetpwuid(u,p) getpwuid((u)) argument
233 # define _XGetpwnam(u,p) getpwnam((u)) argument
252 static __inline__ void _Xpw_copyPasswd(_Xgetpwparams p) in _Xpw_copyPasswd() argument
254 memcpy(&(p).pws, (p).pwp, sizeof(struct passwd)); in _Xpw_copyPasswd()
256 (p).pws.pw_name = (p).pwbuf; in _Xpw_copyPasswd()
257 (p).len = strlen((p).pwp->pw_name); in _Xpw_copyPasswd()
258 strcpy((p).pws.pw_name, (p).pwp->pw_name); in _Xpw_copyPasswd()
260 (p).pws.pw_passwd = (p).pws.pw_name + (p).len + 1; in _Xpw_copyPasswd()
261 (p).len = strlen((p).pwp->pw_passwd); in _Xpw_copyPasswd()
262 strcpy((p).pws.pw_passwd,(p).pwp->pw_passwd); in _Xpw_copyPasswd()
[all …]
DXpoll.h99 # define __FDS_BITS(p) ((p)->__X_FDS_BITS) argument
102 #define __XFDS_BITS(p, n) (__FDS_BITS(p))[n] argument
105 #define FD_SET(n, p) (__XFDS_BITS(p, ((n)/NFDBITS)) |= ((fd_mask)1 << ((n) % NFDBITS))) argument
108 #define FD_CLR(n, p) (__XFDS_BITS((p), ((n)/NFDBITS)) &= ~((fd_mask)1 << ((n) % NFDBITS))) argument
111 #define FD_ISSET(n, p) ((__XFDS_BITS((p), ((n)/NFDBITS))) & ((fd_mask)1 << ((n) % NFDBITS))) argument
114 #define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) argument
122 #define XFD_ANYSET(p) \ argument
123 ((howmany(FD_SETSIZE, NFDBITS) > 0 && (__XFDS_BITS(p, 0))) || \
124 (howmany(FD_SETSIZE, NFDBITS) > 1 && (__XFDS_BITS(p, 1))) || \
125 (howmany(FD_SETSIZE, NFDBITS) > 2 && (__XFDS_BITS(p, 2))) || \
[all …]
/device/google/gs201/powerstats/
DGs201CommonDataProviders.cpp56 PlaceholderEnergyConsumer(std::shared_ptr<PowerStats> p, EnergyConsumerType type, in PlaceholderEnergyConsumer() argument
57 std::string name) : kType(type), kName(name), mPowerStats(p), mChannelId(-1) { in PlaceholderEnergyConsumer()
101 void addPlaceholderEnergyConsumers(std::shared_ptr<PowerStats> p) { in addPlaceholderEnergyConsumers() argument
102 p->addEnergyConsumer( in addPlaceholderEnergyConsumers()
103 std::make_unique<PlaceholderEnergyConsumer>(p, EnergyConsumerType::WIFI, "Wifi")); in addPlaceholderEnergyConsumers()
104 p->addEnergyConsumer( in addPlaceholderEnergyConsumers()
105 std::make_unique<PlaceholderEnergyConsumer>(p, EnergyConsumerType::BLUETOOTH, "BT")); in addPlaceholderEnergyConsumers()
108 void addAoC(std::shared_ptr<PowerStats> p) { in addAoC() argument
124 p->addStateResidencyDataProvider(std::make_unique<AocTimedStateResidencyDataProvider>(coreIds, in addAoC()
135 p->addStateResidencyDataProvider( in addAoC()
[all …]
/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/sunfish/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/redbull/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/zuma/powerstats/
DZumaCommonDataProviders.cpp56 PlaceholderEnergyConsumer(std::shared_ptr<PowerStats> p, EnergyConsumerType type, in PlaceholderEnergyConsumer() argument
57 std::string name) : kType(type), kName(name), mPowerStats(p), mChannelId(-1) { in PlaceholderEnergyConsumer()
101 void addPlaceholderEnergyConsumers(std::shared_ptr<PowerStats> p) { in addPlaceholderEnergyConsumers() argument
102 p->addEnergyConsumer( in addPlaceholderEnergyConsumers()
103 std::make_unique<PlaceholderEnergyConsumer>(p, EnergyConsumerType::WIFI, "Wifi")); in addPlaceholderEnergyConsumers()
104 p->addEnergyConsumer( in addPlaceholderEnergyConsumers()
105 std::make_unique<PlaceholderEnergyConsumer>(p, EnergyConsumerType::BLUETOOTH, "BT")); in addPlaceholderEnergyConsumers()
108 void addAoC(std::shared_ptr<PowerStats> p) { in addAoC() argument
123 p->addStateResidencyDataProvider(std::make_unique<AocStateResidencyDataProvider>(coreIds, in addAoC()
134 p->addStateResidencyDataProvider( in addAoC()
[all …]
/device/google/lynx/powerstats/
Dservice.cpp37 void addDisplay(std::shared_ptr<PowerStats> p) { in addDisplay() argument
47 p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>("Display", in addDisplay()
52 p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(p, in addDisplay()
59 void addGPUGs202(std::shared_ptr<PowerStats> p) { in addGPUGs202() argument
63 p->addStateResidencyDataProvider(std::make_unique<DevfreqStateResidencyDataProvider>( in addGPUGs202()
83 p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndAttrConsumer( in addGPUGs202()
84 p, in addGPUGs202()
100 std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>(); in main() local
102 setEnergyMeter(p); in main()
103 addAoC(p); in main()
[all …]
/device/generic/goldfish/camera/
Dyuv.cpp32 const uint8_t* p = src8; in copyCbCrPlane() local
33 for (size_t rem = width & 15; rem; --rem, ++dst, p += srcStep) { in copyCbCrPlane()
34 *dst = *p; in copyCbCrPlane()
38 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane()
39 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane()
40 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane()
41 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane()
42 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane()
43 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane()
44 *dst = *p; ++dst; p += srcStep; in copyCbCrPlane()
[all …]
/device/google/gs101/powerstats/
DGs101CommonDataProviders.cpp47 void addAoC(std::shared_ptr<PowerStats> p) { in addAoC() argument
61 p->addStateResidencyDataProvider(std::make_unique<AocStateResidencyDataProvider>(coreIds, in addAoC()
72 p->addStateResidencyDataProvider( in addAoC()
82 p->addStateResidencyDataProvider( in addAoC()
99 p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>( in addAoC()
103 void addDvfsStats(std::shared_ptr<PowerStats> p) { in addDvfsStats() argument
271 p->addStateResidencyDataProvider(std::make_unique<DvfsStateResidencyDataProvider>( in addDvfsStats()
275 void addSoC(std::shared_ptr<PowerStats> p) { in addSoC() argument
339 p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>( in addSoC()
343 void setEnergyMeter(std::shared_ptr<PowerStats> p) { in setEnergyMeter() argument
[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/felix/powerstats/felix/
Dservice.cpp39 void addDisplay(std::shared_ptr<PowerStats> p) { in addDisplay() argument
52 p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>( in addDisplay()
67 p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>( in addDisplay()
73 p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterConsumer( in addDisplay()
74 p, in addDisplay()
80 void addUwb(std::shared_ptr<PowerStats> p) { in addUwb() argument
109 p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>( in addUwb()
113 void addGPU(std::shared_ptr<PowerStats> p) { in addGPU() argument
117 p->addStateResidencyDataProvider(std::make_unique<DevfreqStateResidencyDataProvider>( in addGPU()
135 p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndAttrConsumer( in addGPU()
[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/google/tangorpro/powerstats/
Dservice.cpp38 void addDisplay(std::shared_ptr<PowerStats> p) { in addDisplay() argument
45 p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>("Display", in addDisplay()
50 p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterConsumer( in addDisplay()
51 p, in addDisplay()
57 void addGPUGs202(std::shared_ptr<PowerStats> p) { in addGPUGs202() argument
61 p->addStateResidencyDataProvider(std::make_unique<DevfreqStateResidencyDataProvider>( in addGPUGs202()
81 p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndAttrConsumer( in addGPUGs202()
82 p, in addGPUGs202()
90 void addUwb(std::shared_ptr<PowerStats> p) { in addUwb() argument
119 p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>( in addUwb()
[all …]
/device/google/gs201/powerstats/include/
DGs201CommonDataProviders.h23 void addAoC(std::shared_ptr<PowerStats> p);
24 void addCPUclusters(std::shared_ptr<PowerStats> p);
25 void addCamera(std::shared_ptr<PowerStats> p);
26 void addDevfreq(std::shared_ptr<PowerStats> p);
27 void addDvfsStats(std::shared_ptr<PowerStats> p);
28 void addGNSS(std::shared_ptr<PowerStats> p);
29 void addGs201CommonDataProviders(std::shared_ptr<PowerStats> p);
30 void addMobileRadio(std::shared_ptr<PowerStats> p);
31 void addNFC(std::shared_ptr<PowerStats> p, const std::string& path);
32 void addPCIe(std::shared_ptr<PowerStats> p);
[all …]
/device/google/zuma/powerstats/include/
DZumaCommonDataProviders.h23 void addAoC(std::shared_ptr<PowerStats> p);
24 void addCPUclusters(std::shared_ptr<PowerStats> p);
25 void addDevfreq(std::shared_ptr<PowerStats> p);
26 void addDvfsStats(std::shared_ptr<PowerStats> p);
27 void addGNSS(std::shared_ptr<PowerStats> p);
28 void addGPU(std::shared_ptr<PowerStats> p);
29 void addMobileRadio(std::shared_ptr<PowerStats> p);
30 void addNFC(std::shared_ptr<PowerStats> p);
31 void addPCIe(std::shared_ptr<PowerStats> p);
32 void addPixelStateResidencyDataProvider(std::shared_ptr<PowerStats> p);
[all …]
/device/generic/vulkan-cereal/third-party/glm/include/glm/gtc/
Dpacking.hpp51 GLM_FUNC_DECL float unpackUnorm1x8(uint8 p);
83 GLM_FUNC_DECL vec2 unpackUnorm2x8(uint16 p);
109 GLM_FUNC_DECL float unpackSnorm1x8(uint8 p);
141 GLM_FUNC_DECL vec2 unpackSnorm2x8(uint16 p);
167 GLM_FUNC_DECL float unpackUnorm1x16(uint16 p);
199 GLM_FUNC_DECL vec4 unpackUnorm4x16(uint64 p);
225 GLM_FUNC_DECL float unpackSnorm1x16(uint16 p);
257 GLM_FUNC_DECL vec4 unpackSnorm4x16(uint64 p);
305 GLM_FUNC_DECL vec4 unpackHalf4x16(uint64 p);
329 GLM_FUNC_DECL ivec4 unpackI3x10_1x2(uint32 p);
[all …]
/device/google/pantah/powerstats/cheetah/
Dservice.cpp37 void addDisplay(std::shared_ptr<PowerStats> p) { in addDisplay() argument
54 p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>( in addDisplay()
60 p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer( in addDisplay()
61 p, EnergyConsumerType::DISPLAY, "display", {"VSYS_PWR_DISPLAY"}, "Display", in addDisplay()
76 void addUwb(std::shared_ptr<PowerStats> p) { in addUwb() argument
105 p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>( in addUwb()
117 std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>(); in main() local
119 addGs201CommonDataProviders(p); in main()
120 addDisplay(p); in main()
121 addUwb(p); in main()
[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/google/redbull/
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/google/sunfish/
Dinit.qcom.usb.sh200 mkdir -p streaming/uncompressed/u/360p
201 echo "666666\n1000000\n5000000\n" > streaming/uncompressed/u/360p/dwFrameInterval
203 mkdir -p streaming/uncompressed/u/720p
204 echo 1280 > streaming/uncompressed/u/720p/wWidth
205 echo 720 > streaming/uncompressed/u/720p/wWidth
206 echo 29491200 > streaming/uncompressed/u/720p/dwMinBitRate
207 echo 29491200 > streaming/uncompressed/u/720p/dwMaxBitRate
208 echo 1843200 > streaming/uncompressed/u/720p/dwMaxVideoFrameBufferSize
209 echo 5000000 > streaming/uncompressed/u/720p/dwDefaultFrameInterval
210 echo "5000000\n" > streaming/uncompressed/u/720p/dwFrameInterval
[all …]
/device/generic/vulkan-cereal/third-party/astc-encoder/Source/
Dastcenc_mathlib.h149 static inline T min(T p, T q) in min() argument
151 return p < q ? p : q; in min()
166 static inline T min(T p, T q, T r) in min() argument
168 return min(min(p, q), r); in min()
184 static inline T min(T p, T q, T r, T s) in min() argument
186 return min(min(p, q), min(r, s)); in min()
200 static inline T max(T p, T q) in max() argument
202 return p > q ? p : q; in max()
217 static inline T max(T p, T q, T r) in max() argument
219 return max(max(p, q), r); in max()
[all …]

1234567891011