Lines Matching defs:cmode
136 enum htb_cmode cmode; /* current mode of the class */
422 * for priorities it is participating on. cl->cmode must be new
430 while (cl->cmode == HTB_MAY_BORROW && p && mask) {
452 if (cl->cmode == HTB_CAN_SEND && mask)
461 * cl->cmode must represent old mode (before deactivation). It does
470 while (cl->cmode == HTB_MAY_BORROW && p && mask) {
498 if (cl->cmode == HTB_CAN_SEND && mask)
505 return cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : 0;
512 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0;
565 if (new_mode == cl->cmode)
574 if (cl->cmode != HTB_CANT_SEND)
576 cl->cmode = new_mode;
580 cl->cmode = new_mode;
718 old_mode = cl->cmode;
721 if (old_mode != cl->cmode) {
724 if (cl->cmode != HTB_CAN_SEND)
771 if (cl->cmode != HTB_CAN_SEND)
1012 cl->cmode = HTB_CAN_SEND;
1519 if (parent->cmode != HTB_CAN_SEND)
1529 parent->cmode = HTB_CAN_SEND;
1756 if (cl->cmode != HTB_CAN_SEND)
1970 if (parent->cmode != HTB_CAN_SEND) {
1972 parent->cmode = HTB_CAN_SEND;
1991 cl->cmode = HTB_CAN_SEND;