/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_lightbar.c | 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() 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() 532 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_lightbar_probe() 565 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_lightbar_remove() 578 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_ec_lightbar_resume() [all …]
|
H A 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()
|
H A D | cros_ec_sysfs.c | 59 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()
|
H A 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()
|
H A 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()
|
H A D | cros_ec_debugfs.c | 45 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() 351 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_create_console_log() 486 struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); in cros_ec_debugfs_probe() 539 struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); in cros_ec_debugfs_remove() 549 struct cros_ec_dev *ec = dev_get_drvdata(dev); in cros_ec_debugfs_suspend() 559 struct cros_ec_dev *ec = dev_get_drvdata(dev); in cros_ec_debugfs_resume()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | cros_ec_proto.c | 905 bool cros_ec_check_features(struct cros_ec_dev *ec, int feature) in cros_ec_check_features() 934 int cros_ec_get_sensor_count(struct cros_ec_dev *ec) in cros_ec_get_sensor_count()
|
/openbmc/linux/include/linux/platform_data/ |
H A D | cros_ec_proto.h | 225 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);
|
H A D | cros_ec_sensorhub.h | 149 struct cros_ec_dev *ec;
|
/openbmc/u-boot/drivers/misc/ |
H A D | cros_ec_lpc.c | 27 static int wait_for_sync(struct cros_ec_dev *dev) in wait_for_sync() 45 struct cros_ec_dev *dev = dev_get_uclass_priv(udev); in cros_ec_lpc_packet() 79 struct cros_ec_dev *dev = dev_get_uclass_priv(udev); in cros_ec_lpc_command() 187 int cros_ec_lpc_init(struct cros_ec_dev *dev, const void *blob) in cros_ec_lpc_init()
|
H A D | cros_ec.c | 136 static int create_proto3_request(struct cros_ec_dev *cdev, in create_proto3_request() 176 static int prepare_proto3_response_buffer(struct cros_ec_dev *cdev, int din_len) in prepare_proto3_response_buffer() 202 static int handle_proto3_response(struct cros_ec_dev *dev, in handle_proto3_response() 250 static int send_command_proto3(struct cros_ec_dev *cdev, in send_command_proto3() 280 static int send_command(struct cros_ec_dev *dev, uint cmd, int cmd_version, in send_command() 320 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in ec_command_inptr() 603 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_interrupt_pending() 717 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_check_version() 914 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_flash_write() 1143 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_register() [all …]
|
H A D | cros_ec_spi.c | 23 struct cros_ec_dev *dev = dev_get_uclass_priv(udev); in cros_ec_spi_packet() 83 struct cros_ec_dev *dev = dev_get_uclass_priv(udev); in cros_ec_spi_command()
|
H A D | cros_ec_i2c.c | 53 struct cros_ec_dev *dev = dev_get_uclass_priv(udev); in cros_ec_i2c_packet() 113 struct cros_ec_dev *dev = dev_get_uclass_priv(udev); in cros_ec_i2c_command()
|
H A D | cros_ec_sandbox.c | 472 struct cros_ec_dev *dev = dev_get_uclass_priv(udev); in cros_ec_sandbox_packet() 515 struct cros_ec_dev *cdev = dev->uclass_priv; in cros_ec_probe()
|
/openbmc/linux/drivers/power/supply/ |
H A 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() 264 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); in cros_pchg_probe()
|
H A D | cros_usbpd-charger.c | 48 struct cros_ec_dev *ec_dev; 104 struct cros_ec_dev *ec_dev = charger->ec_dev; in cros_usbpd_charger_ec_command() 541 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_usbpd_charger_probe()
|
/openbmc/linux/drivers/mfd/ |
H A D | cros_ec_dev.c | 141 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()
|
/openbmc/u-boot/include/ |
H A D | cros_ec.h | 18 struct cros_ec_dev { struct
|
/openbmc/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()
|
/openbmc/linux/drivers/iio/common/cros_ec_sensors/ |
H A D | cros_ec_sensors_core.c | 251 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()
|
/openbmc/linux/drivers/media/cec/platform/cros-ec/ |
H A D | cros-ec-cec.c | 277 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_cec_probe()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-cros-ec.c | 318 struct cros_ec_dev *ec_dev = dev_get_drvdata(pdev->dev.parent); in cros_ec_rtc_probe()
|