/device/generic/goldfish-opengl/android-emu/android/base/ |
D | ring_buffer.c | 53 void ring_buffer_init(struct ring_buffer* r) { in ring_buffer_init() argument 54 r->guest_version = 1; in ring_buffer_init() 55 r->write_pos = 0; in ring_buffer_init() 56 r->read_pos = 0; in ring_buffer_init() 58 r->read_live_count = 0; in ring_buffer_init() 59 r->read_yield_count = 0; in ring_buffer_init() 60 r->read_sleep_us_count = 0; in ring_buffer_init() 62 r->state = 0; in ring_buffer_init() 69 bool ring_buffer_can_write(const struct ring_buffer* r, uint32_t bytes) { in ring_buffer_can_write() argument 71 __atomic_load(&r->read_pos, &read_view, __ATOMIC_SEQ_CST); in ring_buffer_can_write() [all …]
|
D | ring_buffer.h | 47 void ring_buffer_init(struct ring_buffer* r); 52 struct ring_buffer* r, const void* data, uint32_t step_size, uint32_t steps); 54 struct ring_buffer* r, void* data, uint32_t step_size, uint32_t steps); 59 struct ring_buffer* r, uint32_t step_size, uint32_t steps); 61 struct ring_buffer* r, uint32_t step_size, uint32_t steps); 89 struct ring_buffer* r, 101 struct ring_buffer* r, 105 struct ring_buffer* r, 117 const struct ring_buffer* r, 121 const struct ring_buffer* r, [all …]
|
D | Optional.h | 484 bool operator==(const Optional<T>& l, const Optional<T>& r) { 485 return l.hasValue() ? r.hasValue() && *l == *r : !r.hasValue(); 492 bool operator==(NulloptT, const Optional<T>& r) { 493 return !r; 496 bool operator==(const Optional<T>& l, const T& r) { 497 return bool(l) && *l == r; 500 bool operator==(const T& l, const Optional<T>& r) { 501 return bool(r) && l == *r; 505 bool operator!=(const Optional<T>& l, const Optional<T>& r) { 506 return !(l == r); [all …]
|
D | EnumFlags.h | 49 enable_if_scoped_enum<E> operator|(E l, E r) { 51 | static_cast<underlying_enum_type<E>>(r)); 55 enable_if_scoped_enum<E> operator&(E l, E r) { 57 & static_cast<underlying_enum_type<E>>(r)); 66 enable_if_scoped_enum<E> operator|=(E& l, E r) { 67 return l = (l | r); 71 enable_if_scoped_enum<E> operator&=(E& l, E r) { 72 return l = (l & r);
|
/device/google/cuttlefish/guest/hals/gps/ |
D | gps_thread.cpp | 31 static void reader_call_callback(GpsDataReader* r) { in reader_call_callback() argument 32 if (!r) { in reader_call_callback() 36 if (!r->callback) { in reader_call_callback() 41 if (!r->fix.flags) { in reader_call_callback() 47 r->fix.timestamp = (long long)secs * 1000; in reader_call_callback() 51 if (r->fix.flags & GPS_LOCATION_HAS_LAT_LONG) { in reader_call_callback() 52 D(" - latitude = %g", r->fix.latitude); in reader_call_callback() 53 D(" - longitude = %g", r->fix.longitude); in reader_call_callback() 55 if (r->fix.flags & GPS_LOCATION_HAS_ALTITUDE) in reader_call_callback() 56 D(" - altitude = %g", r->fix.altitude); in reader_call_callback() [all …]
|
/device/google/cuttlefish_kernel/5.4-x86_64/ |
D | System.map | 77716 ffffffff8204f098 r _note_55 86761 ffffffff82b0f0c8 r __pci_fixup_pci_early_fixup_cyrix_5530483 86763 ffffffff82b0f0e0 r __pci_fixup_pci_invalid_bar571 86764 ffffffff82b0f0f8 r __pci_fixup_pci_invalid_bar572 86765 ffffffff82b0f110 r __pci_fixup_pci_invalid_bar573 86766 ffffffff82b0f128 r __pci_fixup_pci_invalid_bar574 86767 ffffffff82b0f140 r __pci_fixup_pci_invalid_bar575 86768 ffffffff82b0f158 r __pci_fixup_pci_invalid_bar576 86769 ffffffff82b0f170 r __pci_fixup_pci_invalid_bar577 86770 ffffffff82b0f188 r __pci_fixup_pci_invalid_bar578 [all …]
|
/device/google/contexthub/firmware/lib/builtins/ |
D | udivmoddi4.c | 33 udwords r; in __udivmoddi4() local 78 r.s.high = n.s.high % d.s.high; in __udivmoddi4() 79 r.s.low = 0; in __udivmoddi4() 80 *rem = r.all; in __udivmoddi4() 92 r.s.low = n.s.low; in __udivmoddi4() 93 r.s.high = n.s.high & (d.s.high - 1); in __udivmoddi4() 94 *rem = r.all; in __udivmoddi4() 116 r.s.high = n.s.high >> sr; in __udivmoddi4() 117 r.s.low = (n.s.high << (n_uword_bits - sr)) | (n.s.low >> sr); in __udivmoddi4() 151 r.s.high = 0; in __udivmoddi4() [all …]
|
D | umoddi3.c | 22 du_int r; in __umoddi3() local 23 __udivmoddi4(a, b, &r); in __umoddi3() 24 return r; in __umoddi3()
|
/device/google/bonito/json-c/ |
D | random_seed.c | 95 int r; in get_rdrand_seed() local 96 while (_rdrand32_step(&r) == 0); in get_rdrand_seed() 97 return r; in get_rdrand_seed() 160 int r; in get_dev_random_seed() local 161 ssize_t nread = read(fd, &r, sizeof(r)); in get_dev_random_seed() 162 if (nread != sizeof(r)) { in get_dev_random_seed() 168 return r; in get_dev_random_seed() 191 int r; in get_cryptgenrandom_seed() local 198 if (!CryptGenRandom(hProvider, sizeof(r), (BYTE*)&r)) { in get_cryptgenrandom_seed() 205 return r; in get_cryptgenrandom_seed()
|
/device/google/crosshatch/json-c/ |
D | random_seed.c | 95 int r; in get_rdrand_seed() local 96 while (_rdrand32_step(&r) == 0); in get_rdrand_seed() 97 return r; in get_rdrand_seed() 160 int r; in get_dev_random_seed() local 161 ssize_t nread = read(fd, &r, sizeof(r)); in get_dev_random_seed() 162 if (nread != sizeof(r)) { in get_dev_random_seed() 168 return r; in get_dev_random_seed() 191 int r; in get_cryptgenrandom_seed() local 198 if (!CryptGenRandom(hProvider, sizeof(r), (BYTE*)&r)) { in get_cryptgenrandom_seed() 205 return r; in get_cryptgenrandom_seed()
|
/device/google/coral/json-c/ |
D | random_seed.c | 95 int r; in get_rdrand_seed() local 96 while (_rdrand32_step(&r) == 0); in get_rdrand_seed() 97 return r; in get_rdrand_seed() 160 int r; in get_dev_random_seed() local 161 ssize_t nread = read(fd, &r, sizeof(r)); in get_dev_random_seed() 162 if (nread != sizeof(r)) { in get_dev_random_seed() 168 return r; in get_dev_random_seed() 191 int r; in get_cryptgenrandom_seed() local 198 if (!CryptGenRandom(hProvider, sizeof(r), (BYTE*)&r)) { in get_cryptgenrandom_seed() 205 return r; in get_cryptgenrandom_seed()
|
/device/generic/goldfish/camera/ |
D | Converters.h | 94 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(b) << 6) | (g)) << 5) | (r)) argument 96 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(b) << 8) | (g)) << 8) | (r)) argument 111 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(r) << 6) | g) << 5) | b) argument 113 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(r) << 8) | g) << 8) | b) argument 122 uint8_t r; uint8_t g; uint8_t b; uint8_t a; member 124 uint8_t a; uint8_t b; uint8_t g; uint8_t r; 147 #define RGB2Y(r, g, b) (uint8_t)(((66 * (r) + 129 * (g) + 25 * (b) + 128) >> 8) + 16) argument 148 #define RGB2U(r, g, b) (uint8_t)(((-38 * (r) - 74 * (g) + 112 * (b) + 128) >> 8) + 128) argument 149 #define RGB2V(r, g, b) (uint8_t)(((112 * (r) - 94 * (g) - 18 * (b) + 128) >> 8) + 128) argument 153 R8G8B8ToYUV(uint8_t r, uint8_t g, uint8_t b, uint8_t* y, uint8_t* u, uint8_t* v) in R8G8B8ToYUV() argument [all …]
|
/device/google/cuttlefish/guest/hals/camera/ |
D | Converters.h | 97 #define RGB565(r, g, b) \ argument 98 static_cast<uint16_t>((((static_cast<uint16_t>(b) << 6) | g) << 5) | r) 100 #define RGB32(r, g, b) \ argument 101 static_cast<uint32_t>((((static_cast<uint32_t>(b) << 8) | g) << 8) | r) 119 #define RGB565(r, g, b) \ argument 120 static_cast<uint16_t>((((static_cast<uint16_t>(r) << 6) | g) << 5) | b) 122 #define RGB32(r, g, b) \ argument 123 static_cast<uint32_t>((((static_cast<uint32_t>(r) << 8) | g) << 8) | b) 133 uint8_t r; member 141 uint8_t r; [all …]
|
/device/google/contexthub/firmware/lib/libm/ |
D | ef_rem_pio2.c | 105 float z,w,t,r,fn; local 143 r = t-fn*pio2_1; 146 y[0] = r-w; /* quick check no cancellation */ 150 y[0] = r-w; 154 t = r; 156 r = t-w; 157 w = fn*pio2_2t-((t-r)-w); 158 y[0] = r-w; 162 t = r; /* will cover all possible cases */ 164 r = t-w; [all …]
|
D | ef_sqrt.c | 32 __uint32_t r,hx; local 61 r = 0x01000000L; /* r = moving bit from right to left */ 63 while(r!=0) { 64 t = s+r; 66 s = t+r; 68 q += r; 71 r>>=1;
|
D | kf_sin.c | 38 float z,r,v; local 46 r = S2+z*(S3+z*(S4+z*(S5+z*S6))); 47 if(iy==0) return x+v*(S1+z*r); 48 else return x-((z*(half*y-v*r)-y)-v*S1);
|
D | kf_cos.c | 38 float a,hz,z,r,qx; local 46 r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6))))); 48 return one - ((float)0.5*z - (z*r - x*y)); 57 return a - (hz - (z*r-x*y));
|
/device/linaro/hikey/hifi/xaf/host-apf/include/os/android/ |
D | xf-osal.h | 110 int r; in __xf_wait() local 115 r = -pthread_cond_wait(&w->wait, &w->mutex); in __xf_wait() 128 r = -pthread_cond_timedwait(&w->wait, &w->mutex, &ts); in __xf_wait() 132 return r; in __xf_wait() 186 int r; in __xf_thread_create() local 194 r = -pthread_create(thread, &attr, f, arg); in __xf_thread_create() 199 return r; in __xf_thread_create() 205 void *r; in __xf_thread_destroy() local 211 pthread_join(*thread, &r); in __xf_thread_destroy() 214 return (int)(intptr_t)r; in __xf_thread_destroy()
|
/device/linaro/hikey/hifi/xaf/host-apf/include/os/xos/ |
D | xf-osal.h | 104 int r; 109 r = -pthread_cond_wait(&w->wait, &w->mutex); 122 r = -pthread_cond_timedwait(&w->wait, &w->mutex, &ts); 126 return r; 183 int r; in __xf_thread_create() local 186 r = xos_thread_create(thread, 0, f, arg, name, stack, stack_size, priority, 0, 0); in __xf_thread_create() 188 return r; in __xf_thread_create() 194 int r; in __xf_thread_destroy() local 201 r = xos_thread_delete(thread); in __xf_thread_destroy() 204 return r; in __xf_thread_destroy()
|
/device/google/bonito/gpt-utils/ |
D | gpt-utils.cpp | 147 int r; in blk_rw() local 156 r = write(fd, buf, len); in blk_rw() 158 r = read(fd, buf, len); in blk_rw() 160 if (r < 0) in blk_rw() 164 r = 0; in blk_rw() 166 return r; in blk_rw() 294 int r; in gpt2_set_boot_chain() local 299 r = -1; in gpt2_set_boot_chain() 305 r = -1; in gpt2_set_boot_chain() 312 r = -1; in gpt2_set_boot_chain() [all …]
|
/device/google/coral/gpt-utils/ |
D | gpt-utils.cpp | 147 int r; in blk_rw() local 156 r = write(fd, buf, len); in blk_rw() 158 r = read(fd, buf, len); in blk_rw() 160 if (r < 0) in blk_rw() 164 r = 0; in blk_rw() 166 return r; in blk_rw() 294 int r; in gpt2_set_boot_chain() local 299 r = -1; in gpt2_set_boot_chain() 305 r = -1; in gpt2_set_boot_chain() 312 r = -1; in gpt2_set_boot_chain() [all …]
|
/device/google/crosshatch/gpt-utils/ |
D | gpt-utils.cpp | 147 int r; in blk_rw() local 156 r = write(fd, buf, len); in blk_rw() 158 r = read(fd, buf, len); in blk_rw() 160 if (r < 0) in blk_rw() 164 r = 0; in blk_rw() 166 return r; in blk_rw() 294 int r; in gpt2_set_boot_chain() local 299 r = -1; in gpt2_set_boot_chain() 305 r = -1; in gpt2_set_boot_chain() 312 r = -1; in gpt2_set_boot_chain() [all …]
|
/device/generic/goldfish/dhcp/client/ |
D | netlink.h | 6 inline void addRouterAttribute(Request& r, in addRouterAttribute() argument 14 size_t offset = NLMSG_ALIGN(r.hdr.nlmsg_len) - offsetof(Request, buf); in addRouterAttribute() 15 auto attr = reinterpret_cast<struct rtattr*>(r.buf + offset); in addRouterAttribute() 21 r.hdr.nlmsg_len = NLMSG_ALIGN(r.hdr.nlmsg_len) + RTA_ALIGN(attr->rta_len); in addRouterAttribute()
|
/device/linaro/hikey/hifi/xaf/host-apf/proxy/ |
D | xf-proxy.c | 251 int r; in xf_proxy_thread() local 260 if ((r = xf_ipc_wait(&proxy->ipc, 0)) < 0) in xf_proxy_thread() 264 while ((r = xf_ipc_recv(&proxy->ipc, &m, &msg.buffer)) == sizeof(m)) in xf_proxy_thread() 296 if (r < 0) in xf_proxy_thread() 298 TRACE(ERROR, _x("abnormal proxy[%p] thread termination: %d"), proxy, r); in xf_proxy_thread() 303 TRACE(INIT, _b("IPC proxy[%p] thread terminated: %d"), proxy, r); in xf_proxy_thread() 305 return (void *)(intptr_t)r; in xf_proxy_thread() 316 int r; in xf_proxy_init() local 337 if ((r = __xf_thread_create(&proxy->thread, xf_proxy_thread, proxy)) < 0) in xf_proxy_init() 339 TRACE(ERROR, _x("Failed to create polling thread: %d"), r); in xf_proxy_init() [all …]
|
/device/generic/opengl-transport/host/commands/emugen/android/base/ |
D | EnumFlags.h | 46 enable_if_scoped_enum<E> operator|(E l, E r) { 48 | static_cast<underlying_enum_type<E>>(r)); 52 enable_if_scoped_enum<E> operator&(E l, E r) { 54 & static_cast<underlying_enum_type<E>>(r)); 63 enable_if_scoped_enum<E> operator|=(E& l, E r) { 64 return l = (l | r); 68 enable_if_scoped_enum<E> operator&=(E& l, E r) { 69 return l = (l & r);
|