Lines Matching refs:cmode
137 enum htb_cmode cmode; /* current mode of the class */ member
427 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_activate_prios()
446 if (cl->cmode == HTB_CAN_SEND && mask) in htb_activate_prios()
464 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_deactivate_prios()
492 if (cl->cmode == HTB_CAN_SEND && mask) in htb_deactivate_prios()
499 return cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : 0; in htb_lowater()
506 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0; in htb_hiwater()
559 if (new_mode == cl->cmode) in htb_change_class_mode()
568 if (cl->cmode != HTB_CANT_SEND) in htb_change_class_mode()
570 cl->cmode = new_mode; in htb_change_class_mode()
574 cl->cmode = new_mode; in htb_change_class_mode()
712 old_mode = cl->cmode; in htb_charge_class()
715 if (old_mode != cl->cmode) { in htb_charge_class()
718 if (cl->cmode != HTB_CAN_SEND) in htb_charge_class()
765 if (cl->cmode != HTB_CAN_SEND) in htb_do_events()
1006 cl->cmode = HTB_CAN_SEND; in htb_reset()
1513 if (parent->cmode != HTB_CAN_SEND) in htb_parent_to_leaf()
1523 parent->cmode = HTB_CAN_SEND; in htb_parent_to_leaf()
1743 if (cl->cmode != HTB_CAN_SEND) in htb_delete()
1961 if (parent->cmode != HTB_CAN_SEND) { in htb_change_class()
1963 parent->cmode = HTB_CAN_SEND; in htb_change_class()
1982 cl->cmode = HTB_CAN_SEND; in htb_change_class()