Home
last modified time | relevance | path

Searched refs:rr_cfg (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/accel/habanalabs/gaudi2/
Dgaudi2_security.c2779 struct rr_config *rr_cfg = (struct rr_config *) data; in gaudi2_write_lbw_range_register() local
2781 switch (rr_cfg->type) { in gaudi2_write_lbw_range_register()
2803 dev_err(hdev->dev, "Invalid LBW RR type %u\n", rr_cfg->type); in gaudi2_write_lbw_range_register()
2807 reg_min_offset += rr_cfg->index * sizeof(u32); in gaudi2_write_lbw_range_register()
2808 reg_max_offset += rr_cfg->index * sizeof(u32); in gaudi2_write_lbw_range_register()
2810 if (rr_cfg->type == RR_TYPE_SHORT || rr_cfg->type == RR_TYPE_SHORT_PRIV) { in gaudi2_write_lbw_range_register()
2811 write_min = FIELD_GET(RR_LBW_SHORT_MASK, lower_32_bits(rr_cfg->min)); in gaudi2_write_lbw_range_register()
2812 write_max = FIELD_GET(RR_LBW_SHORT_MASK, lower_32_bits(rr_cfg->max)); in gaudi2_write_lbw_range_register()
2815 write_min = FIELD_GET(RR_LBW_LONG_MASK, lower_32_bits(rr_cfg->min)); in gaudi2_write_lbw_range_register()
2816 write_max = FIELD_GET(RR_LBW_LONG_MASK, lower_32_bits(rr_cfg->max)); in gaudi2_write_lbw_range_register()
[all …]