Lines Matching refs:gmbus
380 add_wait_queue(&i915->display.gmbus.wait_queue, &wait); in gmbus_wait()
391 remove_wait_queue(&i915->display.gmbus.wait_queue, &wait); in gmbus_wait()
411 add_wait_queue(&i915->display.gmbus.wait_queue, &wait); in gmbus_wait_idle()
417 remove_wait_queue(&i915->display.gmbus.wait_queue, &wait); in gmbus_wait_idle()
800 mutex_lock(&i915->display.gmbus.mutex); in intel_gmbus_output_aksv()
809 mutex_unlock(&i915->display.gmbus.mutex); in intel_gmbus_output_aksv()
835 mutex_lock(&i915->display.gmbus.mutex); in gmbus_lock_bus()
844 return mutex_trylock(&i915->display.gmbus.mutex); in gmbus_trylock_bus()
853 mutex_unlock(&i915->display.gmbus.mutex); in gmbus_unlock_bus()
873 i915->display.gmbus.mmio_base = VLV_DISPLAY_BASE; in intel_gmbus_setup()
879 i915->display.gmbus.mmio_base = PCH_DISPLAY_BASE; in intel_gmbus_setup()
881 mutex_init(&i915->display.gmbus.mutex); in intel_gmbus_setup()
882 init_waitqueue_head(&i915->display.gmbus.wait_queue); in intel_gmbus_setup()
884 for (pin = 0; pin < ARRAY_SIZE(i915->display.gmbus.bus); pin++) { in intel_gmbus_setup()
930 i915->display.gmbus.bus[pin] = bus; in intel_gmbus_setup()
946 if (drm_WARN_ON(&i915->drm, pin >= ARRAY_SIZE(i915->display.gmbus.bus) || in intel_gmbus_get_adapter()
947 !i915->display.gmbus.bus[pin])) in intel_gmbus_get_adapter()
950 return &i915->display.gmbus.bus[pin]->adapter; in intel_gmbus_get_adapter()
958 mutex_lock(&i915->display.gmbus.mutex); in intel_gmbus_force_bit()
966 mutex_unlock(&i915->display.gmbus.mutex); in intel_gmbus_force_bit()
980 for (pin = 0; pin < ARRAY_SIZE(i915->display.gmbus.bus); pin++) { in intel_gmbus_teardown()
983 bus = i915->display.gmbus.bus[pin]; in intel_gmbus_teardown()
990 i915->display.gmbus.bus[pin] = NULL; in intel_gmbus_teardown()
996 wake_up_all(&i915->display.gmbus.wait_queue); in intel_gmbus_irq_handler()