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()
424 if (cl->cmode == HTB_CAN_SEND && mask) in htb_activate_prios()
440 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_deactivate_prios()
468 if (cl->cmode == HTB_CAN_SEND && mask) in htb_deactivate_prios()
475 return cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : 0; in htb_lowater()
482 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0; in htb_hiwater()
530 if (new_mode == cl->cmode) in htb_change_class_mode()
539 if (cl->cmode != HTB_CANT_SEND) in htb_change_class_mode()
541 cl->cmode = new_mode; in htb_change_class_mode()
545 cl->cmode = new_mode; in htb_change_class_mode()
675 old_mode = cl->cmode; in htb_charge_class()
678 if (old_mode != cl->cmode) { in htb_charge_class()
681 if (cl->cmode != HTB_CAN_SEND) in htb_charge_class()
725 if (cl->cmode != HTB_CAN_SEND) in htb_do_events()
964 cl->cmode = HTB_CAN_SEND; in htb_reset()
1194 if (parent->cmode != HTB_CAN_SEND) in htb_parent_to_leaf()
1204 parent->cmode = HTB_CAN_SEND; in htb_parent_to_leaf()
1283 if (cl->cmode != HTB_CAN_SEND) in htb_delete()
1410 if (parent->cmode != HTB_CAN_SEND) { in htb_change_class()
1412 parent->cmode = HTB_CAN_SEND; in htb_change_class()
1429 cl->cmode = HTB_CAN_SEND; in htb_change_class()