Home
last modified time | relevance | path

Searched refs:cros_ec_dev (Results 1 – 23 of 23) sorted by relevance

/linux-6.1.9/drivers/platform/chrome/
Dcros_ec_lightbar.c85 static struct cros_ec_command *alloc_lightbar_cmd_msg(struct cros_ec_dev *ec) in alloc_lightbar_cmd_msg()
105 static int get_lightbar_version(struct cros_ec_dev *ec, in get_lightbar_version()
160 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in version_show()
182 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in brightness_store()
221 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in led_rgb_store()
290 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in sequence_show()
321 static int lb_send_empty_cmd(struct cros_ec_dev *ec, uint8_t cmd) in lb_send_empty_cmd()
349 static int lb_manual_suspend_ctrl(struct cros_ec_dev *ec, uint8_t enable) in lb_manual_suspend_ctrl()
386 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in sequence_store()
429 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in program_store()
[all …]
Dcros_ec_chardev.c34 struct cros_ec_dev *ec_dev;
39 struct cros_ec_dev *ec_dev;
54 static int ec_get_version(struct cros_ec_dev *ec, char *str, int maxlen) in ec_get_version()
163 struct cros_ec_dev *ec_dev = dev_get_drvdata(mdev->parent); in cros_ec_chardev_open()
206 struct cros_ec_dev *ec_dev = priv->ec_dev; in cros_ec_chardev_read()
256 struct cros_ec_dev *ec_dev = priv->ec_dev; in cros_ec_chardev_release()
274 static long cros_ec_chardev_ioctl_xcmd(struct cros_ec_dev *ec, void __user *arg) in cros_ec_chardev_ioctl_xcmd()
316 static long cros_ec_chardev_ioctl_readmem(struct cros_ec_dev *ec, in cros_ec_chardev_ioctl_readmem()
348 struct cros_ec_dev *ec = priv->ec_dev; in cros_ec_chardev_ioctl()
379 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_chardev_probe()
Dcros_ec_sysfs.c60 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in reboot_store()
121 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in version_show()
213 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in flashinfo_show()
244 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in kb_wake_angle_show()
277 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in kb_wake_angle_store()
325 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in cros_ec_ctrl_visible()
340 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_sysfs_probe()
353 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_sysfs_remove()
Dcros_ec_vbc.c21 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in vboot_context_read()
61 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in vboot_context_write()
111 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_vbc_probe()
126 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_vbc_remove()
Dcros_ec_debugfs.c43 struct cros_ec_dev *ec;
64 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_console_log_work()
316 static int ec_read_version_supported(struct cros_ec_dev *ec) in ec_read_version_supported()
347 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_create_console_log()
442 struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); in cros_ec_debugfs_probe()
489 struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); in cros_ec_debugfs_remove()
499 struct cros_ec_dev *ec = dev_get_drvdata(dev); in cros_ec_debugfs_suspend()
509 struct cros_ec_dev *ec = dev_get_drvdata(dev); in cros_ec_debugfs_resume()
Dcros_ec_sensorhub.c54 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_register()
127 struct cros_ec_dev *ec = dev_get_drvdata(dev->parent); in cros_ec_sensorhub_probe()
228 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_suspend()
238 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_resume()
Dcros_usbpd_logger.c30 struct cros_ec_dev *ec_dev;
64 struct cros_ec_dev *ec_dev = logger->ec_dev; in ec_get_log_entry()
197 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_usbpd_logger_probe()
Dcros_usbpd_notify.c188 struct cros_ec_dev *ecdev = dev_get_drvdata(dev->parent); in cros_usbpd_notify_probe_plat()
215 struct cros_ec_dev *ecdev = dev_get_drvdata(dev->parent); in cros_usbpd_notify_remove_plat()
Dcros_ec_sensorhub_ring.c769 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_ring_handler()
1001 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_ring_add()
Dcros_ec_proto.c903 bool cros_ec_check_features(struct cros_ec_dev *ec, int feature) in cros_ec_check_features()
932 int cros_ec_get_sensor_count(struct cros_ec_dev *ec) in cros_ec_get_sensor_count()
Dcros_ec_proto_test.c2373 struct cros_ec_dev ec; in cros_ec_proto_test_check_features_cached()
2398 struct cros_ec_dev ec; in cros_ec_proto_test_check_features_not_cached()
2451 struct cros_ec_dev ec; in cros_ec_proto_test_get_sensor_count_normal()
2496 struct cros_ec_dev ec; in cros_ec_proto_test_get_sensor_count_xfer_error()
2536 struct cros_ec_dev ec; in cros_ec_proto_test_get_sensor_count_legacy()
Dcros_ec_typec.c1182 struct cros_ec_dev *ec_dev = NULL; in cros_typec_probe()
/linux-6.1.9/include/linux/platform_data/
Dcros_ec_proto.h203 struct cros_ec_dev { struct
213 #define to_cros_ec_dev(dev) container_of(dev, struct cros_ec_dev, class_dev) argument
235 bool cros_ec_check_features(struct cros_ec_dev *ec, int feature);
237 int cros_ec_get_sensor_count(struct cros_ec_dev *ec);
Dcros_ec_sensorhub.h149 struct cros_ec_dev *ec;
/linux-6.1.9/drivers/power/supply/
Dcros_peripheral_charger.c40 struct cros_ec_dev *ec_dev;
62 struct cros_ec_dev *ec_dev = charger->ec_dev; in cros_pchg_ec_command()
265 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_pchg_probe()
Dcros_usbpd-charger.c47 struct cros_ec_dev *ec_dev;
103 struct cros_ec_dev *ec_dev = charger->ec_dev; in cros_usbpd_charger_ec_command()
540 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_usbpd_charger_probe()
/linux-6.1.9/drivers/mfd/
Dcros_ec_dev.c147 struct cros_ec_dev *ec = kzalloc(sizeof(*ec), GFP_KERNEL); in ec_device_probe()
299 struct cros_ec_dev *ec = dev_get_drvdata(&pdev->dev); in ec_device_remove()
DMakefile16 obj-$(CONFIG_MFD_CROS_EC_DEV) += cros_ec_dev.o
/linux-6.1.9/drivers/iio/pressure/
Dcros_ec_baro.c126 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_baro_probe()
/linux-6.1.9/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors_core.c247 struct cros_ec_dev *ec = sensor_hub->ec; in cros_ec_sensors_core_init()
379 struct cros_ec_dev *ec = sensor_hub->ec; in cros_ec_sensors_core_register()
/linux-6.1.9/drivers/media/cec/platform/cros-ec/
Dcros-ec-cec.c271 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_cec_probe()
/linux-6.1.9/drivers/rtc/
Drtc-cros-ec.c319 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_rtc_probe()
/linux-6.1.9/Documentation/userspace-api/ioctl/
Dioctl-number.rst371 0xEC 00-01 drivers/platform/chrome/cros_ec_dev.h ChromeOS EC driver