Home
last modified time | relevance | path

Searched full:cros_ec (Results 1 – 25 of 79) sorted by relevance

1234

/linux-6.12.1/drivers/rtc/
Drtc-cros-ec.c23 * @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/
Dcros-ec-cec.c45 * @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, &params, 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/
Dcros_ec_hwmon.c21 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/
Dgpio-cros-ec.c30 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, &params, 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, &params, 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, &params, 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, &params, 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, &params, in cros_ec_gpio_ngpios()
[all …]
/linux-6.12.1/drivers/watchdog/
Dcros_ec_wdt.c24 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/
Dleds-cros_ec.c51 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/
Dcros_charge-control.c39 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/
DKconfig64 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
Dcros_ec_uart.c20 #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()
Dcros_kbd_led_backlight.c202 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()
DMakefile12 obj-$(CONFIG_CROS_EC) += cros_ec.o
Dcros_ec_trace.h9 #define TRACE_SYSTEM cros_ec
Dcros_ec_proto_test_util.c13 #include "cros_ec.h"
Dcros_ec_sensorhub_trace.h9 #define TRACE_SYSTEM cros_ec
/linux-6.12.1/arch/arm64/boot/dts/qcom/
Dsc7180-trogdor-detachable.dtsi8 /* This file must be included after sc7180-trogdor.dtsi to modify cros_ec */
9 &cros_ec {
Dsc7180-trogdor-clamshell.dtsi8 /* This file must be included after sc7180-trogdor.dtsi to modify cros_ec */
Dsc7280-idp-ec-h1.dtsi14 cros_ec: ec@0 { label
/linux-6.12.1/Documentation/hwmon/
Dcros_ec_hwmon.rst10 Prefix: 'cros_ec'
/linux-6.12.1/arch/arm/boot/dts/
Dcros-ec-keyboard.dtsi11 &cros_ec {
/linux-6.12.1/Documentation/devicetree/bindings/chrome/
Dgoogle,cros-kbd-led-backlight.yaml27 cros_ec: ec@0 {
Dgoogle,cros-ec-typec.yaml46 cros_ec: ec@0 {
/linux-6.12.1/arch/arm64/boot/dts/mediatek/
Dmt8183-kukui-jacuzzi-fennel-sku1.dts18 label = "cros_ec::kbd_backlight";
Dmt8183-kukui-jacuzzi.dtsi7 /* Must come after mt8183-kukui.dtsi to modify cros_ec */
84 &cros_ec {
/linux-6.12.1/Documentation/devicetree/bindings/regulator/
Dgoogle,cros-ec-regulator.yaml39 cros_ec: ec@0 {
/linux-6.12.1/drivers/media/cec/platform/
DKconfig7 depends on CROS_EC

1234