/linux-6.12.1/drivers/rtc/ |
D | rtc-cros-ec.c | 23 * @cros_ec: Pointer to EC device 29 struct cros_ec_device *cros_ec; member 35 static int cros_ec_rtc_get(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_get() argument 48 ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); in cros_ec_rtc_get() 57 static int cros_ec_rtc_set(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_set() argument 71 ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); in cros_ec_rtc_set() 81 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_read_time() local 85 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, &time); in cros_ec_rtc_read_time() 100 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_set_time() local 104 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_VALUE, (u32)time); in cros_ec_rtc_set_time() [all …]
|
/linux-6.12.1/drivers/media/cec/platform/cros-ec/ |
D | cros-ec-cec.c | 45 * @cros_ec: Pointer to EC device 52 struct cros_ec_device *cros_ec; member 73 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_message() local 74 uint8_t *cec_message = cros_ec->event_data.data.cec_message; in handle_cec_message() 75 unsigned int len = cros_ec->event_size; in handle_cec_message() 88 dev_err(cros_ec->dev, in handle_cec_message() 100 struct cros_ec_device *cros_ec = port->cros_ec_cec->cros_ec; in cros_ec_cec_read_message() local 107 ret = cros_ec_cmd(cros_ec, 0, EC_CMD_CEC_READ_MSG, ¶ms, in cros_ec_cec_read_message() 110 dev_err(cros_ec->dev, in cros_ec_cec_read_message() 120 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_event() local [all …]
|
/linux-6.12.1/drivers/hwmon/ |
D | cros_ec_hwmon.c | 21 struct cros_ec_device *cros_ec; member 26 static int cros_ec_hwmon_read_fan_speed(struct cros_ec_device *cros_ec, u8 index, u16 *speed) in cros_ec_hwmon_read_fan_speed() argument 31 ret = cros_ec_cmd_readmem(cros_ec, EC_MEMMAP_FAN + index * 2, 2, &__speed); in cros_ec_hwmon_read_fan_speed() 39 static int cros_ec_hwmon_read_temp(struct cros_ec_device *cros_ec, u8 index, u8 *temp) in cros_ec_hwmon_read_temp() argument 49 ret = cros_ec_cmd_readmem(cros_ec, offset, 1, temp); in cros_ec_hwmon_read_temp() 83 ret = cros_ec_hwmon_read_fan_speed(priv->cros_ec, channel, &speed); in cros_ec_hwmon_read() 91 ret = cros_ec_hwmon_read_fan_speed(priv->cros_ec, channel, &speed); in cros_ec_hwmon_read() 97 ret = cros_ec_hwmon_read_temp(priv->cros_ec, channel, &temp); in cros_ec_hwmon_read() 105 ret = cros_ec_hwmon_read_temp(priv->cros_ec, channel, &temp); in cros_ec_hwmon_read() 203 if (cros_ec_hwmon_read_temp(priv->cros_ec, i, &temp) < 0) in cros_ec_hwmon_probe_temp_sensors() [all …]
|
/linux-6.12.1/drivers/gpio/ |
D | gpio-cros-ec.c | 30 struct cros_ec_device *cros_ec = gpiochip_get_data(gc); in cros_ec_gpio_set() local 41 ret = cros_ec_cmd(cros_ec, 0, EC_CMD_GPIO_SET, ¶ms, in cros_ec_gpio_set() 50 struct cros_ec_device *cros_ec = gpiochip_get_data(gc); in cros_ec_gpio_get() local 60 ret = cros_ec_cmd(cros_ec, 0, EC_CMD_GPIO_GET, ¶ms, in cros_ec_gpio_get() 76 struct cros_ec_device *cros_ec = gpiochip_get_data(gc); in cros_ec_gpio_get_direction() local 84 ret = cros_ec_cmd(cros_ec, 1, EC_CMD_GPIO_GET, ¶ms, in cros_ec_gpio_get_direction() 101 static int cros_ec_gpio_init_names(struct cros_ec_device *cros_ec, struct gpio_chip *gc) in cros_ec_gpio_init_names() argument 126 ret = cros_ec_cmd(cros_ec, 1, EC_CMD_GPIO_GET, ¶ms, in cros_ec_gpio_init_names() 146 static int cros_ec_gpio_ngpios(struct cros_ec_device *cros_ec) in cros_ec_gpio_ngpios() argument 154 ret = cros_ec_cmd(cros_ec, 1, EC_CMD_GPIO_GET, ¶ms, in cros_ec_gpio_ngpios() [all …]
|
/linux-6.12.1/drivers/watchdog/ |
D | cros_ec_wdt.c | 24 static int cros_ec_wdt_send_cmd(struct cros_ec_device *cros_ec, in cros_ec_wdt_send_cmd() argument 43 ret = cros_ec_cmd_xfer_status(cros_ec, &buf.msg); in cros_ec_wdt_send_cmd() 54 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_ping() local 59 ret = cros_ec_wdt_send_cmd(cros_ec, &arg); in cros_ec_wdt_ping() 68 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_start() local 75 ret = cros_ec_wdt_send_cmd(cros_ec, &arg); in cros_ec_wdt_start() 84 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_stop() local 89 ret = cros_ec_wdt_send_cmd(cros_ec, &arg); in cros_ec_wdt_stop() 127 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_wdt_probe() local 137 ret = cros_ec_wdt_send_cmd(cros_ec, &arg); in cros_ec_wdt_probe() [all …]
|
/linux-6.12.1/drivers/leds/ |
D | leds-cros_ec.c | 51 struct cros_ec_device *cros_ec; member 65 static int cros_ec_led_send_cmd(struct cros_ec_device *cros_ec, in cros_ec_led_send_cmd() argument 82 ret = cros_ec_cmd_xfer_status(cros_ec, &buf.msg); in cros_ec_led_send_cmd() 99 return cros_ec_led_send_cmd(priv->cros_ec, &arg); in cros_ec_led_trigger_activate() 129 return cros_ec_led_send_cmd(priv->cros_ec, &arg); in cros_ec_led_brightness_set_blocking() 177 static int cros_ec_led_probe_one(struct device *dev, struct cros_ec_device *cros_ec, in cros_ec_led_probe_one() argument 189 ret = cros_ec_led_send_cmd(cros_ec, &arg); in cros_ec_led_probe_one() 206 priv->cros_ec = cros_ec; in cros_ec_led_probe_one() 246 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_led_probe() local 254 ret = cros_ec_led_probe_one(dev, cros_ec, i); in cros_ec_led_probe()
|
/linux-6.12.1/drivers/power/supply/ |
D | cros_charge-control.c | 39 struct cros_ec_device *cros_ec; member 56 static int cros_chctl_send_charge_control_cmd(struct cros_ec_device *cros_ec, in cros_chctl_send_charge_control_cmd() argument 81 return cros_ec_cmd_xfer_status(cros_ec, &buf.msg); in cros_chctl_send_charge_control_cmd() 114 return cros_chctl_send_charge_control_cmd(priv->cros_ec, priv->cmd_version, &req); in cros_chctl_configure_ec() 264 static int cros_chctl_fwk_charge_control_versions(struct cros_ec_device *cros_ec) in cros_chctl_fwk_charge_control_versions() argument 269 return cros_ec_get_cmd_versions(cros_ec, 0x3E03 /* FW_EC_CMD_CHARGE_LIMIT */); in cros_chctl_fwk_charge_control_versions() 276 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_chctl_probe() local 281 ret = cros_chctl_fwk_charge_control_versions(cros_ec); in cros_chctl_probe() 293 ret = cros_ec_get_cmd_versions(cros_ec, EC_CMD_CHARGE_CONTROL); in cros_chctl_probe() 307 priv->cros_ec = cros_ec; in cros_chctl_probe()
|
/linux-6.12.1/drivers/platform/chrome/ |
D | Kconfig | 64 config CROS_EC config 75 module will be called cros_ec. 79 depends on CROS_EC && I2C 89 depends on CROS_EC && RPMSG && OF 101 depends on CROS_EC 114 depends on CROS_EC && SPI 124 depends on CROS_EC && ACPI && SERIAL_DEV_BUS 134 depends on CROS_EC && ACPI && (X86 || COMPILE_TEST) 153 depends on LEDS_CLASS && (ACPI || CROS_EC || MFD_CROS_EC_DEV) 305 depends on KUNIT && CROS_EC
|
D | cros_ec_uart.c | 20 #include "cros_ec.h" 54 * @wait_queue: Wait queue EC response where the cros_ec sends request 101 * buffer in din by cros_ec. This will ensure that if EC sends more in cros_ec_uart_rx_bytes() 277 /* Initialize ec_dev for cros_ec */ in cros_ec_uart_probe()
|
D | cros_kbd_led_backlight.c | 202 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in keyboard_led_init_ec_pwm_mfd() local 205 keyboard_led->ec = cros_ec; in keyboard_led_init_ec_pwm_mfd()
|
D | Makefile | 12 obj-$(CONFIG_CROS_EC) += cros_ec.o
|
D | cros_ec_trace.h | 9 #define TRACE_SYSTEM cros_ec
|
D | cros_ec_proto_test_util.c | 13 #include "cros_ec.h"
|
D | cros_ec_sensorhub_trace.h | 9 #define TRACE_SYSTEM cros_ec
|
/linux-6.12.1/arch/arm64/boot/dts/qcom/ |
D | sc7180-trogdor-detachable.dtsi | 8 /* This file must be included after sc7180-trogdor.dtsi to modify cros_ec */ 9 &cros_ec {
|
D | sc7180-trogdor-clamshell.dtsi | 8 /* This file must be included after sc7180-trogdor.dtsi to modify cros_ec */
|
D | sc7280-idp-ec-h1.dtsi | 14 cros_ec: ec@0 { label
|
/linux-6.12.1/Documentation/hwmon/ |
D | cros_ec_hwmon.rst | 10 Prefix: 'cros_ec'
|
/linux-6.12.1/arch/arm/boot/dts/ |
D | cros-ec-keyboard.dtsi | 11 &cros_ec {
|
/linux-6.12.1/Documentation/devicetree/bindings/chrome/ |
D | google,cros-kbd-led-backlight.yaml | 27 cros_ec: ec@0 {
|
D | google,cros-ec-typec.yaml | 46 cros_ec: ec@0 {
|
/linux-6.12.1/arch/arm64/boot/dts/mediatek/ |
D | mt8183-kukui-jacuzzi-fennel-sku1.dts | 18 label = "cros_ec::kbd_backlight";
|
D | mt8183-kukui-jacuzzi.dtsi | 7 /* Must come after mt8183-kukui.dtsi to modify cros_ec */ 84 &cros_ec {
|
/linux-6.12.1/Documentation/devicetree/bindings/regulator/ |
D | google,cros-ec-regulator.yaml | 39 cros_ec: ec@0 {
|
/linux-6.12.1/drivers/media/cec/platform/ |
D | Kconfig | 7 depends on CROS_EC
|