Lines Matching refs:ec_dev

314 	struct cros_ec_device *ec_dev = data;  in cros_ec_lpc_acpi_notify()  local
316 if (ec_dev->mkbp_event_supported && in cros_ec_lpc_acpi_notify()
317 cros_ec_get_next_event(ec_dev, NULL) > 0) in cros_ec_lpc_acpi_notify()
318 blocking_notifier_call_chain(&ec_dev->event_notifier, 0, in cros_ec_lpc_acpi_notify()
319 ec_dev); in cros_ec_lpc_acpi_notify()
330 struct cros_ec_device *ec_dev; in cros_ec_lpc_probe() local
372 ec_dev = devm_kzalloc(dev, sizeof(*ec_dev), GFP_KERNEL); in cros_ec_lpc_probe()
373 if (!ec_dev) in cros_ec_lpc_probe()
376 platform_set_drvdata(pdev, ec_dev); in cros_ec_lpc_probe()
377 ec_dev->dev = dev; in cros_ec_lpc_probe()
378 ec_dev->phys_name = dev_name(dev); in cros_ec_lpc_probe()
379 ec_dev->cmd_xfer = cros_ec_cmd_xfer_lpc; in cros_ec_lpc_probe()
380 ec_dev->pkt_xfer = cros_ec_pkt_xfer_lpc; in cros_ec_lpc_probe()
381 ec_dev->cmd_readmem = cros_ec_lpc_readmem; in cros_ec_lpc_probe()
382 ec_dev->din_size = sizeof(struct ec_host_response) + in cros_ec_lpc_probe()
384 ec_dev->dout_size = sizeof(struct ec_host_request); in cros_ec_lpc_probe()
392 ec_dev->irq = irq; in cros_ec_lpc_probe()
398 ret = cros_ec_register(ec_dev); in cros_ec_lpc_probe()
413 ec_dev); in cros_ec_lpc_probe()
424 struct cros_ec_device *ec_dev = platform_get_drvdata(pdev); in cros_ec_lpc_remove() local
432 return cros_ec_unregister(ec_dev); in cros_ec_lpc_remove()
500 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_suspend() local
502 return cros_ec_suspend(ec_dev); in cros_ec_lpc_suspend()
507 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_resume() local
509 return cros_ec_resume(ec_dev); in cros_ec_lpc_resume()