Home
last modified time | relevance | path

Searched defs:ec (Results 1 – 25 of 124) sorted by relevance

12345

/linux/drivers/acpi/
H A Dec.c168 struct acpi_ec *ec; member
228 #define ec_dbg_ref(ec, fmt, ...) \ argument
235 static bool acpi_ec_started(struct acpi_ec *ec) in acpi_ec_started()
241 static bool acpi_ec_event_enabled(struct acpi_ec *ec) in acpi_ec_event_enabled()
265 static bool acpi_ec_flushed(struct acpi_ec *ec) in acpi_ec_flushed()
274 static inline u8 acpi_ec_read_status(struct acpi_ec *ec) in acpi_ec_read_status()
289 static inline u8 acpi_ec_read_data(struct acpi_ec *ec) in acpi_ec_read_data()
298 static inline void acpi_ec_write_cmd(struct acpi_ec *ec, u8 command) in acpi_ec_write_cmd()
305 static inline void acpi_ec_write_data(struct acpi_ec *ec, u8 data) in acpi_ec_write_data()
337 static inline bool acpi_ec_gpe_status_set(struct acpi_ec *ec) in acpi_ec_gpe_status_set()
[all …]
/linux/arch/arm/mach-rpc/
H A Decard.c58 ecard_t *ec; member
121 struct expansion_card *ec = req->ec; in ecard_task_reset() local
135 struct expansion_card *ec = req->ec; in ecard_task_readbytes() local
312 ecard_readbytes(void *addr, ecard_t *ec, int off, int len, int useld) in ecard_readbytes()
326 int ecard_readchunk(struct in_chunk_dir *cd, ecard_t *ec, int id, int num) in ecard_readchunk()
385 static void ecard_def_irq_enable(ecard_t *ec, int irqnr) in ecard_def_irq_enable()
389 static void ecard_def_irq_disable(ecard_t *ec, int irqnr) in ecard_def_irq_disable()
393 static int ecard_def_irq_pending(ecard_t *ec) in ecard_def_irq_pending()
398 static void ecard_def_fiq_enable(ecard_t *ec, int fiqnr) in ecard_def_fiq_enable()
403 static void ecard_def_fiq_disable(ecard_t *ec, int fiqnr) in ecard_def_fiq_disable()
[all …]
/linux/drivers/platform/arm64/
H A Dlenovo-thinkpad-t14s.c93 struct t14s_ec *ec; member
118 struct t14s_ec *ec = context; in t14s_ec_write() local
134 struct t14s_ec *ec = context; in t14s_ec_read() local
174 static int t14s_ec_read_evt(struct t14s_ec *ec, u8 *val) in t14s_ec_read_evt() argument
209 static void t14s_ec_write_sequence(struct t14s_ec *ec, u8 reg, u8 val, u8 cnt) in t14s_ec_write_sequence() argument
217 static int t14s_led_set_status(struct t14s_ec *ec, in t14s_led_set_status() argument
267 t14s_init_led(struct t14s_ec * ec,struct t14s_ec_led_classdev * led,u8 id,const char * name) t14s_init_led() argument
281 t14s_leds_probe(struct t14s_ec * ec) t14s_leds_probe() argument
310 struct t14s_ec *ec = container_of(led_cdev, struct t14s_ec, t14s_kbd_bl_set() local
332 struct t14s_ec *ec = container_of(led_cdev, struct t14s_ec, t14s_kbd_bl_get() local
344 t14s_kbd_bl_update(struct t14s_ec * ec) t14s_kbd_bl_update() argument
351 t14s_kbd_backlight_probe(struct t14s_ec * ec) t14s_kbd_backlight_probe() argument
362 t14s_audio_led_get(struct t14s_ec * ec,u8 led_bit) t14s_audio_led_get() argument
374 t14s_audio_led_set(struct t14s_ec * ec,u8 led_mask,enum led_brightness brightness) t14s_audio_led_set() argument
383 struct t14s_ec *ec = container_of(led_cdev, struct t14s_ec, t14s_mic_mute_led_get() local
392 struct t14s_ec *ec = container_of(led_cdev, struct t14s_ec, t14s_mic_mute_led_set() local
400 struct t14s_ec *ec = container_of(led_cdev, struct t14s_ec, t14s_spk_mute_led_get() local
409 struct t14s_ec *ec = container_of(led_cdev, struct t14s_ec, t14s_spk_mute_led_set() local
415 t14s_kbd_audio_led_probe(struct t14s_ec * ec) t14s_kbd_audio_led_probe() argument
455 t14s_input_probe(struct t14s_ec * ec) t14s_input_probe() argument
477 struct t14s_ec *ec = data; t14s_ec_irq_handler() local
561 struct t14s_ec *ec; t14s_ec_probe() local
611 struct t14s_ec *ec = dev_get_drvdata(dev); t14s_ec_suspend() local
623 struct t14s_ec *ec = dev_get_drvdata(dev); t14s_ec_resume() local
[all...]
H A Dhuawei-gaokun-ec.c125 static int gaokun_ec_request(struct gaokun_ec *ec, const u8 *req, in gaokun_ec_request() argument
182 int gaokun_ec_read(struct gaokun_ec *ec, const u8 *req, in gaokun_ec_read() argument
199 int gaokun_ec_write(struct gaokun_ec *ec, cons argument
207 gaokun_ec_read_byte(struct gaokun_ec * ec,const u8 * req,u8 * byte) gaokun_ec_read_byte() argument
226 gaokun_ec_register_notify(struct gaokun_ec * ec,struct notifier_block * nb) gaokun_ec_register_notify() argument
240 gaokun_ec_unregister_notify(struct gaokun_ec * ec,struct notifier_block * nb) gaokun_ec_unregister_notify() argument
258 gaokun_ec_psy_multi_read(struct gaokun_ec * ec,u8 reg,size_t resp_len,u8 * resp) gaokun_ec_psy_multi_read() argument
286 gaokun_ec_psy_get_smart_charge(struct gaokun_ec * ec,u8 resp[GAOKUN_SMART_CHARGE_DATA_SIZE]) gaokun_ec_psy_get_smart_charge() argument
316 gaokun_ec_psy_set_smart_charge(struct gaokun_ec * ec,const u8 req[GAOKUN_SMART_CHARGE_DATA_SIZE]) gaokun_ec_psy_set_smart_charge() argument
341 gaokun_ec_psy_get_smart_charge_enable(struct gaokun_ec * ec,bool * on) gaokun_ec_psy_get_smart_charge_enable() argument
365 gaokun_ec_psy_set_smart_charge_enable(struct gaokun_ec * ec,bool on) gaokun_ec_psy_set_smart_charge_enable() argument
386 gaokun_ec_ucsi_read(struct gaokun_ec * ec,u8 resp[GAOKUN_UCSI_READ_SIZE]) gaokun_ec_ucsi_read() argument
411 gaokun_ec_ucsi_write(struct gaokun_ec * ec,const u8 req[GAOKUN_UCSI_WRITE_SIZE]) gaokun_ec_ucsi_write() argument
431 gaokun_ec_ucsi_get_reg(struct gaokun_ec * ec,struct gaokun_ucsi_reg * ureg) gaokun_ec_ucsi_get_reg() argument
456 gaokun_ec_ucsi_pan_ack(struct gaokun_ec * ec,int port_id) gaokun_ec_ucsi_pan_ack() argument
474 gaokun_ec_get_fn_lock(struct gaokun_ec * ec,bool * on) gaokun_ec_get_fn_lock() argument
495 gaokun_ec_set_fn_lock(struct gaokun_ec * ec,bool on) gaokun_ec_set_fn_lock() argument
508 struct gaokun_ec *ec = dev_get_drvdata(dev); fn_lock_show() local
523 struct gaokun_ec *ec = dev_get_drvdata(dev); fn_lock_store() local
555 gaokun_ec_get_temp(struct gaokun_ec * ec,u8 idx,long * temp) gaokun_ec_get_temp() argument
584 struct gaokun_ec *ec = dev_get_drvdata(dev); gaokun_ec_hwmon_read() local
622 struct gaokun_ec *ec = dev_get_drvdata(dev); gaokun_ec_suspend() local
640 struct gaokun_ec *ec = dev_get_drvdata(dev); gaokun_ec_resume() local
678 gaokun_aux_init(struct device * parent,const char * name,struct gaokun_ec * ec) gaokun_aux_init() argument
716 struct gaokun_ec *ec = data; gaokun_ec_irq_handler() local
746 struct gaokun_ec *ec; gaokun_ec_probe() local
[all...]
H A Dlenovo-yoga-c630.c38 static int yoga_c630_ec_request(struct yoga_c630_ec *ec, u8 *req, size_t req_len, in yoga_c630_ec_request() argument
54 int yoga_c630_ec_read8(struct yoga_c630_ec *ec, u8 addr) in yoga_c630_ec_read8() argument
71 int yoga_c630_ec_read16(struct yoga_c630_ec *ec, u8 addr) in yoga_c630_ec_read16() argument
98 yoga_c630_ec_ucsi_get_version(struct yoga_c630_ec * ec) yoga_c630_ec_ucsi_get_version() argument
121 yoga_c630_ec_ucsi_write(struct yoga_c630_ec * ec,const u8 req[YOGA_C630_UCSI_WRITE_SIZE]) yoga_c630_ec_ucsi_write() argument
135 yoga_c630_ec_ucsi_read(struct yoga_c630_ec * ec,u8 resp[YOGA_C630_UCSI_READ_SIZE]) yoga_c630_ec_ucsi_read() argument
152 struct yoga_c630_ec *ec = data; yoga_c630_ec_thread_intr() local
174 yoga_c630_ec_register_notify(struct yoga_c630_ec * ec,struct notifier_block * nb) yoga_c630_ec_register_notify() argument
188 yoga_c630_ec_unregister_notify(struct yoga_c630_ec * ec,struct notifier_block * nb) yoga_c630_ec_unregister_notify() argument
195 yoga_c630_aux_init(struct device * parent,const char * name,struct yoga_c630_ec * ec) yoga_c630_aux_init() argument
209 struct yoga_c630_ec *ec; yoga_c630_ec_probe() local
[all...]
/linux/drivers/md/
H A Ddm-ebs-target.c37 static inline sector_t __sector_to_block(struct ebs_c *ec, sector_t sector) in __sector_to_block()
48 static inline unsigned int __nr_blocks(struct ebs_c *ec, struct bio *bio) in __nr_blocks()
65 static int __ebs_rw_bvec(struct ebs_c *ec, enum req_op op, struct bio_vec *bv, in __ebs_rw_bvec()
122 static int __ebs_rw_bio(struct ebs_c *ec, enum req_op op, struct bio *bio) in __ebs_rw_bio()
143 static int __ebs_discard_bio(struct ebs_c *ec, struct bio *bio) in __ebs_discard_bio()
167 static void __ebs_forget_bio(struct ebs_c *ec, struct bio *bio) in __ebs_forget_bio()
182 struct ebs_c *ec = container_of(ws, struct ebs_c, ws); in __ebs_process_bios() local
253 struct ebs_c *ec; in ebs_ctr() local
350 struct ebs_c *ec = ti->private; in ebs_dtr() local
363 struct ebs_c *ec = ti->private; in ebs_map() local
[all …]
/linux/drivers/platform/olpc/
H A Dolpc-ec.c79 struct olpc_ec_priv *ec = container_of(w, struct olpc_ec_priv, worker); in olpc_ec_worker() local
113 struct olpc_ec_priv *ec) in queue_ec_descriptor()
128 struct olpc_ec_priv *ec = ec_priv; in olpc_ec_cmd() local
167 struct olpc_ec_priv *ec = ec_priv; in olpc_ec_wakeup_set() local
178 struct olpc_ec_priv *ec = ec_priv; in olpc_ec_wakeup_clear() local
189 struct olpc_ec_priv *ec = ec_priv; in olpc_ec_mask_write() local
222 struct olpc_ec_priv *ec = ec_priv; in olpc_ec_sci_query() local
349 static int olpc_ec_set_dcon_power(struct olpc_ec_priv *ec, bool state) in olpc_ec_set_dcon_power()
367 struct olpc_ec_priv *ec = rdev_get_drvdata(rdev); in dcon_regulator_enable() local
374 struct olpc_ec_priv *ec = rdev_get_drvdata(rdev); in dcon_regulator_disable() local
[all …]
/linux/drivers/ata/
H A Dpata_icside.c64 struct expansion_card *ec; member
86 static void pata_icside_irqenable_arcin_v5 (struct expansion_card *ec, int irqnr) in pata_icside_irqenable_arcin_v5()
96 static void pata_icside_irqdisable_arcin_v5 (struct expansion_card *ec, int irqnr) in pata_icside_irqdisable_arcin_v5()
113 static void pata_icside_irqenable_arcin_v6 (struct expansion_card *ec, int irqnr) in pata_icside_irqenable_arcin_v6()
127 static void pata_icside_irqdisable_arcin_v6 (struct expansion_card *ec, int irqnr) in pata_icside_irqdisable_arcin_v6()
138 static int pata_icside_irqpending_arcin_v6(struct expansion_card *ec) in pata_icside_irqpending_arcin_v6()
284 struct expansion_card *ec = info->ec; in icside_dma_init() local
400 struct expansion_card *ec = info->ec; in pata_icside_register_v6() local
442 struct expansion_card *ec = info->ec; in pata_icside_add_ports() local
480 static int pata_icside_probe(struct expansion_card *ec, in pata_icside_probe()
[all …]
/linux/drivers/platform/chrome/wilco_ec/
H A Dkeyboard_leds.c22 struct wilco_ec_device *ec; member
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 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 Dsysfs.c73 struct wilco_ec_device *ec = dev_get_drvdata(dev); in boot_on_ac_store() local
105 struct wilco_ec_device *ec = dev_get_drvdata(dev); in get_info() local
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() local
202 struct wilco_ec_device *ec = dev_get_drvdata(dev); in usb_charge_store() local
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 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()
202 int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg) in wilco_ec_mailbox()
/linux/drivers/iio/proximity/
H A Dcros_ec_mkbp_proximity.c27 struct cros_ec_device *ec; member
98 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_push_event() local
122 struct cros_ec_device *ec = _ec; in cros_ec_mkbp_proximity_notify() local
144 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_read_raw() local
185 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_resume() local
205 struct cros_ec_device *ec = dev_get_drvdata(dev->parent); in cros_ec_mkbp_proximity_probe() local
240 struct cros_ec_device *ec = data->ec; in cros_ec_mkbp_proximity_remove() local
/linux/drivers/scsi/arm/
H A Dpowertec.c62 struct expansion_card *ec; member
74 powertecscsi_irqenable(struct expansion_card *ec, int irqnr) in powertecscsi_irqenable()
86 powertecscsi_irqdisable(struct expansion_card *ec, int irqnr) in powertecscsi_irqdisable()
260 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_show_term() local
270 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_store_term() local
302 static int powertecscsi_probe(struct expansion_card *ec, in powertecscsi_probe()
402 static void powertecscsi_remove(struct expansion_card *ec) in powertecscsi_remove()
H A Deesox.c74 struct expansion_card *ec; member
87 eesoxscsi_irqenable(struct expansion_card *ec, int irqnr) in eesoxscsi_irqenable()
102 eesoxscsi_irqdisable(struct expansion_card *ec, int irqnr) in eesoxscsi_irqdisable()
445 struct expansion_card *ec = ECARD_DEV(dev); in eesoxscsi_show_term() local
454 struct expansion_card *ec = ECARD_DEV(dev); in eesoxscsi_store_term() local
495 static int eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) in eesoxscsi_probe()
596 static void eesoxscsi_remove(struct expansion_card *ec) in eesoxscsi_remove()
H A Dcumana_2.c79 struct expansion_card *ec; member
94 cumanascsi_2_irqenable(struct expansion_card *ec, int irqnr) in cumanascsi_2_irqenable()
106 cumanascsi_2_irqdisable(struct expansion_card *ec, int irqnr) in cumanascsi_2_irqdisable()
378 static int cumanascsi2_probe(struct expansion_card *ec, in cumanascsi2_probe()
476 static void cumanascsi2_remove(struct expansion_card *ec) in cumanascsi2_remove()
H A Darxescsi.c48 struct expansion_card *ec; member
258 static int arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) in arxescsi_probe()
321 static void arxescsi_remove(struct expansion_card *ec) in arxescsi_remove()
/linux/drivers/platform/chrome/
H A Dcros_ec_debugfs.c50 struct cros_ec_dev *ec; member
72 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_console_log_work() local
311 static int ec_read_version_supported(struct cros_ec_dev *ec) in ec_read_version_supported()
343 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_create_console_log() local
478 struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); in cros_ec_debugfs_probe() local
531 struct cros_ec_dev *ec = dev_get_drvdata(pd->dev.parent); in cros_ec_debugfs_remove() local
539 struct cros_ec_dev *ec = dev_get_drvdata(dev); in cros_ec_debugfs_suspend() local
549 struct cros_ec_dev *ec = dev_get_drvdata(dev); in cros_ec_debugfs_resume() local
H A Dcros_ec_sensorhub.c57 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_register() local
143 struct cros_ec_dev *ec = dev_get_drvdata(dev->parent); cros_ec_sensorhub_probe() local
244 struct cros_ec_dev *ec = sensorhub->ec; cros_ec_sensorhub_suspend() local
254 struct cros_ec_dev *ec = sensorhub->ec; cros_ec_sensorhub_resume() local
[all...]
/linux/sound/soc/tegra/
H A Dtegra210_admaif.c498 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; tegra210_admaif_pget_mono_to_stereo() local
511 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; tegra210_admaif_pput_mono_to_stereo() local
527 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; tegra210_admaif_cget_mono_to_stereo() local
540 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; tegra210_admaif_cput_mono_to_stereo() local
556 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; tegra210_admaif_pget_stereo_to_mono() local
569 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; tegra210_admaif_pput_stereo_to_mono() local
585 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; tegra210_admaif_cget_stereo_to_mono() local
598 struct soc_enum *ec = (struct soc_enum *)kcontrol->private_value; tegra210_admaif_cput_stereo_to_mono() local
[all...]
/linux/drivers/mtd/ubi/
H A Dattach.c179 int ec) in ubi_alloc_aeb()
230 int lnum, int ec, int to_head, struct list_head *list) in add_to_list()
268 static int add_corrupted(struct ubi_attach_info *ai, int pnum, int ec) in add_corrupted()
297 struct ubi_vid_hdr *vid_hdr, int ec) in add_fastmap()
564 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips) in ubi_add_to_av()
772 const struct ubi_attach_info *ai, int pnum, int ec) in early_erase_peb()
947 long long ec; in scan_peb() local
/linux/drivers/power/supply/
H A Dwilco-charger.c90 struct wilco_ec_device *ec = power_supply_get_drvdata(psy); in wilco_charge_get_property() local
127 struct wilco_ec_device *ec = power_supply_get_drvdata(psy); in wilco_charge_set_property() local
171 struct wilco_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in wilco_charge_probe() local
H A Dlenovo_yoga_c630_battery.c20 struct yoga_c630_ec *ec; member
73 struct yoga_c630_ec *ec = ecbat->ec; in yoga_c630_psy_update_bat_info() local
130 struct yoga_c630_ec *ec = ecbat->ec; in yoga_c630_psy_maybe_update_bat_status() local
178 struct yoga_c630_ec *ec = ecbat->ec; in yoga_c630_psy_update_adapter_status() local
424 struct yoga_c630_ec *ec = adev->dev.platform_data; in yoga_c630_psy_probe() local
/linux/drivers/hid/
H A Dhid-google-hammer.c96 struct cros_ec_device *ec = _notify; in cbas_ec_notify() local
137 struct cros_ec_device *ec = dev_get_drvdata(dev->parent); in cbas_ec_resume() local
178 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in __cbas_ec_probe() local
258 struct cros_ec_device *ec = dev_get_drvdata(pdev->dev.parent); in cbas_ec_remove() local
/linux/drivers/net/ethernet/8390/
H A Detherh.c141 static void etherh_irq_enable(ecard_t *ec, int irqnr) in etherh_irq_enable()
148 static void etherh_irq_disable(ecard_t *ec, int irqnr) in etherh_irq_disable()
503 static int etherh_addr(char *addr, struct expansion_card *ec) in etherh_addr()
652 etherh_probe(struct expansion_card *ec, const struct ecard_id *id) in etherh_probe()
769 static void etherh_remove(struct expansion_card *ec) in etherh_remove()

12345