Home
last modified time | relevance | path

Searched refs:cros_ec_device (Results 1 – 25 of 26) sorted by relevance

12

/linux/include/linux/platform_data/
H A Dcros_ec_proto.h169 struct cros_ec_device { struct
174 int (*cmd_readmem)(struct cros_ec_device *ec, unsigned int offset, argument
191 int (*cmd_xfer)(struct cros_ec_device *ec, argument
193 int (*pkt_xfer)(struct cros_ec_device *ec, argument
242 struct cros_ec_device *ec_dev;
252 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev,
255 int cros_ec_check_result(struct cros_ec_device *ec_dev,
258 int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
261 int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev,
264 int cros_ec_rwsig_continue(struct cros_ec_device *ec_dev);
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_proto.c59 static int prepare_tx(struct cros_ec_device *ec_dev, in prepare_tx()
92 static int prepare_tx_legacy(struct cros_ec_device *ec_dev, in prepare_tx_legacy()
114 static int cros_ec_xfer_command(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_ec_xfer_command()
117 int (*xfer_fxn)(struct cros_ec_device *ec, struct cros_ec_command *msg); in cros_ec_xfer_command()
141 static int cros_ec_wait_until_complete(struct cros_ec_device *ec_dev, uint32_t *result) in cros_ec_wait_until_complete()
183 static int cros_ec_send_command(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_ec_send_command()
203 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev, in cros_ec_prepare_tx()
226 int cros_ec_check_result(struct cros_ec_device *ec_dev, in cros_ec_check_result()
256 static int cros_ec_get_host_event_wake_mask(struct cros_ec_device *ec_dev, uint32_t *mask) in cros_ec_get_host_event_wake_mask()
292 int cros_ec_rwsig_continue(struct cros_ec_device *ec_dev) in cros_ec_rwsig_continue()
[all …]
H A Dcros_ec_proto_test_util.h34 int cros_kunit_ec_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg);
35 int cros_kunit_ec_cmd_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg);
36 int cros_kunit_ec_pkt_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg);
46 int cros_kunit_readmem_mock(struct cros_ec_device *ec_dev, unsigned int offset,
H A Dcros_ec_proto_test.c19 struct cros_ec_device ec_dev;
29 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_legacy_normal()
72 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize()
87 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_normal()
128 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_bad_msg_outsize()
141 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_check_result()
181 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_pretest()
196 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_normal()
350 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_no_pd_return_error()
415 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_no_pd_return0()
[all …]
H A Dcros_ec_proto_test_util.c24 int cros_kunit_ec_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_xfer_mock()
52 int cros_kunit_ec_cmd_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_cmd_xfer_mock()
58 int cros_kunit_ec_pkt_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_kunit_ec_pkt_xfer_mock()
106 int cros_kunit_readmem_mock(struct cros_ec_device *ec_dev, unsigned int offset, in cros_kunit_readmem_mock()
H A Dcros_usbpd_notify.c24 struct cros_ec_device *ec;
59 struct cros_ec_device *ec_dev) in cros_usbpd_get_event_and_notify()
103 struct cros_ec_device *ec_dev; in cros_usbpd_notify_probe_acpi()
182 struct cros_ec_device *ec_dev = (struct cros_ec_device *)data; in cros_usbpd_notify_plat()
H A Dcros_ec_debugfs.c208 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_pdinfo_read()
246 static bool cros_ec_uptime_is_supported(struct cros_ec_device *ec_dev) in cros_ec_uptime_is_supported()
267 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_uptime_read()
398 static int cros_ec_get_panicinfo(struct cros_ec_device *ec_dev, uint8_t *data, in cros_ec_get_panicinfo()
427 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_create_panicinfo()
H A Dcros_ec_vbc.c22 struct cros_ec_device *ecdev = ec->ec_dev; in vboot_context_read()
66 struct cros_ec_device *ecdev = ec->ec_dev; in vboot_context_write()
H A Dcros_ec_chardev.c42 struct cros_ec_device *ec_dev;
126 struct cros_ec_device *ec_dev; in cros_ec_chardev_mkbp_event()
364 struct cros_ec_device *ec_dev = priv->pdata->ec_dev; in cros_ec_chardev_ioctl_readmem()
473 struct cros_ec_device *ec_dev = pdata->ec_dev; in cros_ec_chardev_remove()
H A Dcros_kbd_led_backlight.c23 struct cros_ec_device *ec;
122 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in keyboard_led_init_ec_pwm_mfd()
/linux/drivers/iio/proximity/
H A Dcros_ec_mkbp_proximity.c26 struct cros_ec_device *ec;
58 static int cros_ec_mkbp_proximity_query(struct cros_ec_device *ec_dev, in cros_ec_mkbp_proximity_query()
97 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_push_event()
121 struct cros_ec_device *ec = _ec; in cros_ec_mkbp_proximity_notify()
143 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_read_raw()
184 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_resume()
204 struct cros_ec_device *ec = dev_get_drvdata(dev->parent); in cros_ec_mkbp_proximity_probe()
239 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_remove()
/linux/drivers/rtc/
H A Drtc-cros-ec.c28 struct cros_ec_device *cros_ec;
34 static int cros_ec_rtc_get(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_get()
53 static int cros_ec_rtc_set(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_set()
74 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_read_time()
93 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_set_time()
110 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_read_alarm()
140 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_set_alarm()
197 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_alarm_irq_enable()
259 struct cros_ec_device *cros_ec; in cros_ec_rtc_event()
313 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_rtc_probe()
/linux/drivers/gpio/
H A Dgpio-cros-ec.c29 struct cros_ec_device *cros_ec = gpiochip_get_data(gc); in cros_ec_gpio_set()
46 struct cros_ec_device *cros_ec = gpiochip_get_data(gc); in cros_ec_gpio_get()
72 struct cros_ec_device *cros_ec = gpiochip_get_data(gc); in cros_ec_gpio_get_direction()
97 static int cros_ec_gpio_init_names(struct cros_ec_device *cros_ec, struct gpio_chip *gc) in cros_ec_gpio_init_names()
142 static int cros_ec_gpio_ngpios(struct cros_ec_device *cros_ec) in cros_ec_gpio_ngpios()
163 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_gpio_probe()
/linux/drivers/hwmon/
H A Dcros_ec_hwmon.c27 struct cros_ec_device *cros_ec;
42 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()
55 static int cros_ec_hwmon_read_pwm_value(struct cros_ec_device *cros_ec, u8 index, u8 *pwm_value) in cros_ec_hwmon_read_pwm_value()
72 static int cros_ec_hwmon_read_pwm_enable(struct cros_ec_device *cros_ec, u8 index, in cros_ec_hwmon_read_pwm_enable()
91 static int cros_ec_hwmon_read_fan_target(struct cros_ec_device *cros_ec, u16 *speed) in cros_ec_hwmon_read_fan_target()
105 static int cros_ec_hwmon_read_temp(struct cros_ec_device *cros_ec, u8 index, u8 *temp) in cros_ec_hwmon_read_temp()
121 static int cros_ec_hwmon_read_temp_threshold(struct cros_ec_device *cros_ec, u8 index, in cros_ec_hwmon_read_temp_threshold()
265 static int cros_ec_hwmon_set_fan_pwm_val(struct cros_ec_device *cros_ec, u8 index, u8 val) in cros_ec_hwmon_set_fan_pwm_val()
280 static int cros_ec_hwmon_write_pwm_input(struct cros_ec_device *cros_ec, u8 index, u8 val) in cros_ec_hwmon_write_pwm_input()
294 static int cros_ec_hwmon_write_pwm_enable(struct cros_ec_device *cros_ec, u8 index, u8 val) in cros_ec_hwmon_write_pwm_enable()
[all …]
/linux/drivers/media/cec/platform/cros-ec/
H A Dcros-ec-cec.c51 struct cros_ec_device *cros_ec;
72 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_message()
99 struct cros_ec_device *cros_ec = port->cros_ec_cec->cros_ec; in cros_ec_cec_read_message()
119 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_event()
150 struct cros_ec_device *cros_ec; in cros_ec_cec_event()
172 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_set_log_addr()
196 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_transmit()
227 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_adap_enable()
417 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_get_write_cmd_version()
499 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_cec_probe()
/linux/drivers/watchdog/
H A Dcros_ec_wdt.c23 static int cros_ec_wdt_send_cmd(struct cros_ec_device *cros_ec, in cros_ec_wdt_send_cmd()
49 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_ping()
63 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_start()
79 struct cros_ec_device *cros_ec = watchdog_get_drvdata(wdd); in cros_ec_wdt_stop()
122 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_wdt_probe()
/linux/drivers/leds/
H A Dleds-cros_ec.c50 struct cros_ec_device *cros_ec;
64 static int cros_ec_led_send_cmd(struct cros_ec_device *cros_ec, in cros_ec_led_send_cmd()
160 static int cros_ec_led_probe_one(struct device *dev, struct cros_ec_device *cros_ec, in cros_ec_led_probe_one()
231 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_led_probe()
/linux/drivers/power/supply/
H A Dcros_charge-control.c34 struct cros_ec_device *cros_ec;
46 static int cros_chctl_send_charge_control_cmd(struct cros_ec_device *cros_ec, in cros_chctl_send_charge_control_cmd()
248 static int cros_chctl_fwk_charge_control_versions(struct cros_ec_device *cros_ec) in cros_chctl_fwk_charge_control_versions()
260 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_chctl_probe()
H A Dcros_peripheral_charger.c41 struct cros_ec_device *ec_device;
244 struct cros_ec_device *ec_dev = data; in cros_ec_notify()
273 struct cros_ec_device *ec_device = ec_dev->ec_dev; in cros_pchg_probe()
H A Dcros_usbpd-charger.c48 struct cros_ec_device *ec_device;
363 struct cros_ec_device *ec_device = charger->ec_device; in cros_usbpd_charger_get_prop()
540 struct cros_ec_device *ec_device = ec_dev->ec_dev; in cros_usbpd_charger_probe()
/linux/drivers/hid/
H A Dhid-google-hammer.c55 static int cbas_ec_query_base(struct cros_ec_device *ec_dev, bool get_state, in cbas_ec_query_base()
96 struct cros_ec_device *ec = _notify; in cbas_ec_notify()
137 struct cros_ec_device *ec = dev_get_drvdata(dev->parent); in cbas_ec_resume()
178 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in __cbas_ec_probe()
258 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cbas_ec_remove()
/linux/drivers/extcon/
H A Dextcon-usbc-cros-ec.c24 struct cros_ec_device *ec;
367 struct cros_ec_device *ec; in extcon_cros_ec_event()
386 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in extcon_cros_ec_probe()
/linux/drivers/i2c/busses/
H A Di2c-cros-ec-tunnel.c30 struct cros_ec_device *ec;
244 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in ec_i2c_probe()
/linux/include/linux/iio/common/
H A Dcros_ec_sensors_core.h61 struct cros_ec_device *ec;
/linux/sound/soc/codecs/
H A Dcros_ec_codec.c34 struct cros_ec_device *ec_device;
77 static int send_ec_host_command(struct cros_ec_device *ec_dev, uint32_t cmd, in send_ec_host_command()
963 struct cros_ec_device *ec_device = dev_get_drvdata(pdev->dev.parent); in cros_ec_codec_platform_probe()

12