Home
last modified time | relevance | path

Searched refs:n2 (Results 1 – 10 of 10) sorted by relevance

/system/core/libutils/
DUnicode.cpp325 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2) in strzcmp16() argument
328 const char16_t* e2 = s2+n2; in strzcmp16()
337 return n1 < n2 in strzcmp16()
339 : (n1 > n2 in strzcmp16()
344 int strzcmp16_h_n(const char16_t *s1H, size_t n1, const char16_t *s2N, size_t n2) in strzcmp16_h_n() argument
347 const char16_t* e2 = s2N+n2; in strzcmp16_h_n()
358 return n1 < n2 in strzcmp16_h_n()
360 : (n1 > n2 in strzcmp16_h_n()
/system/core/libutils/include/utils/
DUnicode.h41 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2);
44 int strzcmp16_h_n(const char16_t *s1H, size_t n1, const char16_t *s2N, size_t n2);
/system/extras/simpleperf/
Dcallchain.h154 const std::unique_ptr<NodeT>& n2) { in CompareNodeByPeriod()
156 uint64_t period2 = n2->period + n2->children_period; in CompareNodeByPeriod()
/system/bt/stack/smp/
Dsmp_int.h362 uint8_t* n2, uint8_t* a1, uint8_t* a2,
364 extern void smp_f5_calc_chk(uint8_t* w, uint8_t* n1, uint8_t* n2, uint8_t* a1,
366 extern void smp_f6_calc_chk(uint8_t* w, uint8_t* n1, uint8_t* n2, uint8_t* r,
522 extern bool smp_calculate_f5(uint8_t* w, uint8_t* n1, uint8_t* n2, uint8_t* a1,
525 uint8_t* t, uint8_t* counter, uint8_t* key_id, uint8_t* n1, uint8_t* n2,
528 extern bool smp_calculate_f6(uint8_t* w, uint8_t* n1, uint8_t* n2, uint8_t* r,
Dsmp_keys.cc1216 bool smp_calculate_f5(uint8_t* w, uint8_t* n1, uint8_t* n2, uint8_t* a1, in smp_calculate_f5() argument
1246 p_prnt = n2; in smp_calculate_f5()
1264 n2, a1, a2, length, mac_key)) { in smp_calculate_f5()
1273 if (!smp_calculate_f5_mackey_or_long_term_key(t, counter_ltk, key_id, n1, n2, in smp_calculate_f5()
1320 uint8_t* n2, uint8_t* a1, in smp_calculate_f5_mackey_or_long_term_key() argument
1346 p_prnt = n2; in smp_calculate_f5_mackey_or_long_term_key()
1366 ARRAY_TO_STREAM(p, n2, BT_OCTET16_LEN); in smp_calculate_f5_mackey_or_long_term_key()
1556 bool smp_calculate_f6(uint8_t* w, uint8_t* n1, uint8_t* n2, uint8_t* r, in smp_calculate_f6() argument
1574 p_print = n2; in smp_calculate_f6()
1601 ARRAY_TO_STREAM(p, n2, BT_OCTET16_LEN); in smp_calculate_f6()
Daes.cc259 uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv() local
265 while (n2 >= n1) /* divide polynomial p2 by p1 */ in gf_inv()
267 n2 /= n1; /* shift smaller polynomial left */ in gf_inv()
268 p2 ^= (p1 * n2) & 0xff; /* and remove from larger one */ in gf_inv()
269 v2 ^= (v1 * n2); /* shift accumulated value and */ in gf_inv()
270 n2 = hibit(p2); /* add into result */ in gf_inv()
275 if (n2) /* repeat with values swapped */ in gf_inv()
276 while (n1 >= n2) { in gf_inv()
277 n1 /= n2; in gf_inv()
/system/core/init/
Dperfboot.py332 n2 = n / 2
333 return (data[n2 - 1] + data[n2]) / 2.0
/system/core/fs_mgr/
Dfs_mgr.cpp523 char *n2; in fs_match() local
527 n2 = strdup(in2); in fs_match()
530 remove_trailing_slashes(n2); in fs_match()
532 ret = !strcmp(n1, n2); in fs_match()
535 free(n2); in fs_match()
/system/bt/stack/rfcomm/
Drfc_int.h101 uint8_t n2; member
Drfc_ts_frames.cc680 p_rx_frame->u.pn.n2 = *p_data++; in rfc_process_mx_message()