Lines Matching refs:sfc_lock
377 struct sfc_lock_data *sfc_lock) in get_sfc_forced_lock_data() argument
384 sfc_lock->lock_reg = GEN11_VCS_SFC_FORCED_LOCK(engine->mmio_base); in get_sfc_forced_lock_data()
385 sfc_lock->lock_bit = GEN11_VCS_SFC_FORCED_LOCK_BIT; in get_sfc_forced_lock_data()
387 sfc_lock->ack_reg = GEN11_VCS_SFC_LOCK_STATUS(engine->mmio_base); in get_sfc_forced_lock_data()
388 sfc_lock->ack_bit = GEN11_VCS_SFC_LOCK_ACK_BIT; in get_sfc_forced_lock_data()
390 sfc_lock->usage_reg = GEN11_VCS_SFC_LOCK_STATUS(engine->mmio_base); in get_sfc_forced_lock_data()
391 sfc_lock->usage_bit = GEN11_VCS_SFC_USAGE_BIT; in get_sfc_forced_lock_data()
392 sfc_lock->reset_bit = GEN11_VCS_SFC_RESET_BIT(engine->instance); in get_sfc_forced_lock_data()
396 sfc_lock->lock_reg = GEN11_VECS_SFC_FORCED_LOCK(engine->mmio_base); in get_sfc_forced_lock_data()
397 sfc_lock->lock_bit = GEN11_VECS_SFC_FORCED_LOCK_BIT; in get_sfc_forced_lock_data()
399 sfc_lock->ack_reg = GEN11_VECS_SFC_LOCK_ACK(engine->mmio_base); in get_sfc_forced_lock_data()
400 sfc_lock->ack_bit = GEN11_VECS_SFC_LOCK_ACK_BIT; in get_sfc_forced_lock_data()
402 sfc_lock->usage_reg = GEN11_VECS_SFC_USAGE(engine->mmio_base); in get_sfc_forced_lock_data()
403 sfc_lock->usage_bit = GEN11_VECS_SFC_USAGE_BIT; in get_sfc_forced_lock_data()
404 sfc_lock->reset_bit = GEN11_VECS_SFC_RESET_BIT(engine->instance); in get_sfc_forced_lock_data()
416 struct sfc_lock_data sfc_lock; in gen11_lock_sfc() local
427 get_sfc_forced_lock_data(engine, &sfc_lock); in gen11_lock_sfc()
434 if (!(intel_uncore_read_fw(uncore, sfc_lock.usage_reg) & sfc_lock.usage_bit)) { in gen11_lock_sfc()
454 get_sfc_forced_lock_data(paired_vecs, &sfc_lock); in gen11_lock_sfc()
468 intel_uncore_rmw_fw(uncore, sfc_lock.lock_reg, 0, sfc_lock.lock_bit); in gen11_lock_sfc()
471 sfc_lock.ack_reg, in gen11_lock_sfc()
472 sfc_lock.ack_bit, in gen11_lock_sfc()
473 sfc_lock.ack_bit, in gen11_lock_sfc()
488 lock_obtained = (intel_uncore_read_fw(uncore, sfc_lock.usage_reg) & in gen11_lock_sfc()
489 sfc_lock.usage_bit) != 0; in gen11_lock_sfc()
498 *reset_mask |= sfc_lock.reset_bit; in gen11_lock_sfc()
506 struct sfc_lock_data sfc_lock = {}; in gen11_unlock_sfc() local
516 get_sfc_forced_lock_data(engine, &sfc_lock); in gen11_unlock_sfc()
518 intel_uncore_rmw_fw(uncore, sfc_lock.lock_reg, sfc_lock.lock_bit, 0); in gen11_unlock_sfc()