• Home
  • Raw
  • Download

Lines Matching refs:hdmi_i2c

28 static void init_ddc(struct hdmi_i2c_adapter *hdmi_i2c)  in init_ddc()  argument
30 struct hdmi *hdmi = hdmi_i2c->hdmi; in init_ddc()
50 static int ddc_clear_irq(struct hdmi_i2c_adapter *hdmi_i2c) in ddc_clear_irq() argument
52 struct hdmi *hdmi = hdmi_i2c->hdmi; in ddc_clear_irq()
73 hdmi_i2c->sw_done = false; in ddc_clear_irq()
80 static bool sw_done(struct hdmi_i2c_adapter *hdmi_i2c) in sw_done() argument
82 struct hdmi *hdmi = hdmi_i2c->hdmi; in sw_done()
84 if (!hdmi_i2c->sw_done) { in sw_done()
91 hdmi_i2c->sw_done = true; in sw_done()
97 return hdmi_i2c->sw_done; in sw_done()
103 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c); in msm_hdmi_i2c_xfer() local
104 struct hdmi *hdmi = hdmi_i2c->hdmi; in msm_hdmi_i2c_xfer()
121 init_ddc(hdmi_i2c); in msm_hdmi_i2c_xfer()
123 ret = ddc_clear_irq(hdmi_i2c); in msm_hdmi_i2c_xfer()
174 ret = wait_event_timeout(hdmi_i2c->ddc_event, sw_done(hdmi_i2c), HZ/4); in msm_hdmi_i2c_xfer()
231 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c); in msm_hdmi_i2c_irq() local
233 if (sw_done(hdmi_i2c)) in msm_hdmi_i2c_irq()
234 wake_up_all(&hdmi_i2c->ddc_event); in msm_hdmi_i2c_irq()
239 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c); in msm_hdmi_i2c_destroy() local
241 kfree(hdmi_i2c); in msm_hdmi_i2c_destroy()
246 struct hdmi_i2c_adapter *hdmi_i2c; in msm_hdmi_i2c_init() local
250 hdmi_i2c = kzalloc(sizeof(*hdmi_i2c), GFP_KERNEL); in msm_hdmi_i2c_init()
251 if (!hdmi_i2c) { in msm_hdmi_i2c_init()
256 i2c = &hdmi_i2c->base; in msm_hdmi_i2c_init()
258 hdmi_i2c->hdmi = hdmi; in msm_hdmi_i2c_init()
259 init_waitqueue_head(&hdmi_i2c->ddc_event); in msm_hdmi_i2c_init()