Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/platform/chrome/
Dcros_ec_lightbar.c86 static struct cros_ec_command *alloc_lightbar_cmd_msg(struct cros_ec_dev *ec) in alloc_lightbar_cmd_msg()
106 static int get_lightbar_version(struct cros_ec_dev *ec, in get_lightbar_version()
161 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in version_show()
183 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in brightness_store()
222 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in led_rgb_store()
291 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in sequence_show()
320 static int lb_send_empty_cmd(struct cros_ec_dev *ec, uint8_t cmd) in lb_send_empty_cmd()
348 static int lb_manual_suspend_ctrl(struct cros_ec_dev *ec, uint8_t enable) in lb_manual_suspend_ctrl()
385 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in sequence_store()
428 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.c59 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in reboot_store()
120 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in version_show()
205 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in flashinfo_show()
236 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in kb_wake_angle_show()
269 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in kb_wake_angle_store()
317 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in cros_ec_ctrl_visible()
332 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_sysfs_probe()
345 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_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_ec_debugfs.c45 struct cros_ec_dev *ec;
67 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_console_log_work()
319 static int ec_read_version_supported(struct cros_ec_dev *ec) in ec_read_version_supported()
350 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_create_console_log()
485 struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); in cros_ec_debugfs_probe()
538 struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); in cros_ec_debugfs_remove()
548 struct cros_ec_dev *ec = dev_get_drvdata(dev); in cros_ec_debugfs_suspend()
558 struct cros_ec_dev *ec = dev_get_drvdata(dev); in cros_ec_debugfs_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.c2374 static struct cros_ec_dev ec; in cros_ec_proto_test_check_features_cached()
2399 static struct cros_ec_dev ec; in cros_ec_proto_test_check_features_not_cached()
2452 static struct cros_ec_dev ec; in cros_ec_proto_test_get_sensor_count_normal()
2497 static struct cros_ec_dev ec; in cros_ec_proto_test_get_sensor_count_xfer_error()
2537 static struct cros_ec_dev ec; in cros_ec_proto_test_get_sensor_count_legacy()
Dcros_ec_typec.c1167 struct cros_ec_dev *ec_dev = NULL; in cros_typec_probe()
/Linux-v6.6/include/linux/platform_data/
Dcros_ec_proto.h225 struct cros_ec_dev { struct
235 #define to_cros_ec_dev(dev) container_of(dev, struct cros_ec_dev, class_dev) argument
257 bool cros_ec_check_features(struct cros_ec_dev *ec, int feature);
259 int cros_ec_get_sensor_count(struct cros_ec_dev *ec);
Dcros_ec_sensorhub.h149 struct cros_ec_dev *ec;
/Linux-v6.6/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()
264 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-v6.6/drivers/mfd/
Dcros_ec_dev.c141 struct cros_ec_dev *ec = kzalloc(sizeof(*ec), GFP_KERNEL); in ec_device_probe()
293 struct cros_ec_dev *ec = dev_get_drvdata(&pdev->dev); in ec_device_remove()
DMakefile15 obj-$(CONFIG_MFD_CROS_EC_DEV) += cros_ec_dev.o
/Linux-v6.6/drivers/iio/pressure/
Dcros_ec_baro.c126 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_baro_probe()
/Linux-v6.6/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors_core.c251 struct cros_ec_dev *ec = sensor_hub->ec; in cros_ec_sensors_core_init()
383 struct cros_ec_dev *ec = sensor_hub->ec; in cros_ec_sensors_core_register()
/Linux-v6.6/drivers/media/cec/platform/cros-ec/
Dcros-ec-cec.c277 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_cec_probe()
/Linux-v6.6/drivers/rtc/
Drtc-cros-ec.c318 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_rtc_probe()
/Linux-v6.6/Documentation/userspace-api/ioctl/
Dioctl-number.rst372 0xEC 00-01 drivers/platform/chrome/cros_ec_dev.h ChromeOS EC driver