Lines Matching refs:sfc_lock

360 				     struct sfc_lock_data *sfc_lock)  in get_sfc_forced_lock_data()  argument
367 sfc_lock->lock_reg = GEN11_VCS_SFC_FORCED_LOCK(engine->mmio_base); in get_sfc_forced_lock_data()
368 sfc_lock->lock_bit = GEN11_VCS_SFC_FORCED_LOCK_BIT; in get_sfc_forced_lock_data()
370 sfc_lock->ack_reg = GEN11_VCS_SFC_LOCK_STATUS(engine->mmio_base); in get_sfc_forced_lock_data()
371 sfc_lock->ack_bit = GEN11_VCS_SFC_LOCK_ACK_BIT; in get_sfc_forced_lock_data()
373 sfc_lock->usage_reg = GEN11_VCS_SFC_LOCK_STATUS(engine->mmio_base); in get_sfc_forced_lock_data()
374 sfc_lock->usage_bit = GEN11_VCS_SFC_USAGE_BIT; in get_sfc_forced_lock_data()
375 sfc_lock->reset_bit = GEN11_VCS_SFC_RESET_BIT(engine->instance); in get_sfc_forced_lock_data()
379 sfc_lock->lock_reg = GEN11_VECS_SFC_FORCED_LOCK(engine->mmio_base); in get_sfc_forced_lock_data()
380 sfc_lock->lock_bit = GEN11_VECS_SFC_FORCED_LOCK_BIT; in get_sfc_forced_lock_data()
382 sfc_lock->ack_reg = GEN11_VECS_SFC_LOCK_ACK(engine->mmio_base); in get_sfc_forced_lock_data()
383 sfc_lock->ack_bit = GEN11_VECS_SFC_LOCK_ACK_BIT; in get_sfc_forced_lock_data()
385 sfc_lock->usage_reg = GEN11_VECS_SFC_USAGE(engine->mmio_base); in get_sfc_forced_lock_data()
386 sfc_lock->usage_bit = GEN11_VECS_SFC_USAGE_BIT; in get_sfc_forced_lock_data()
387 sfc_lock->reset_bit = GEN11_VECS_SFC_RESET_BIT(engine->instance); in get_sfc_forced_lock_data()
399 struct sfc_lock_data sfc_lock; in gen11_lock_sfc() local
410 get_sfc_forced_lock_data(engine, &sfc_lock); in gen11_lock_sfc()
417 if (!(intel_uncore_read_fw(uncore, sfc_lock.usage_reg) & sfc_lock.usage_bit)) { in gen11_lock_sfc()
437 get_sfc_forced_lock_data(paired_vecs, &sfc_lock); in gen11_lock_sfc()
451 rmw_set_fw(uncore, sfc_lock.lock_reg, sfc_lock.lock_bit); in gen11_lock_sfc()
454 sfc_lock.ack_reg, in gen11_lock_sfc()
455 sfc_lock.ack_bit, in gen11_lock_sfc()
456 sfc_lock.ack_bit, in gen11_lock_sfc()
471 lock_obtained = (intel_uncore_read_fw(uncore, sfc_lock.usage_reg) & in gen11_lock_sfc()
472 sfc_lock.usage_bit) != 0; in gen11_lock_sfc()
481 *reset_mask |= sfc_lock.reset_bit; in gen11_lock_sfc()
489 struct sfc_lock_data sfc_lock = {}; in gen11_unlock_sfc() local
499 get_sfc_forced_lock_data(engine, &sfc_lock); in gen11_unlock_sfc()
501 rmw_clear_fw(uncore, sfc_lock.lock_reg, sfc_lock.lock_bit); in gen11_unlock_sfc()