/external/u-boot/drivers/usb/eth/ |
D | r8152_fw.c | 723 static void rtl_clear_bp(struct r8152 *tp) in rtl_clear_bp() argument 725 ocp_write_dword(tp, MCU_TYPE_PLA, PLA_BP_0, 0); in rtl_clear_bp() 726 ocp_write_dword(tp, MCU_TYPE_PLA, PLA_BP_2, 0); in rtl_clear_bp() 727 ocp_write_dword(tp, MCU_TYPE_PLA, PLA_BP_4, 0); in rtl_clear_bp() 728 ocp_write_dword(tp, MCU_TYPE_PLA, PLA_BP_6, 0); in rtl_clear_bp() 729 ocp_write_dword(tp, MCU_TYPE_USB, USB_BP_0, 0); in rtl_clear_bp() 730 ocp_write_dword(tp, MCU_TYPE_USB, USB_BP_2, 0); in rtl_clear_bp() 731 ocp_write_dword(tp, MCU_TYPE_USB, USB_BP_4, 0); in rtl_clear_bp() 732 ocp_write_dword(tp, MCU_TYPE_USB, USB_BP_6, 0); in rtl_clear_bp() 736 ocp_write_word(tp, MCU_TYPE_PLA, PLA_BP_BA, 0); in rtl_clear_bp() [all …]
|
D | r8152.c | 72 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in get_registers() argument 77 ret = usb_control_msg(tp->udev, usb_rcvctrlpipe(tp->udev, 0), in get_registers() 85 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in set_registers() argument 90 return usb_control_msg(tp->udev, usb_sndctrlpipe(tp->udev, 0), in set_registers() 95 int generic_ocp_read(struct r8152 *tp, u16 index, u16 size, in generic_ocp_read() argument 111 ret = get_registers(tp, index, type, txsize, data); in generic_ocp_read() 123 int generic_ocp_write(struct r8152 *tp, u16 index, u16 byteen, in generic_ocp_write() argument 142 ret = set_registers(tp, index, type | byte_en_to_hw, 4, data); in generic_ocp_write() 156 ret = set_registers(tp, index, in generic_ocp_write() 168 ret = set_registers(tp, index, type | byte_en_to_hw, 4, data); in generic_ocp_write() [all …]
|
/external/tcpdump/ |
D | addrtoname.c | 343 struct enamemem *tp; in lookup_emem() local 349 tp = &enametable[(i ^ j) & (HASHNAMESIZE-1)]; in lookup_emem() 350 while (tp->e_nxt) in lookup_emem() 351 if (tp->e_addr0 == i && in lookup_emem() 352 tp->e_addr1 == j && in lookup_emem() 353 tp->e_addr2 == k) in lookup_emem() 354 return tp; in lookup_emem() 356 tp = tp->e_nxt; in lookup_emem() 357 tp->e_addr0 = i; in lookup_emem() 358 tp->e_addr1 = j; in lookup_emem() [all …]
|
D | print-dhcp6.c | 284 const u_char *tp; in dhcp6opt_print() local 316 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print() 317 switch (EXTRACT_16BITS(tp)) { in dhcp6opt_print() 321 EXTRACT_16BITS(&tp[2]), in dhcp6opt_print() 322 EXTRACT_32BITS(&tp[4]))); in dhcp6opt_print() 324 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print() 336 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print() 347 EXTRACT_16BITS(&tp[2]))); in dhcp6opt_print() 349 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print() 358 ND_PRINT((ndo, " type %d)", EXTRACT_16BITS(tp))); in dhcp6opt_print() [all …]
|
D | print-atalk.c | 413 register const struct atNBPtuple *tp = in nbp_print() local 431 if ((const u_char *)tp > ep) { in nbp_print() 440 if ((const u_char *)(tp + 1) > ep) { in nbp_print() 444 (void)nbp_name_print(ndo, tp, ep); in nbp_print() 452 if (tp->enumerator) in nbp_print() 453 ND_PRINT((ndo, " [enum=%d]", tp->enumerator)); in nbp_print() 454 if (EXTRACT_16BITS(&tp->net) != snet || in nbp_print() 455 tp->node != snode || tp->skt != skt) in nbp_print() 457 ataddr_string(ndo, EXTRACT_16BITS(&tp->net), in nbp_print() 458 tp->node), tp->skt)); in nbp_print() [all …]
|
/external/pdfium/third_party/libopenjpeg20/ |
D | thread.c | 579 opj_thread_pool_t *tp; member 619 static OPJ_BOOL opj_thread_pool_setup(opj_thread_pool_t* tp, int num_threads); 621 opj_thread_pool_t* tp, 627 opj_thread_pool_t* tp; in opj_thread_pool_create() local 629 tp = (opj_thread_pool_t*) opj_calloc(1, sizeof(opj_thread_pool_t)); in opj_thread_pool_create() 630 if (!tp) { in opj_thread_pool_create() 633 tp->state = OPJWTS_OK; in opj_thread_pool_create() 636 tp->tls = opj_tls_new(); in opj_thread_pool_create() 637 if (!tp->tls) { in opj_thread_pool_create() 638 opj_free(tp); in opj_thread_pool_create() [all …]
|
/external/perfetto/src/tracing/core/ |
D | trace_packet_unittest.cc | 54 TracePacket tp; in TEST() local 55 tp.AddSlice(ser_buf.data(), ser_buf.size()); in TEST() 56 auto slice = tp.slices().begin(); in TEST() 57 ASSERT_NE(tp.slices().end(), slice); in TEST() 60 ASSERT_EQ(tp.slices().end(), ++slice); in TEST() 63 ASSERT_TRUE(tp.Decode(&decoded_packet)); in TEST() 72 TracePacket tp; in TEST() local 73 tp.AddSlice({ser_buf.data(), 3}); in TEST() 74 tp.AddSlice({ser_buf.data() + 3, 5}); in TEST() 75 tp.AddSlice({ser_buf.data() + 3 + 5, ser_buf.size() - 3 - 5}); in TEST() [all …]
|
/external/curl/lib/ |
D | inet_pton.c | 97 unsigned char tmp[INADDRSZ], *tp; in inet_pton4() local 101 tp = tmp; in inet_pton4() 102 *tp = 0; in inet_pton4() 108 unsigned int val = *tp * 10 + (unsigned int)(pch - digits); in inet_pton4() 110 if(saw_digit && *tp == 0) in inet_pton4() 114 *tp = (unsigned char)val; in inet_pton4() 124 *++tp = 0; in inet_pton4() 155 unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 160 memset((tp = tmp), 0, IN6ADDRSZ); in inet_pton6() 161 endp = tp + IN6ADDRSZ; in inet_pton6() [all …]
|
/external/clang/test/Analysis/ |
D | uninit-const.c | 26 int* tp = &t; // expected-note {{'tp' initialized here}} in f_1() local 27 …doStuff_pointerToConstInt(tp); // expected-warning {{Function call argument is a pointer to unini… in f_1() 47 int* tp = p; // expected-note {{'tp' initialized here}} in f_2() local 48 …doStuff_pointerToConstInt(tp); // expected-warning {{Function call argument is a pointer to uninit… in f_2() 64 int* tp = ta; // expected-note {{'tp' initialized here}} in f_5() local 65 …doStuff_pointerToConstInt(tp); // expected-warning {{Function call argument is a pointer to unini… in f_5() 77 int* tp = ta; in f_6() local 78 doStuff_pointerToConstInt(tp); // no-warning in f_6() 150 int* tp = &t; // expected-note {{'tp' initialized here}} in f_variadic_unp_unv() local 151 …doStuff_variadic(tp,v); // expected-warning {{Function call argument is a pointer to uninitialize… in f_variadic_unp_unv() [all …]
|
/external/mksh/src/ |
D | exec.c | 62 struct tbl *tp = NULL; in execute() local 130 tp = findcom(ap[0], FC_BI|FC_FUNC); in execute() 146 if (iosetup(*iowp, tp) < 0) { in execute() 152 if (tp && tp->type == CSHELL && in execute() 153 (tp->flag & SPEC_BI)) in execute() 162 rv = comexec(t, tp, (const char **)ap, flags, xerrok); in execute() 484 comexec(struct op *t, struct tbl * volatile tp, const char **ap, in comexec() argument 530 while (tp && tp->type == CSHELL) { in comexec() 533 if (tp->val.f == c_builtin) { in comexec() 536 tp = NULL; in comexec() [all …]
|
/external/ltp/testcases/open_posix_testsuite/functional/threads/pi_test/ |
D | pitest-6.c | 65 } tp[] = { variable 95 struct thread_param *tp = param; in thread_fn() local 98 unsigned long mask = 1 << tp->cpu; in thread_fn() 104 "%d %s", tp->name, tp->index, rc, strerror(rc)); in thread_fn() 108 test_set_priority(pthread_self(), SCHED_FIFO, tp->priority); in thread_fn() 109 DPRINTF(stderr, "Thread %s index %d: started\n", tp->name, tp->index); in thread_fn() 111 seconds_read() - base_time, tp->name); in thread_fn() 113 tp->progress = 0; in thread_fn() 115 ts.tv_nsec = tp->sleep_ms * 1000 * 1000; in thread_fn() 116 while (!tp->stop) { in thread_fn() [all …]
|
D | pitest-5.c | 67 } tp[] = { variable 97 struct thread_param *tp = param; in thread_fn() local 100 unsigned long mask = 1 << tp->cpu; in thread_fn() 102 test_set_priority(pthread_self(), SCHED_FIFO, tp->priority); in thread_fn() 107 "%d %s", tp->name, tp->index, rc, strerror(rc)); in thread_fn() 113 seconds_read() - base_time, tp->name); in thread_fn() 114 DPRINTF(stderr, "Thread %s index %d: started\n", tp->name, tp->index); in thread_fn() 116 tp->progress = 0; in thread_fn() 118 ts.tv_nsec = tp->sleep_ms * 1000 * 1000; in thread_fn() 119 while (!tp->stop) { in thread_fn() [all …]
|
D | pitest-2.c | 67 } tp[] = { variable 98 struct thread_param *tp = param; in thread_fn() local 101 unsigned long mask = 1 << tp->cpu; in thread_fn() 108 "%d %s", tp->name, tp->index, rc, strerror(rc)); in thread_fn() 111 test_set_priority(pthread_self(), SCHED_FIFO, tp->priority); in thread_fn() 113 seconds_read() - base_time, tp->name); in thread_fn() 114 DPRINTF(stderr, "Thread %s index %d: started \n", tp->name, tp->index); in thread_fn() 115 tp->progress = 0; in thread_fn() 117 ts.tv_nsec = tp->sleep_ms * 1000 * 1000; in thread_fn() 118 while (!tp->stop) { in thread_fn() [all …]
|
D | pitest-3.c | 68 } tp[] = { variable 99 struct thread_param *tp = param; in thread_fn() local 102 unsigned long mask = 1 << tp->cpu; in thread_fn() 108 "%d %s", tp->name, tp->index, rc, strerror(rc)); in thread_fn() 112 test_set_priority(pthread_self(), SCHED_FIFO, tp->priority); in thread_fn() 115 seconds_read() - base_time, tp->name); in thread_fn() 116 DPRINTF(stderr, "Thread %s index %d: started\n", tp->name, tp->index); in thread_fn() 118 tp->progress = 0; in thread_fn() 120 ts.tv_nsec = tp->sleep_ms * 1000 * 1000; in thread_fn() 121 while (!tp->stop) { in thread_fn() [all …]
|
D | pitest-1.c | 66 } tp[] = { variable 96 struct thread_param *tp = param; in thread_fn() local 99 unsigned long mask = 1 << tp->cpu; in thread_fn() 105 "%d %s", tp->name, tp->index, rc, strerror(rc)); in thread_fn() 109 test_set_priority(pthread_self(), SCHED_FIFO, tp->priority); in thread_fn() 112 seconds_read() - base_time, tp->name); in thread_fn() 113 tp->progress = 0; in thread_fn() 115 ts.tv_nsec = tp->sleep_ms * 1000 * 1000; in thread_fn() 116 while (!tp->stop) { in thread_fn() 117 do_work(5, &tp->progress); in thread_fn() [all …]
|
D | pitest-4.c | 69 } tp[] = { variable 99 struct thread_param *tp = param; in thread_fn() local 102 unsigned long mask = 1 << tp->cpu; in thread_fn() 108 "%d %s", tp->name, tp->index, rc, strerror(rc)); in thread_fn() 112 test_set_priority(pthread_self(), SCHED_FIFO, tp->priority); in thread_fn() 115 seconds_read() - base_time, tp->name); in thread_fn() 116 DPRINTF(stderr, "Thread %s index %d: started\n", tp->name, tp->index); in thread_fn() 118 tp->progress = 0; in thread_fn() 120 ts.tv_nsec = tp->sleep_ms * 1000 * 1000; in thread_fn() 121 if (tp->index == 0) in thread_fn() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_memoryview.py | 29 def check_getitem_with_type(self, tp): argument 30 b = tp(self._source) 51 for tp in self._types: 52 self.check_getitem_with_type(tp) 55 for tp in self._types: 56 b = tp(self._source) 77 tp = self.rw_type 82 self._check_contents(tp, b, b"1bcdef") 83 m[0:1] = tp(b"0") 84 self._check_contents(tp, b, b"0bcdef") [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_memoryview.py | 29 def check_getitem_with_type(self, tp): argument 31 b = tp(self._source) 52 for tp in self._types: 53 self.check_getitem_with_type(tp) 56 for tp in self._types: 57 b = tp(self._source) 62 for tp in self._types: 63 b = tp(self._source) 84 tp = self.rw_type 88 m[0] = tp(b"0") [all …]
|
/external/boringssl/src/crypto/fipsmodule/bn/asm/ |
D | armv8-mont.pl | 56 $ovf, $i,$j,$tp,$tj) = map("x$_",6..17,19..24); 85 sub $tp,sp,$num,lsl#3 89 and $tp,$tp,#-16 // ABI says so 99 mov sp,$tp // alloca 135 str $lo1,[$tp],#8 // tp[j-1] 152 stp $lo1,$hi1,[$tp] 158 add $tp,sp,#8 183 ldr $tj,[$tp],#8 // tp[j] 200 str $lo1,[$tp,#-16] // tp[j-1] 204 ldr $tj,[$tp],#8 // tp[j] [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
D | RBBITestExtended.java | 55 TestParams tp = new TestParams(); in TestExtended() local 156 tp.bi = BreakIterator.getWordInstance(tp.currentLocale); in TestExtended() 161 tp.bi = BreakIterator.getCharacterInstance(tp.currentLocale); in TestExtended() 166 tp.bi = BreakIterator.getLineInstance(tp.currentLocale); in TestExtended() 171 tp.bi = BreakIterator.getSentenceInstance(tp.currentLocale); in TestExtended() 176 tp.bi = BreakIterator.getTitleInstance(tp.currentLocale); in TestExtended() 197 tp.currentLocale = new ULocale(localeName); in TestExtended() 204 tp.dataToBreak.setLength(0); in TestExtended() 205 Arrays.fill(tp.expectedBreaks, 0); in TestExtended() 206 Arrays.fill(tp.srcCol, 0); in TestExtended() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/ |
D | RBBITestExtended.java | 58 TestParams tp = new TestParams(); in TestExtended() local 159 tp.bi = BreakIterator.getWordInstance(tp.currentLocale); in TestExtended() 164 tp.bi = BreakIterator.getCharacterInstance(tp.currentLocale); in TestExtended() 169 tp.bi = BreakIterator.getLineInstance(tp.currentLocale); in TestExtended() 174 tp.bi = BreakIterator.getSentenceInstance(tp.currentLocale); in TestExtended() 179 tp.bi = BreakIterator.getTitleInstance(tp.currentLocale); in TestExtended() 200 tp.currentLocale = new ULocale(localeName); in TestExtended() 207 tp.dataToBreak.setLength(0); in TestExtended() 208 Arrays.fill(tp.expectedBreaks, 0); in TestExtended() 209 Arrays.fill(tp.srcCol, 0); in TestExtended() [all …]
|
/external/ltp/testcases/kernel/syscalls/settimeofday/ |
D | settimeofday01.c | 72 struct timeval tp, tp1, tp2; variable 93 gettimeofday(&tp, NULL); in main() 94 tp.tv_sec += VAL_SEC; in main() 95 tp.tv_usec += VAL_MSEC; in main() 96 if (tp.tv_usec >= USEC_PER_SEC) in main() 97 tp.tv_usec = VAL_MSEC; in main() 99 TEST(settimeofday(&tp, NULL)); in main() 109 if (tp2.tv_sec > tp.tv_sec) { in main() 111 (suseconds_t) (tp2.tv_sec - tp.tv_sec) * 1000 + in main() 112 (tp2.tv_usec - tp.tv_usec) / 1000; in main() [all …]
|
/external/python/cpython3/Objects/ |
D | object.c | 104 PyTypeObject *tp; in dump_counts() local 105 for (tp = type_list; tp; tp = tp->tp_next) in dump_counts() 109 tp->tp_name, tp->tp_allocs, tp->tp_frees, in dump_counts() 110 tp->tp_maxalloc); in dump_counts() 125 PyTypeObject *tp; in get_counts() local 132 for (tp = type_list; tp; tp = tp->tp_next) { in get_counts() 133 v = Py_BuildValue("(snnn)", tp->tp_name, tp->tp_allocs, in get_counts() 134 tp->tp_frees, tp->tp_maxalloc); in get_counts() 150 inc_count(PyTypeObject *tp) in inc_count() argument 152 if (tp->tp_next == NULL && tp->tp_prev == NULL) { in inc_count() [all …]
|
/external/blktrace/btt/ |
D | mmap.c | 50 struct blk_io_trace *tp, in convert_to_cpu() argument 57 memcpy(tp, t, sizeof(*tp)); in convert_to_cpu() 59 tp->magic = be32_to_cpu(t->magic); in convert_to_cpu() 60 tp->sequence = be32_to_cpu(t->sequence); in convert_to_cpu() 61 tp->time = be64_to_cpu(t->time); in convert_to_cpu() 62 tp->sector = be64_to_cpu(t->sector); in convert_to_cpu() 63 tp->bytes = be32_to_cpu(t->bytes); in convert_to_cpu() 64 tp->action = be32_to_cpu(t->action); in convert_to_cpu() 65 tp->pid = be32_to_cpu(t->pid); in convert_to_cpu() 66 tp->device = be32_to_cpu(t->device); in convert_to_cpu() [all …]
|
/external/openssh/openbsd-compat/ |
D | inet_ntop.c | 118 char *tp, *ep; in inet_ntop6() local 158 tp = tmp; in inet_ntop6() 160 for (i = 0; i < (IN6ADDRSZ / INT16SZ) && tp < ep; i++) { in inet_ntop6() 165 if (tp + 1 >= ep) in inet_ntop6() 167 *tp++ = ':'; in inet_ntop6() 173 if (tp + 1 >= ep) in inet_ntop6() 175 *tp++ = ':'; in inet_ntop6() 180 if (!inet_ntop4(src+12, tp, (size_t)(ep - tp))) in inet_ntop6() 182 tp += strlen(tp); in inet_ntop6() 185 advance = snprintf(tp, ep - tp, "%x", words[i]); in inet_ntop6() [all …]
|