Lines Matching full:downstream
440 bcopy(&priv->upper.stats, &bstats->downstream, in ng_car_rcvmsg()
441 sizeof(bstats->downstream)); in ng_car_rcvmsg()
465 bcopy(&priv->upper.conf, &bconf->downstream, in ng_car_rcvmsg()
466 sizeof(bconf->downstream)); in ng_car_rcvmsg()
470 if (bconf->downstream.opt & NG_CAR_COUNT_PACKETS) { in ng_car_rcvmsg()
471 bconf->downstream.cir /= 1024; in ng_car_rcvmsg()
472 bconf->downstream.pir /= 1024; in ng_car_rcvmsg()
473 bconf->downstream.cbs /= 128; in ng_car_rcvmsg()
474 bconf->downstream.ebs /= 128; in ng_car_rcvmsg()
495 if (bconf->downstream.opt & NG_CAR_COUNT_PACKETS) { in ng_car_rcvmsg()
496 bconf->downstream.cir *= 1024; in ng_car_rcvmsg()
497 bconf->downstream.pir *= 1024; in ng_car_rcvmsg()
498 bconf->downstream.cbs *= 128; in ng_car_rcvmsg()
499 bconf->downstream.ebs *= 128; in ng_car_rcvmsg()
507 if ((bconf->downstream.cir > 1000000000) || in ng_car_rcvmsg()
508 (bconf->downstream.pir > 1000000000) || in ng_car_rcvmsg()
511 (bconf->downstream.cbs == 0 && in ng_car_rcvmsg()
512 bconf->downstream.ebs == 0) || in ng_car_rcvmsg()
524 if ((bconf->downstream.mode == NG_CAR_SHAPE) && in ng_car_rcvmsg()
525 (bconf->downstream.cir == 0)) { in ng_car_rcvmsg()
530 /* Copy downstream config. */ in ng_car_rcvmsg()
531 bcopy(&bconf->downstream, &priv->upper.conf, in ng_car_rcvmsg()