Home
last modified time | relevance | path

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

12

/linux/include/linux/platform_data/
A 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/drivers/platform/chrome/
A Dcros_ec.c44 struct cros_ec_device *ec_dev = data; in cros_ec_irq_handler()
61 static bool cros_ec_handle_event(struct cros_ec_device *ec_dev) in cros_ec_handle_event()
93 struct cros_ec_device *ec_dev = data; in cros_ec_irq_thread()
104 static int cros_ec_sleep_event(struct cros_ec_device *ec_dev, u8 sleep_event) in cros_ec_sleep_event()
159 struct cros_ec_device *ec_dev = container_of(nb, struct cros_ec_device, in cros_ec_ready_event()
182 int cros_ec_register(struct cros_ec_device *ec_dev) in cros_ec_register()
305 int cros_ec_unregister(struct cros_ec_device *ec_dev) in cros_ec_unregister()
324 int cros_ec_suspend(struct cros_ec_device *ec_dev) in cros_ec_suspend()
350 static void cros_ec_report_events_during_suspend(struct cros_ec_device *ec_dev) in cros_ec_report_events_during_suspend()
366 int cros_ec_resume(struct cros_ec_device *ec_dev) in cros_ec_resume()
A Dcros_ec.h13 int cros_ec_register(struct cros_ec_device *ec_dev);
14 int cros_ec_unregister(struct cros_ec_device *ec_dev);
16 int cros_ec_suspend(struct cros_ec_device *ec_dev);
17 int cros_ec_resume(struct cros_ec_device *ec_dev);
A 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()
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()
411 int cros_ec_query_all(struct cros_ec_device *ec_dev) in cros_ec_query_all()
575 int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_status()
651 static int get_next_event(struct cros_ec_device *ec_dev) in get_next_event()
712 int cros_ec_get_next_event(struct cros_ec_device *ec_dev, in cros_ec_get_next_event()
782 u32 cros_ec_get_host_event(struct cros_ec_device *ec_dev) in cros_ec_get_host_event()
852 struct cros_ec_device *ec_dev = ec->ec_dev; in cros_ec_get_sensor_count()
[all …]
A 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()
388 static int do_cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev, in do_cros_ec_pkt_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()
687 static int cros_ec_cmd_xfer_spi(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_spi()
740 struct cros_ec_device *ec_dev; in cros_ec_spi_probe()
791 struct cros_ec_device *ec_dev = spi_get_drvdata(spi); in cros_ec_spi_remove()
799 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_spi_suspend()
[all …]
A 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()
159 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_callback()
214 struct cros_ec_device *ec_dev; in cros_ec_rpmsg_probe()
261 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_remove()
272 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_suspend()
279 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_resume()
A Dcros_usbpd_notify.c22 struct cros_ec_device *ec;
57 struct cros_ec_device *ec_dev) in cros_usbpd_get_event_and_notify()
101 struct cros_ec_device *ec_dev; in cros_usbpd_notify_probe_acpi()
171 struct cros_ec_device *ec_dev = (struct cros_ec_device *)data; in cros_usbpd_notify_plat()
A 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()
A 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()
A 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()
A 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()
A Dcros_ec_ishtp.c135 struct cros_ec_device *ec_dev;
449 static int prepare_cros_ec_rx(struct cros_ec_device *ec_dev, in prepare_cros_ec_rx()
484 static int cros_ec_pkt_xfer_ish(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_ish()
566 struct cros_ec_device *ec_dev; in cros_ec_dev_init()
/linux/drivers/rtc/
A 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/drivers/iio/proximity/
A Dcros_ec_mkbp_proximity.c27 struct cros_ec_device *ec;
59 static int cros_ec_mkbp_proximity_query(struct cros_ec_device *ec_dev, in cros_ec_mkbp_proximity_query()
103 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_push_event()
127 struct cros_ec_device *ec = _ec; in cros_ec_mkbp_proximity_notify()
149 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_read_raw()
190 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_resume()
210 struct cros_ec_device *ec = dev_get_drvdata(dev->parent); in cros_ec_mkbp_proximity_probe()
245 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_remove()
/linux/drivers/media/cec/platform/cros-ec/
A 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/drivers/pwm/
A 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()
207 static int cros_ec_num_pwms(struct cros_ec_device *ec) in cros_ec_num_pwms()
237 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cros_ec_pwm_probe()
/linux/drivers/power/supply/
A Dcros_peripheral_charger.c40 struct cros_ec_device *ec_device;
262 struct cros_ec_device *ec_dev = (struct cros_ec_device *)data; in cros_ec_notify()
289 struct cros_ec_device *ec_device = ec_dev->ec_dev; in cros_pchg_probe()
A 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/drivers/input/keyboard/
A Dcros_ec_keyb.c61 struct cros_ec_device *ec;
337 static int cros_ec_keyb_info(struct cros_ec_device *ec_dev, in cros_ec_keyb_info()
396 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_query_switches()
447 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_bs()
533 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_matrix()
665 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cros_ec_keyb_probe()
/linux/drivers/hid/
A Dhid-google-hammer.c54 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/iio/common/cros_ec_sensors/
A Dcros_ec_sensors_core.c38 static int cros_ec_get_host_cmd_version_mask(struct cros_ec_device *ec_dev, in cros_ec_get_host_cmd_version_mask()
498 static int cros_ec_sensors_cmd_read_u8(struct cros_ec_device *ec, in cros_ec_sensors_cmd_read_u8()
504 static int cros_ec_sensors_cmd_read_u16(struct cros_ec_device *ec, in cros_ec_sensors_cmd_read_u16()
527 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_until_not_busy()
568 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_data_unsafe()
602 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_lpc()
/linux/drivers/extcon/
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/regulator/
A 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/drivers/i2c/busses/
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/
A Dcros_ec_sensors_core.h62 struct cros_ec_device *ec;

Completed in 62 milliseconds

12