Searched refs:cmode (Results 1 – 2 of 2) sorted by relevance
135 enum htb_cmode cmode; /* current mode of the class */ member405 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()[all …]
2947 enum devlink_param_cmode cmode) in devlink_param_cmode_is_supported() argument2949 return test_bit(cmode, ¶m->supported_cmodes); in devlink_param_cmode_is_supported()2992 enum devlink_param_cmode cmode, in devlink_nl_param_value_fill_one() argument3002 if (nla_put_u8(msg, DEVLINK_ATTR_PARAM_VALUE_CMODE, cmode)) in devlink_nl_param_value_fill_one()3067 ctx.cmode = i; in devlink_nl_param_fill()3319 enum devlink_param_cmode cmode; in __devlink_nl_cmd_param_set_doit() local3345 cmode = nla_get_u8(info->attrs[DEVLINK_ATTR_PARAM_VALUE_CMODE]); in __devlink_nl_cmd_param_set_doit()3346 if (!devlink_param_cmode_is_supported(param, cmode)) in __devlink_nl_cmd_param_set_doit()3349 if (cmode == DEVLINK_PARAM_CMODE_DRIVERINIT) { in __devlink_nl_cmd_param_set_doit()3359 ctx.cmode = cmode; in __devlink_nl_cmd_param_set_doit()