/system/core/sh/ |
D | options.h | 51 char val; /* value of <letter>flag */ member 65 #define eflag optlist[0].val 67 #define fflag optlist[1].val 69 #define Iflag optlist[2].val 71 #define iflag optlist[3].val 73 #define mflag optlist[4].val 75 #define nflag optlist[5].val 77 #define sflag optlist[6].val 79 #define xflag optlist[7].val 81 #define vflag optlist[8].val [all …]
|
D | alias.c | 65 setalias(char *name, char *val) in setalias() argument 73 ckfree(ap->val); in setalias() 74 ap->val = savestr(val); in setalias() 101 ap->val = savestr(val); in setalias() 104 int len = strlen(val); in setalias() 105 ap->val = ckmalloc(len + 2); in setalias() 106 memcpy(ap->val, val, len); in setalias() 107 ap->val[len] = ' '; /* fluff */ in setalias() 108 ap->val[len+1] = '\0'; in setalias() 138 ckfree(ap->val); in unalias() [all …]
|
D | miscbltin.c | 344 rlim_t val = 0; in ulimitcmd() local 380 val = RLIM_INFINITY; in ulimitcmd() 382 val = (rlim_t) 0; in ulimitcmd() 386 val = (val * 10) + (long)(c - '0'); in ulimitcmd() 387 if ((long)val < 0) in ulimitcmd() 392 val *= l->factor; in ulimitcmd() 399 val = limit.rlim_cur; in ulimitcmd() 401 val = limit.rlim_max; in ulimitcmd() 404 if (val == RLIM_INFINITY) in ulimitcmd() 408 val /= l->factor; in ulimitcmd() [all …]
|
D | options.c | 95 optlist[i].val = 2; in procargs() 104 if (optlist[i].val == 2) in procargs() 105 optlist[i].val = 0; in procargs() 156 int val; in options() local 164 val = 1; in options() 177 val = 0; in options() 187 minus_o(*argptr, val); in options() 191 setoption(c, val); in options() 198 set_opt_val(int i, int val) in set_opt_val() argument 203 if (val && (flag = optlist[i].opt_set)) { in set_opt_val() [all …]
|
D | syntax.c | 13 #define set(ch, val) [ndx(ch)] = val, argument 14 #define set_range(s, e, val) [ndx(s) ... ndx(e)] = val, argument
|
/system/extras/tests/bionic/libc/other/ |
D | test_aligned.c | 7 read4( int o, unsigned val ) in read4() argument 9 unsigned v = htonl(val); in read4() 17 printf( "read4: offset=%d value=%08x: ", o, val ); in read4() 22 if (v2 != val) { in read4() 30 writ4( int o, unsigned val ) in writ4() argument 32 unsigned v = htonl(val); in writ4() 35 printf( "writ4: offset=%d value=%08x: ", o, val ); in writ4() 45 if (v2 != val) { in writ4() 53 read2( int o, unsigned val ) in read2() argument 55 unsigned short v = htons(val); in read2() [all …]
|
/system/core/nexus/ |
D | SupplicantState.cpp | 24 char *SupplicantState::toString(int val, char *buffer, int max) { in toString() argument 25 if (val == SupplicantState::UNKNOWN) in toString() 27 else if (val == SupplicantState::DISCONNECTED) in toString() 29 else if (val == SupplicantState::INACTIVE) in toString() 31 else if (val == SupplicantState::SCANNING) in toString() 33 else if (val == SupplicantState::ASSOCIATING) in toString() 35 else if (val == SupplicantState::ASSOCIATED) in toString() 37 else if (val == SupplicantState::FOURWAY_HANDSHAKE) in toString() 39 else if (val == SupplicantState::GROUP_HANDSHAKE) in toString() 41 else if (val == SupplicantState::COMPLETED) in toString() [all …]
|
D | DhcpState.cpp | 24 char *DhcpState::toString(int val, char *buffer, int max) { in toString() argument 25 if (val == DhcpState::INIT) in toString() 27 else if (val == DhcpState::DISCOVERING) in toString() 29 else if (val == DhcpState::REQUESTING) in toString() 31 else if (val == DhcpState::BOUND) in toString() 33 else if (val == DhcpState::RENEWING) in toString() 35 else if (val == DhcpState::REBINDING) in toString() 37 else if (val == DhcpState::REBOOT) in toString() 39 else if (val == DhcpState::RENEW_REQUESTED) in toString() 41 else if (val == DhcpState::INIT_IPV4LL) in toString() [all …]
|
D | DhcpEvent.cpp | 24 char *DhcpEvent::toString(int val, char *buffer, int max) { in toString() argument 25 if (val == DhcpEvent::UNKNOWN) in toString() 27 else if (val == DhcpEvent::STOP) in toString() 29 else if (val == DhcpEvent::RENEW) in toString() 31 else if (val == DhcpEvent::RELEASE) in toString() 33 else if (val == DhcpEvent::TIMEOUT) in toString()
|
/system/extras/tests/sdcard/ |
D | testcase.h | 61 void setNproc(size_t val) { mNproc = val; } in setNproc() argument 64 void setDataSize(size_t val) { mDataSize = val; } in setDataSize() argument 67 void setChunkSize(size_t val) { mChunkSize = val; } in setChunkSize() argument 70 void setNewFairSleepers(bool val) { in setNewFairSleepers() argument 71 mNewFairSleepers = val; in setNewFairSleepers() 72 android::setNewFairSleepers(val); in setNewFairSleepers() 76 void setNormalizedSleepers(bool val) { in setNormalizedSleepers() argument 77 mNormalizedSleepers = val; in setNormalizedSleepers() 78 android::setNormalizedSleepers(val); in setNormalizedSleepers()
|
D | stopwatch.cpp | 202 double val = double(time.tv_nsec) / 1.0e9 + double(time.tv_sec); in timespecToDouble() local 203 return val < 0.0 ? -val : val; // sometimes 0.00 is -0.00 in timespecToDouble()
|
/system/wlan/ti/wilink_6_1/utils/ |
D | tidef.h | 275 #define SET_WLAN_WORD(dst,val) ((TI_UINT8 *)(dst))[1] = (val) & 0xff; \ argument 276 ((TI_UINT8 *)(dst))[0] = ((val) >> 8) & 0xff 278 #define SET_WLAN_LONG(dst,val) ((TI_UINT8 *)(dst))[3] = (val) & 0xff; \ argument 279 ((TI_UINT8 *)(dst))[2] = ((val) >> 8) & 0xff; \ 280 ((TI_UINT8 *)(dst))[1] = ((val) >> 16) & 0xff; \ 281 ((TI_UINT8 *)(dst))[0] = ((val) >> 24) & 0xff 349 #define SET_WLAN_WORD(dst,val) ((TI_UINT8 *)(dst))[0] = (val) & 0xff; \ argument 350 ((TI_UINT8 *)(dst))[1] = ((val) >> 8) & 0xff 355 #define SET_WLAN_LONG(dst,val) ((TI_UINT8 *)(dst))[0] = (val) & 0xff; \ argument 356 ((TI_UINT8 *)(dst))[1] = ((val) >> 8) & 0xff; \ [all …]
|
/system/wlan/ti/lib/ |
D | shlist.h | 14 typedef int (*shListPrint)( void *val ); 15 typedef void (*shListFree)( void *val ); 16 typedef int (*shListEqual)( void *val, void *idata ); 19 SHLIST *shListFindItem( SHLIST *head, void *val, shListEqual func ); 26 void shListInsFirstItem( SHLIST *head, void *val ); 27 void shListInsBeforeItem( SHLIST *head, void *val, void *etalon, 29 void shListInsLastItem( SHLIST *head, void *val );
|
D | shlist.c | 17 SHLIST *shListFindItem( SHLIST *head, void *val, shListEqual func ) in shListFindItem() argument 23 if( func( val, item->data ) ) { in shListFindItem() 28 if( item->data == val ) { in shListFindItem() 94 void shListInsFirstItem( SHLIST *head, void *val ) in shListInsFirstItem() argument 101 item->data = val; in shListInsFirstItem() 112 void shListInsLastItem( SHLIST *head, void *val ) in shListInsLastItem() argument 119 item->data = val; in shListInsLastItem() 130 void shListInsBeforeItem( SHLIST *head, void *val, void *etal, in shListInsBeforeItem() argument 136 shListInsFirstItem( head, val ); in shListInsBeforeItem() 141 item->data = val; in shListInsBeforeItem() [all …]
|
/system/core/adb/ |
D | shlist.h | 14 typedef int (*shListPrint)( void *val ); 15 typedef void (*shListFree)( void *val ); 16 typedef int (*shListEqual)( void *val, void *idata ); 19 SHLIST *shListFindItem( SHLIST *head, void *val, shListEqual func ); 26 void shListInsFirstItem( SHLIST *head, void *val ); 27 void shListInsBeforeItem( SHLIST *head, void *val, void *etalon, 29 void shListInsLastItem( SHLIST *head, void *val );
|
D | shlist.c | 17 SHLIST *shListFindItem( SHLIST *head, void *val, shListEqual func ) in shListFindItem() argument 23 if( func( val, item->data ) ) { in shListFindItem() 28 if( item->data == val ) { in shListFindItem() 94 void shListInsFirstItem( SHLIST *head, void *val ) in shListInsFirstItem() argument 101 item->data = val; in shListInsFirstItem() 112 void shListInsLastItem( SHLIST *head, void *val ) in shListInsLastItem() argument 119 item->data = val; in shListInsLastItem() 130 void shListInsBeforeItem( SHLIST *head, void *val, void *etal, in shListInsBeforeItem() argument 136 shListInsFirstItem( head, val ); in shListInsBeforeItem() 141 item->data = val; in shListInsBeforeItem() [all …]
|
/system/core/include/cutils/ |
D | sockets.h | 49 const char *val; in android_get_control_socket() local 64 val = getenv(key); in android_get_control_socket() 65 if (!val) in android_get_control_socket() 69 fd = strtol(val, NULL, 10); in android_get_control_socket()
|
/system/core/debuggerd/ |
D | utility.c | 45 int val; in get_remote_struct() local 48 val = ptrace(PTRACE_PEEKTEXT, pid, src+i, NULL); in get_remote_struct() 50 ((unsigned char *)dst)[i] = val & 0xff; in get_remote_struct() 52 val >>= 8; in get_remote_struct()
|
/system/core/mkbootimg/ |
D | mkbootimg.c | 127 char *val = argv[1]; in main() local 134 bootimg = val; in main() 136 kernel_fn = val; in main() 138 ramdisk_fn = val; in main() 140 second_fn = val; in main() 142 cmdline = val; in main() 144 unsigned base = strtoul(val, 0, 16); in main() 150 board = val; in main()
|
/system/wlan/ti/wilink_6_1/platforms/hw/host_platform_zoom2/linux/ |
D | host_platform.c | 52 int val; in pad_config() local 61 val = __raw_readl(addr); in pad_config() 62 val &= andmask; in pad_config() 63 val |= ormask; in pad_config() 64 __raw_writel(val, addr); in pad_config()
|
/system/core/fastboot/ |
D | fastboot.c | 331 char *val[MAX_OPTIONS]; in setup_requirement_line() local 348 val[0] = x + 1; in setup_requirement_line() 351 x = strchr(val[count - 1],'|'); in setup_requirement_line() 354 val[count] = x + 1; in setup_requirement_line() 358 for(n = 0; n < count; n++) val[n] = strip(val[n]); in setup_requirement_line() 370 out[n] = strdup(strip(val[n])); in setup_requirement_line() 579 unsigned long val; in main() local 582 val = strtoul(argv[1], &endptr, 0); in main() 583 if (!endptr || *endptr != '\0' || (val & ~0xffff)) in main() 585 vendor_id = (unsigned short)val; in main()
|
D | engine.c | 129 const char *val; in match() local 134 const char *val = value[n]; in match() local 135 int len = strlen(val); in match() 138 if ((len > 1) && (val[len-1] == '*')) { in match() 140 match = !strncmp(val, str, len); in match() 142 match = !strcmp(val, str); in match()
|
/system/wlan/ti/wilink_6_1/TWD/FW_Transfer/ |
D | HwInit.c | 1326 TI_UINT32 val = (pHwInit->pEEPROMCurPtr[0] | in hwInit_EepromlessStartBurstSm() local 1331 …t->hReport, REPORT_SEVERITY_INIT , "NVS::BurstRead: *(%08x) = %x\n", pHwInit->uEEPROMRegAddr, val); in hwInit_EepromlessStartBurstSm() 1333 … BUILD_HW_INIT_TXN_DATA(pHwInit, pTxn, (REGISTERS_BASE+pHwInit->uEEPROMRegAddr), val, in hwInit_EepromlessStartBurstSm() 1615 TI_UINT32 val= 0, value; in hwInit_ReadRadioParamsSm() local 1644 val = (pHwInit->aHwInitTxn[pHwInit->uTxnIndex].uData); in hwInit_ReadRadioParamsSm() 1645 val &= 0xFFFDFFFF; /*clear bit 17*/ in hwInit_ReadRadioParamsSm() 1649 BUILD_HW_INIT_TXN_DATA(pHwInit, pTxn, GPIO_SELECT, val, in hwInit_ReadRadioParamsSm() 1668 val = (retAddress & 0x7FF); in hwInit_ReadRadioParamsSm() 1669 val |= BIT_16 | BIT_17; in hwInit_ReadRadioParamsSm() 1671 BUILD_HW_INIT_TXN_DATA(pHwInit, pTxn, OCP_POR_CTR, val, in hwInit_ReadRadioParamsSm() [all …]
|
/system/core/libacc/tests/data/ |
D | brackets.c | 27 int val = ar2D[x][y]; in testBrackets2D() local 28 if (val != expected) { in testBrackets2D() 29 printf("error: [%d][%d] %d != %d\n", x, y, val, expected); in testBrackets2D()
|
/system/core/libmincrypt/ |
D | sha.c | 41 static inline uint32_t ror27(uint32_t val) { in ror27() argument 42 return (val >> 27) | (val << 5); in ror27() 44 static inline uint32_t ror2(uint32_t val) { in ror2() argument 45 return (val >> 2) | (val << 30); in ror2() 47 static inline uint32_t ror31(uint32_t val) { in ror31() argument 48 return (val >> 31) | (val << 1); in ror31()
|