Lines Matching refs:cmode
136 enum htb_cmode cmode; /* current mode of the class */ member
430 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_activate_prios()
452 if (cl->cmode == HTB_CAN_SEND && mask) in htb_activate_prios()
470 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_deactivate_prios()
498 if (cl->cmode == HTB_CAN_SEND && mask) in htb_deactivate_prios()
505 return cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : 0; in htb_lowater()
512 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0; in htb_hiwater()
565 if (new_mode == cl->cmode) in htb_change_class_mode()
574 if (cl->cmode != HTB_CANT_SEND) in htb_change_class_mode()
576 cl->cmode = new_mode; in htb_change_class_mode()
580 cl->cmode = new_mode; in htb_change_class_mode()
718 old_mode = cl->cmode; in htb_charge_class()
721 if (old_mode != cl->cmode) { in htb_charge_class()
724 if (cl->cmode != HTB_CAN_SEND) in htb_charge_class()
771 if (cl->cmode != HTB_CAN_SEND) in htb_do_events()
1012 cl->cmode = HTB_CAN_SEND; in htb_reset()
1510 if (parent->cmode != HTB_CAN_SEND) in htb_parent_to_leaf()
1520 parent->cmode = HTB_CAN_SEND; in htb_parent_to_leaf()
1744 if (cl->cmode != HTB_CAN_SEND) in htb_delete()
1954 if (parent->cmode != HTB_CAN_SEND) { in htb_change_class()
1956 parent->cmode = HTB_CAN_SEND; in htb_change_class()
1975 cl->cmode = HTB_CAN_SEND; in htb_change_class()