/linux-6.1.9/drivers/platform/chrome/ |
D | cros_ec_lightbar.c | 85 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 …]
|
D | cros_ec_chardev.c | 34 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()
|
D | cros_ec_sysfs.c | 60 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()
|
D | cros_ec_vbc.c | 21 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()
|
D | cros_ec_debugfs.c | 43 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()
|
D | cros_ec_sensorhub.c | 54 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()
|
D | cros_usbpd_logger.c | 30 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()
|
D | cros_usbpd_notify.c | 188 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()
|
D | cros_ec_sensorhub_ring.c | 769 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()
|
D | cros_ec_proto.c | 903 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()
|
D | cros_ec_proto_test.c | 2373 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()
|
D | cros_ec_typec.c | 1182 struct cros_ec_dev *ec_dev = NULL; in cros_typec_probe()
|
/linux-6.1.9/include/linux/platform_data/ |
D | cros_ec_proto.h | 203 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);
|
D | cros_ec_sensorhub.h | 149 struct cros_ec_dev *ec;
|
/linux-6.1.9/drivers/power/supply/ |
D | cros_peripheral_charger.c | 40 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()
|
D | cros_usbpd-charger.c | 47 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/ |
D | cros_ec_dev.c | 147 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()
|
D | Makefile | 16 obj-$(CONFIG_MFD_CROS_EC_DEV) += cros_ec_dev.o
|
/linux-6.1.9/drivers/iio/pressure/ |
D | cros_ec_baro.c | 126 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/ |
D | cros_ec_sensors_core.c | 247 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/ |
D | cros-ec-cec.c | 271 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_cec_probe()
|
/linux-6.1.9/drivers/rtc/ |
D | rtc-cros-ec.c | 319 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/ |
D | ioctl-number.rst | 371 0xEC 00-01 drivers/platform/chrome/cros_ec_dev.h ChromeOS EC driver
|