Home
last modified time | relevance | path

Searched refs:pptr (Results 1 – 25 of 112) sorted by relevance

12345

/external/syslinux/memdisk/
Dsetup.c762 struct patch_area *pptr; in setup() local
847 pptr = (struct patch_area *)(memdisk_hook + hptr->patch_offs); in setup()
850 pptr->mdi.olddosmem = dosmem_k; in setup()
856 pptr->driveno = geometry->driveno; in setup()
857 pptr->drivetype = geometry->type; in setup()
858 pptr->cylinders = geometry->c; /* Possible precision loss */ in setup()
859 pptr->heads = geometry->h; in setup()
860 pptr->sectors = geometry->s; in setup()
861 pptr->mdi.disksize = geometry->sectors; in setup()
862 pptr->mdi.diskbuf = ramdisk_image + geometry->offset; in setup()
[all …]
/external/tcpdump/
Dprint-bgp.c531 const u_char *pptr, u_int itemlen, char *buf, u_int buflen) in decode_prefix4() argument
536 ND_TCHECK(pptr[0]); in decode_prefix4()
538 plen = pptr[0]; in decode_prefix4()
545 ND_TCHECK2(pptr[1], plenbytes); in decode_prefix4()
547 memcpy(&addr, &pptr[1], plenbytes); in decode_prefix4()
564 const u_char *pptr, u_int itemlen, char *buf, u_int buflen) in decode_labeled_prefix4() argument
570 ND_TCHECK2(pptr[0], 4); in decode_labeled_prefix4()
572 plen = pptr[0]; /* get prefix length */ in decode_labeled_prefix4()
593 ND_TCHECK2(pptr[4], plenbytes); in decode_labeled_prefix4()
595 memcpy(&addr, &pptr[4], plenbytes); in decode_labeled_prefix4()
[all …]
Dprint-bfd.c181 auth_print(netdissect_options *ndo, register const u_char *pptr) in auth_print() argument
186 pptr += sizeof (const struct bfd_header_t); in auth_print()
187 bfd_auth_header = (const struct bfd_auth_header_t *)pptr; in auth_print()
193 pptr += 2; in auth_print()
194 ND_PRINT((ndo, "\n\t Auth Key ID: %d", *pptr)); in auth_print()
215 pptr++; in auth_print()
218 if (fn_printn(ndo, pptr, bfd_auth_header->auth_len - 3, in auth_print()
244 pptr += 2; in auth_print()
245 ND_TCHECK2(*pptr, 4); in auth_print()
246 ND_PRINT((ndo, ", Sequence Number: 0x%08x", EXTRACT_32BITS(pptr))); in auth_print()
[all …]
Dprint-syslog.c81 register const u_char *pptr, register u_int len) in syslog_print() argument
93 ND_TCHECK2(*pptr, 1); in syslog_print()
94 if (*(pptr+msg_off) == '<') { in syslog_print()
96 ND_TCHECK2(*(pptr + msg_off), 1); in syslog_print()
97 while ( *(pptr+msg_off) >= '0' && in syslog_print()
98 *(pptr+msg_off) <= '9' && in syslog_print()
100 pri = pri * 10 + (*(pptr+msg_off) - '0'); in syslog_print()
102 ND_TCHECK2(*(pptr + msg_off), 1); in syslog_print()
104 if (*(pptr+msg_off) != '>') { in syslog_print()
135 ND_TCHECK2(*(pptr + msg_off), 1); in syslog_print()
[all …]
Dprint-isoclns.c567 static int osi_print_cksum(netdissect_options *, const uint8_t *pptr,
768 const uint8_t *pptr, u_int length) in clnp_print() argument
776 clnp_header = (const struct clnp_header_t *) pptr; in clnp_print()
780 optr = pptr; in clnp_print()
801 while (pptr < ndo->ndo_snapend) in clnp_print()
802 ND_PRINT((ndo, "%02X", *pptr++)); in clnp_print()
811 pptr += sizeof(struct clnp_header_t); in clnp_print()
818 ND_TCHECK(*pptr); in clnp_print()
819 dest_address_length = *pptr; in clnp_print()
820 pptr += 1; in clnp_print()
[all …]
Dprint-forces.c69 int (*print) (netdissect_options *ndo, register const u_char * pptr, register u_int len,
233 int (*print) (netdissect_options *ndo, register const u_char * pptr, register u_int len,
237 static int genoptlv_print(netdissect_options *, register const u_char * pptr, register u_int len,
239 static int recpdoptlv_print(netdissect_options *, register const u_char * pptr, register u_int len,
241 static int invoptlv_print(netdissect_options *, register const u_char * pptr, register u_int len,
445 static int lfbselect_print(netdissect_options *, register const u_char * pptr, register u_int len,
447 static int redirect_print(netdissect_options *, register const u_char * pptr, register u_int len,
449 static int asrtlv_print(netdissect_options *, register const u_char * pptr, register u_int len,
451 static int asttlv_print(netdissect_options *, register const u_char * pptr, register u_int len,
503 int (*print) (netdissect_options *, register const u_char * pptr, register u_int len,
[all …]
Dutil-print.c672 fetch_token(netdissect_options *ndo, const u_char *pptr, u_int idx, u_int len, in fetch_token() argument
678 if (!ND_TTEST(*(pptr + idx))) { in fetch_token()
682 if (!isascii(*(pptr + idx))) { in fetch_token()
686 if (isspace(*(pptr + idx))) { in fetch_token()
690 if (!isprint(*(pptr + idx))) { in fetch_token()
698 tbuf[toklen] = *(pptr + idx); in fetch_token()
712 if (!ND_TTEST(*(pptr + idx))) { in fetch_token()
716 if (*(pptr + idx) == '\r' || *(pptr + idx) == '\n') { in fetch_token()
720 if (!isascii(*(pptr + idx)) || !isprint(*(pptr + idx))) { in fetch_token()
724 if (!isspace(*(pptr + idx))) { in fetch_token()
[all …]
Dsignature.c118 signature_verify(netdissect_options *ndo, const u_char *pptr, u_int plen, in signature_verify() argument
133 if (!ND_TTEST2(pptr, plen)) { in signature_verify()
145 if (sig_ptr + sizeof(sig) > pptr + plen) { in signature_verify()
158 memcpy(packet_copy, pptr, plen); in signature_verify()
163 sig_copy = packet_copy + (sig_ptr - pptr); in signature_verify()
170 (*clear_rtn)((void *)(packet_copy + ((const uint8_t *)clear_arg - pptr))); in signature_verify()
201 signature_verify(netdissect_options *ndo _U_, const u_char *pptr _U_, in signature_verify()
Dprint-zephyr.c85 parse_field(netdissect_options *ndo, const char **pptr, int *len) in parse_field() argument
89 if (*len <= 0 || !pptr || !*pptr) in parse_field()
91 if (*pptr > (const char *) ndo->ndo_snapend) in parse_field()
94 s = *pptr; in parse_field()
95 while (*pptr <= (const char *) ndo->ndo_snapend && *len >= 0 && **pptr) { in parse_field()
96 (*pptr)++; in parse_field()
99 (*pptr)++; in parse_field()
101 if (*len < 0 || *pptr > (const char *) ndo->ndo_snapend) in parse_field()
Dprint-slow.c246 register const u_char *pptr, register u_int len) in slow_print() argument
253 ND_TCHECK(*pptr); in slow_print()
254 subtype = *pptr; in slow_print()
263 ND_TCHECK(*(pptr+1)); in slow_print()
264 if (*(pptr+1) != LACP_VERSION) { in slow_print()
265 ND_PRINT((ndo, "LACP version %u packet not supported", *(pptr+1))); in slow_print()
274 ND_TCHECK(*(pptr+1)); in slow_print()
275 if (*(pptr+1) != MARKER_VERSION) { in slow_print()
276 ND_PRINT((ndo, "MARKER version %u packet not supported", *(pptr+1))); in slow_print()
295 *(pptr+1), in slow_print()
[all …]
Dprint-lwapp.c166 const u_char *pptr, u_int len, int has_ap_ident) in lwapp_control_print() argument
174 tptr=pptr; in lwapp_control_print()
179 lwapp_trans_header = (const struct lwapp_transport_header *)(pptr+6); in lwapp_control_print()
181 lwapp_trans_header = (const struct lwapp_transport_header *)pptr; in lwapp_control_print()
289 const u_char *pptr, u_int len) in lwapp_data_print() argument
295 tptr=pptr; in lwapp_data_print()
299 lwapp_trans_header = (const struct lwapp_transport_header *)pptr; in lwapp_data_print()
/external/webrtc/webrtc/common_audio/signal_processing/
Dauto_corr_to_refl_coef.c26 int16_t *acfptr, *pptr, *wptr, *p1ptr, *w1ptr, ACF[WEBRTC_SPL_MAX_LPC_ORDER], in WebRtcSpl_AutoCorrToReflCoef() local
32 pptr = P; in WebRtcSpl_AutoCorrToReflCoef()
40 *pptr++ = *acfptr++; in WebRtcSpl_AutoCorrToReflCoef()
47 *pptr++ = *acfptr++; in WebRtcSpl_AutoCorrToReflCoef()
88 pptr = P; in WebRtcSpl_AutoCorrToReflCoef()
91 *pptr = WebRtcSpl_AddSatW16(*pptr, tmp); in WebRtcSpl_AutoCorrToReflCoef()
92 pptr++; in WebRtcSpl_AutoCorrToReflCoef()
96 *pptr = WebRtcSpl_AddSatW16(*(pptr + 1), tmp); in WebRtcSpl_AutoCorrToReflCoef()
97 pptr++; in WebRtcSpl_AutoCorrToReflCoef()
98 tmp = (int16_t)(((int32_t)*pptr * (int32_t)*K + 16384) >> 15); in WebRtcSpl_AutoCorrToReflCoef()
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
Dptrace-tm-spd-gpr.c17 int *cptr, *pptr; variable
114 pptr[0] = 1; in trace_tm_spd_gpr()
115 pptr[1] = 1; in trace_tm_spd_gpr()
137 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_gpr()
138 pptr[0] = 0; in ptrace_tm_spd_gpr()
139 pptr[1] = 0; in ptrace_tm_spd_gpr()
141 while (!pptr[2]) in ptrace_tm_spd_gpr()
146 shmdt((void *)pptr); in ptrace_tm_spd_gpr()
151 shmdt((void *)pptr); in ptrace_tm_spd_gpr()
Dptrace-tm-spr.c22 struct shared *cptr, *pptr; variable
105 FAIL_IF(show_tm_spr(child, (struct tm_spr_regs *)&pptr->regs)); in trace_tm_spr()
107 printf("TFHAR: %lx TEXASR: %lx TFIAR: %lx\n", pptr->regs.tm_tfhar, in trace_tm_spr()
108 pptr->regs.tm_texasr, pptr->regs.tm_tfiar); in trace_tm_spr()
110 pptr->flag = 1; in trace_tm_spr()
134 pptr = (struct shared *)shmat(shm_id, NULL, 0); in ptrace_tm_spr()
142 shmdt((void *)pptr); in ptrace_tm_spr()
149 shmdt((void *)pptr); in ptrace_tm_spr()
Dptrace-tm-spd-tar.c16 int *cptr, *pptr; variable
124 pptr[0] = 1; in trace_tm_spd_tar()
125 pptr[1] = 1; in trace_tm_spd_tar()
141 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_tar()
142 pptr[0] = 0; in ptrace_tm_spd_tar()
143 pptr[1] = 0; in ptrace_tm_spd_tar()
146 while (!pptr[2]) in ptrace_tm_spd_tar()
151 shmdt(&pptr); in ptrace_tm_spd_tar()
156 shmdt(&pptr); in ptrace_tm_spd_tar()
Dptrace-tar.c17 int *pptr; variable
96 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tar()
97 pptr[0] = 0; in ptrace_tar()
98 pptr[1] = 0; in ptrace_tar()
100 while (!pptr[2]) in ptrace_tar()
111 pptr[0] = 1; in ptrace_tar()
114 while (!pptr[1]) in ptrace_tar()
117 shmdt((int *)pptr); in ptrace_tar()
Dptrace-tm-tar.c16 unsigned long *cptr, *pptr; variable
113 pptr[0] = 1; in trace_tm_tar()
129 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_tar()
130 pptr[0] = 0; in ptrace_tm_tar()
133 while (!pptr[1]) in ptrace_tm_tar()
138 shmdt(&pptr); in ptrace_tm_tar()
142 shmdt(&pptr); in ptrace_tm_tar()
Dptrace-gpr.c17 int *cptr, *pptr; variable
91 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_gpr()
92 while (!pptr[1]) in ptrace_gpr()
98 shmdt((void *)pptr); in ptrace_gpr()
103 pptr[0] = 1; in ptrace_gpr()
104 shmdt((void *)pptr); in ptrace_gpr()
Dptrace-tm-spd-vsx.c16 int *cptr, *pptr; variable
124 pptr[0] = 1; in trace_tm_spd_vsx()
125 pptr[1] = 1; in trace_tm_spd_vsx()
156 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_vsx()
157 while (!pptr[2]) in ptrace_tm_spd_vsx()
163 shmdt((void *)pptr); in ptrace_tm_spd_vsx()
168 shmdt((void *)pptr); in ptrace_tm_spd_vsx()
Dptrace-vsx.c16 int *cptr, *pptr; variable
86 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_vsx()
87 while (!pptr[1]) in ptrace_vsx()
93 shmdt((void *)pptr); in ptrace_vsx()
98 pptr[0] = 1; in ptrace_vsx()
99 shmdt((void *)pptr); in ptrace_vsx()
Dptrace-tm-vsx.c16 unsigned long *cptr, *pptr; variable
110 pptr[0] = 1; in trace_tm_vsx()
139 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_vsx()
140 while (!pptr[1]) in ptrace_tm_vsx()
146 shmdt((void *)pptr); in ptrace_tm_vsx()
151 shmdt((void *)pptr); in ptrace_tm_vsx()
Dptrace-tm-gpr.c17 unsigned long *cptr, *pptr; variable
108 pptr[0] = 1; in trace_tm_gpr()
130 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_gpr()
132 while (!pptr[1]) in ptrace_tm_gpr()
140 shmdt((void *)pptr); in ptrace_tm_gpr()
/external/libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/
Doverflow.pass.cpp33 char_type* pptr() const {return base::pptr();} in pptr() function
47 assert(f.pptr() == 0); in main()
51 assert(f.pptr() == f.pbase()); in main()
67 assert(f.pptr() == 0); in main()
71 assert(f.pptr() == 0); in main()
86 assert(f.pptr() == 0); in main()
90 assert(f.pptr() == f.pbase()); in main()
106 assert(f.pptr() == 0); in main()
110 assert(f.pptr() == 0); in main()
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/
Doverflow.pass.cpp34 char_type* pptr() const {return base::pptr();} in pptr() function
47 assert(f.pptr() == 0); in main()
51 assert(f.pptr() == f.pbase()); in main()
65 assert(f.pptr() == 0); in main()
69 assert(f.pptr() == 0); in main()
/external/libcxx/src/
Dstrstream.cpp149 return static_cast<int>(pptr() - pbase()); in pcount()
157 if (pptr() == epptr()) in overflow()
178 ptrdiff_t nout = pptr() - pbase(); in overflow()
191 *pptr() = static_cast<char>(__c); in overflow()
225 if (egptr() >= pptr()) in underflow()
227 setg(eback(), gptr(), pptr()); in underflow()
253 if (pos_out && pptr() == nullptr) in seekoff()
265 newoff = (pos_in ? gptr() : pptr()) - eback(); in seekoff()
300 if (!((pos_in && gptr() == nullptr) || (pos_out && pptr() == nullptr))) in seekpos()

12345