Lines Matching +full:irq +full:- +full:can +full:- +full:wake
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
10 #include <linux/dma-direction.h>
27 * enum mhi_callback - MHI callback
51 * enum mhi_flags - Transfer flags
63 * enum mhi_device_type - Device types
73 * enum mhi_ch_type - Channel types
89 * struct image_info - Firmware and RDDM table
102 * struct mhi_link_info - BW requirement
103 * target_link_speed - Link speed as defined by TLS bits in LinkControl reg
104 * target_link_width - Link width as defined by NLW bits in LinkStatus reg
112 * enum mhi_ee_type - Execution environment types
138 * enum mhi_state - MHI states
163 * enum mhi_ch_ee_mask - Execution environment mask for channel
183 * enum mhi_er_data_type - Event ring data types
193 * enum mhi_db_brst_mode - Doorbell mode
203 * struct mhi_channel_config - Channel configuration structure for controller
206 * @num_elements: The number of elements that can be queued to this channel
219 * @wake-capable: Channel capable of waking up the system
240 * struct mhi_event_config - Event ring configuration structure for controller
241 * @num_elements: The number of elements that can be queued to this ring
242 * @irq_moderation_ms: Delay irq for additional events to be aggregated
243 * @irq: IRQ associated with this ring
244 * @channel: Dedicated channel number. U32_MAX indicates a non-dedicated ring
255 u32 irq; member
266 * struct mhi_controller_config - Root MHI controller configuration
290 * struct mhi_controller - Master MHI controller structure
298 * @wake_db: MHI WAKE doorbell register address
315 * @irq: base irq # to request (required)
320 * @nr_irqs: Number of IRQ allocated by bus master (required)
348 * @wake_get: CB function to assert device wake (optional)
349 * @wake_put: CB function to de-assert device wake (optional)
350 * @wake_toggle: CB function to assert and de-assert device wake (optional)
363 * @irq_flags: irq flags passed to request_irq (optional)
368 * they can be populated depending on the usecase.
402 int *irq; member
464 * struct mhi_device - Structure representing an MHI device which binds
491 * struct mhi_result - Completed buffer information
505 * struct mhi_buf - MHI Buffer description
508 * ECA - Event context array data
509 * CCA - Channel context array data
521 * struct mhi_driver - Structure representing a MHI client driver
546 * mhi_alloc_controller - Allocate the MHI Controller structure
552 * mhi_free_controller - Free the MHI Controller structure
558 * mhi_register_controller - Register MHI controller
566 * mhi_unregister_controller - Unregister MHI controller
572 * module_mhi_driver() - Helper macro for drivers that don't do
588 * __mhi_driver_register - Register driver with MHI framework
595 * mhi_driver_unregister - Unregister a driver for mhi_devices
601 * mhi_set_mhi_state - Set MHI device state
609 * mhi_notify - Notify the MHI client driver about client device status
616 * mhi_get_free_desc_count - Get transfer ring length
625 * mhi_prepare_for_power_up - Do pre-initialization before power up.
635 * mhi_async_power_up - Start MHI power up sequence
641 * mhi_sync_power_up - Start MHI power up sequence and wait till the device
648 * mhi_power_down - Start MHI power down sequence
655 * mhi_unprepare_after_power_down - Free any allocated memory after power down
661 * mhi_pm_suspend - Move MHI into a suspended state
667 * mhi_pm_resume - Resume MHI from suspended state
673 * mhi_pm_resume_force - Force resume MHI from suspended state
686 * mhi_download_rddm_image - Download ramdump image from device for
694 * mhi_force_rddm_mode - Force device into rddm mode
700 * mhi_get_exec_env - Get BHI execution environment of the device
706 * mhi_get_mhi_state - Get MHI state of the device
712 * mhi_soc_reset - Trigger a device reset. This can be used as a last resort
719 * mhi_device_get - Disable device low power mode
725 * mhi_device_get_sync - Disable device low power mode. Synchronously
732 * mhi_device_put - Re-enable device low power mode
738 * mhi_prepare_for_transfer - Setup UL and DL channels for data transfer.
742 * command to both channels. Channels can be started only if both host and
748 * mhi_prepare_for_transfer_autoqueue - Setup UL and DL channels with auto queue
753 * command to both channels. Channels can be started only if both host and
760 * mhi_unprepare_from_transfer - Reset UL and DL channels for data transfer.
762 * device clean-up the context so no incoming
766 * clean-up. Channels can be reset only if both
775 * mhi_queue_dma - Send or receive DMA mapped buffers from client device
787 * mhi_queue_buf - Send or receive raw buffers from client device over MHI
799 * mhi_queue_skb - Send or receive SKBs from client device over MHI channel
810 * mhi_queue_is_full - Determine whether queueing new elements is possible