/external/syslinux/gpxe/src/drivers/net/ |
D | tg3.c | 149 static void tg3_disable_ints(struct tg3 *tp) in tg3_disable_ints() argument 152 (tp->misc_host_ctrl | MISC_HOST_CTRL_MASK_PCI_INT)); in tg3_disable_ints() 156 static void tg3_switch_clocks(struct tg3 *tp) in tg3_switch_clocks() argument 164 tp->pci_clock_ctrl = clock_ctrl; in tg3_switch_clocks() 166 if ((GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705) && in tg3_switch_clocks() 167 (!((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) in tg3_switch_clocks() 168 && (tp->tg3_flags & TG3_FLAG_ENABLE_ASF))) && in tg3_switch_clocks() 180 static int tg3_readphy(struct tg3 *tp, int reg, uint32_t *val) in tg3_readphy() argument 185 tw32_carefully(MAC_MI_MODE, tp->mi_mode & ~MAC_MI_MODE_AUTO_POLL); in tg3_readphy() 215 tw32_carefully(MAC_MI_MODE, tp->mi_mode); in tg3_readphy() [all …]
|
D | tulip.c | 447 static struct tulip_private *tp; variable 529 printf("%s: %s\n", tp->nic_name, str); in whereami() 593 if (tp->chip_id == LC82C168) { in mdio_read() 604 if (tp->chip_id == COMET) { in mdio_read() 653 if (tp->chip_id == LC82C168) { in mdio_write() 663 if (tp->chip_id == COMET) { in mdio_write() 750 unsigned char *p, *ee_data = tp->eeprom; in parse_eeprom() 758 tp->mtable = 0; in parse_eeprom() 776 tp->nic_name, eeprom_fixups[i].name, tp->nic_name); in parse_eeprom() 784 tp->nic_name); in parse_eeprom() [all …]
|
D | r8169.c | 229 struct rtl8169_private *tp = netdev_priv(dev); in rtl8169_set_speed_tbi() local 230 void *ioaddr = tp->mmio_addr; in rtl8169_set_speed_tbi() 252 struct rtl8169_private *tp = netdev_priv(dev); in rtl8169_set_speed_xmii() local 253 void *ioaddr = tp->mmio_addr; in rtl8169_set_speed_xmii() 284 ((tp->mac_version == RTL_GIGA_MAC_VER_13) || in rtl8169_set_speed_xmii() 285 (tp->mac_version == RTL_GIGA_MAC_VER_16))) { in rtl8169_set_speed_xmii() 291 if ((tp->mac_version == RTL_GIGA_MAC_VER_07) || in rtl8169_set_speed_xmii() 292 (tp->mac_version == RTL_GIGA_MAC_VER_08) || in rtl8169_set_speed_xmii() 293 (tp->mac_version == RTL_GIGA_MAC_VER_09) || in rtl8169_set_speed_xmii() 294 (tp->mac_version == RTL_GIGA_MAC_VER_10) || in rtl8169_set_speed_xmii() [all …]
|
D | sis190.c | 117 struct sis190_private *tp = netdev_priv(dev); in __mdio_write() local 119 mdio_write(tp->mmio_addr, phy_id, reg, val); in __mdio_write() 124 struct sis190_private *tp = netdev_priv(dev); in __mdio_read() local 126 return mdio_read(tp->mmio_addr, phy_id, reg); in __mdio_read() 221 static u32 sis190_rx_fill(struct sis190_private *tp, u32 start, u32 end) in sis190_rx_fill() argument 228 if (tp->Rx_iobuf[i]) in sis190_rx_fill() 231 tp->Rx_iobuf[i] = sis190_alloc_rx_iob(tp->RxDescRing + i); in sis190_rx_fill() 233 if (!tp->Rx_iobuf[i]) in sis190_rx_fill() 249 static int sis190_process_rx(struct sis190_private *tp) in sis190_process_rx() argument 251 u32 rx_left, cur_rx = tp->cur_rx; in sis190_process_rx() [all …]
|
D | via-rhine.c | 715 struct rhine_private *tp = (struct rhine_private *) nic->priv_data; in rhine_init_ring() local 718 tp->tx_full = 0; in rhine_init_ring() 719 tp->cur_rx = tp->cur_tx = 0; in rhine_init_ring() 720 tp->dirty_rx = tp->dirty_tx = 0; in rhine_init_ring() 725 tp->rx_ring[i].rx_status.bits.own_bit = 1; in rhine_init_ring() 726 tp->rx_ring[i].rx_ctrl.bits.rx_buf_size = 1536; in rhine_init_ring() 728 tp->rx_ring[i].buf_addr_1 = virt_to_bus (tp->rx_buffs[i]); in rhine_init_ring() 729 tp->rx_ring[i].buf_addr_2 = virt_to_bus (&tp->rx_ring[i + 1]); in rhine_init_ring() 734 tp->rx_ring[i - 1].buf_addr_2 = virt_to_bus (&tp->rx_ring[0]); in rhine_init_ring() 743 tp->tx_ring[i].tx_status.lw = 0; in rhine_init_ring() [all …]
|
/external/tcpdump/ |
D | addrtoname.c | 333 struct enamemem *tp; in lookup_emem() local 339 tp = &enametable[(i ^ j) & (HASHNAMESIZE-1)]; in lookup_emem() 340 while (tp->e_nxt) in lookup_emem() 341 if (tp->e_addr0 == i && in lookup_emem() 342 tp->e_addr1 == j && in lookup_emem() 343 tp->e_addr2 == k) in lookup_emem() 344 return tp; in lookup_emem() 346 tp = tp->e_nxt; in lookup_emem() 347 tp->e_addr0 = i; in lookup_emem() 348 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 …]
|
D | strtoaddr.c | 161 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in strtoaddr6() local 166 memset((tp = tmp), '\0', NS_IN6ADDRSZ); in strtoaddr6() 167 endp = tp + NS_IN6ADDRSZ; in strtoaddr6() 193 colonp = tp; in strtoaddr6() 197 if (tp + NS_INT16SZ > endp) in strtoaddr6() 199 *tp++ = (u_char) (val >> 8) & 0xff; in strtoaddr6() 200 *tp++ = (u_char) val & 0xff; in strtoaddr6() 205 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in strtoaddr6() 206 strtoaddr(curtok, tp) > 0) { in strtoaddr6() 207 tp += NS_INADDRSZ; in strtoaddr6() [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/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() 107 unsigned int val = *tp * 10 + (unsigned int)(pch - digits); in inet_pton4() 109 if(saw_digit && *tp == 0) in inet_pton4() 113 *tp = (unsigned char)val; in inet_pton4() 123 *++tp = 0; in inet_pton4() 154 unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 159 memset((tp = tmp), 0, IN6ADDRSZ); in inet_pton6() 160 endp = tp + IN6ADDRSZ; in inet_pton6() [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-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-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-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/mksh/src/ |
D | exec.c | 61 struct tbl *tp = NULL; in execute() local 129 tp = findcom(ap[0], FC_BI|FC_FUNC); in execute() 145 if (iosetup(*iowp, tp) < 0) { in execute() 151 if (tp && tp->type == CSHELL && in execute() 152 (tp->flag & SPEC_BI)) in execute() 161 rv = comexec(t, tp, (const char **)ap, flags, xerrok); in execute() 477 comexec(struct op *t, struct tbl * volatile tp, const char **ap, in comexec() argument 523 while (tp && tp->type == CSHELL) { in comexec() 526 if (tp->val.f == c_builtin) { in comexec() 529 tp = NULL; in comexec() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_memoryview.py | 28 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) 61 for tp in self._types: 62 b = tp(self._source) 83 tp = self.rw_type 87 m[0] = tp(b"0") [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/ |
D | RBBITestExtended.java | 53 TestParams tp = new TestParams(); in TestExtended() local 158 tp.bi = BreakIterator.getWordInstance(tp.currentLocale); in TestExtended() 163 tp.bi = BreakIterator.getCharacterInstance(tp.currentLocale); in TestExtended() 168 tp.bi = BreakIterator.getLineInstance(tp.currentLocale); in TestExtended() 173 tp.bi = BreakIterator.getSentenceInstance(tp.currentLocale); in TestExtended() 178 tp.bi = BreakIterator.getTitleInstance(tp.currentLocale); in TestExtended() 190 tp.currentLocale = new ULocale(localeName); in TestExtended() 197 tp.dataToBreak.setLength(0); in TestExtended() 198 Arrays.fill(tp.expectedBreaks, 0); in TestExtended() 199 Arrays.fill(tp.srcCol, 0); in TestExtended() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
D | RBBITestExtended.java | 52 TestParams tp = new TestParams(); in TestExtended() local 157 tp.bi = BreakIterator.getWordInstance(tp.currentLocale); in TestExtended() 162 tp.bi = BreakIterator.getCharacterInstance(tp.currentLocale); in TestExtended() 167 tp.bi = BreakIterator.getLineInstance(tp.currentLocale); in TestExtended() 172 tp.bi = BreakIterator.getSentenceInstance(tp.currentLocale); in TestExtended() 177 tp.bi = BreakIterator.getTitleInstance(tp.currentLocale); in TestExtended() 189 tp.currentLocale = new ULocale(localeName); in TestExtended() 196 tp.dataToBreak.setLength(0); in TestExtended() 197 Arrays.fill(tp.expectedBreaks, 0); in TestExtended() 198 Arrays.fill(tp.srcCol, 0); in TestExtended() [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/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 …]
|
/external/ltp/testcases/kernel/syscalls/settimeofday/ |
D | settimeofday01.c | 71 struct timeval tp, tp1, tp2; variable 92 gettimeofday(&tp, NULL); in main() 93 tp.tv_sec += VAL_SEC; in main() 94 tp.tv_usec += VAL_MSEC; in main() 96 TEST(settimeofday(&tp, NULL)); in main() 106 if (tp2.tv_sec > tp.tv_sec) { in main() 108 (suseconds_t) (tp2.tv_sec - tp.tv_sec) * 1000 + in main() 109 (tp2.tv_usec - tp.tv_usec) / 1000; in main() 112 (suseconds_t) (tp.tv_sec - tp2.tv_sec) * 1000 + in main() 113 (tp.tv_usec - tp2.tv_usec) / 1000; in main() [all …]
|