Home
last modified time | relevance | path

Searched defs:mhi_cntrl (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/drivers/bus/mhi/ep/
H A Dmmio.c13 u32 mhi_ep_mmio_read(struct mhi_ep_cntrl *mhi_cntrl, u32 offset) in mhi_ep_mmio_read()
18 void mhi_ep_mmio_write(struct mhi_ep_cntrl *mhi_cntrl, u32 offset, u32 val) in mhi_ep_mmio_write()
23 void mhi_ep_mmio_masked_write(struct mhi_ep_cntrl *mhi_cntrl, u32 offset, u32 mask, u32 val) in mhi_ep_mmio_masked_write()
44 void mhi_ep_mmio_get_mhi_state(struct mhi_ep_cntrl *mhi_cntrl, enum mhi_state *state, in mhi_ep_mmio_get_mhi_state()
54 static void mhi_ep_mmio_set_chdb(struct mhi_ep_cntrl *mhi_cntrl, u32 ch_id, bool enable) in mhi_ep_mmio_set_chdb()
71 void mhi_ep_mmio_enable_chdb(struct mhi_ep_cntrl *mhi_cntrl, u32 ch_id) in mhi_ep_mmio_enable_chdb()
76 void mhi_ep_mmio_disable_chdb(struct mhi_ep_cntrl *mhi_cntrl, u32 ch_id) in mhi_ep_mmio_disable_chdb()
81 static void mhi_ep_mmio_set_chdb_interrupts(struct mhi_ep_cntrl *mhi_cntrl, bool enable) in mhi_ep_mmio_set_chdb_interrupts()
93 void mhi_ep_mmio_enable_chdb_interrupts(struct mhi_ep_cntrl *mhi_cntrl) in mhi_ep_mmio_enable_chdb_interrupts()
98 static void mhi_ep_mmio_mask_chdb_interrupts(struct mhi_ep_cntrl *mhi_cntrl) in mhi_ep_mmio_mask_chdb_interrupts()
[all …]
H A Dmain.c28 static int mhi_ep_send_event(struct mhi_ep_cntrl *mhi_cntrl, u32 ring_idx, in mhi_ep_send_event()
71 static int mhi_ep_send_completion_event(struct mhi_ep_cntrl *mhi_cntrl, struct mhi_ep_ring *ring, in mhi_ep_send_completion_event()
91 int mhi_ep_send_state_change_event(struct mhi_ep_cntrl *mhi_cntrl, enum mhi_state state) in mhi_ep_send_state_change_event()
109 int mhi_ep_send_ee_event(struct mhi_ep_cntrl *mhi_cntrl, enum mhi_ee_type exec_env) in mhi_ep_send_ee_event()
127 static int mhi_ep_send_cmd_comp_event(struct mhi_ep_cntrl *mhi_cntrl, enum mhi_ev_ccs code) in mhi_ep_send_cmd_comp_event()
149 struct mhi_ep_cntrl *mhi_cntrl = ring->mhi_cntrl; in mhi_ep_process_cmd_ring() local
314 struct mhi_ep_cntrl *mhi_cntrl = mhi_dev->mhi_cntrl; in mhi_ep_queue_is_empty() local
324 struct mhi_ep_cntrl *mhi_cntrl = mhi_dev->mhi_cntrl; in mhi_ep_read_completion() local
385 static int mhi_ep_read_channel(struct mhi_ep_cntrl *mhi_cntrl, in mhi_ep_read_channel()
467 struct mhi_ep_cntrl *mhi_cntrl = ring->mhi_cntrl; in mhi_ep_process_ch_ring() local
[all …]
H A Dsm.c11 bool __must_check mhi_ep_check_mhi_state(struct mhi_ep_cntrl *mhi_cntrl, in mhi_ep_check_mhi_state()
30 int mhi_ep_set_mhi_state(struct mhi_ep_cntrl *mhi_cntrl, enum mhi_state mhi_state) in mhi_ep_set_mhi_state()
59 int mhi_ep_set_m0_state(struct mhi_ep_cntrl *mhi_cntrl) in mhi_ep_set_m0_state()
100 int mhi_ep_set_m3_state(struct mhi_ep_cntrl *mhi_cntrl) in mhi_ep_set_m3_state()
128 int mhi_ep_set_ready_state(struct mhi_ep_cntrl *mhi_cntrl) in mhi_ep_set_ready_state()
H A Dring.c31 struct mhi_ep_cntrl *mhi_cntrl = ring->mhi_cntrl; in __mhi_ep_cache_ring() local
108 struct mhi_ep_cntrl *mhi_cntrl = ring->mhi_cntrl; in mhi_ep_ring_add_element() local
165 int mhi_ep_ring_start(struct mhi_ep_cntrl *mhi_cntrl, struct mhi_ep_ring *ring, in mhi_ep_ring_start()
207 void mhi_ep_ring_reset(struct mhi_ep_cntrl *mhi_cntrl, struct mhi_ep_ring *ring) in mhi_ep_ring_reset()
H A Dinternal.h125 struct mhi_ep_cntrl *mhi_cntrl; member
/openbmc/linux/drivers/bus/mhi/host/
H A Dpm.c119 enum mhi_pm_state __must_check mhi_tryset_pm_state(struct mhi_controller *mhi_cntrl, in mhi_tryset_pm_state()
138 void mhi_set_mhi_state(struct mhi_controller *mhi_cntrl, enum mhi_state state) in mhi_set_mhi_state()
157 static void mhi_toggle_dev_wake_nop(struct mhi_controller *mhi_cntrl) in mhi_toggle_dev_wake_nop()
161 static void mhi_toggle_dev_wake(struct mhi_controller *mhi_cntrl) in mhi_toggle_dev_wake()
168 int mhi_ready_state_transition(struct mhi_controller *mhi_cntrl) in mhi_ready_state_transition()
255 int mhi_pm_m0_transition(struct mhi_controller *mhi_cntrl) in mhi_pm_m0_transition()
330 void mhi_pm_m1_transition(struct mhi_controller *mhi_cntrl) in mhi_pm_m1_transition()
366 int mhi_pm_m3_transition(struct mhi_controller *mhi_cntrl) in mhi_pm_m3_transition()
387 static int mhi_pm_mission_mode_transition(struct mhi_controller *mhi_cntrl) in mhi_pm_mission_mode_transition()
464 static void mhi_pm_disable_transition(struct mhi_controller *mhi_cntrl) in mhi_pm_disable_transition()
[all …]
H A Dmain.c19 int __must_check mhi_read_reg(struct mhi_controller *mhi_cntrl, in mhi_read_reg()
25 int __must_check mhi_read_reg_field(struct mhi_controller *mhi_cntrl, in mhi_read_reg_field()
41 int __must_check mhi_poll_reg_field(struct mhi_controller *mhi_cntrl, in mhi_poll_reg_field()
62 void mhi_write_reg(struct mhi_controller *mhi_cntrl, void __iomem *base, in mhi_write_reg()
68 int __must_check mhi_write_reg_field(struct mhi_controller *mhi_cntrl, in mhi_write_reg_field()
86 void mhi_write_db(struct mhi_controller *mhi_cntrl, void __iomem *db_addr, in mhi_write_db()
93 void mhi_db_brstmode(struct mhi_controller *mhi_cntrl, in mhi_db_brstmode()
105 void mhi_db_brstmode_disable(struct mhi_controller *mhi_cntrl, in mhi_db_brstmode_disable()
122 void mhi_ring_cmd_db(struct mhi_controller *mhi_cntrl, struct mhi_cmd *mhi_cmd) in mhi_ring_cmd_db()
132 void mhi_ring_chan_db(struct mhi_controller *mhi_cntrl, in mhi_ring_chan_db()
[all …]
H A Dinit.c88 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in serial_number_show() local
100 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in oem_pk_hash_show() local
117 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in soc_reset_store() local
133 static int mhi_alloc_aligned_ring(struct mhi_controller *mhi_cntrl, in mhi_alloc_aligned_ring()
149 void mhi_deinit_free_irq(struct mhi_controller *mhi_cntrl) in mhi_deinit_free_irq()
164 int mhi_init_irq_setup(struct mhi_controller *mhi_cntrl) in mhi_init_irq_setup()
227 void mhi_deinit_dev_ctxt(struct mhi_controller *mhi_cntrl) in mhi_deinit_dev_ctxt()
272 int mhi_init_dev_ctxt(struct mhi_controller *mhi_cntrl) in mhi_init_dev_ctxt()
440 int mhi_init_mmio(struct mhi_controller *mhi_cntrl) in mhi_init_mmio()
582 void mhi_deinit_chan_ctxt(struct mhi_controller *mhi_cntrl, in mhi_deinit_chan_ctxt()
[all …]
H A Dpci_generic.c687 struct mhi_controller mhi_cntrl; member
694 static int mhi_pci_read_reg(struct mhi_controller *mhi_cntrl, in mhi_pci_read_reg() argument
701 static void mhi_pci_write_reg(struct mhi_controller *mhi_cntrl, in mhi_pci_write_reg() argument
707 static void mhi_pci_status_cb(struct mhi_controller *mhi_cntrl, in mhi_pci_status_cb() argument
727 static void mhi_pci_wake_get_nop(struct mhi_controller *mhi_cntrl, bool force) in mhi_pci_wake_get_nop() argument
732 static void mhi_pci_wake_put_nop(struct mhi_controller *mhi_cntrl, bool override) in mhi_pci_wake_put_nop() argument
737 static void mhi_pci_wake_toggle_nop(struct mhi_controller *mhi_cntrl) in mhi_pci_wake_toggle_nop() argument
742 static bool mhi_pci_is_alive(struct mhi_controller *mhi_cntrl) in mhi_pci_is_alive() argument
756 mhi_pci_claim(struct mhi_controller * mhi_cntrl,unsigned int bar_num,u64 dma_mask) mhi_pci_claim() argument
791 mhi_pci_get_irqs(struct mhi_controller * mhi_cntrl,const struct mhi_controller_config * mhi_cntrl_config) mhi_pci_get_irqs() argument
835 mhi_pci_runtime_get(struct mhi_controller * mhi_cntrl) mhi_pci_runtime_get() argument
843 mhi_pci_runtime_put(struct mhi_controller * mhi_cntrl) mhi_pci_runtime_put() argument
856 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; mhi_pci_recovery_work() local
902 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; health_check() local
923 struct mhi_controller *mhi_cntrl; mhi_pci_probe() local
1018 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; mhi_pci_remove() local
1044 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; mhi_pci_reset_prepare() local
1066 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; mhi_pci_reset_done() local
1100 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; mhi_pci_error_detected() local
1152 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; mhi_pci_runtime_suspend() local
1184 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; mhi_pci_runtime_resume() local
1250 struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl; mhi_pci_freeze() local
[all...]
H A Dboot.c22 int mhi_rddm_prepare(struct mhi_controller *mhi_cntrl, in mhi_rddm_prepare()
63 static int __mhi_download_rddm_in_panic(struct mhi_controller *mhi_cntrl) in __mhi_download_rddm_in_panic()
157 int mhi_download_rddm_image(struct mhi_controller *mhi_cntrl, bool in_panic) in mhi_download_rddm_image()
180 static int mhi_fw_load_bhie(struct mhi_controller *mhi_cntrl, in mhi_fw_load_bhie()
228 static int mhi_fw_load_bhi(struct mhi_controller *mhi_cntrl, in mhi_fw_load_bhi()
299 void mhi_free_bhie_table(struct mhi_controller *mhi_cntrl, in mhi_free_bhie_table()
313 int mhi_alloc_bhie_table(struct mhi_controller *mhi_cntrl, in mhi_alloc_bhie_table()
367 static void mhi_firmware_copy(struct mhi_controller *mhi_cntrl, in mhi_firmware_copy()
388 void mhi_fw_load_handler(struct mhi_controller *mhi_cntrl) in mhi_fw_load_handler()
535 int mhi_download_amss_image(struct mhi_controller *mhi_cntrl) in mhi_download_amss_image()
H A Ddebugfs.c17 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_states_show() local
40 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_events_show() local
83 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_channels_show() local
155 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_devices_show() local
171 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_regdump_show() local
233 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_device_wake_show() local
253 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_device_wake_write() local
273 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_timeout_ms_show() local
285 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_timeout_ms_write() local
377 void mhi_create_debugfs(struct mhi_controller *mhi_cntrl) in mhi_create_debugfs()
[all …]
H A Dinternal.h120 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & mhi_cntrl->db_access) argument
196 struct mhi_controller *mhi_cntrl; member
257 static inline void mhi_create_debugfs(struct mhi_controller *mhi_cntrl) in mhi_create_debugfs()
261 static inline void mhi_destroy_debugfs(struct mhi_controller *mhi_cntrl) in mhi_destroy_debugfs()
301 static inline bool mhi_is_active(struct mhi_controller *mhi_cntrl) in mhi_is_active()
307 static inline void mhi_trigger_resume(struct mhi_controller *mhi_cntrl) in mhi_trigger_resume()
/openbmc/linux/drivers/accel/qaic/
H A Dmhi_controller.c405 static int mhi_read_reg(struct mhi_controller *mhi_cntrl, void __iomem *addr, u32 *out) in mhi_read_reg()
430 static void mhi_write_reg(struct mhi_controller *mhi_cntrl, void __iomem *addr, u32 val) in mhi_write_reg()
435 static int mhi_runtime_get(struct mhi_controller *mhi_cntrl) in mhi_runtime_get()
440 static void mhi_runtime_put(struct mhi_controller *mhi_cntrl) in mhi_runtime_put()
444 static void mhi_status_cb(struct mhi_controller *mhi_cntrl, enum mhi_callback reason) in mhi_status_cb()
456 static int mhi_reset_and_async_power_up(struct mhi_controller *mhi_cntrl) in mhi_reset_and_async_power_up()
486 struct mhi_controller *mhi_cntrl; in qaic_mhi_register_controller() local
556 void qaic_mhi_free_controller(struct mhi_controller *mhi_cntrl, bool link_up) in qaic_mhi_free_controller()
563 void qaic_mhi_start_reset(struct mhi_controller *mhi_cntrl) in qaic_mhi_start_reset()
568 void qaic_mhi_reset_done(struct mhi_controller *mhi_cntrl) in qaic_mhi_reset_done()
H A Dqaic.h108 struct mhi_controller *mhi_cntrl; member
/openbmc/linux/drivers/pci/endpoint/functions/
H A Dpci-epf-mhi.c120 struct mhi_ep_cntrl mhi_cntrl; member
136 static int __pci_epf_mhi_alloc_map(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, in __pci_epf_mhi_alloc_map()
162 static int pci_epf_mhi_alloc_map(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, in pci_epf_mhi_alloc_map()
173 static void __pci_epf_mhi_unmap_free(struct mhi_ep_cntrl *mhi_cntrl, in __pci_epf_mhi_unmap_free()
187 static void pci_epf_mhi_unmap_free(struct mhi_ep_cntrl *mhi_cntrl, u64 pci_addr, in pci_epf_mhi_unmap_free()
198 static void pci_epf_mhi_raise_irq(struct mhi_ep_cntrl *mhi_cntrl, u32 vector) in pci_epf_mhi_raise_irq()
212 static int pci_epf_mhi_iatu_read(struct mhi_ep_cntrl *mhi_cntrl, in pci_epf_mhi_iatu_read()
240 static int pci_epf_mhi_iatu_write(struct mhi_ep_cntrl *mhi_cntrl, in pci_epf_mhi_iatu_write()
273 static int pci_epf_mhi_edma_read(struct mhi_ep_cntrl *mhi_cntrl, in pci_epf_mhi_edma_read()
344 static int pci_epf_mhi_edma_write(struct mhi_ep_cntrl *mhi_cntrl, in pci_epf_mhi_edma_write()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dmhi.c278 static int ath12k_mhi_op_runtime_get(struct mhi_controller *mhi_cntrl) in ath12k_mhi_op_runtime_get()
283 static void ath12k_mhi_op_runtime_put(struct mhi_controller *mhi_cntrl) in ath12k_mhi_op_runtime_put()
313 static void ath12k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl, in ath12k_mhi_op_status_cb()
334 static int ath12k_mhi_op_read_reg(struct mhi_controller *mhi_cntrl, in ath12k_mhi_op_read_reg()
343 static void ath12k_mhi_op_write_reg(struct mhi_controller *mhi_cntrl, in ath12k_mhi_op_write_reg()
/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A Dmhi.c288 static int ath11k_mhi_op_runtime_get(struct mhi_controller *mhi_cntrl) in ath11k_mhi_op_runtime_get()
293 static void ath11k_mhi_op_runtime_put(struct mhi_controller *mhi_cntrl) in ath11k_mhi_op_runtime_put()
323 static void ath11k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl, in ath11k_mhi_op_status_cb()
344 static int ath11k_mhi_op_read_reg(struct mhi_controller *mhi_cntrl, in ath11k_mhi_op_read_reg()
353 static void ath11k_mhi_op_write_reg(struct mhi_controller *mhi_cntrl, in ath11k_mhi_op_write_reg()
/openbmc/linux/include/linux/
H A Dmhi_ep.h194 struct mhi_ep_cntrl *mhi_cntrl; member
H A Dmhi.h480 struct mhi_controller *mhi_cntrl; member