/linux/drivers/platform/chrome/ |
H A D | cros_ec.c | 42 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 D | cros_ec_proto_test.c | 19 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 D | cros_ec_proto.c | 56 static int prepare_tx(struct cros_ec_device *ec_dev, in prepare_tx() 89 static int prepare_tx_legacy(struct cros_ec_device *ec_dev, in prepare_tx_legacy() 202 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev, in cros_ec_prepare_tx() 225 int cros_ec_check_result(struct cros_ec_device *ec_dev, in cros_ec_check_result() 495 int cros_ec_query_all(struct cros_ec_device *ec_dev) in cros_ec_query_all() 666 int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_status() 707 static int get_next_event(struct cros_ec_device *ec_dev) in get_next_event() 777 int cros_ec_get_next_event(struct cros_ec_device *ec_dev, in cros_ec_get_next_event() 881 u32 cros_ec_get_host_event(struct cros_ec_device *ec_dev) in cros_ec_get_host_event() 952 struct cros_ec_device *ec_dev = ec->ec_dev; in cros_ec_get_sensor_count() local [all …]
|
H A D | cros_ec_spi.c | 98 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 D | cros_ec_rpmsg.c | 65 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 D | cros_ec_chardev.c | 35 struct cros_ec_dev *ec_dev; member 40 struct cros_ec_dev *ec_dev; member 99 struct cros_ec_device *ec_dev = priv->ec_dev->ec_dev; in cros_ec_chardev_mkbp_event() local 164 struct cros_ec_dev *ec_dev = dev_get_drvdata(mdev->parent); in cros_ec_chardev_open() local 207 struct cros_ec_dev *ec_dev = priv->ec_dev; in cros_ec_chardev_read() local 257 struct cros_ec_dev *ec_dev = priv->ec_dev; in cros_ec_chardev_release() local 320 struct cros_ec_device *ec_dev = ec->ec_dev; in cros_ec_chardev_ioctl_readmem() local 380 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_chardev_probe() local
|
H A D | cros_ec_i2c.c | 52 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 D | cros_ec_uart.c | 88 struct cros_ec_device *ec_dev = serdev_device_get_drvdata(serdev); in cros_ec_uart_rx_bytes() local 129 static int cros_ec_uart_pkt_xfer(struct cros_ec_device *ec_dev, in cros_ec_uart_pkt_xfer() 254 struct cros_ec_device *ec_dev; in cros_ec_uart_probe() local 309 struct cros_ec_device *ec_dev = serdev_device_get_drvdata(serdev); in cros_ec_uart_remove() local 316 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_uart_suspend() local 323 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_uart_resume() local
|
H A D | cros_ec_proto_test_util.c | 24 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 D | cros_ec_lpc.c | 406 struct cros_ec_device *ec_dev = data; in cros_ec_lpc_acpi_notify() local 461 struct cros_ec_device *ec_dev; in cros_ec_lpc_probe() local 617 struct cros_ec_device *ec_dev = platform_get_drvdata(pdev); in cros_ec_lpc_remove() local 740 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_prepare() local 746 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_complete() local 752 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_suspend_late() local 759 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_resume_early() local
|
H A D | cros_usbpd_notify.c | 58 struct cros_ec_device *ec_dev) in cros_usbpd_get_event_and_notify() 102 struct cros_ec_device *ec_dev; in cros_usbpd_notify_probe_acpi() local 170 struct cros_ec_device *ec_dev = (struct cros_ec_device *)data; in cros_usbpd_notify_plat() local
|
H A D | cros_usbpd_logger.c | 31 struct cros_ec_dev *ec_dev; member 65 struct cros_ec_dev *ec_dev = logger->ec_dev; in ec_get_log_entry() local 198 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_usbpd_logger_probe() local
|
H A D | cros_ec_debugfs.c | 209 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_pdinfo_read() local 254 static bool cros_ec_uptime_is_supported(struct cros_ec_device *ec_dev) in cros_ec_uptime_is_supported() 277 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_uptime_read() local 411 static int cros_ec_get_panicinfo(struct cros_ec_device *ec_dev, uint8_t *data, in cros_ec_get_panicinfo() 440 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_create_panicinfo() local
|
H A D | cros_ec_lightbar.c | 533 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_lightbar_probe() local 566 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_lightbar_remove() local 577 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_lightbar_resume() local 587 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_lightbar_suspend() local
|
H A D | cros_ec_ishtp.c | 135 struct cros_ec_device *ec_dev; member 424 static int prepare_cros_ec_rx(struct cros_ec_device *ec_dev, in prepare_cros_ec_rx() 459 static int cros_ec_pkt_xfer_ish(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_ish() 543 struct cros_ec_device *ec_dev; in cros_ec_dev_init() local
|
H A D | cros_ec_vbc.c | 116 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_vbc_probe() local 131 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_vbc_remove() local
|
H A D | cros_ec_sysfs.c | 333 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_sysfs_probe() local 346 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_sysfs_remove() local
|
H A D | cros_ec_sensorhub_ring.c | 947 struct cros_ec_device *ec_dev; in cros_ec_sensorhub_event() local 1072 struct cros_ec_device *ec_dev = sensorhub->ec->ec_dev; in cros_ec_sensorhub_ring_remove() local
|
/linux/drivers/power/supply/ |
H A D | cros_peripheral_charger.c | 41 struct cros_ec_dev *ec_dev; member 63 struct cros_ec_dev *ec_dev = charger->ec_dev; in cros_pchg_ec_command() local 245 struct cros_ec_device *ec_dev = data; in cros_ec_notify() local 265 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_pchg_probe() local
|
H A D | cros_usbpd-charger.c | 48 struct cros_ec_dev *ec_dev; member 93 struct cros_ec_dev *ec_dev = charger->ec_dev; in cros_usbpd_charger_ec_command() local 530 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_usbpd_charger_probe() local
|
/linux/drivers/input/keyboard/ |
H A D | cros_ec_keyb.c | 347 static int cros_ec_keyb_info(struct cros_ec_device *ec_dev, in cros_ec_keyb_info() 406 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_query_switches() local 460 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_bs() local 590 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_matrix() local
|
/linux/drivers/iio/pressure/ |
H A D | cros_ec_baro.c | 126 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_baro_probe() local
|
/linux/drivers/watchdog/ |
H A D | cros_ec_wdt.c | 126 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_wdt_probe() local
|
/linux/drivers/gpio/ |
H A D | gpio-cros-ec.c | 166 struct cros_ec_dev *ec_dev = dev_get_drvdata(parent); in cros_ec_gpio_probe() local
|
/linux/drivers/regulator/ |
H A D | cros-ec-regulator.c | 17 struct cros_ec_device *ec_dev; member
|