Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 403) sorted by relevance

12345678910>>...17

/system/core/libmincrypt/
Drsa.c34 int i; in subM() local
35 for (i = 0; i < key->len; ++i) { in subM()
36 A += (uint64_t)a[i] - key->n[i]; in subM()
37 a[i] = (uint32_t)A; in subM()
44 int i; in geM() local
45 for (i = key->len; i;) { in geM()
46 --i; in geM()
47 if (a[i] < key->n[i]) return 0; in geM()
48 if (a[i] > key->n[i]) return 1; in geM()
61 int i; in montMulAdd() local
[all …]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/data_ctrl/Ctrl/
DClsfr.c103 int i,j,actualEntryCount; in Classifier_config() local
135 for (i=0; (i < pClsfr->clsfrParameters.NumOfActiveEntries ) ; i++) in Classifier_config()
139 for (j=0;j<i;j++) in Classifier_config()
142 …sfr->clsfrParameters.ClsfrTable[j].Dscp.CodePoint == ClsfrInitParams->ClsfrTable[i].Dscp.CodePoint) in Classifier_config()
150 …meters.ClsfrTable[actualEntryCount].Dscp.CodePoint = ClsfrInitParams->ClsfrTable[i].Dscp.CodePoint; in Classifier_config()
151 … pClsfr->clsfrParameters.ClsfrTable[actualEntryCount].DTag = ClsfrInitParams->ClsfrTable[i].DTag; in Classifier_config()
159 for (i=0; (i < pClsfr->clsfrParameters.NumOfActiveEntries ) ; i++) in Classifier_config()
163 for (j=0;j<i;j++) in Classifier_config()
166 …r->clsfrParameters.ClsfrTable[j].Dscp.DstPortNum == ClsfrInitParams->ClsfrTable[i].Dscp.DstPortNum) in Classifier_config()
174 …ters.ClsfrTable[actualEntryCount].Dscp.DstPortNum = ClsfrInitParams->ClsfrTable[i].Dscp.DstPortNum; in Classifier_config()
[all …]
/system/extras/ext4_utils/
Dmake_ext4fs.c81 int i; in build_directory_structure() local
96 for (i = 0; i < entries; i++) { in build_directory_structure()
97 dentries[i].filename = strdup(namelist[i]->d_name); in build_directory_structure()
98 if (dentries[i].filename == NULL) in build_directory_structure()
101 asprintf(&dentries[i].path, "%s/%s", dir_path, namelist[i]->d_name); in build_directory_structure()
102 asprintf(&dentries[i].full_path, "%s/%s", full_path, namelist[i]->d_name); in build_directory_structure()
104 free(namelist[i]); in build_directory_structure()
106 ret = lstat(dentries[i].full_path, &stat); in build_directory_structure()
109 i--; in build_directory_structure()
114 dentries[i].size = stat.st_size; in build_directory_structure()
[all …]
/system/wlan/ti/wilink_6_1/stad/src/Data_link/
DTxDataClsfr.c70 TI_UINT32 i, j; in txDataClsfr_Config() local
91 for (i = 0; i < pParams->uNumActiveEntries; i++) in txDataClsfr_Config()
95 for (j = 0; j < i; j++) in txDataClsfr_Config()
98 … if (pParams->ClsfrTable[j].Dscp.CodePoint == pClsfrInitParams->ClsfrTable[i].Dscp.CodePoint) in txDataClsfr_Config()
106 …ams->ClsfrTable[uActualEntryCount].Dscp.CodePoint = pClsfrInitParams->ClsfrTable[i].Dscp.CodePoint; in txDataClsfr_Config()
107 … pParams->ClsfrTable[uActualEntryCount].DTag = pClsfrInitParams->ClsfrTable[i].DTag; in txDataClsfr_Config()
116 for (i = 0; (i < pParams->uNumActiveEntries) ; i++) in txDataClsfr_Config()
120 for (j = 0; j < i; j++) in txDataClsfr_Config()
123 … if (pParams->ClsfrTable[j].Dscp.DstPortNum == pClsfrInitParams->ClsfrTable[i].Dscp.DstPortNum) in txDataClsfr_Config()
131 …s->ClsfrTable[uActualEntryCount].Dscp.DstPortNum = pClsfrInitParams->ClsfrTable[i].Dscp.DstPortNum; in txDataClsfr_Config()
[all …]
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/CLI/
Dconsole.c185 U16 i; in consoleAddToken() local
215 for(i = 0; p_parms->name && p_parms->name[0] && ( i < MAX_NUM_OF_PARMS); i++ ) in consoleAddToken()
217 ConParm_t *p_token_parm = &p_token->u.token.parm[i]; in consoleAddToken()
249 p_token_parm->name = (const char *)p_token->u.token.name[i]; in consoleAddToken()
250 strncpy( p_token->u.token.name[i], p_parms->name, MAX_NAME_LEN ); in consoleAddToken()
253 if ((i == MAX_NUM_OF_PARMS) && p_parms->name[0]) in consoleAddToken()
542 U16 i=0; in console_getWord() local
548 while( *p_inbuf && *p_inbuf!=' ' && i<len ) in console_getWord()
549 name[i++] = *(p_inbuf++); in console_getWord()
551 if (i<len) in console_getWord()
[all …]
/system/core/libacc/tests/data/
Dbrackets.c2 int i; in testBrackets() local
4 for (i = 0; i < len; i++) { in testBrackets()
5 ar[i] = i; in testBrackets()
7 for (i = 0; i < len; i++) { in testBrackets()
8 if (ar[i] != i) { in testBrackets()
9 printf("error: [%d] %d != %d\n", i, ar[i], i); in testBrackets()
48 int i; in testHeap2D() local
49 for(i = 0; i < lenX; i++) { in testHeap2D()
50 ar2D[i] = ar + lenY * i; in testHeap2D()
Darray.c45 int i; in vectorAdd() local
46 for(i = 0; i < len; i++) { in vectorAdd()
47 c[i] = a[i] + b[i]; in vectorAdd()
54 int i; in testArgs() local
56 for(i = 0; i < len; i++) { in testArgs()
57 a[i] = i; in testArgs()
58 b[i] = i; in testArgs()
59 c[i] = 0; in testArgs()
63 for(i = 0; i < len; i++) { in testArgs()
64 printf(" %g", c[i]); in testArgs()
/system/bluetooth/tools/
Dpipetest.c57 unsigned int i; in _poll() local
63 for (i=0; i<nfds; i++) { in _poll()
64 if (ufds[i].revents) { in _poll()
65 printf("\tfd %d ", ufds[i].fd); print_events(ufds[i].revents); in _poll()
253 int i; in do_pipe_pipe_pipe() local
272 int i; in do_pollin_pollin_write() local
281 for (i = 0; i < 100; i++) in do_pollin_pollin_write()
295 int i; in do_pollin_pollin_pollin_write_pollin_pollin_pollin() local
299 for (i=0; i<MAX_T; i++) in do_pollin_pollin_pollin_write_pollin_pollin_pollin()
300 pthread_create(&t[i], NULL, (void *)thread_pollin_rand_delay, (void *)fd[0]); in do_pollin_pollin_pollin_write_pollin_pollin_pollin()
[all …]
Dbttest.c59 int i; in usage() local
62 for (i = 0; function_table[i].name; i++) { in usage()
63 printf("\tbttest %s\n", function_table[i].name); in usage()
68 int i; in main() local
74 for (i = 0; function_table[i].name; i++) { in main()
75 if (!strcmp(argv[1], function_table[i].name)) { in main()
76 printf("%s\n", function_table[i].name); in main()
77 return (*function_table[i].ptr)(); in main()
Dasocket_test.c80 unsigned int i; in print_fds() local
81 for (i=0; i<nfds; i++) in print_fds()
82 printf("%d ", ufds[i].fd); in print_fds()
299 unsigned int i; in _poll() local
308 for (i=0; i<nfds; i++) { in _poll()
309 if (ufds[i].revents) { in _poll()
310 printf("\tfd %d ", ufds[i].fd); print_events(ufds[i].revents); in _poll()
525 int i; in do_poll_poll_poll_shutdown() local
529 for (i=0; i<MAX_T; i++) in do_poll_poll_poll_shutdown()
530 pthread_create(&t[i], NULL, (void *)thread_poll, (void *)fd); in do_poll_poll_poll_shutdown()
[all …]
Dsocktest.c79 unsigned int i; in print_fds() local
80 for (i=0; i<nfds; i++) in print_fds()
81 printf("%d ", ufds[i].fd); in print_fds()
239 int i; in get_bdaddr() local
240 for(i = 0; i < 6; i++) { in get_bdaddr()
242 if (*endp != ':' && i != 5) { in get_bdaddr()
313 unsigned int i; in _poll() local
322 for (i=0; i<nfds; i++) { in _poll()
323 if (ufds[i].revents) { in _poll()
324 printf("\tfd %d ", ufds[i].fd); print_events(ufds[i].revents); in _poll()
[all …]
/system/wlan/ti/wilink_6_1/platforms/os/linux/src/
Dstack_profile.c66 unsigned long i; in check_stack_start() local
83 for(i=from;(i < to);i+=4) { in check_stack_start()
85 *(unsigned long *)i = 0xdeadbeef; in check_stack_start()
93 unsigned long i; in check_stack_stop() local
105 for(i=0;(i < sfp->stack_size/sizeof(unsigned long));i++) { in check_stack_stop()
106 if (sfp->stack_start[i] != sfp->stack_buf[i]) in check_stack_stop()
107 … printk("%p: 0x%08lx != 0x%08lx\n", &sfp->stack_start[i], sfp->stack_start[i], sfp->stack_buf[i]); in check_stack_stop()
113 for(i=from;(i < to);i+=4) { in check_stack_stop()
115 if ((*(unsigned long *)i) != 0xdeadbeef) in check_stack_stop()
121 return i; in check_stack_stop()
[all …]
/system/core/libsysutils/src/
DNetlinkEvent.cpp37 int i; in ~NetlinkEvent() local
42 for (i = 0; i < NL_PARAMS_MAX; i++) { in ~NetlinkEvent()
43 if (!mParams[i]) in ~NetlinkEvent()
45 free(mParams[i]); in ~NetlinkEvent()
50 int i; in dump() local
52 for (i = 0; i < NL_PARAMS_MAX; i++) { in dump()
53 if (!mParams[i]) in dump()
55 SLOGD("NL param '%s'\n", mParams[i]); in dump()
63 int i; in decode() local
96 int i; in findParam() local
[all …]
/system/core/fastboot/
Dusbtest.c91 int i; in test_null() local
97 for(i = 0; i < arg_count; i++) { in test_null()
110 int i; in test_zero() local
115 for(i = 0; i < arg_count; i++) { in test_zero()
142 int i; in usage() local
145 for(i = 0; tests[i].cmd; i++) { in usage()
146 fprintf(stderr," %-8s %s\n", tests[i].cmd, tests[i].help); in usage()
181 int i; in main() local
191 for(i = 0; tests[i].cmd; i++) { in main()
192 if(!strcmp(argv[1], tests[i].cmd)) { in main()
[all …]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/hal/hl_data/
DwhalDefrag.c50 UINT8 i; in findAndInsertEndpointIndex() local
54 for (i=0; i<pWhalDefrag->numCollectEntry; i++) in findAndInsertEndpointIndex()
56 if ((pWhalDefrag->endpntMngr[i].inUse == TRUE) && in findAndInsertEndpointIndex()
57 (os_memoryCompare (pWhalDefrag->hOs, pWhalDefrag->endpntMngr[i].srcMac, mac, MAC_ADDR_LEN) == 0)) in findAndInsertEndpointIndex()
59 *idx = i; in findAndInsertEndpointIndex()
65 for (i=0; i<pWhalDefrag->numCollectEntry; i++) in findAndInsertEndpointIndex()
67 if (pWhalDefrag->endpntMngr[i].inUse == FALSE) in findAndInsertEndpointIndex()
69 pWhalDefrag->endpntMngr[i].inUse = TRUE; in findAndInsertEndpointIndex()
70 os_memoryCopy (pWhalDefrag->hOs, pWhalDefrag->endpntMngr[i].srcMac, mac, MAC_ADDR_LEN); in findAndInsertEndpointIndex()
71 *idx = i; in findAndInsertEndpointIndex()
[all …]
/system/extras/tests/sdcard/
Dstopwatch.cpp134 for (size_t i = 0; i < mDataLen / 2; ++i) in sprint() local
136 long second = mData[i * 2].mTime.tv_sec - mStart.tv_sec; in sprint()
137 long nano = mData[i * 2].mTime.tv_nsec - mStart.tv_nsec; in sprint()
139 … SNPRINTF_OR_RETURN(*str, *size, "%f %f\n", double(second) + double(nano) / 1.0e9, mDeltas[i]); in sprint()
170 for (size_t i = 0; i < mDataLen; i += 2) // even: start odd: stop in processSamples() local
172 long second = mData[i + 1].mTime.tv_sec - mData[i].mTime.tv_sec; in processSamples()
173 long nano = mData[i + 1].mTime.tv_nsec - mData[i].mTime.tv_nsec; in processSamples()
175 mDeltas[i / 2] = double(second) + double(nano) / 1.0e9; in processSamples()
178 for (size_t i = 0; i < n; ++i) in processSamples() local
180 if (0 == i) in processSamples()
[all …]
/system/extras/procrank/
Dprocrank.c61 size_t i, j; in main() local
100 for (i = 0; i < num_procs; i++) { in main()
101 procs[i] = malloc(sizeof(struct proc_info)); in main()
102 if (procs[i] == NULL) { in main()
106 procs[i]->pid = pids[i]; in main()
107 error = pm_process_create(ker, pids[i], &proc); in main()
111 pm_process_usage(proc, &procs[i]->usage); in main()
114 pm_process_workingset(proc, &procs[i]->usage, 0); in main()
122 fprintf(stderr, "warning: could not create process interface for %d\n", pids[i]); in main()
123 pm_memusage_zero(&procs[i]->usage); in main()
[all …]
/system/wlan/ti/wilink_6_1/utils/
Dfreq.c97 TI_UINT32 i; in Freq2Chan() local
99 for (i = 0; i < CHAN_FREQ_TABLE_SIZE; i++) in Freq2Chan()
101 if (ChanFreq[ i ].freq == freq) in Freq2Chan()
103 return ChanFreq[ i ].chan; in Freq2Chan()
113 TI_UINT32 i; in Chan2Freq() local
115 for (i = 0; i < CHAN_FREQ_TABLE_SIZE; i++) in Chan2Freq()
117 if (ChanFreq[ i ].chan == chan) in Chan2Freq()
119 return ChanFreq[ i ].freq; in Chan2Freq()
/system/extras/tests/bionic/libc/common/
Dtest_gethostbyname.c12 int i, ret; in main() local
25 for (i = 0; hent->h_aliases[i] != NULL; i++) in main()
26 printf( " %s", hent->h_aliases[i] ); in main()
39 for (i = 0; i < hent->h_length; i++) { in main()
40 printf("%s%d", dot, ((unsigned char*)hent->h_addr)[i]); in main()
47 for (i = 0; i < hent->h_length; i++) { in main()
48 printf( "%02x", ((unsigned char*)hent->h_addr)[i] ); in main()
/system/core/toolbox/
Dtop.c110 int i; in top_main() local
118 for (i = 1; i < argc; i++) { in top_main()
119 if (!strcmp(argv[i], "-m")) { in top_main()
120 if (i + 1 >= argc) { in top_main()
125 max_procs = atoi(argv[++i]); in top_main()
128 if (!strcmp(argv[i], "-n")) { in top_main()
129 if (i + 1 >= argc) { in top_main()
134 iterations = atoi(argv[++i]); in top_main()
137 if (!strcmp(argv[i], "-d")) { in top_main()
138 if (i + 1 >= argc) { in top_main()
[all …]
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
Dstack_profile.c50 unsigned long i; in check_stack_start() local
57 for (i = from;i<to;i+=4) in check_stack_start()
60 *(long *)i = 0xdeadbeef; in check_stack_start()
68 unsigned long i; in check_stack_stop() local
75 for (i = from;i<to;i+=4) in check_stack_stop()
78 if ((*(long *)i) != 0xdeadbeef) in check_stack_stop()
84 return i; in check_stack_stop()
Dioctl_utils.c106 int i; in print_err_desc() local
107 for( i=0; i<SIZE_ARR(configMgr_error_desc);i++ ) in print_err_desc()
109 if(configMgr_error_desc[i].err_code == err ) in print_err_desc()
111 print_err("---err(%d) configMgr() = %s\n", err, configMgr_error_desc[i].desc ); in print_err_desc()
122 int i; in print_memory_dump() local
131 for(i=0; i<size; i++ ) { in print_memory_dump()
132 if( !(i % 16) ) in print_memory_dump()
133 sprintf(&buf[strlen(buf)], "%s%p: ", (i) ? "\n" : "", addr+i ); in print_memory_dump()
134 sprintf(&buf[strlen(buf)], "%02x ", (unsigned char)addr[i] ); in print_memory_dump()
/system/wlan/ti/wilink_6_1/CUDK/configurationutility/src/
Dconsole.c165 S32 i; in Console_stricmp() local
167 for( i=0; i<len && s1[i] && s2[i]; i++ ) in Console_stricmp()
169 if (os_tolower(s1[i]) != os_tolower(s2[i] )) in Console_stricmp()
173 return ( (len - i) * (s1[i] - s2[i]) ); in Console_stricmp()
260 U16 i=0; in Console_getWord() local
265 while( *pConsole->p_inbuf && *pConsole->p_inbuf!=' ' && i<len ) in Console_getWord()
266 name[i++] = *(pConsole->p_inbuf++); in Console_getWord()
268 if (i<len) in Console_getWord()
269 name[i] = 0; in Console_getWord()
279 U32 i, len = param->hi_val; in Console_getStrParam() local
[all …]
/system/extras/librank/
Dlibrank.c73 int i; in get_library() local
76 for (i = 0; library_name_blacklist[i]; i++) in get_library()
77 if (!strcmp(name, library_name_blacklist[i])) in get_library()
80 for (i = 0; i < libraries_count; i++) { in get_library()
81 if (!strcmp(libraries[i]->name, name)) in get_library()
82 return libraries[i]; in get_library()
120 int i; in get_mapping() local
122 for (i = 0; i < library->mappings_count; i++) { in get_mapping()
123 if (library->mappings[i]->proc == proc) in get_mapping()
124 return library->mappings[i]; in get_mapping()
[all …]
/system/netd/
DSoftapController.cpp55 int i, ret; in getPrivFuncNum() local
66 for(i=0;(i < wrq.u.data.length);i++) { in getPrivFuncNum()
67 if (strcmp(priv_ptr[i].name, fname) == 0) in getPrivFuncNum()
68 return priv_ptr[i].cmd; in getPrivFuncNum()
237 int fnum, ret, i = 0; in setSoftap() local
259 i = addParam(i, "ASCII_CMD", "AP_CFG"); in setSoftap()
265 i = addParam(i, "SSID", ssid); in setSoftap()
267 i = addParam(i, "SEC", argv[5]); in setSoftap()
269 i = addParam(i, "SEC", "open"); in setSoftap()
281 i = addParam(i, "KEY", psk_str); in setSoftap()
[all …]

12345678910>>...17