Lines Matching defs:ec
230 #define ec_dbg_ref(ec, fmt, ...) \ argument
237 static bool acpi_ec_started(struct acpi_ec *ec) in acpi_ec_started()
243 static bool acpi_ec_event_enabled(struct acpi_ec *ec) in acpi_ec_event_enabled()
267 static bool acpi_ec_flushed(struct acpi_ec *ec) in acpi_ec_flushed()
276 static inline u8 acpi_ec_read_status(struct acpi_ec *ec) in acpi_ec_read_status()
291 static inline u8 acpi_ec_read_data(struct acpi_ec *ec) in acpi_ec_read_data()
300 static inline void acpi_ec_write_cmd(struct acpi_ec *ec, u8 command) in acpi_ec_write_cmd()
307 static inline void acpi_ec_write_data(struct acpi_ec *ec, u8 data) in acpi_ec_write_data()
339 static inline bool acpi_ec_gpe_status_set(struct acpi_ec *ec) in acpi_ec_gpe_status_set()
347 static inline void acpi_ec_enable_gpe(struct acpi_ec *ec, bool open) in acpi_ec_enable_gpe()
366 static inline void acpi_ec_disable_gpe(struct acpi_ec *ec, bool close) in acpi_ec_disable_gpe()
380 static void acpi_ec_submit_request(struct acpi_ec *ec) in acpi_ec_submit_request()
388 static void acpi_ec_complete_request(struct acpi_ec *ec) in acpi_ec_complete_request()
401 static void acpi_ec_mask_events(struct acpi_ec *ec) in acpi_ec_mask_events()
414 static void acpi_ec_unmask_events(struct acpi_ec *ec) in acpi_ec_unmask_events()
438 static bool acpi_ec_submit_flushable_request(struct acpi_ec *ec) in acpi_ec_submit_flushable_request()
446 static void acpi_ec_submit_query(struct acpi_ec *ec) in acpi_ec_submit_query()
459 static void acpi_ec_complete_query(struct acpi_ec *ec) in acpi_ec_complete_query()
467 static inline void __acpi_ec_enable_event(struct acpi_ec *ec) in __acpi_ec_enable_event()
478 static inline void __acpi_ec_disable_event(struct acpi_ec *ec) in __acpi_ec_disable_event()
488 static void acpi_ec_clear(struct acpi_ec *ec) in acpi_ec_clear()
504 static void acpi_ec_enable_event(struct acpi_ec *ec) in acpi_ec_enable_event()
525 static void acpi_ec_disable_event(struct acpi_ec *ec) in acpi_ec_disable_event()
550 static bool acpi_ec_guard_event(struct acpi_ec *ec) in acpi_ec_guard_event()
579 static int ec_transaction_polled(struct acpi_ec *ec) in ec_transaction_polled()
591 static int ec_transaction_completed(struct acpi_ec *ec) in ec_transaction_completed()
603 static inline void ec_transaction_transition(struct acpi_ec *ec, unsigned long flag) in ec_transaction_transition()
619 static void acpi_ec_spurious_interrupt(struct acpi_ec *ec, struct transaction *t) in acpi_ec_spurious_interrupt()
629 static void advance_transaction(struct acpi_ec *ec, bool interrupt) in advance_transaction()
705 static void start_transaction(struct acpi_ec *ec) in start_transaction()
711 static int ec_guard(struct acpi_ec *ec) in ec_guard()
746 static int ec_poll(struct acpi_ec *ec) in ec_poll()
769 static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, in acpi_ec_transaction_unlocked()
804 static int acpi_ec_transaction(struct acpi_ec *ec, struct transaction *t) in acpi_ec_transaction()
832 static int acpi_ec_burst_enable(struct acpi_ec *ec) in acpi_ec_burst_enable()
842 static int acpi_ec_burst_disable(struct acpi_ec *ec) in acpi_ec_burst_disable()
852 static int acpi_ec_read(struct acpi_ec *ec, u8 address, u8 *data) in acpi_ec_read()
865 static int acpi_ec_write(struct acpi_ec *ec, u8 address, u8 data) in acpi_ec_write()
930 static void acpi_ec_start(struct acpi_ec *ec, bool resuming) in acpi_ec_start()
947 static bool acpi_ec_stopped(struct acpi_ec *ec) in acpi_ec_stopped()
958 static void acpi_ec_stop(struct acpi_ec *ec, bool suspending) in acpi_ec_stop()
982 static void acpi_ec_enter_noirq(struct acpi_ec *ec) in acpi_ec_enter_noirq()
993 static void acpi_ec_leave_noirq(struct acpi_ec *ec) in acpi_ec_leave_noirq()
1006 struct acpi_ec *ec = first_ec; in acpi_ec_block_transactions() local
1031 acpi_ec_get_query_handler_by_value(struct acpi_ec *ec, u8 value) in acpi_ec_get_query_handler_by_value()
1060 int acpi_ec_add_query_handler(struct acpi_ec *ec, u8 query_bit, in acpi_ec_add_query_handler()
1082 static void acpi_ec_remove_query_handlers(struct acpi_ec *ec, in acpi_ec_remove_query_handlers()
1100 void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit) in acpi_ec_remove_query_handler()
1145 static int acpi_ec_query(struct acpi_ec *ec, u8 *data) in acpi_ec_query()
1195 static void acpi_ec_check_event(struct acpi_ec *ec) in acpi_ec_check_event()
1216 struct acpi_ec *ec = container_of(work, struct acpi_ec, work); in acpi_ec_event_handler() local
1245 static void acpi_ec_handle_interrupt(struct acpi_ec *ec) in acpi_ec_handle_interrupt()
1276 struct acpi_ec *ec = handler_context; in acpi_ec_space_handler() local
1316 static void acpi_ec_free(struct acpi_ec *ec) in acpi_ec_free()
1327 struct acpi_ec *ec = kzalloc(sizeof(struct acpi_ec), GFP_KERNEL); in acpi_ec_alloc() local
1350 struct acpi_ec *ec = context; in acpi_ec_register_query_methods() local
1366 struct acpi_ec *ec = context; in ec_parse_device() local
1404 static bool install_gpe_event_handler(struct acpi_ec *ec) in install_gpe_event_handler()
1420 static bool install_gpio_irq_event_handler(struct acpi_ec *ec) in install_gpio_irq_event_handler()
1442 static int ec_install_handlers(struct acpi_ec *ec, struct acpi_device *device) in ec_install_handlers()
1507 static void ec_remove_handlers(struct acpi_ec *ec) in ec_remove_handlers()
1546 static int acpi_ec_setup(struct acpi_ec *ec, struct acpi_device *device) in acpi_ec_setup()
1573 struct acpi_ec *ec; in acpi_ec_add() local
1646 struct acpi_ec *ec; in acpi_ec_remove() local
1665 struct acpi_ec *ec = context; in ec_parse_io_ports() local
1698 struct acpi_ec *ec; in acpi_ec_dsdt_probe() local
1900 struct acpi_ec *ec; in acpi_ec_ecdt_probe() local
1962 struct acpi_ec *ec = in acpi_ec_suspend() local
1972 struct acpi_ec *ec = acpi_driver_data(to_acpi_device(dev)); in acpi_ec_suspend_noirq() local
1989 struct acpi_ec *ec = acpi_driver_data(to_acpi_device(dev)); in acpi_ec_resume_noirq() local
2002 struct acpi_ec *ec = in acpi_ec_resume() local