Home
last modified time | relevance | path

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

12

/linux-6.1.9/include/linux/platform_data/
Dcros_ec_proto.h138 struct cros_ec_device { struct
143 int (*cmd_readmem)(struct cros_ec_device *ec, unsigned int offset, argument
159 int (*cmd_xfer)(struct cros_ec_device *ec, argument
161 int (*pkt_xfer)(struct cros_ec_device *ec, argument
205 struct cros_ec_device *ec_dev;
215 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev,
218 int cros_ec_check_result(struct cros_ec_device *ec_dev,
221 int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev,
224 int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev,
227 int cros_ec_query_all(struct cros_ec_device *ec_dev);
[all …]
/linux-6.1.9/drivers/platform/chrome/
Dcros_ec.h13 int cros_ec_register(struct cros_ec_device *ec_dev);
14 void 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);
Dcros_ec.c41 struct cros_ec_device *ec_dev = data; in cros_ec_irq_handler()
58 static bool cros_ec_handle_event(struct cros_ec_device *ec_dev) in cros_ec_handle_event()
90 struct cros_ec_device *ec_dev = data; in cros_ec_irq_thread()
101 static int cros_ec_sleep_event(struct cros_ec_device *ec_dev, u8 sleep_event) in cros_ec_sleep_event()
156 struct cros_ec_device *ec_dev = container_of(nb, struct cros_ec_device, in cros_ec_ready_event()
179 int cros_ec_register(struct cros_ec_device *ec_dev) in cros_ec_register()
307 void 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()
351 static void cros_ec_report_events_during_suspend(struct cros_ec_device *ec_dev) in cros_ec_report_events_during_suspend()
373 int cros_ec_resume(struct cros_ec_device *ec_dev) in cros_ec_resume()
Dcros_ec_proto.c55 static int prepare_tx(struct cros_ec_device *ec_dev, in prepare_tx()
88 static int prepare_tx_legacy(struct cros_ec_device *ec_dev, in prepare_tx_legacy()
110 static int cros_ec_xfer_command(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_ec_xfer_command()
113 int (*xfer_fxn)(struct cros_ec_device *ec, struct cros_ec_command *msg); in cros_ec_xfer_command()
137 static int cros_ec_wait_until_complete(struct cros_ec_device *ec_dev, uint32_t *result) in cros_ec_wait_until_complete()
181 static int cros_ec_send_command(struct cros_ec_device *ec_dev, struct cros_ec_command *msg) in cros_ec_send_command()
201 int cros_ec_prepare_tx(struct cros_ec_device *ec_dev, in cros_ec_prepare_tx()
224 int cros_ec_check_result(struct cros_ec_device *ec_dev, in cros_ec_check_result()
255 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()
291 static int cros_ec_get_proto_info(struct cros_ec_device *ec_dev, int devidx) in cros_ec_get_proto_info()
[all …]
Dcros_kunit_util.h31 int cros_kunit_ec_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg);
32 int cros_kunit_ec_cmd_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg);
33 int cros_kunit_ec_pkt_xfer_mock(struct cros_ec_device *ec_dev, struct cros_ec_command *msg);
43 int cros_kunit_readmem_mock(struct cros_ec_device *ec_dev, unsigned int offset,
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()
192 static int cros_ec_spi_receive_packet(struct cros_ec_device *ec_dev, in cros_ec_spi_receive_packet()
301 static int cros_ec_spi_receive_response(struct cros_ec_device *ec_dev, in cros_ec_spi_receive_response()
389 static int do_cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev, in do_cros_ec_pkt_xfer_spi()
535 static int do_cros_ec_cmd_xfer_spi(struct cros_ec_device *ec_dev, in do_cros_ec_cmd_xfer_spi()
658 static int cros_ec_xfer_high_pri(struct cros_ec_device *ec_dev, in cros_ec_xfer_high_pri()
686 static int cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev, in cros_ec_pkt_xfer_spi()
[all …]
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()
161 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_callback()
216 struct cros_ec_device *ec_dev; in cros_ec_rpmsg_probe()
263 struct cros_ec_device *ec_dev = dev_get_drvdata(&rpdev->dev); in cros_ec_rpmsg_remove()
274 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_suspend()
281 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_rpmsg_resume()
Dcros_ec_proto_test.c18 struct cros_ec_device ec_dev;
28 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_legacy_normal()
71 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize()
86 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_normal()
127 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_bad_msg_outsize()
140 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_check_result()
180 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_pretest()
195 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_normal()
349 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_no_pd_return_error()
414 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_query_all_no_pd_return0()
[all …]
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()
Dcros_kunit_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()
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()
188 static int cros_ec_cmd_xfer_i2c(struct cros_ec_device *ec_dev, in cros_ec_cmd_xfer_i2c()
293 struct cros_ec_device *ec_dev = NULL; in cros_ec_i2c_probe()
322 struct cros_ec_device *ec_dev = i2c_get_clientdata(client); in cros_ec_i2c_remove()
330 struct cros_ec_device *ec_dev = to_ec_dev(dev); in cros_ec_i2c_suspend()
337 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()
206 static int cros_ec_cmd_xfer_lpc(struct cros_ec_device *ec, in cros_ec_cmd_xfer_lpc()
288 static int cros_ec_lpc_readmem(struct cros_ec_device *ec, unsigned int offset, in cros_ec_lpc_readmem()
317 struct cros_ec_device *ec_dev = data; in cros_ec_lpc_acpi_notify()
342 struct cros_ec_device *ec_dev; in cros_ec_lpc_probe()
449 struct cros_ec_device *ec_dev = platform_get_drvdata(pdev); in cros_ec_lpc_remove()
535 struct cros_ec_device *ec_dev = dev_get_drvdata(dev); in cros_ec_lpc_suspend()
542 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_debugfs.c201 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()
269 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_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()
568 struct cros_ec_device *ec_dev; in cros_ec_dev_init()
/linux-6.1.9/drivers/iio/proximity/
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-6.1.9/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-6.1.9/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()
57 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in handle_cec_event()
76 struct cros_ec_device *cros_ec; in cros_ec_cec_event()
97 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_set_log_addr()
123 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_transmit()
147 struct cros_ec_device *cros_ec = cros_ec_cec->cros_ec; in cros_ec_cec_adap_enable()
272 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_cec_probe()
/linux-6.1.9/drivers/pwm/
Dpwm-cros-ec.c27 struct cros_ec_device *ec;
82 struct cros_ec_device *ec = ec_pwm->ec; in cros_ec_pwm_set_duty()
117 struct cros_ec_device *ec = ec_pwm->ec; in cros_ec_pwm_get_duty()
278 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cros_ec_pwm_probe()
/linux-6.1.9/drivers/input/keyboard/
Dcros_ec_keyb.c59 struct cros_ec_device *ec;
334 static int cros_ec_keyb_info(struct cros_ec_device *ec_dev, in cros_ec_keyb_info()
393 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()
577 struct cros_ec_device *ec_dev = ckdev->ec; in cros_ec_keyb_register_matrix()
681 struct cros_ec_device *ec; in cros_ec_keyb_probe()
/linux-6.1.9/drivers/hid/
Dhid-google-hammer.c56 static int cbas_ec_query_base(struct cros_ec_device *ec_dev, bool get_state, in cbas_ec_query_base()
98 struct cros_ec_device *ec = _notify; in cbas_ec_notify()
139 struct cros_ec_device *ec = dev_get_drvdata(dev->parent); in cbas_ec_resume()
180 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in __cbas_ec_probe()
260 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cbas_ec_remove()
/linux-6.1.9/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors_core.c32 static int cros_ec_get_host_cmd_version_mask(struct cros_ec_device *ec_dev, in cros_ec_get_host_cmd_version_mask()
511 static int cros_ec_sensors_cmd_read_u8(struct cros_ec_device *ec, in cros_ec_sensors_cmd_read_u8()
517 static int cros_ec_sensors_cmd_read_u16(struct cros_ec_device *ec, in cros_ec_sensors_cmd_read_u16()
540 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_until_not_busy()
581 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_data_unsafe()
615 struct cros_ec_device *ec = st->ec; in cros_ec_sensors_read_lpc()
/linux-6.1.9/drivers/power/supply/
Dcros_peripheral_charger.c41 struct cros_ec_device *ec_device;
245 struct cros_ec_device *ec_dev = data; in cros_ec_notify()
266 struct cros_ec_device *ec_device = ec_dev->ec_dev; in cros_pchg_probe()
/linux-6.1.9/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-6.1.9/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()

12