Home
last modified time | relevance | path

Searched defs:ec_dev (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec.c42 struct cros_ec_device *ec_dev = data; in cros_ec_irq_handler() local
59 static bool cros_ec_handle_event(struct cros_ec_device *ec_dev) in cros_ec_handle_event()
91 struct cros_ec_device *ec_dev = data; in cros_ec_irq_thread() local
180 int cros_ec_register(struct cros_ec_device *ec_dev) in cros_ec_register()
314 void cros_ec_unregister(struct cros_ec_device *ec_dev) in cros_ec_unregister()
347 int cros_ec_suspend_prepare(struct cros_ec_device *ec_dev) in cros_ec_suspend_prepare()
374 int cros_ec_suspend_late(struct cros_ec_device *ec_dev) in cros_ec_suspend_late()
389 int cros_ec_suspend(struct cros_ec_device *ec_dev) in cros_ec_suspend()
432 void cros_ec_resume_complete(struct cros_ec_device *ec_dev) in cros_ec_resume_complete()
461 int cros_ec_resume_early(struct cros_ec_device *ec_dev) in cros_ec_resume_early()
[all …]
H A Dcros_ec_proto.c55 static int prepare_tx(struct cros_ec_device *ec_dev, in prepare_tx()
88 static int prepare_tx_legacy(struct cros_ec_device *ec_dev, in prepare_tx_legacy()
201 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev, in cros_ec_prepare_tx()
224 int cros_ec_check_result(struct cros_ec_device *ec_dev, in cros_ec_check_result()
496 int cros_ec_query_all(struct cros_ec_device *ec_dev) in cros_ec_query_all()
667 int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_status()
708 static int get_next_event(struct cros_ec_device *ec_dev) in get_next_event()
769 int cros_ec_get_next_event(struct cros_ec_device *ec_dev, in cros_ec_get_next_event()
873 u32 cros_ec_get_host_event(struct cros_ec_device *ec_dev) in cros_ec_get_host_event()
944 struct cros_ec_device *ec_dev = ec->ec_dev; in cros_ec_get_sensor_count() local
[all …]
H A Dcros_ec_proto_test.c19 struct cros_ec_device ec_dev; member
29 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_legacy_normal() local
72 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize() local
87 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_normal() local
128 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_bad_msg_outsize() local
141 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_check_result() local
181 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_pretest() local
196 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_normal() local
350 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_no_pd_return_error() local
415 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_no_pd_return0() local
[all …]
H A Dcros_ec_spi.c98 struct cros_ec_device *ec_dev; member
111 static int terminate_request(struct cros_ec_device *ec_dev) in terminate_request()
383 static int do_cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev, in do_cros_ec_pkt_xfer_spi()
529 static int do_cros_ec_cmd_xfer_spi(struct cros_ec_device *ec_dev, in do_cros_ec_cmd_xfer_spi()
652 static int cros_ec_xfer_high_pri(struct cros_ec_device *ec_dev, in cros_ec_xfer_high_pri()
680 static int cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_spi()
686 static int cros_ec_cmd_xfer_spi(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_spi()
739 struct cros_ec_device *ec_dev; in cros_ec_spi_probe() local
790 struct cros_ec_device *ec_dev = spi_get_drvdata(spi); in cros_ec_spi_remove() local
798 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_spi_suspend() local
[all …]
H A Dcros_ec_rpmsg.c65 static int cros_ec_cmd_xfer_rpmsg(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_rpmsg()
79 static int cros_ec_pkt_xfer_rpmsg(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_rpmsg()
161 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_callback() local
216 struct cros_ec_device *ec_dev; in cros_ec_rpmsg_probe() local
263 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_remove() local
274 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_suspend() local
281 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_resume() local
H A Dcros_ec_i2c.c52 static int cros_ec_pkt_xfer_i2c(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_i2c()
188 static int cros_ec_cmd_xfer_i2c(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_i2c()
292 struct cros_ec_device *ec_dev = NULL; in cros_ec_i2c_probe() local
321 struct cros_ec_device *ec_dev = i2c_get_clientdata(client); in cros_ec_i2c_remove() local
329 struct cros_ec_device *ec_dev = to_ec_dev(dev); in cros_ec_i2c_suspend() local
336 struct cros_ec_device *ec_dev = to_ec_dev(dev); in cros_ec_i2c_resume() local
H A Dcros_ec_chardev.c34 struct cros_ec_dev *ec_dev; member
39 struct cros_ec_dev *ec_dev; member
98 struct cros_ec_device *ec_dev = priv->ec_dev->ec_dev; in cros_ec_chardev_mkbp_event() local
163 struct cros_ec_dev *ec_dev = dev_get_drvdata(mdev->parent); in cros_ec_chardev_open() local
206 struct cros_ec_dev *ec_dev = priv->ec_dev; in cros_ec_chardev_read() local
256 struct cros_ec_dev *ec_dev = priv->ec_dev; in cros_ec_chardev_release() local
319 struct cros_ec_device *ec_dev = ec->ec_dev; in cros_ec_chardev_ioctl_readmem() local
379 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_chardev_probe() local
H A Dcros_ec_uart.c89 struct cros_ec_device *ec_dev = serdev_device_get_drvdata(serdev); in cros_ec_uart_rx_bytes() local
130 static int cros_ec_uart_pkt_xfer(struct cros_ec_device *ec_dev, in cros_ec_uart_pkt_xfer()
255 struct cros_ec_device *ec_dev; in cros_ec_uart_probe() local
310 struct cros_ec_device *ec_dev = serdev_device_get_drvdata(serdev); in cros_ec_uart_remove() local
317 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_uart_suspend() local
324 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_uart_resume() local
H A Dcros_kunit_util.c24 int cros_kunit_ec_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_xfer_mock()
52 int cros_kunit_ec_cmd_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_cmd_xfer_mock()
58 int cros_kunit_ec_pkt_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_pkt_xfer_mock()
106 int cros_kunit_readmem_mock(struct cros_ec_device *ec_dev, unsigned int offset, in cros_kunit_readmem_mock()
H A Dcros_ec_lpc.c320 struct cros_ec_device *ec_dev = data; in cros_ec_lpc_acpi_notify() local
355 struct cros_ec_device *ec_dev; in cros_ec_lpc_probe() local
465 struct cros_ec_device *ec_dev = platform_get_drvdata(pdev); in cros_ec_lpc_remove() local
551 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_prepare() local
557 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_complete() local
563 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_suspend_late() local
570 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_resume_early() local
H A Dcros_usbpd_notify.c57 struct cros_ec_device *ec_dev) in cros_usbpd_get_event_and_notify()
101 struct cros_ec_device *ec_dev; in cros_usbpd_notify_probe_acpi() local
171 struct cros_ec_device *ec_dev = (struct cros_ec_device *)data; in cros_usbpd_notify_plat() local
H A Dcros_usbpd_logger.c30 struct cros_ec_dev *ec_dev; member
64 struct cros_ec_dev *ec_dev = logger->ec_dev; in ec_get_log_entry() local
197 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_usbpd_logger_probe() local
H A Dcros_ec_debugfs.c204 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_pdinfo_read() local
249 static bool cros_ec_uptime_is_supported(struct cros_ec_device *ec_dev) in cros_ec_uptime_is_supported()
272 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_uptime_read() local
407 static int cros_ec_get_panicinfo(struct cros_ec_device *ec_dev, uint8_t *data, in cros_ec_get_panicinfo()
436 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_create_panicinfo() local
H A Dcros_ec_vbc.c111 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_vbc_probe() local
126 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_vbc_remove() local
H A Dcros_ec_lightbar.c532 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_lightbar_probe() local
565 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_lightbar_remove() local
578 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_lightbar_resume() local
588 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_lightbar_suspend() local
H A Dcros_ec_ishtp.c135 struct cros_ec_device *ec_dev; member
449 static int prepare_cros_ec_rx(struct cros_ec_device *ec_dev, in prepare_cros_ec_rx()
484 static int cros_ec_pkt_xfer_ish(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_ish()
568 struct cros_ec_device *ec_dev; in cros_ec_dev_init() local
H A Dcros_ec_sysfs.c332 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_sysfs_probe() local
345 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_sysfs_remove() local
H A Dcros_ec_sensorhub_ring.c919 struct cros_ec_device *ec_dev; in cros_ec_sensorhub_event() local
1044 struct cros_ec_device *ec_dev = sensorhub->ec->ec_dev; in cros_ec_sensorhub_ring_remove() local
/openbmc/linux/drivers/power/supply/
H A Dcros_peripheral_charger.c40 struct cros_ec_dev *ec_dev; member
62 struct cros_ec_dev *ec_dev = charger->ec_dev; in cros_pchg_ec_command() local
244 struct cros_ec_device *ec_dev = data; in cros_ec_notify() local
264 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_pchg_probe() local
H A Dcros_usbpd-charger.c48 struct cros_ec_dev *ec_dev; member
104 struct cros_ec_dev *ec_dev = charger->ec_dev; in cros_usbpd_charger_ec_command() local
541 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_usbpd_charger_probe() local
/openbmc/linux/drivers/input/keyboard/
H A Dcros_ec_keyb.c349 static int cros_ec_keyb_info(struct cros_ec_device *ec_dev, in cros_ec_keyb_info()
408 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_query_switches() local
462 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_bs() local
592 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_matrix() local
/openbmc/linux/drivers/iio/pressure/
H A Dcros_ec_baro.c126 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_baro_probe() local
/openbmc/linux/drivers/regulator/
H A Dcros-ec-regulator.c17 struct cros_ec_device *ec_dev; member
/openbmc/linux/drivers/iio/proximity/
H A Dcros_ec_mkbp_proximity.c59 static int cros_ec_mkbp_proximity_query(struct cros_ec_device *ec_dev, in cros_ec_mkbp_proximity_query()
/openbmc/linux/drivers/rtc/
H A Drtc-cros-ec.c318 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_rtc_probe() local

12