Lines Matching refs:log_cap

548 				  int fru_id, u8 *log_cap, u16 *config)  in cxl_mem_ecs_get_attrbs()  argument
570 *log_cap = rd_attrbs->ecs_log_cap; in cxl_mem_ecs_get_attrbs()
578 int fru_id, u8 log_cap, u16 config) in cxl_mem_ecs_set_attrbs() argument
613 wr_attrbs->ecs_log_cap = log_cap; in cxl_mem_ecs_set_attrbs()
627 static u8 cxl_get_ecs_log_entry_type(u8 log_cap, u16 config) in cxl_get_ecs_log_entry_type() argument
629 return FIELD_GET(CXL_ECS_LOG_ENTRY_TYPE_MASK, log_cap); in cxl_get_ecs_log_entry_type()
632 static u16 cxl_get_ecs_threshold(u8 log_cap, u16 config) in cxl_get_ecs_threshold() argument
639 static u8 cxl_get_ecs_count_mode(u8 log_cap, u16 config) in cxl_get_ecs_count_mode() argument
649 u8 log_cap; \
653 ret = cxl_mem_ecs_get_attrbs(dev, ctx, fru_id, &log_cap, \
658 *val = cxl_get_ecs_##attrb(log_cap, config); \
667 static int cxl_set_ecs_log_entry_type(struct device *dev, u8 *log_cap, in CXL_ECS_GET_ATTR()
674 *log_cap = FIELD_PREP(CXL_ECS_LOG_ENTRY_TYPE_MASK, val); in CXL_ECS_GET_ATTR()
679 static int cxl_set_ecs_threshold(struct device *dev, u8 *log_cap, u16 *config, in cxl_set_ecs_threshold() argument
709 static int cxl_set_ecs_count_mode(struct device *dev, u8 *log_cap, u16 *config, in cxl_set_ecs_count_mode() argument
726 static int cxl_set_ecs_reset_counter(struct device *dev, u8 *log_cap, in cxl_set_ecs_reset_counter() argument
743 u8 log_cap; \
750 ret = cxl_mem_ecs_get_attrbs(dev, ctx, fru_id, &log_cap, \
755 ret = cxl_set_ecs_##attrb(dev, &log_cap, &config, val); \
759 return cxl_mem_ecs_set_attrbs(dev, ctx, fru_id, log_cap, \