Home
last modified time | relevance | path

Searched refs:ccp (Results 1 – 25 of 47) sorted by relevance

12

/external/libppp/src/
Dccp.c163 struct ccp *ccp; in ccp_ReportStatus() local
167 ccp = &l->ccp; in ccp_ReportStatus()
169 prompt_Printf(arg->prompt, "%s: %s [%s]\n", l->name, ccp->fsm.name, in ccp_ReportStatus()
170 State2Nam(ccp->fsm.state)); in ccp_ReportStatus()
171 if (ccp->fsm.state == ST_OPENED) { in ccp_ReportStatus()
173 protoname(ccp->my_proto), protoname(ccp->his_proto)); in ccp_ReportStatus()
175 ccp->uncompout, ccp->compout, in ccp_ReportStatus()
176 ccp->compin, ccp->uncompin); in ccp_ReportStatus()
179 if (ccp->in.algorithm != -1) in ccp_ReportStatus()
181 (*algorithm[ccp->in.algorithm]->Disp)(&ccp->in.opt)); in ccp_ReportStatus()
[all …]
Dccp.h91 struct ccp { struct
121 #define fsm2ccp(fp) (fp->proto == PROTO_CCP ? (struct ccp *)fp : NULL) argument
134 struct mbuf *(*Read)(void *, struct ccp *, u_short *, struct mbuf *);
135 void (*DictSetup)(void *, struct ccp *, u_short, struct mbuf *);
145 struct mbuf *(*Write)(void *, struct ccp *, struct link *, int, u_short *,
150 extern void ccp_Init(struct ccp *, struct bundle *, struct link *,
152 extern void ccp_Setup(struct ccp *);
153 extern int ccp_Required(struct ccp *);
154 extern int ccp_MTUOverhead(struct ccp *);
159 extern u_short ccp_Proto(struct ccp *);
[all …]
Dpred.c174 Pred1Output(void *v, struct ccp *ccp, struct link *l __unused, in Pred1Output() argument
198 ccp->uncompout += orglen; in Pred1Output()
202 ccp->compout += len; in Pred1Output()
206 ccp->compout += orglen; in Pred1Output()
212 *proto = ccp_Proto(ccp); in Pred1Output()
217 Pred1Input(void *v, struct ccp *ccp, u_short *proto, struct mbuf *bp) in Pred1Input() argument
234 ccp->uncompin += len & 0x7fff; in Pred1Input()
237 ccp->compin += olen; in Pred1Input()
241 fsm_Reopen(&ccp->fsm); in Pred1Input()
250 fsm_Reopen(&ccp->fsm); in Pred1Input()
[all …]
Ddeflate.c69 DeflateOutput(void *v, struct ccp *ccp, struct link *l __unused, in DeflateOutput() argument
156 ccp->uncompout += ilen; in DeflateOutput()
157 ccp->compout += ilen; /* We measure this stuff too */ in DeflateOutput()
177 ccp->uncompout += ilen; in DeflateOutput()
178 ccp->compout += olen; in DeflateOutput()
183 *proto = ccp_Proto(ccp); in DeflateOutput()
199 DeflateInput(void *v, struct ccp *ccp, u_short *proto, struct mbuf *mi) in DeflateInput() argument
227 ccp_SendResetReq(&ccp->fsm); in DeflateInput()
264 ccp_SendResetReq(&ccp->fsm); in DeflateInput()
306 ccp_SendResetReq(&ccp->fsm); in DeflateInput()
[all …]
Dmppe.c158 MPPEOutput(void *v, struct ccp *ccp, struct link *l __unused, int pri __unused, in MPPEOutput() argument
173 ccp->compout += ilen; in MPPEOutput()
174 ccp->uncompout += ilen; in MPPEOutput()
223 *proto = ccp_Proto(ccp); in MPPEOutput()
225 ccp->uncompout += ilen; in MPPEOutput()
226 ccp->compout += len; in MPPEOutput()
241 MPPEInput(void *v, struct ccp *ccp, u_short *proto, struct mbuf *mp) in MPPEInput() argument
250 ccp->compin += ilen; in MPPEInput()
315 fsm_Output(&ccp->fsm, CODE_RESETREQ, ccp->fsm.reqid++, NULL, 0, in MPPEInput()
330 fsm_Output(&ccp->fsm, CODE_RESETREQ, ccp->fsm.reqid++, NULL, 0, in MPPEInput()
[all …]
Dlink.h55 struct ccp ccp; /* Our compression FSM */ member
Dcommand.c944 if (!arg->cx->physical->link.ccp.fsm.StoppedTimer.load) in ShowStopped()
948 arg->cx->physical->link.ccp.fsm.StoppedTimer.load / SECTICKS); in ShowStopped()
1294 fp = &command_ChooseLink(arg)->ccp.fsm; in OpenCommand()
1336 fp = &command_ChooseLink(arg)->ccp.fsm; in CloseCommand()
1367 struct fsm *fp = arg->cx ? &arg->cx->physical->link.ccp.fsm : in DownCommand()
1368 &arg->bundle->ncp.mp.link.ccp.fsm; in DownCommand()
1415 l->ccp.fsm.StoppedTimer.load = 0; in SetStoppedTimeout()
1420 l->ccp.fsm.StoppedTimer.load = atoi(arg->argv[arg->argn+1]) * SECTICKS; in SetStoppedTimeout()
1747 l->ccp.cfg.deflate.out.winsize = atoi(arg->argv[arg->argn]); in SetVariable()
1748 if (l->ccp.cfg.deflate.out.winsize < 8 || in SetVariable()
[all …]
Dphysical.c226 ccp_Init(&p->link.ccp, dl->bundle, &p->link, &dl->fsmp); in physical_Create()
627 p->link.ccp.fsm.bundle = dl->bundle; in iov2physical()
628 p->link.ccp.fsm.link = &p->link; in iov2physical()
630 memset(&p->link.ccp.fsm.FsmTimer, '\0', sizeof p->link.ccp.fsm.FsmTimer); in iov2physical()
631 memset(&p->link.ccp.fsm.OpenTimer, '\0', sizeof p->link.ccp.fsm.OpenTimer); in iov2physical()
632 memset(&p->link.ccp.fsm.StoppedTimer, '\0', in iov2physical()
633 sizeof p->link.ccp.fsm.StoppedTimer); in iov2physical()
634 p->link.ccp.fsm.parent = &dl->fsmp; in iov2physical()
635 ccp_SetupCallbacks(&p->link.ccp); in iov2physical()
699 timer_Stop(&p->link.ccp.fsm.FsmTimer); in physical2iov()
[all …]
Ddatalink.c242 ccp_Setup(&dl->physical->link.ccp); in datalink_LoginDone()
593 (*dl->parent->LayerUp)(dl->parent->object, &dl->physical->link.ccp.fsm); in datalink_LayerUp()
614 int ccpok = ccp_SetOpenMode(&dl->physical->link.ccp); in datalink_NCPUp()
629 dl->physical->link.ccp.fsm.open_mode = OPEN_PASSIVE; /* override */ in datalink_NCPUp()
649 fsm_Up(&dl->physical->link.ccp.fsm); in datalink_NCPUp()
650 fsm_Open(&dl->physical->link.ccp.fsm); in datalink_NCPUp()
758 fsm2initial(&dl->physical->link.ccp.fsm); in datalink_LayerDown()
919 memcpy(&dl->physical->link.ccp.cfg, &odl->physical->link.ccp.cfg, in datalink_Clone()
920 sizeof dl->physical->link.ccp.cfg); in datalink_Clone()
1009 fsm2initial(&dl->physical->link.ccp.fsm); in datalink_Close()
[all …]
Dmp.c285 ccp_Init(&mp->link.ccp, mp->bundle, &mp->link, &mp->fsmp); in mp_Init()
367 if (ccp_SetOpenMode(&mp->link.ccp)) { in mp_Up()
368 fsm_Up(&mp->link.ccp.fsm); in mp_Up()
369 fsm_Open(&mp->link.ccp.fsm); in mp_Up()
393 fsm2initial(&mp->link.ccp.fsm); in mp_Down()
657 if (l->ccp.fsm.state != ST_OPENED && ccp_Required(&l->ccp)) { in mp_Output()
DMakefile7 SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \
Dphysical.h28 struct ccp;
/external/chromium_org/sandbox/win/src/
Dipc_unittest.cc309 CrossCallParamsEx* ccp = 0; in TEST() local
310 ccp = CrossCallParamsEx::CreateFromBuffer(buffer, params_1.GetSize(), in TEST()
312 ASSERT_TRUE(NULL != ccp); in TEST()
313 EXPECT_TRUE(ccp->GetBuffer() != buffer); in TEST()
314 EXPECT_EQ(kTag, ccp->GetTag()); in TEST()
315 EXPECT_EQ(1, ccp->GetParamsCount()); in TEST()
316 delete[] (reinterpret_cast<char*>(ccp)); in TEST()
330 ccp = CrossCallParamsEx::CreateFromBuffer(buffer, params_1.GetSize(), in TEST()
333 EXPECT_TRUE(NULL == ccp); in TEST()
343 ccp = CrossCallParamsEx::CreateFromBuffer(buffer, kBufferSize, &out_size); in TEST()
[all …]
/external/mksh/src/
Dmain.c195 const char *ccp, **wp; in main_init() local
225 ccp = kshname; in main_init()
227 while ((i = ccp[argi++])) { in main_init()
229 ccp += argi; in main_init()
232 if (*ccp == '-') in main_init()
233 ++ccp; in main_init()
236 if (!*ccp) in main_init()
237 ccp = empty_argv[0]; in main_init()
244 if (!strcmp(ccp, builtin(mkshbuiltins[i].name, in main_init()
256 if (!strcmp(ccp, "sh")) in main_init()
[all …]
Dvar.c1416 const char *ccp = var; in set_array() local
1426 ccp = cp; in set_array()
1428 vp = global(ccp); in set_array()
1432 errorfx(2, "read-only: %s", ccp); in set_array()
1455 while ((ccp = vals[i])) { in set_array()
1456 if (*ccp == '[') { in set_array()
1459 while (*ccp) { in set_array()
1460 if (*ccp == ']' && --level == 0) in set_array()
1462 if (*ccp == '[') in set_array()
1464 ++ccp; in set_array()
[all …]
Dexec.c61 const char *s, *ccp; in execute() local
95 (ccp = skip_wdvarname(t->vars[0], true)) != t->vars[0] && in execute()
97 ccp[0] == CHAR && ccp[1] == '=' && ccp[2] == EOS && in execute()
101 size_t n = ccp - t->vars[0] + 2, z; in execute()
362 if (!(ccp = do_selectargs(ap, is_first))) { in execute()
367 setstr(global(t->str), ccp, KSH_UNWIND_ERROR); in execute()
406 ccp = evalstr(t->str, DOTILDE); in execute()
410 gmatchx(ccp, s, false))) { in execute()
1437 const char * volatile ccp = content; in hereinval() local
1451 s->start = s->str = ccp; in hereinval()
[all …]
Dfuncs.c1801 const char *ccp; in c_read() local
1837 if ((fd = coproc_getfd(R_OK, &ccp)) < 0) { in c_read()
1838 bi_errorf("%s: %s", "-p", ccp); in c_read()
1861 else if ((fd = check_fd(builtin_opt.optarg, R_OK, &ccp)) < 0) { in c_read()
1862 bi_errorf("%s: %s: %s", "-u", builtin_opt.optarg, ccp); in c_read()
1878 if ((ccp = cstrchr(*wp, '?')) != NULL) { in c_read()
1880 allocd[ccp - *wp] = '\0'; in c_read()
1889 shf_puts(ccp + 1, shl_out); in c_read()
2043 ccp = cp = Xclose(xs, xp); in c_read()
2063 while (bytesread && is_ifsws(*ccp)) { in c_read()
[all …]
/external/clang/test/SemaCXX/
Dconst-cast.cpp13 typedef cc *ccp; typedef
14 typedef volatile ccp ccvp;
Dcstyle-cast.cpp15 typedef cc *ccp; typedef
16 typedef volatile ccp ccvp;
Dfunctional-cast.cpp44 typedef cc *ccp; typedef
45 typedef volatile ccp ccvp;
/external/clang/test/Sema/
Dformat-strings-scanf.c153 const char *ccp, volatile char* vcp, in test_qualifiers() argument
157 …scanf("%s", ccp); // expected-warning{{format specifies type 'char *' but the argument has type 'c… in test_qualifiers()
/external/ppp/pppd/
DMakefile.linux14 PPPDSRCS = main.c magic.c fsm.c lcp.c ipcp.c upap.c chap-new.c md5.c ccp.c \
18 HEADERS = ccp.h chap-new.h ecp.h fsm.h ipcp.h \
23 PPPDOBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap-new.o md5.o ccp.o \
DAndroid.mk12 ccp.c \
DMakefile.sol212 tty.o ccp.o ecp.o auth.o options.o demand.o utils.o sys-solaris.o \
/external/qemu/distrib/jpeg-6b/
Dconfigure1100 char const *const *ccp;
1109 ccp = &g + (g ? g-g : 0);
1111 ++ccp;
1112 p = (char**) ccp;
1113 ccp = (char const *const *) p;

12