Lines Matching full:ec

3  * ChromeOS EC multi-function device
7 * The ChromeOS EC multi function device is used to mux all the requests
8 * to the EC device for its multiple features: keyboard controller,
49 * cros_ec_handle_event() - process and forward pending events on EC
52 * Call this function in a loop when the kernel is notified that the EC has
144 "EC detected sleep transition timeout. Total sleep transitions: %d", in cros_ec_sleep_event()
171 * cros_ec_register() - Register a new ChromeOS EC, using the provided info.
189 ec_dev->ec = NULL; in cros_ec_register()
205 dev_err(dev, "Cannot identify the EC: error %d\n", err); in cros_ec_register()
214 "chromeos-ec", ec_dev); in cros_ec_register()
222 /* Register a platform device for the main EC instance */ in cros_ec_register()
223 ec_dev->ec = platform_device_register_data(ec_dev->dev, "cros-ec-dev", in cros_ec_register()
226 if (IS_ERR(ec_dev->ec)) { in cros_ec_register()
228 "Failed to create CrOS EC platform device\n"); in cros_ec_register()
229 return PTR_ERR(ec_dev->ec); in cros_ec_register()
234 * Register a platform device for the PD behind the main EC. in cros_ec_register()
236 * - behind an EC, we have a pd in cros_ec_register()
238 * - the EC is responsive at init time (it is not true for a in cros_ec_register()
242 "cros-ec-dev", in cros_ec_register()
267 dev_dbg(ec_dev->dev, "Error %d clearing sleep event to ec\n", in cros_ec_register()
282 dev_info(dev, "Chrome EC device registered\n"); in cros_ec_register()
285 * Unlock EC that may be waiting for AP to process MKBP events. in cros_ec_register()
286 * If the AP takes to long to answer, the EC would stop sending events. in cros_ec_register()
293 platform_device_unregister(ec_dev->ec); in cros_ec_register()
300 * cros_ec_unregister() - Remove a ChromeOS EC.
303 * Call this to deregister a ChromeOS EC, then clean up any private data.
311 platform_device_unregister(ec_dev->ec); in cros_ec_unregister()
317 * cros_ec_suspend() - Handle a suspend operation for the ChromeOS EC device.
336 dev_dbg(ec_dev->dev, "Error %d sending suspend event to ec\n", in cros_ec_suspend()
366 * cros_ec_resume() - Handle a resume operation for the ChromeOS EC device.
387 dev_dbg(ec_dev->dev, "Error %d sending resume event to ec\n", in cros_ec_resume()
407 MODULE_DESCRIPTION("ChromeOS EC core driver");