misc_res_type
enum misc_res_type type = sev->es_active ? MISC_CG_RES_SEV_ES : MISC_CG_RES_SEV;
enum misc_res_type type = sev->es_active ? MISC_CG_RES_SEV_ES : MISC_CG_RES_SEV;
static inline int misc_cg_set_capacity(enum misc_res_type type, u64 capacity)
static inline int misc_cg_try_charge(enum misc_res_type type,
static inline void misc_cg_uncharge(enum misc_res_type type,
int misc_cg_set_capacity(enum misc_res_type type, u64 capacity);
int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
static void misc_cg_cancel_charge(enum misc_res_type type, struct misc_cg *cg,
static void misc_cg_event(enum misc_res_type type, struct misc_cg *cg)
int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount)
void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount)
enum misc_res_type type = MISC_CG_RES_TYPES;
enum misc_res_type i;
static inline bool valid_type(enum misc_res_type type)
int misc_cg_set_capacity(enum misc_res_type type, u64 capacity)