Lines Matching refs:cmode
135 enum htb_cmode cmode; /* current mode of the class */ member
405 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_activate_prios()
427 if (cl->cmode == HTB_CAN_SEND && mask) in htb_activate_prios()
443 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_deactivate_prios()
471 if (cl->cmode == HTB_CAN_SEND && mask) in htb_deactivate_prios()
478 return cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : 0; in htb_lowater()
485 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0; in htb_hiwater()
533 if (new_mode == cl->cmode) in htb_change_class_mode()
542 if (cl->cmode != HTB_CANT_SEND) in htb_change_class_mode()
544 cl->cmode = new_mode; in htb_change_class_mode()
548 cl->cmode = new_mode; in htb_change_class_mode()
678 old_mode = cl->cmode; in htb_charge_class()
681 if (old_mode != cl->cmode) { in htb_charge_class()
684 if (cl->cmode != HTB_CAN_SEND) in htb_charge_class()
728 if (cl->cmode != HTB_CAN_SEND) in htb_do_events()
967 cl->cmode = HTB_CAN_SEND; in htb_reset()
1197 if (parent->cmode != HTB_CAN_SEND) in htb_parent_to_leaf()
1207 parent->cmode = HTB_CAN_SEND; in htb_parent_to_leaf()
1286 if (cl->cmode != HTB_CAN_SEND) in htb_delete()
1413 if (parent->cmode != HTB_CAN_SEND) { in htb_change_class()
1415 parent->cmode = HTB_CAN_SEND; in htb_change_class()
1432 cl->cmode = HTB_CAN_SEND; in htb_change_class()