Lines Matching refs:cmode
140 enum htb_cmode cmode; /* current mode of the class */ member
400 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_activate_prios()
419 if (cl->cmode == HTB_CAN_SEND && mask) in htb_activate_prios()
435 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_deactivate_prios()
463 if (cl->cmode == HTB_CAN_SEND && mask) in htb_deactivate_prios()
470 return cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : 0; in htb_lowater()
477 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0; in htb_hiwater()
525 if (new_mode == cl->cmode) in htb_change_class_mode()
529 if (cl->cmode != HTB_CANT_SEND) in htb_change_class_mode()
531 cl->cmode = new_mode; in htb_change_class_mode()
535 cl->cmode = new_mode; in htb_change_class_mode()
665 old_mode = cl->cmode; in htb_charge_class()
668 if (old_mode != cl->cmode) { in htb_charge_class()
671 if (cl->cmode != HTB_CAN_SEND) in htb_charge_class()
715 if (cl->cmode != HTB_CAN_SEND) in htb_do_events()
989 cl->cmode = HTB_CAN_SEND; in htb_reset()
1213 if (parent->cmode != HTB_CAN_SEND) in htb_parent_to_leaf()
1224 parent->cmode = HTB_CAN_SEND; in htb_parent_to_leaf()
1305 if (cl->cmode != HTB_CAN_SEND) in htb_delete()
1438 if (parent->cmode != HTB_CAN_SEND) { in htb_change_class()
1440 parent->cmode = HTB_CAN_SEND; in htb_change_class()
1457 cl->cmode = HTB_CAN_SEND; in htb_change_class()