Lines Matching defs:cmode
135 enum htb_cmode cmode; /* current mode of the class */
397 * for priorities it is participating on. cl->cmode must be new
405 while (cl->cmode == HTB_MAY_BORROW && p && mask) {
427 if (cl->cmode == HTB_CAN_SEND && mask)
434 * cl->cmode must represent old mode (before deactivation). It does
443 while (cl->cmode == HTB_MAY_BORROW && p && mask) {
471 if (cl->cmode == HTB_CAN_SEND && mask)
478 return cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : 0;
485 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0;
533 if (new_mode == cl->cmode)
542 if (cl->cmode != HTB_CANT_SEND)
544 cl->cmode = new_mode;
548 cl->cmode = new_mode;
678 old_mode = cl->cmode;
681 if (old_mode != cl->cmode) {
684 if (cl->cmode != HTB_CAN_SEND)
728 if (cl->cmode != HTB_CAN_SEND)
967 cl->cmode = HTB_CAN_SEND;
1195 if (parent->cmode != HTB_CAN_SEND)
1205 parent->cmode = HTB_CAN_SEND;
1284 if (cl->cmode != HTB_CAN_SEND)
1411 if (parent->cmode != HTB_CAN_SEND) {
1413 parent->cmode = HTB_CAN_SEND;
1430 cl->cmode = HTB_CAN_SEND;