Home
last modified time | relevance | path

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

/Linux-v5.4/include/linux/platform_data/
Dcros_ec_proto.h129 struct cros_ec_device { struct
135 int (*cmd_readmem)(struct cros_ec_device *ec, unsigned int offset, argument
151 int (*cmd_xfer)(struct cros_ec_device *ec, argument
153 int (*pkt_xfer)(struct cros_ec_device *ec, argument
198 int cros_ec_suspend(struct cros_ec_device *ec_dev);
208 int cros_ec_resume(struct cros_ec_device *ec_dev);
221 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev,
234 int cros_ec_check_result(struct cros_ec_device *ec_dev,
247 int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
262 int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev,
[all …]
/Linux-v5.4/drivers/platform/chrome/
Dcros_ec_proto.c18 static int prepare_packet(struct cros_ec_device *ec_dev, in prepare_packet()
51 static int send_command(struct cros_ec_device *ec_dev, in send_command()
55 int (*xfer_fxn)(struct cros_ec_device *ec, struct cros_ec_command *msg); in send_command()
120 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev, in cros_ec_prepare_tx()
144 int cros_ec_check_result(struct cros_ec_device *ec_dev, in cros_ec_check_result()
175 static int cros_ec_get_host_event_wake_mask(struct cros_ec_device *ec_dev, in cros_ec_get_host_event_wake_mask()
196 static int cros_ec_host_command_proto_query(struct cros_ec_device *ec_dev, in cros_ec_host_command_proto_query()
232 static int cros_ec_host_command_proto_query_v2(struct cros_ec_device *ec_dev) in cros_ec_host_command_proto_query_v2()
297 static int cros_ec_get_host_command_version_mask(struct cros_ec_device *ec_dev, in cros_ec_get_host_command_version_mask()
329 int cros_ec_query_all(struct cros_ec_device *ec_dev) in cros_ec_query_all()
[all …]
Dcros_ec_rpmsg.c58 static int cros_ec_cmd_xfer_rpmsg(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_rpmsg()
72 static int cros_ec_pkt_xfer_rpmsg(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_rpmsg()
145 struct cros_ec_device *ec_dev = dev_get_drvdata(&ec_rpmsg->rpdev->dev); in cros_ec_rpmsg_host_event_function()
167 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_callback()
215 struct cros_ec_device *ec_dev; in cros_ec_rpmsg_probe()
257 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_remove()
268 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_suspend()
275 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_resume()
Dcros_ec_spi.c80 typedef int (*cros_ec_xfer_fn_t) (struct cros_ec_device *ec_dev,
96 struct cros_ec_device *ec_dev;
115 static int terminate_request(struct cros_ec_device *ec_dev) in terminate_request()
149 static int receive_n_bytes(struct cros_ec_device *ec_dev, u8 *buf, int n) in receive_n_bytes()
184 static int cros_ec_spi_receive_packet(struct cros_ec_device *ec_dev, in cros_ec_spi_receive_packet()
293 static int cros_ec_spi_receive_response(struct cros_ec_device *ec_dev, in cros_ec_spi_receive_response()
381 static int do_cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev, in do_cros_ec_pkt_xfer_spi()
524 static int do_cros_ec_cmd_xfer_spi(struct cros_ec_device *ec_dev, in do_cros_ec_cmd_xfer_spi()
645 static int cros_ec_xfer_high_pri(struct cros_ec_device *ec_dev, in cros_ec_xfer_high_pri()
673 static int cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_spi()
[all …]
Dcros_ec.c36 struct cros_ec_device *ec_dev = data; in ec_irq_thread()
56 static int cros_ec_sleep_event(struct cros_ec_device *ec_dev, u8 sleep_event) in cros_ec_sleep_event()
107 int cros_ec_register(struct cros_ec_device *ec_dev) in cros_ec_register()
201 int cros_ec_unregister(struct cros_ec_device *ec_dev) in cros_ec_unregister()
212 int cros_ec_suspend(struct cros_ec_device *ec_dev) in cros_ec_suspend()
238 static void cros_ec_report_events_during_suspend(struct cros_ec_device *ec_dev) in cros_ec_report_events_during_suspend()
246 int cros_ec_resume(struct cros_ec_device *ec_dev) in cros_ec_resume()
Dcros_ec_i2c.c43 static inline struct cros_ec_device *to_ec_dev(struct device *dev) in to_ec_dev()
50 static int cros_ec_pkt_xfer_i2c(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_i2c()
178 static int cros_ec_cmd_xfer_i2c(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_i2c()
283 struct cros_ec_device *ec_dev = NULL; in cros_ec_i2c_probe()
312 struct cros_ec_device *ec_dev = i2c_get_clientdata(client); in cros_ec_i2c_remove()
320 struct cros_ec_device *ec_dev = to_ec_dev(dev); in cros_ec_i2c_suspend()
327 struct cros_ec_device *ec_dev = to_ec_dev(dev); in cros_ec_i2c_resume()
Dcros_ec_lpc.c140 static int cros_ec_pkt_xfer_lpc(struct cros_ec_device *ec, in cros_ec_pkt_xfer_lpc()
203 static int cros_ec_cmd_xfer_lpc(struct cros_ec_device *ec, in cros_ec_cmd_xfer_lpc()
285 static int cros_ec_lpc_readmem(struct cros_ec_device *ec, unsigned int offset, in cros_ec_lpc_readmem()
314 struct cros_ec_device *ec_dev = data; in cros_ec_lpc_acpi_notify()
330 struct cros_ec_device *ec_dev; in cros_ec_lpc_probe()
424 struct cros_ec_device *ec_dev = platform_get_drvdata(pdev); in cros_ec_lpc_remove()
500 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_suspend()
507 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_resume()
Dcros_ec_ishtp.c127 struct cros_ec_device *ec_dev;
138 struct cros_ec_device *ec_dev = client_data->ec_dev; in ish_evt_handler()
414 static int prepare_cros_ec_rx(struct cros_ec_device *ec_dev, in prepare_cros_ec_rx()
449 static int cros_ec_pkt_xfer_ish(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_ish()
531 struct cros_ec_device *ec_dev; in cros_ec_dev_init()
Dcros_ec_vbc.c23 struct cros_ec_device *ecdev = ec->ec_dev; in vboot_context_read()
63 struct cros_ec_device *ecdev = ec->ec_dev; in vboot_context_write()
Dcros_ec_debugfs.c201 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_pdinfo_read()
250 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_uptime_read()
384 struct cros_ec_device *ec_dev = debug_info->ec->ec_dev; in cros_ec_create_panicinfo()
Dcros_ec_chardev.c99 struct cros_ec_device *ec_dev = priv->ec_dev->ec_dev; in cros_ec_chardev_mkbp_event()
320 struct cros_ec_device *ec_dev = ec->ec_dev; in cros_ec_chardev_ioctl_readmem()
/Linux-v5.4/drivers/rtc/
Drtc-cros-ec.c27 struct cros_ec_device *cros_ec;
33 static int cros_ec_rtc_get(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_get()
60 static int cros_ec_rtc_set(struct cros_ec_device *cros_ec, u32 command, in cros_ec_rtc_set()
89 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_read_time()
108 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_set_time()
129 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_read_alarm()
159 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_set_alarm()
209 struct cros_ec_device *cros_ec = cros_ec_rtc->cros_ec; in cros_ec_rtc_alarm_irq_enable()
271 struct cros_ec_device *cros_ec; in cros_ec_rtc_event()
325 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_rtc_probe()
/Linux-v5.4/drivers/media/platform/cros-ec-cec/
Dcros-ec-cec.c35 struct cros_ec_device *cros_ec;
44 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_message()
56 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_event()
75 struct cros_ec_device *cros_ec; in cros_ec_cec_event()
96 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_set_log_addr()
122 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_transmit()
146 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_adap_enable()
263 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_cec_probe()
/Linux-v5.4/drivers/pwm/
Dpwm-cros-ec.c24 struct cros_ec_device *ec;
33 static int cros_ec_pwm_set_duty(struct cros_ec_device *ec, u8 index, u16 duty) in cros_ec_pwm_set_duty()
56 static int __cros_ec_pwm_get_duty(struct cros_ec_device *ec, u8 index, in __cros_ec_pwm_get_duty()
90 static int cros_ec_pwm_get_duty(struct cros_ec_device *ec, u8 index) in cros_ec_pwm_get_duty()
157 static int cros_ec_num_pwms(struct cros_ec_device *ec) in cros_ec_num_pwms()
187 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cros_ec_pwm_probe()
/Linux-v5.4/drivers/hid/
Dhid-google-hammer.c52 static int cbas_ec_query_base(struct cros_ec_device *ec_dev, bool get_state, in cbas_ec_query_base()
94 struct cros_ec_device *ec = _notify; in cbas_ec_notify()
135 struct cros_ec_device *ec = dev_get_drvdata(dev->parent); in cbas_ec_resume()
176 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in __cbas_ec_probe()
249 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cbas_ec_remove()
/Linux-v5.4/drivers/input/keyboard/
Dcros_ec_keyb.c54 struct cros_ec_device *ec;
329 static int cros_ec_keyb_info(struct cros_ec_device *ec_dev, in cros_ec_keyb_info()
392 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_query_switches()
443 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_bs()
529 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_matrix()
596 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cros_ec_keyb_probe()
/Linux-v5.4/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors_core.c29 static int cros_ec_get_host_cmd_version_mask(struct cros_ec_device *ec_dev, in cros_ec_get_host_cmd_version_mask()
275 static int cros_ec_sensors_cmd_read_u8(struct cros_ec_device *ec, in cros_ec_sensors_cmd_read_u8()
281 static int cros_ec_sensors_cmd_read_u16(struct cros_ec_device *ec, in cros_ec_sensors_cmd_read_u16()
304 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_until_not_busy()
345 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_data_unsafe()
379 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_lpc()
/Linux-v5.4/sound/soc/codecs/
Dcros_ec_codec.c32 struct cros_ec_device *ec_device;
45 struct cros_ec_device *ec_device = codec_data->ec_device; in ec_command_get_gain()
74 struct cros_ec_device *ec_device = codec_data->ec_device; in ec_command_no_resp()
403 struct cros_ec_device *ec_device = dev_get_drvdata(pd->dev.parent); in cros_ec_codec_platform_probe()
/Linux-v5.4/include/linux/mfd/
Dcros_ec.h25 struct cros_ec_device *ec_dev;
/Linux-v5.4/drivers/power/supply/
Dcros_usbpd-charger.c48 struct cros_ec_device *ec_device;
370 struct cros_ec_device *ec_device = charger->ec_device; in cros_usbpd_charger_get_prop()
530 struct cros_ec_device *ec_device; in cros_usbpd_charger_ec_event()
549 struct cros_ec_device *ec_device = charger->ec_device; in cros_usbpd_charger_unregister_notifier()
558 struct cros_ec_device *ec_device = ec_dev->ec_dev; in cros_usbpd_charger_probe()
/Linux-v5.4/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.4/include/linux/iio/common/
Dcros_ec_sensors_core.h56 struct cros_ec_device *ec;
/Linux-v5.4/drivers/i2c/busses/
Di2c-cros-ec-tunnel.c29 struct cros_ec_device *ec;
244 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in ec_i2c_probe()
/Linux-v5.4/drivers/mfd/
Dcros_ec_dev.c294 struct cros_ec_device *ec_dev = ec->ec_dev; in cros_ec_accel_legacy_register()