/system/nfc/src/gki/common/ |
D | gki_inet.h | 30 #define ntohs(n) (n) argument 31 #define ntohl(n) (n) argument 32 #define ntoh6(n) (n) argument 34 #define nettohs(n) (n) argument 35 #define nettohl(n) (n) argument 37 extern uint16_t ntohs(uint16_t n); 38 extern uint32_t ntohl(uint32_t n); 41 #define nettohs(n) ((uint16_t)((((n) << 8) & 0xff00) | (((n) >> 8) & 0x00ff))) argument 42 #define nettohl(n) \ argument 43 ((((n)&0x000000ff) << 24) | (((n) << 8) & 0x00ff0000) | \ [all …]
|
/system/nfc/halimpl/bcm2079x/gki/common/ |
D | gki_inet.h | 30 #define ntohs(n) (n) argument 31 #define ntohl(n) (n) argument 32 #define ntoh6(n) (n) argument 34 #define nettohs(n) (n) argument 35 #define nettohl(n) (n) argument 37 extern uint16_t ntohs(uint16_t n); 38 extern uint32_t ntohl(uint32_t n); 41 #define nettohs(n) ((uint16_t)((((n) << 8) & 0xff00) | (((n) >> 8) & 0x00ff))) argument 42 #define nettohl(n) \ argument 43 ((((n)&0x000000ff) << 24) | (((n) << 8) & 0x00ff0000) | \ [all …]
|
/system/core/libutils/include/utils/ |
D | BitSet.h | 37 static inline uint32_t valueForBit(uint32_t n) { return 0x80000000UL >> n; } in valueForBit() 60 inline bool hasBit(uint32_t n) const { return hasBit(value, n); } in hasBit() 62 static inline bool hasBit(uint32_t value, uint32_t n) { return value & valueForBit(n); } in hasBit() 65 inline void markBit(uint32_t n) { markBit(value, n); } in markBit() 67 static inline void markBit (uint32_t& value, uint32_t n) { value |= valueForBit(n); } in markBit() 70 inline void clearBit(uint32_t n) { clearBit(value, n); } in clearBit() 72 static inline void clearBit(uint32_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit() 97 uint32_t n = firstMarkedBit(value); in clearFirstMarkedBit() local 98 clearBit(value, n); in clearFirstMarkedBit() 99 return n; in clearFirstMarkedBit() [all …]
|
D | FastStrcmp.h | 44 const ssize_t n = s; // To help reject negative sizes, treat like zero in fastcmp() local 45 return __predict_true(n > 0) && in fastcmp() 46 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp() 51 const ssize_t n = s; // To help reject negative sizes, treat like zero in fasticmp() local 52 return __predict_true(n > 0) && in fasticmp() 53 ((tolower(*l) != tolower(*r)) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fasticmp() 60 const ssize_t n = s; // To help reject negative sizes, treat like zero in fastcmp() local 61 return __predict_true(n > 0) && in fastcmp() 62 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp()
|
D | TypeHelpers.h | 134 void construct_type(TYPE* p, size_t n) { 136 while (n > 0) { 137 n--; 144 void destroy_type(TYPE* p, size_t n) { 146 while (n > 0) { 147 n--; 157 copy_type(TYPE* d, const TYPE* s, size_t n) { 158 memcpy(d,s,n*sizeof(TYPE)); 164 copy_type(TYPE* d, const TYPE* s, size_t n) { 165 while (n > 0) { [all …]
|
/system/core/libpixelflinger/ |
D | fixed.cpp | 73 GGLfixed gglFastDivx(GGLfixed n, GGLfixed d) in gglFastDivx() argument 76 n >>= 8; in gglFastDivx() 79 return gglMulx(n, gglRecip(d)); in gglFastDivx() 174 int32_t gglDivQ(GGLfixed n, GGLfixed d, int32_t i) in gglDivQ() argument 177 const int32_t ds = n^d; in gglDivQ() 178 if (n<0) n = -n; in gglDivQ() 180 int nd = gglClz(d) - gglClz(n); in gglDivQ() 183 else n <<= -nd; in gglDivQ() 193 n -= d; in gglDivQ() 196 if (n>=0) q |= 128; in gglDivQ() [all …]
|
D | picker.cpp | 43 new_needs.n &= ~GGL_NEEDS_CB_FORMAT_MASK; in ggl_pick() 44 new_needs.n |= GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT); in ggl_pick() 50 uint32_t n = GGL_BUILD_NEEDS(c->state.buffers.color.format, CB_FORMAT); in ggl_pick() local 82 n |= GGL_BUILD_NEEDS( src, BLEND_SRC ); in ggl_pick() 83 n |= GGL_BUILD_NEEDS( dst, BLEND_DST ); in ggl_pick() 85 n |= GGL_BUILD_NEEDS( src_alpha, BLEND_SRCA ); in ggl_pick() 86 n |= GGL_BUILD_NEEDS( dst_alpha, BLEND_DSTA ); in ggl_pick() 88 n |= GGL_BUILD_NEEDS( src, BLEND_SRCA ); in ggl_pick() 89 n |= GGL_BUILD_NEEDS( dst, BLEND_DSTA ); in ggl_pick() 92 n |= GGL_BUILD_NEEDS( GGL_ONE, BLEND_SRC ); in ggl_pick() [all …]
|
/system/libufdt/sysdeps/ |
D | libufdt_sysdeps_vendor.c | 62 #define swapcode(TYPE, parmi, parmj, n) \ argument 64 long i = (n) / sizeof(TYPE); \ 78 static __inline void swapfunc(char *a, char *b, int n, int swaptype) { in swapfunc() argument 79 if (swaptype <= 1) swapcode(long, a, b, n) else swapcode(char, a, b, n) in swapfunc() 89 #define vecswap(a, b, n) \ argument 90 if ((n) > 0) swapfunc(a, b, n, swaptype) 98 void qsort(void *aa, size_t n, size_t es, in qsort() argument 106 if (n < 7) { in qsort() 107 for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es) in qsort() 112 pm = (char *)a + (n / 2) * es; in qsort() [all …]
|
D | libufdt_sysdeps_posix.c | 52 int dto_memcmp(const void *lhs, const void *rhs, size_t n) { in dto_memcmp() argument 53 return memcmp(lhs, rhs, n); in dto_memcmp() 56 void *dto_memcpy(void *dest, const void *src, size_t n) { in dto_memcpy() argument 57 return memcpy(dest, src, n); in dto_memcpy() 62 int dto_strncmp(const char *s1, const char *s2, size_t n) { in dto_strncmp() argument 63 return strncmp(s1, s2, n); in dto_strncmp() 66 void *dto_memchr(const void *s, int c, size_t n) { return memchr(s, c, n); } in dto_memchr() argument 68 void *dto_memset(void *s, int c, size_t n) { return memset(s, c, n); } in dto_memset() argument
|
/system/bt/osi/src/ |
D | compat.cc | 67 size_t n = siz; in strlcpy() local 70 if (n != 0) { in strlcpy() 71 while (--n != 0) { in strlcpy() 77 if (n == 0) { in strlcpy() 98 size_t n = siz; in strlcat() local 102 while (n-- != 0 && *d != '\0') d++; in strlcat() 104 n = siz - dlen; in strlcat() 106 if (n == 0) return (dlen + strlen(s)); in strlcat() 109 if (n != 1) { in strlcat() 111 n--; in strlcat()
|
/system/core/toolbox/upstream-netbsd/lib/libc/gen/ |
D | getbsize.c | 57 long n, max, mul, blocksize; in __weak_alias() local 67 if ((n = strtol(p, &ep, 10)) < 0) in __weak_alias() 69 if (n == 0) in __weak_alias() 70 n = 1; in __weak_alias() 95 n = 512; in __weak_alias() 100 if (n > max) { in __weak_alias() 102 n = max; in __weak_alias() 104 if ((blocksize = n * mul) < 512) { in __weak_alias() 107 blocksize = n = 512; in __weak_alias() 110 blocksize = n = 512; in __weak_alias() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_slotselect.cpp | 42 int n; in fs_mgr_update_for_slotselect() local 45 for (n = 0; n < fstab->num_entries; n++) { in fs_mgr_update_for_slotselect() 46 if (fstab->recs[n].fs_mgr_flags & MF_SLOTSELECT) { in fs_mgr_update_for_slotselect() 53 if (asprintf(&tmp, "%s%s", fstab->recs[n].blk_device, ab_suffix.c_str()) > 0) { in fs_mgr_update_for_slotselect() 54 free(fstab->recs[n].blk_device); in fs_mgr_update_for_slotselect() 55 fstab->recs[n].blk_device = tmp; in fs_mgr_update_for_slotselect()
|
/system/media/audio_utils/ |
D | fixedfft.cpp | 108 void fixed_fft(int n, int32_t *v) in fixed_fft() argument 112 for (r = 0, i = 1; i < n; ++i) { in fixed_fft() 113 for (p = n; !(p & r); p >>= 1, r ^= p); in fixed_fft() 121 for (p = 1; p < n; p <<= 1) { in fixed_fft() 124 for (i = 0; i < n; i += p << 1) { in fixed_fft() 135 for (i = r; i < n; i += p << 1) { in fixed_fft() 145 void fixed_fft_real(int n, int32_t *v) in fixed_fft_real() argument 147 int scale = LOG_FFT_SIZE, m = n >> 1, i; in fixed_fft_real() 149 fixed_fft(n, v); in fixed_fft_real() 150 for (i = 1; i <= n; i <<= 1, --scale); in fixed_fft_real() [all …]
|
/system/core/libutils/ |
D | StopWatch.cpp | 43 const int n = mNumLaps; in ~StopWatch() local 45 for (int i=0 ; i<n ; i++) { in ~StopWatch() 63 const int n = mNumLaps; in lap() local 64 mLaps[n].soFar = elapsed; in lap() 65 mLaps[n].thisLap = n ? (elapsed - mLaps[n-1].soFar) : elapsed; in lap() 66 mNumLaps = n+1; in lap()
|
/system/core/fastboot/ |
D | usb_linux.cpp | 278 int fd, n; in read_sysfs_string() local 288 n = read(fd, buf, bufsize - 1); in read_sysfs_string() 291 if (n < 0) in read_sysfs_string() 294 buf[n] = '\0'; in read_sysfs_string() 296 return n; in read_sysfs_string() 338 int n, in, out, ifc; in find_usb_device() local 363 n = read(fd, desc, sizeof(desc)); in find_usb_device() 365 if (filter_usb_device(de->d_name, desc, n, writable, callback, &in, &out, &ifc) == 0) { in find_usb_device() 372 n = ioctl(fd, USBDEVFS_CLAIMINTERFACE, &ifc); in find_usb_device() 373 if (n != 0) { in find_usb_device() [all …]
|
/system/extras/perfprofd/quipper/base/ |
D | compiler_specific.h | 25 #define MSVC_SUPPRESS_WARNING(n) __pragma(warning(suppress:n)) argument 29 #define MSVC_PUSH_DISABLE_WARNING(n) __pragma(warning(push)) \ argument 30 __pragma(warning(disable:n)) 35 #define MSVC_PUSH_WARNING_LEVEL(n) __pragma(warning(push, n)) argument 60 #define MSVC_SUPPRESS_WARNING(n) argument 61 #define MSVC_PUSH_DISABLE_WARNING(n) argument 62 #define MSVC_PUSH_WARNING_LEVEL(n) argument
|
/system/extras/tests/uevents/ |
D | uevents.c | 26 int n; in main() local 33 while ((n = uevent_kernel_multicast_recv(device_fd, msg, UEVENT_MSG_LEN)) > 0) { in main() 34 msg[n] = '\0'; in main() 35 msg[n+1] = '\0'; in main() 37 for (i = 0; i < n; i++) in main()
|
/system/bt/embdrv/sbc/decoder/include/ |
D | oi_time.h | 67 #define OI_SECONDS(n) ((OI_INTERVAL)((n)*OI_INTERVALS_PER_SECOND)) argument 73 #define OI_MSECONDS(n) \ argument 74 ((OI_INTERVAL)(((n) + MSECS_PER_OI_INTERVAL - 1) / MSECS_PER_OI_INTERVAL)) 80 #define OI_MINUTES(n) ((OI_INTERVAL)((n)*OI_SECONDS(60))) argument
|
/system/update_engine/ |
D | p2p_manager_unittest.cc | 147 for (int n = 0; n < 5; n++) { in TEST_F() local 149 "file_%d.cros_au.p2p", n)); in TEST_F() 150 base::Time file_time = start_time + TimeDelta::FromMinutes(n); in TEST_F() 155 "file_%d.OTHER.p2p", n)); in TEST_F() 166 for (int n = 0; n < 5; n++) { in TEST_F() local 170 expect = (n >= 2); in TEST_F() 173 test_conf_->GetP2PDir().value().c_str(), n); in TEST_F() 178 test_conf_->GetP2PDir().value().c_str(), n); in TEST_F() 210 for (int n = 0; n < 5; n++) { in TEST_F() local 212 "file_%d.cros_au.p2p", n)); in TEST_F() [all …]
|
/system/core/adb/ |
D | transport_usb.cpp | 40 int n = usb_read(h, buffer, usb_packet_size); in UsbReadMessage() local 41 if (n != sizeof(*msg)) { in UsbReadMessage() 42 D("usb_read returned unexpected length %d (expected %zu)", n, sizeof(*msg)); in UsbReadMessage() 46 return n; in UsbReadMessage() 70 int n = UsbReadMessage(t->usb, &p->msg); in remote_read() local 71 if (n < 0) { in remote_read() 75 if (static_cast<size_t>(n) != sizeof(p->msg) || !check_header(p, t)) { in remote_read() 87 n = UsbReadPayload(t->usb, p); in remote_read() 88 if (n < 0) { in remote_read() 92 if (static_cast<uint32_t>(n) != p->msg.data_length) { in remote_read() [all …]
|
/system/core/base/ |
D | file.cpp | 63 ssize_t n; in ReadFdToString() local 64 while ((n = TEMP_FAILURE_RETRY(read(fd, &buf[0], sizeof(buf)))) > 0) { in ReadFdToString() 65 content->append(buf, n); in ReadFdToString() 67 return (n == 0) ? true : false; in ReadFdToString() 85 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, left)); in WriteStringToFd() local 86 if (n == -1) { in WriteStringToFd() 89 p += n; in WriteStringToFd() 90 left -= n; in WriteStringToFd() 148 ssize_t n = TEMP_FAILURE_RETRY(read(fd, p, remaining)); in ReadFully() local 149 if (n <= 0) return false; in ReadFully() [all …]
|
/system/core/healthd/ |
D | healthd_common.cpp | 171 int n; in uevent_event() local 173 n = uevent_kernel_multicast_recv(uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event() 174 if (n <= 0) in uevent_event() 176 if (n >= UEVENT_MSG_LEN) /* overflow -- discard */ in uevent_event() 179 msg[n] = '\0'; in uevent_event() 180 msg[n+1] = '\0'; in uevent_event() 258 for (int n = 0; n < nevents; ++n) { in healthd_mainloop() local 259 if (events[n].data.ptr) in healthd_mainloop() 260 (*(void (*)(int))events[n].data.ptr)(events[n].events); in healthd_mainloop()
|
/system/security/keystore/ |
D | keystore_utils.cpp | 35 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, remaining)); in readFully() local 36 if (n <= 0) { in readFully() 39 data += n; in readFully() 40 remaining -= n; in readFully() 48 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, remaining)); in writeFully() local 49 if (n < 0) { in writeFully() 53 data += n; in writeFully() 54 remaining -= n; in writeFully()
|
/system/vold/ |
D | KeyBuffer.h | 35 inline OPTNONE void* memset_s(void* s, int c, size_t n) { in memset_s() argument 38 return memset(s, c, n); in memset_s() 45 void deallocate(pointer p, size_type n) in deallocate() argument 47 memset_s(p, 0, n); in deallocate() 48 std::allocator<char>::deallocate(p, n); in deallocate()
|
/system/core/libcutils/ |
D | strlcpy.c | 37 size_t n = siz; in strlcpy() local 40 if (n != 0) { in strlcpy() 41 while (--n != 0) { in strlcpy() 48 if (n == 0) { in strlcpy()
|