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()
664 old_mode = cl->cmode; in htb_charge_class()
667 if (old_mode != cl->cmode) { in htb_charge_class()
670 if (cl->cmode != HTB_CAN_SEND) in htb_charge_class()
714 if (cl->cmode != HTB_CAN_SEND) in htb_do_events()
986 cl->cmode = HTB_CAN_SEND; in htb_reset()
1219 if (parent->cmode != HTB_CAN_SEND) in htb_parent_to_leaf()
1230 parent->cmode = HTB_CAN_SEND; in htb_parent_to_leaf()
1310 if (cl->cmode != HTB_CAN_SEND) in htb_delete()
1442 if (parent->cmode != HTB_CAN_SEND) { in htb_change_class()
1444 parent->cmode = HTB_CAN_SEND; in htb_change_class()
1461 cl->cmode = HTB_CAN_SEND; in htb_change_class()