Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 36) sorted by relevance

12

/system/extras/ksmutils/
Dlookup3.c69 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument
175 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword() argument
187 a += k[0]; in hashword()
188 b += k[1]; in hashword()
189 c += k[2]; in hashword()
192 k += 3; in hashword()
198 case 3 : c+=k[2]; in hashword()
199 case 2 : b+=k[1]; in hashword()
200 case 1 : a+=k[0]; in hashword()
219 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword2() argument
[all …]
Dksminfo.c191 size_t i, j, k; in read_pages() local
262 for (k = 0; k < kp->len; k++) { in read_pages()
263 if (kp->pages[k].hash == hash) break; in read_pages()
266 if (k == kp->len) { in read_pages()
276 memset(&tmp[k], 0, sizeof(tmp[k]) * GROWTH_FACTOR); in read_pages()
293 cur_page = &kp->pages[k]; in read_pages()
345 size_t i, j, k; in print_pages() local
372 for (k = 0; k < 8 && j < kp->pages[i].vaddr_len; k++, j++) { in print_pages()
/system/bt/stack/smp/
Daes.c372 static void copy_and_key( void *d, const void *s, const void *k ) in copy_and_key() argument
375 ((uint_32t*)d)[ 0] = ((uint_32t*)s)[ 0] ^ ((uint_32t*)k)[ 0]; in copy_and_key()
376 ((uint_32t*)d)[ 1] = ((uint_32t*)s)[ 1] ^ ((uint_32t*)k)[ 1]; in copy_and_key()
377 ((uint_32t*)d)[ 2] = ((uint_32t*)s)[ 2] ^ ((uint_32t*)k)[ 2]; in copy_and_key()
378 ((uint_32t*)d)[ 3] = ((uint_32t*)s)[ 3] ^ ((uint_32t*)k)[ 3]; in copy_and_key()
380 ((uint_8t*)d)[ 0] = ((uint_8t*)s)[ 0] ^ ((uint_8t*)k)[ 0]; in copy_and_key()
381 ((uint_8t*)d)[ 1] = ((uint_8t*)s)[ 1] ^ ((uint_8t*)k)[ 1]; in copy_and_key()
382 ((uint_8t*)d)[ 2] = ((uint_8t*)s)[ 2] ^ ((uint_8t*)k)[ 2]; in copy_and_key()
383 ((uint_8t*)d)[ 3] = ((uint_8t*)s)[ 3] ^ ((uint_8t*)k)[ 3]; in copy_and_key()
384 ((uint_8t*)d)[ 4] = ((uint_8t*)s)[ 4] ^ ((uint_8t*)k)[ 4]; in copy_and_key()
[all …]
Dp_256_ecc_pp.c160 static void ECC_NAF(uint8_t *naf, uint32_t *NumNAF, DWORD *k, uint32_t keyLength) in ECC_NAF() argument
167 while ((var = multiprecision_most_signbits(k, keyLength))>=1) in ECC_NAF()
169 if (k[0] & 0x01) // k is odd in ECC_NAF()
171 sign = (k[0] & 0x03); // 1 or 3 in ECC_NAF()
175 k[0] = k[0] & 0xFFFFFFFE; in ECC_NAF()
178 k[0] = k[0] + 1; in ECC_NAF()
179 if (k[0] == 0) //overflow in ECC_NAF()
184 k[j]++; in ECC_NAF()
185 } while (k[j++]==0); //overflow in ECC_NAF()
192 multiprecision_rshift(k, k, keyLength); in ECC_NAF()
/system/bt/embdrv/sbc/encoder/srce/
Dsbc_dct.c161 UINT8 Index, k; in SBC_FastIDCT8()
167 for(k=0; k<16; k++) in SBC_FastIDCT8()
170 temp += (gas16AnalDCTcoeff8[(Index*8*2)+k] * (pInVect[k] >> 16)); in SBC_FastIDCT8()
171 temp += ((gas16AnalDCTcoeff8[(Index*8*2)+k] * (pInVect[k] & 0xFFFF)) >> 16); in SBC_FastIDCT8()
230 UINT8 Index, k; in SBC_FastIDCT4()
236 for(k=0; k<8; k++) in SBC_FastIDCT4()
239 temp += (gas16AnalDCTcoeff4[(Index*4*2)+k] * (pInVect[k] >> 16)); in SBC_FastIDCT4()
240 temp += ((gas16AnalDCTcoeff4[(Index*4*2)+k] * (pInVect[k] & 0xFFFF)) >> 16); in SBC_FastIDCT4()
/system/core/libutils/tests/
DBlobCache_test.cpp225 uint8_t k = i; in TEST_F() local
226 mBC->set(&k, 1, "x", 1); in TEST_F()
230 uint8_t k = i; in TEST_F() local
231 if (mBC->get(&k, 1, NULL, 0) == 1) { in TEST_F()
242 uint8_t k = i; in TEST_F() local
243 mBC->set(&k, 1, "x", 1); in TEST_F()
247 uint8_t k = maxEntries; in TEST_F() local
248 mBC->set(&k, 1, "x", 1); in TEST_F()
253 uint8_t k = i; in TEST_F() local
254 if (mBC->get(&k, 1, NULL, 0) == 1) { in TEST_F()
[all …]
DLruCache_test.cpp29 int k; member
31 explicit ComplexKey(int k) : k(k) { in ComplexKey()
35 ComplexKey(const ComplexKey& other) : k(other.k) { in ComplexKey()
44 return k == other.k; in operator ==()
48 return k != other.k; in operator !=()
84 return hash_type(value.k); in hash_type()
91 void operator()(SimpleKey& k, StringValue& v) { in operator ()() argument
93 lastKey = k; in operator ()()
DBasicHashtable_test.cpp32 int k; member
34 explicit ComplexKey(int k) : k(k) { in ComplexKey()
38 ComplexKey(const ComplexKey& other) : k(other.k) { in ComplexKey()
47 return k == other.k; in operator ==()
51 return k != other.k; in operator !=()
88 return hash_type(value.k); in hash_type()
158 *key = entry.key.k; in getKeyValue()
/system/bt/btif/src/
Dbtif_config_transcode.cpp53 for (XMLElement *k = j->FirstChildElement(); k != NULL; k = k->NextSiblingElement()) { in btif_config_transcode() local
54 const char *key = k->Attribute("Tag"); in btif_config_transcode()
55 const char *value = k->GetText(); in btif_config_transcode()
/system/keymaster/
Docb.c796 unsigned i, k, tz, remaining; in process_ad() local
852 k = 0; in process_ad()
864 k = 4; in process_ad()
869 ta[k] = xor_block(ad_offset, adp[k]); in process_ad()
870 ad_offset = xor_block(ad_offset, getL(ctx, ntz(k + 2))); in process_ad()
871 ta[k + 1] = xor_block(ad_offset, adp[k + 1]); in process_ad()
873 k += 2; in process_ad()
877 ta[k] = xor_block(ad_offset, adp[k]); in process_ad()
879 ++k; in process_ad()
884 memcpy(tmp.u8, adp + k, remaining); in process_ad()
[all …]
/system/extras/tests/pagingtest/
Dthrashing_test.c18 long long k; in thrashing_test() local
56 for (k = ((filesize - 1) & ~(pagesize - 1)); k >= 0; k -= pagesize) { in thrashing_test()
57 bufs[j][k]; in thrashing_test()
/system/bt/stack/rfcomm/
Drfc_port_if.c144 UINT8 k; in RFCOMM_ParNegReq() local
168 k = (p_port->credit_rx_max < RFCOMM_K_MAX) ? p_port->credit_rx_max : RFCOMM_K_MAX; in RFCOMM_ParNegReq()
169 p_port->credit_rx = k; in RFCOMM_ParNegReq()
174 k = 0; in RFCOMM_ParNegReq()
180 rfc_send_pn (p_mcb, dlci, TRUE, mtu, cl, k); in RFCOMM_ParNegReq()
194 void RFCOMM_ParNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in RFCOMM_ParNegRsp() argument
200 rfc_send_pn (p_mcb, dlci, FALSE, mtu, cl, k); in RFCOMM_ParNegRsp()
Drfc_int.h59 extern void RFCOMM_ParNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k);
98 UINT8 k; member
331 UINT8 cl, UINT8 k);
367 extern void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k);
368 extern void PORT_ParNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k);
Dport_rfc.c42 void port_get_credits (tPORT *p_port, UINT8 k);
294 void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in PORT_ParNegInd() argument
357 port_get_credits (p_port, k); in PORT_ParNegInd()
385 void PORT_ParNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in PORT_ParNegCnf() argument
389 RFCOMM_TRACE_EVENT ("PORT_ParNegCnf dlci:%d mtu:%d cl: %d k: %d", dlci, mtu, cl, k); in PORT_ParNegCnf()
425 port_get_credits (p_port, k); in PORT_ParNegCnf()
1115 void port_get_credits (tPORT *p_port, UINT8 k) in port_get_credits() argument
1117 p_port->credit_tx = k; in port_get_credits()
/system/core/libsysutils/src/
DFrameworkListener.cpp168 for (int k = 0; k < argc; k++) { in dispatchCommand()
169 SLOGD("arg[%d] = '%s'", k, argv[k]); in dispatchCommand()
/system/bt/bta/sys/
Dutl.c124 UINT16 j, k; in utl_itoa() local
137 k = i / j; in utl_itoa()
139 if (k > 0 || fill) in utl_itoa()
141 *p++ = k + '0'; in utl_itoa()
/system/extras/verity/
DKeystoreSigner.java65 java.security.interfaces.RSAPublicKey k = in BootKey() local
68 k.getModulus(), in BootKey()
69 k.getPublicExponent()); in BootKey()
101 BootKey k = new BootKey(pubkey); in addPublicKey() local
102 keyBag.add(k); in addPublicKey()
/system/core/toolbox/
Dgetevent.c99 int i, j, k; in print_possible_events() local
174 for(k = 0; k < 8; k++) in print_possible_events()
175 if(bits[j] & 1 << k) { in print_possible_events()
177 if(j < res2 && (bits[j + bits_size] & 1 << k)) in print_possible_events()
186 bit_label = get_label(bit_labels, j * 8 + k); in print_possible_events()
190 printf(" %04x%c ", j * 8 + k, down); in print_possible_events()
192 printf(" %04x%c", j * 8 + k, down); in print_possible_events()
196 if(ioctl(fd, EVIOCGABS(j * 8 + k), &abs) == 0) { in print_possible_events()
/system/extras/micro_bench/
Dmicro_bench.cpp247 size_t j, k; \
250 for (k = 0; k < num_incrs; k++) { \
320 buf = buffer + k * incr; \
365 buf1 = buffer1 + k * buf1_incr; \
366 buf2 = buffer2 + k * buf2_incr; \
461 size_t k; in benchmarkMemread() local
463 for (k = 0; k < size/sizeof(uint32_t); k++) foo = src[k]); in benchmarkMemread()
/system/core/libpixelflinger/codeflinger/tinyutils/
DTypeHelpers.h225 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { }
226 key_value_pair_t(const KEY& k) : key(k) { }
/system/media/camera/docs/
Dmetadata_model.py483 leaf_it = ((k, g) for k, g in group_entry_by_kind)
715 k = existing[0]
717 k = Kind(el.name, el.parent)
718 acc.append(k)
720 k._namespaces.extend(el._namespaces)
721 k._entries.extend(el._entries)
727 for k in new_kinds_lst:
728 yield k
755 for k in self._get_children():
756 combined._namespaces.extend(k.namespaces)
[all …]
/system/core/libpixelflinger/codeflinger/
DCodeCache.h108 key_t(const AssemblyKeyBase& k) : mKey(&k) { } in key_t() argument
Dtexturing.cpp715 int k = scratches.obtain(); in filter8() local
729 RSB(AL, 0, k, u, imm(1<<(FRAC_BITS*2))); in filter8()
736 SUB(AL, 0, k, k, u); in filter8()
746 SUB(AL, 0, u, k, u); in filter8()
820 int k = scratches.obtain(); in filter16() local
838 RSB(AL, 0, k, u, imm(1<<prec)); in filter16()
853 SUB(AL, 0, k, k, u); in filter16()
871 SUB(AL, 0, u, k, u); in filter16()
903 int k = scratches.obtain(); in filter32() local
929 RSB(AL, 0, k, u, imm(0x100)); in filter32()
[all …]
/system/core/include/utils/
DTypeHelpers.h235 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { }
236 key_value_pair_t(const KEY& k) : key(k) { }
/system/extras/perfprofd/tests/
Dperfprofd_test.cc252 for (size_t k = 0; k < mod.address_samples_size(); k++) { in encodedModuleSamplesToString() local
253 const auto &sample = mod.address_samples(k); in encodedModuleSamplesToString()
255 for (size_t l = 0; l < mod.address_samples(k).address_size(); in encodedModuleSamplesToString()
257 auto address = mod.address_samples(k).address(l); in encodedModuleSamplesToString()

12