Home
last modified time | relevance | path

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

12

/Linux-v5.10/include/linux/platform_data/
Dcros_ec_proto.h136 struct cros_ec_device { struct
142 int (*cmd_readmem)(struct cros_ec_device *ec, unsigned int offset, argument
158 int (*cmd_xfer)(struct cros_ec_device *ec, argument
160 int (*pkt_xfer)(struct cros_ec_device *ec, argument
203 struct cros_ec_device *ec_dev;
213 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev,
216 int cros_ec_check_result(struct cros_ec_device *ec_dev,
219 int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev,
222 int cros_ec_query_all(struct cros_ec_device *ec_dev);
224 int cros_ec_get_next_event(struct cros_ec_device *ec_dev,
[all …]
/Linux-v5.10/drivers/platform/chrome/
Dcros_ec.h11 int cros_ec_register(struct cros_ec_device *ec_dev);
12 int cros_ec_unregister(struct cros_ec_device *ec_dev);
14 int cros_ec_suspend(struct cros_ec_device *ec_dev);
15 int cros_ec_resume(struct cros_ec_device *ec_dev);
17 bool cros_ec_handle_event(struct cros_ec_device *ec_dev);
Dcros_ec.c37 struct cros_ec_device *ec_dev = data; in ec_irq_handler()
54 bool cros_ec_handle_event(struct cros_ec_device *ec_dev) in cros_ec_handle_event()
80 struct cros_ec_device *ec_dev = data; in ec_irq_thread()
90 static int cros_ec_sleep_event(struct cros_ec_device *ec_dev, u8 sleep_event) in cros_ec_sleep_event()
145 struct cros_ec_device *ec_dev = container_of(nb, struct cros_ec_device, in cros_ec_ready_event()
168 int cros_ec_register(struct cros_ec_device *ec_dev) in cros_ec_register()
284 int cros_ec_unregister(struct cros_ec_device *ec_dev) in cros_ec_unregister()
303 int cros_ec_suspend(struct cros_ec_device *ec_dev) in cros_ec_suspend()
329 static void cros_ec_report_events_during_suspend(struct cros_ec_device *ec_dev) in cros_ec_report_events_during_suspend()
345 int cros_ec_resume(struct cros_ec_device *ec_dev) in cros_ec_resume()
Dcros_ec_rpmsg.c65 static int cros_ec_cmd_xfer_rpmsg(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_rpmsg()
79 static int cros_ec_pkt_xfer_rpmsg(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_rpmsg()
152 struct cros_ec_device *ec_dev = dev_get_drvdata(&ec_rpmsg->rpdev->dev); in cros_ec_rpmsg_host_event_function()
163 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_callback()
218 struct cros_ec_device *ec_dev; in cros_ec_rpmsg_probe()
265 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_remove()
276 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_suspend()
283 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_resume()
Dcros_ec_proto.c55 static int prepare_packet(struct cros_ec_device *ec_dev, in prepare_packet()
88 static int send_command(struct cros_ec_device *ec_dev, in send_command()
92 int (*xfer_fxn)(struct cros_ec_device *ec, struct cros_ec_command *msg); in send_command()
170 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev, in cros_ec_prepare_tx()
204 int cros_ec_check_result(struct cros_ec_device *ec_dev, in cros_ec_check_result()
235 static int cros_ec_get_host_event_wake_mask(struct cros_ec_device *ec_dev, in cros_ec_get_host_event_wake_mask()
262 static int cros_ec_host_command_proto_query(struct cros_ec_device *ec_dev, in cros_ec_host_command_proto_query()
298 static int cros_ec_host_command_proto_query_v2(struct cros_ec_device *ec_dev) in cros_ec_host_command_proto_query_v2()
363 static int cros_ec_get_host_command_version_mask(struct cros_ec_device *ec_dev, in cros_ec_get_host_command_version_mask()
402 int cros_ec_query_all(struct cros_ec_device *ec_dev) in cros_ec_query_all()
[all …]
Dcros_ec_spi.c82 typedef int (*cros_ec_xfer_fn_t) (struct cros_ec_device *ec_dev,
98 struct cros_ec_device *ec_dev;
117 static int terminate_request(struct cros_ec_device *ec_dev) in terminate_request()
156 static int receive_n_bytes(struct cros_ec_device *ec_dev, u8 *buf, int n) in receive_n_bytes()
191 static int cros_ec_spi_receive_packet(struct cros_ec_device *ec_dev, in cros_ec_spi_receive_packet()
300 static int cros_ec_spi_receive_response(struct cros_ec_device *ec_dev, in cros_ec_spi_receive_response()
388 static int do_cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev, in do_cros_ec_pkt_xfer_spi()
532 static int do_cros_ec_cmd_xfer_spi(struct cros_ec_device *ec_dev, in do_cros_ec_cmd_xfer_spi()
653 static int cros_ec_xfer_high_pri(struct cros_ec_device *ec_dev, in cros_ec_xfer_high_pri()
681 static int cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_spi()
[all …]
Dcros_usbpd_notify.c22 struct cros_ec_device *ec;
68 static int cros_ec_pd_command(struct cros_ec_device *ec_dev, in cros_ec_pd_command()
101 struct cros_ec_device *ec_dev) in cros_usbpd_get_event_and_notify()
147 struct cros_ec_device *ec_dev; in cros_usbpd_notify_probe_acpi()
217 struct cros_ec_device *ec_dev = (struct cros_ec_device *)data; in cros_usbpd_notify_plat()
Dcros_ec_i2c.c45 static inline struct cros_ec_device *to_ec_dev(struct device *dev) in to_ec_dev()
52 static int cros_ec_pkt_xfer_i2c(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_i2c()
180 static int cros_ec_cmd_xfer_i2c(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_i2c()
285 struct cros_ec_device *ec_dev = NULL; in cros_ec_i2c_probe()
314 struct cros_ec_device *ec_dev = i2c_get_clientdata(client); in cros_ec_i2c_remove()
322 struct cros_ec_device *ec_dev = to_ec_dev(dev); in cros_ec_i2c_suspend()
329 struct cros_ec_device *ec_dev = to_ec_dev(dev); in cros_ec_i2c_resume()
Dcros_ec_lpc.c141 static int cros_ec_pkt_xfer_lpc(struct cros_ec_device *ec, in cros_ec_pkt_xfer_lpc()
204 static int cros_ec_cmd_xfer_lpc(struct cros_ec_device *ec, in cros_ec_cmd_xfer_lpc()
286 static int cros_ec_lpc_readmem(struct cros_ec_device *ec, unsigned int offset, in cros_ec_lpc_readmem()
315 struct cros_ec_device *ec_dev = data; in cros_ec_lpc_acpi_notify()
340 struct cros_ec_device *ec_dev; in cros_ec_lpc_probe()
434 struct cros_ec_device *ec_dev = platform_get_drvdata(pdev); in cros_ec_lpc_remove()
510 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_suspend()
517 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_resume()
Dcros_ec_vbc.c22 struct cros_ec_device *ecdev = ec->ec_dev; in vboot_context_read()
62 struct cros_ec_device *ecdev = ec->ec_dev; in vboot_context_write()
Dcros_ec_ishtp.c132 struct cros_ec_device *ec_dev;
143 struct cros_ec_device *ec_dev = client_data->ec_dev; in ish_evt_handler()
450 static int prepare_cros_ec_rx(struct cros_ec_device *ec_dev, in prepare_cros_ec_rx()
485 static int cros_ec_pkt_xfer_ish(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_ish()
567 struct cros_ec_device *ec_dev; in cros_ec_dev_init()
Dcros_ec_debugfs.c200 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_pdinfo_read()
245 static bool cros_ec_uptime_is_supported(struct cros_ec_device *ec_dev) in cros_ec_uptime_is_supported()
268 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_uptime_read()
402 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_create_panicinfo()
Dcros_ec_chardev.c98 struct cros_ec_device *ec_dev = priv->ec_dev->ec_dev; in cros_ec_chardev_mkbp_event()
319 struct cros_ec_device *ec_dev = ec->ec_dev; in cros_ec_chardev_ioctl_readmem()
/Linux-v5.10/drivers/rtc/
Drtc-cros-ec.c26 struct cros_ec_device *cros_ec;
32 static int cros_ec_rtc_get(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_get()
59 static int cros_ec_rtc_set(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_set()
88 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_read_time()
107 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_set_time()
124 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_read_alarm()
154 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_set_alarm()
204 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_alarm_irq_enable()
266 struct cros_ec_device *cros_ec; in cros_ec_rtc_event()
320 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_rtc_probe()
/Linux-v5.10/drivers/media/cec/platform/cros-ec/
Dcros-ec-cec.c34 struct cros_ec_device *cros_ec;
43 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_message()
55 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_event()
74 struct cros_ec_device *cros_ec; in cros_ec_cec_event()
95 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_set_log_addr()
121 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_transmit()
145 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_adap_enable()
262 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_cec_probe()
/Linux-v5.10/drivers/pwm/
Dpwm-cros-ec.c24 struct cros_ec_device *ec;
61 static int cros_ec_pwm_set_duty(struct cros_ec_device *ec, u8 index, u16 duty) in cros_ec_pwm_set_duty()
84 static int cros_ec_pwm_get_duty(struct cros_ec_device *ec, u8 index) in cros_ec_pwm_get_duty()
204 static int cros_ec_num_pwms(struct cros_ec_device *ec) in cros_ec_num_pwms()
234 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cros_ec_pwm_probe()
/Linux-v5.10/drivers/input/keyboard/
Dcros_ec_keyb.c54 struct cros_ec_device *ec;
328 static int cros_ec_keyb_info(struct cros_ec_device *ec_dev, in cros_ec_keyb_info()
387 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_query_switches()
438 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_bs()
524 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_matrix()
591 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cros_ec_keyb_probe()
/Linux-v5.10/drivers/hid/
Dhid-google-hammer.c53 static int cbas_ec_query_base(struct cros_ec_device *ec_dev, bool get_state, in cbas_ec_query_base()
95 struct cros_ec_device *ec = _notify; in cbas_ec_notify()
136 struct cros_ec_device *ec = dev_get_drvdata(dev->parent); in cbas_ec_resume()
177 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in __cbas_ec_probe()
257 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cbas_ec_remove()
/Linux-v5.10/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors_core.c37 static int cros_ec_get_host_cmd_version_mask(struct cros_ec_device *ec_dev, in cros_ec_get_host_cmd_version_mask()
506 static int cros_ec_sensors_cmd_read_u8(struct cros_ec_device *ec, in cros_ec_sensors_cmd_read_u8()
512 static int cros_ec_sensors_cmd_read_u16(struct cros_ec_device *ec, in cros_ec_sensors_cmd_read_u16()
535 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_until_not_busy()
576 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_data_unsafe()
610 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_lpc()
/Linux-v5.10/drivers/extcon/
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-v5.10/drivers/regulator/
Dcros-ec-regulator.c17 struct cros_ec_device *ec_dev;
25 static int cros_ec_cmd(struct cros_ec_device *ec, u32 version, u32 command, in cros_ec_cmd()
/Linux-v5.10/drivers/i2c/busses/
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-v5.10/include/linux/iio/common/
Dcros_ec_sensors_core.h62 struct cros_ec_device *ec;
/Linux-v5.10/drivers/power/supply/
Dcros_usbpd-charger.c48 struct cros_ec_device *ec_device;
364 struct cros_ec_device *ec_device = charger->ec_device; in cros_usbpd_charger_get_prop()
541 struct cros_ec_device *ec_device = ec_dev->ec_dev; in cros_usbpd_charger_probe()
/Linux-v5.10/sound/soc/codecs/
Dcros_ec_codec.c31 struct cros_ec_device *ec_device;
74 static int send_ec_host_command(struct cros_ec_device *ec_dev, uint32_t cmd, in send_ec_host_command()
956 struct cros_ec_device *ec_device = dev_get_drvdata(pdev->dev.parent); in cros_ec_codec_platform_probe()

12