Lines Matching refs:clk_throttle
2922 struct hl_clk_throttle *clk_throttle = &hdev->clk_throttling; in hl_handle_clk_change_event() local
2925 mutex_lock(&clk_throttle->lock); in hl_handle_clk_change_event()
2929 clk_throttle->current_reason |= HL_CLK_THROTTLE_POWER; in hl_handle_clk_change_event()
2930 clk_throttle->aggregated_reason |= HL_CLK_THROTTLE_POWER; in hl_handle_clk_change_event()
2931 clk_throttle->timestamp[HL_CLK_THROTTLE_TYPE_POWER].start = ktime_get(); in hl_handle_clk_change_event()
2932 clk_throttle->timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = zero_time; in hl_handle_clk_change_event()
2937 clk_throttle->current_reason &= ~HL_CLK_THROTTLE_POWER; in hl_handle_clk_change_event()
2938 clk_throttle->timestamp[HL_CLK_THROTTLE_TYPE_POWER].end = ktime_get(); in hl_handle_clk_change_event()
2943 clk_throttle->current_reason |= HL_CLK_THROTTLE_THERMAL; in hl_handle_clk_change_event()
2944 clk_throttle->aggregated_reason |= HL_CLK_THROTTLE_THERMAL; in hl_handle_clk_change_event()
2945 clk_throttle->timestamp[HL_CLK_THROTTLE_TYPE_THERMAL].start = ktime_get(); in hl_handle_clk_change_event()
2946 clk_throttle->timestamp[HL_CLK_THROTTLE_TYPE_THERMAL].end = zero_time; in hl_handle_clk_change_event()
2952 clk_throttle->current_reason &= ~HL_CLK_THROTTLE_THERMAL; in hl_handle_clk_change_event()
2953 clk_throttle->timestamp[HL_CLK_THROTTLE_TYPE_THERMAL].end = ktime_get(); in hl_handle_clk_change_event()
2963 mutex_unlock(&clk_throttle->lock); in hl_handle_clk_change_event()