Lines Matching refs:hdlc

99 hdlc_Init(struct hdlc *hdlc, struct lcp *lcp)  in hdlc_Init()  argument
101 memset(hdlc, '\0', sizeof(struct hdlc)); in hdlc_Init()
102 hdlc->lqm.owner = lcp; in hdlc_Init()
322 p->hdlc.lqm.ifInOctets += len + 1; /* plus 1 flag octet! */ in hdlc_LayerPull()
325 p->hdlc.lqm.ifInErrors++; in hdlc_LayerPull()
326 p->hdlc.stats.badfcs++; in hdlc_LayerPull()
332 p->hdlc.lqm.lqr.InGoodOctets += len + 1; /* plus 1 flag octet! */ in hdlc_LayerPull()
333 p->hdlc.lqm.ifInUniPackets++; in hdlc_LayerPull()
385 struct hdlc *hdlc = &arg->cx->physical->hdlc; in hdlc_ReportStatus() local
389 hdlc->stats.badfcs); in hdlc_ReportStatus()
391 HDLC_ADDR, hdlc->stats.badaddr); in hdlc_ReportStatus()
393 HDLC_UI, hdlc->stats.badcommand); in hdlc_ReportStatus()
395 hdlc->stats.unknownproto); in hdlc_ReportStatus()
403 struct hdlc *hdlc = (struct hdlc *)v; in hdlc_ReportTime() local
405 timer_Stop(&hdlc->ReportTimer); in hdlc_ReportTime()
407 if (memcmp(&hdlc->laststats, &hdlc->stats, sizeof hdlc->stats)) { in hdlc_ReportTime()
410 hdlc->lqm.owner->fsm.link->name, in hdlc_ReportTime()
411 hdlc->stats.badfcs - hdlc->laststats.badfcs, in hdlc_ReportTime()
412 hdlc->stats.badaddr - hdlc->laststats.badaddr, in hdlc_ReportTime()
413 hdlc->stats.badcommand - hdlc->laststats.badcommand, in hdlc_ReportTime()
414 hdlc->stats.unknownproto - hdlc->laststats.unknownproto); in hdlc_ReportTime()
415 hdlc->laststats = hdlc->stats; in hdlc_ReportTime()
418 timer_Start(&hdlc->ReportTimer); in hdlc_ReportTime()
422 hdlc_StartTimer(struct hdlc *hdlc) in hdlc_StartTimer() argument
424 timer_Stop(&hdlc->ReportTimer); in hdlc_StartTimer()
425 hdlc->ReportTimer.load = 60 * SECTICKS; in hdlc_StartTimer()
426 hdlc->ReportTimer.arg = hdlc; in hdlc_StartTimer()
427 hdlc->ReportTimer.func = hdlc_ReportTime; in hdlc_StartTimer()
428 hdlc->ReportTimer.name = "hdlc"; in hdlc_StartTimer()
429 timer_Start(&hdlc->ReportTimer); in hdlc_StartTimer()
433 hdlc_StopTimer(struct hdlc *hdlc) in hdlc_StopTimer() argument
435 timer_Stop(&hdlc->ReportTimer); in hdlc_StopTimer()