Lines Matching refs:cros_ec
34 struct cros_ec_device *cros_ec; member
43 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_message() local
44 uint8_t *cec_message = cros_ec->event_data.data.cec_message; in handle_cec_message()
45 unsigned int len = cros_ec->event_size; in handle_cec_message()
57 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_event() local
58 uint32_t events = cros_ec->event_data.data.cec_events; in handle_cec_event()
76 struct cros_ec_device *cros_ec; in cros_ec_cec_event() local
79 cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_event()
81 if (cros_ec->event_data.event_type == EC_MKBP_EVENT_CEC_EVENT) { in cros_ec_cec_event()
86 if (cros_ec->event_data.event_type == EC_MKBP_EVENT_CEC_MESSAGE) { in cros_ec_cec_event()
97 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_set_log_addr() local
109 ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); in cros_ec_cec_set_log_addr()
111 dev_err(cros_ec->dev, in cros_ec_cec_set_log_addr()
123 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_transmit() local
134 ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); in cros_ec_cec_transmit()
136 dev_err(cros_ec->dev, in cros_ec_cec_transmit()
147 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_adap_enable() local
159 ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); in cros_ec_cec_adap_enable()
161 dev_err(cros_ec->dev, in cros_ec_cec_adap_enable()
183 enable_irq_wake(cros_ec_cec->cros_ec->irq); in cros_ec_cec_suspend()
194 disable_irq_wake(cros_ec_cec->cros_ec->irq); in cros_ec_cec_resume()
278 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_cec_probe() local
294 cros_ec_cec->cros_ec = cros_ec; in cros_ec_cec_probe()
314 ret = blocking_notifier_chain_register(&cros_ec->event_notifier, in cros_ec_cec_probe()
347 &cros_ec_cec->cros_ec->event_notifier, in cros_ec_cec_remove()