Lines Matching defs:cmode
136 enum htb_cmode cmode; /* current mode of the class */
423 * for priorities it is participating on. cl->cmode must be new
431 while (cl->cmode == HTB_MAY_BORROW && p && mask) {
453 if (cl->cmode == HTB_CAN_SEND && mask)
462 * cl->cmode must represent old mode (before deactivation). It does
471 while (cl->cmode == HTB_MAY_BORROW && p && mask) {
499 if (cl->cmode == HTB_CAN_SEND && mask)
506 return cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : 0;
513 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0;
566 if (new_mode == cl->cmode)
575 if (cl->cmode != HTB_CANT_SEND)
577 cl->cmode = new_mode;
581 cl->cmode = new_mode;
719 old_mode = cl->cmode;
722 if (old_mode != cl->cmode) {
725 if (cl->cmode != HTB_CAN_SEND)
772 if (cl->cmode != HTB_CAN_SEND)
1015 cl->cmode = HTB_CAN_SEND;
1512 if (parent->cmode != HTB_CAN_SEND)
1522 parent->cmode = HTB_CAN_SEND;
1745 if (cl->cmode != HTB_CAN_SEND)
1954 if (parent->cmode != HTB_CAN_SEND) {
1956 parent->cmode = HTB_CAN_SEND;
1975 cl->cmode = HTB_CAN_SEND;