Lines Matching full:cros_ec

45  * @cros_ec: Pointer to EC device
52 struct cros_ec_device *cros_ec; member
73 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_message() local
74 uint8_t *cec_message = cros_ec->event_data.data.cec_message; in handle_cec_message()
75 unsigned int len = cros_ec->event_size; in handle_cec_message()
88 dev_err(cros_ec->dev, in handle_cec_message()
100 struct cros_ec_device *cros_ec = port->cros_ec_cec->cros_ec; in cros_ec_cec_read_message() local
107 ret = cros_ec_cmd(cros_ec, 0, EC_CMD_CEC_READ_MSG, &params, in cros_ec_cec_read_message()
110 dev_err(cros_ec->dev, in cros_ec_cec_read_message()
120 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_event() local
121 uint32_t cec_events = cros_ec->event_data.data.cec_events; in handle_cec_event()
127 dev_err(cros_ec->dev, in handle_cec_event()
151 struct cros_ec_device *cros_ec; in cros_ec_cec_event() local
154 cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_event()
156 if (cros_ec->event_data.event_type == EC_MKBP_EVENT_CEC_EVENT) { in cros_ec_cec_event()
161 if (cros_ec->event_data.event_type == EC_MKBP_EVENT_CEC_MESSAGE) { in cros_ec_cec_event()
173 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_set_log_addr() local
181 ret = cros_ec_cmd(cros_ec, 0, EC_CMD_CEC_SET, &params, sizeof(params), in cros_ec_cec_set_log_addr()
184 dev_err(cros_ec->dev, in cros_ec_cec_set_log_addr()
197 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_transmit() local
204 ret = cros_ec_cmd(cros_ec, 0, EC_CMD_CEC_WRITE_MSG, &params, in cros_ec_cec_transmit()
210 ret = cros_ec_cmd(cros_ec, cros_ec_cec->write_cmd_version, in cros_ec_cec_transmit()
216 dev_err(cros_ec->dev, in cros_ec_cec_transmit()
228 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_adap_enable() local
236 ret = cros_ec_cmd(cros_ec, 0, EC_CMD_CEC_SET, &params, sizeof(params), in cros_ec_cec_adap_enable()
239 dev_err(cros_ec->dev, in cros_ec_cec_adap_enable()
261 enable_irq_wake(cros_ec_cec->cros_ec->irq); in cros_ec_cec_suspend()
272 disable_irq_wake(cros_ec_cec->cros_ec->irq); in cros_ec_cec_resume()
378 ret = cros_ec_cmd(cros_ec_cec->cros_ec, 0, EC_CMD_CEC_PORT_COUNT, NULL, in cros_ec_cec_get_num_ports()
390 dev_err(cros_ec_cec->cros_ec->dev, in cros_ec_cec_get_num_ports()
396 dev_err(cros_ec_cec->cros_ec->dev, in cros_ec_cec_get_num_ports()
407 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_get_write_cmd_version() local
414 ret = cros_ec_cmd(cros_ec, 1, EC_CMD_GET_CMD_VERSIONS, &params, in cros_ec_cec_get_write_cmd_version()
417 dev_err(cros_ec->dev, in cros_ec_cec_get_write_cmd_version()
426 dev_err(cros_ec->dev, in cros_ec_cec_get_write_cmd_version()
489 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_cec_probe() local
506 cros_ec_cec->cros_ec = cros_ec; in cros_ec_cec_probe()
527 ret = blocking_notifier_chain_register(&cros_ec->event_notifier, in cros_ec_cec_probe()
565 &cros_ec_cec->cros_ec->event_notifier, in cros_ec_cec_remove()