Lines Matching refs:st
504 struct ssb_state *st = this_cpu_ptr(&ssb_state); in speculative_store_bypass_ht_init() local
508 st->local_state = 0; in speculative_store_bypass_ht_init()
514 if (st->shared_state) in speculative_store_bypass_ht_init()
517 raw_spin_lock_init(&st->lock); in speculative_store_bypass_ht_init()
531 st->shared_state = per_cpu(ssb_state, cpu).shared_state; in speculative_store_bypass_ht_init()
541 st->shared_state = st; in speculative_store_bypass_ht_init()
553 struct ssb_state *st = this_cpu_ptr(&ssb_state); in amd_set_core_ssb_state() local
567 if (__test_and_set_bit(LSTATE_SSB, &st->local_state)) in amd_set_core_ssb_state()
572 raw_spin_lock(&st->shared_state->lock); in amd_set_core_ssb_state()
574 if (!st->shared_state->disable_state) in amd_set_core_ssb_state()
576 st->shared_state->disable_state++; in amd_set_core_ssb_state()
577 raw_spin_unlock(&st->shared_state->lock); in amd_set_core_ssb_state()
579 if (!__test_and_clear_bit(LSTATE_SSB, &st->local_state)) in amd_set_core_ssb_state()
582 raw_spin_lock(&st->shared_state->lock); in amd_set_core_ssb_state()
583 st->shared_state->disable_state--; in amd_set_core_ssb_state()
584 if (!st->shared_state->disable_state) in amd_set_core_ssb_state()
586 raw_spin_unlock(&st->shared_state->lock); in amd_set_core_ssb_state()