Home
last modified time | relevance | path

Searched refs:wilco_ec_device (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/include/linux/platform_data/
H A Dwilco-ec.h39 struct wilco_ec_device { struct
127 int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg);
140 int wilco_keyboard_leds_init(struct wilco_ec_device *ec);
175 int wilco_ec_get_property(struct wilco_ec_device *ec,
188 int wilco_ec_set_property(struct wilco_ec_device *ec,
199 int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id,
210 int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id,
222 int wilco_ec_add_sysfs(struct wilco_ec_device *ec);
223 void wilco_ec_remove_sysfs(struct wilco_ec_device *ec);
/openbmc/linux/drivers/platform/chrome/wilco_ec/
H A Dkeyboard_leds.c22 struct wilco_ec_device *ec;
55 static int send_kbbl_msg(struct wilco_ec_device *ec, in send_kbbl_msg()
79 static int set_kbbl(struct wilco_ec_device *ec, enum led_brightness brightness) in set_kbbl()
105 static int kbbl_exist(struct wilco_ec_device *ec, bool *exists) in kbbl_exist()
134 static int kbbl_init(struct wilco_ec_device *ec) in kbbl_init()
173 int wilco_keyboard_leds_init(struct wilco_ec_device *ec) in wilco_keyboard_leds_init()
H A Dsysfs.c73 struct wilco_ec_device *ec = dev_get_drvdata(dev); in boot_on_ac_store()
105 struct wilco_ec_device *ec = dev_get_drvdata(dev); in get_info()
157 static int send_usb_charge(struct wilco_ec_device *ec, in send_usb_charge()
182 struct wilco_ec_device *ec = dev_get_drvdata(dev); in usb_charge_show()
202 struct wilco_ec_device *ec = dev_get_drvdata(dev); in usb_charge_store()
242 int wilco_ec_add_sysfs(struct wilco_ec_device *ec) in wilco_ec_add_sysfs()
247 void wilco_ec_remove_sysfs(struct wilco_ec_device *ec) in wilco_ec_remove_sysfs()
H A Dproperties.c34 static int send_property_msg(struct wilco_ec_device *ec, in send_property_msg()
59 int wilco_ec_get_property(struct wilco_ec_device *ec, in wilco_ec_get_property()
81 int wilco_ec_set_property(struct wilco_ec_device *ec, in wilco_ec_set_property()
104 int wilco_ec_get_byte_property(struct wilco_ec_device *ec, u32 property_id, in wilco_ec_get_byte_property()
124 int wilco_ec_set_byte_property(struct wilco_ec_device *ec, u32 property_id, in wilco_ec_set_byte_property()
H A Dmailbox.c53 static bool wilco_ec_response_timed_out(struct wilco_ec_device *ec) in wilco_ec_response_timed_out()
115 static int wilco_ec_transfer(struct wilco_ec_device *ec, in wilco_ec_transfer()
196 int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg) in wilco_ec_mailbox()
H A Ddebugfs.c23 struct wilco_ec_device *ec;
176 static int send_ec_cmd(struct wilco_ec_device *ec, u8 sub_cmd, u8 *out_val) in send_ec_cmd()
247 struct wilco_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in wilco_ec_debugfs_probe()
H A Dcore.c40 struct wilco_ec_device *ec; in wilco_ec_probe()
137 struct wilco_ec_device *ec = platform_get_drvdata(pdev); in wilco_ec_remove()
H A Dtelemetry.c206 struct wilco_ec_device *ec;
/openbmc/linux/drivers/power/supply/
H A Dwilco-charger.c90 struct wilco_ec_device *ec = power_supply_get_drvdata(psy); in wilco_charge_get_property()
127 struct wilco_ec_device *ec = power_supply_get_drvdata(psy); in wilco_charge_set_property()
171 struct wilco_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in wilco_charge_probe()
/openbmc/linux/drivers/rtc/
H A Drtc-wilco-ec.c91 struct wilco_ec_device *ec = dev_get_drvdata(dev->parent); in wilco_ec_rtc_read()
125 struct wilco_ec_device *ec = dev_get_drvdata(dev->parent); in wilco_ec_rtc_write()