/Linux-v5.10/drivers/bus/mhi/core/ |
D | pm.c | 110 enum mhi_pm_state __must_check mhi_tryset_pm_state(struct mhi_controller *mhi_cntrl, in mhi_tryset_pm_state() argument 113 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state() 125 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state() 126 return mhi_cntrl->pm_state; in mhi_tryset_pm_state() 129 void mhi_set_mhi_state(struct mhi_controller *mhi_cntrl, enum mhi_state state) in mhi_set_mhi_state() argument 132 mhi_write_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL, in mhi_set_mhi_state() 135 mhi_write_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL, in mhi_set_mhi_state() 142 static void mhi_toggle_dev_wake_nop(struct mhi_controller *mhi_cntrl) in mhi_toggle_dev_wake_nop() argument 146 static void mhi_toggle_dev_wake(struct mhi_controller *mhi_cntrl) in mhi_toggle_dev_wake() argument 148 mhi_cntrl->wake_get(mhi_cntrl, false); in mhi_toggle_dev_wake() [all …]
|
D | boot.c | 22 void mhi_rddm_prepare(struct mhi_controller *mhi_cntrl, in mhi_rddm_prepare() argument 27 void __iomem *base = mhi_cntrl->bhie; in mhi_rddm_prepare() 28 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_rddm_prepare() 39 mhi_write_reg(mhi_cntrl, base, BHIE_RXVECADDR_HIGH_OFFS, in mhi_rddm_prepare() 42 mhi_write_reg(mhi_cntrl, base, BHIE_RXVECADDR_LOW_OFFS, in mhi_rddm_prepare() 45 mhi_write_reg(mhi_cntrl, base, BHIE_RXVECSIZE_OFFS, mhi_buf->len); in mhi_rddm_prepare() 48 mhi_write_reg_field(mhi_cntrl, base, BHIE_RXVECDB_OFFS, in mhi_rddm_prepare() 57 static int __mhi_download_rddm_in_panic(struct mhi_controller *mhi_cntrl) in __mhi_download_rddm_in_panic() argument 63 u32 retry = (mhi_cntrl->timeout_ms * 1000) / delayus; in __mhi_download_rddm_in_panic() 66 void __iomem *base = mhi_cntrl->bhie; in __mhi_download_rddm_in_panic() [all …]
|
D | init.c | 84 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in serial_number_show() local 87 mhi_cntrl->serial_number); in serial_number_show() 96 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in oem_pk_hash_show() local 99 for (i = 0; i < ARRAY_SIZE(mhi_cntrl->oem_pk_hash); i++) in oem_pk_hash_show() 102 mhi_cntrl->oem_pk_hash[i]); in oem_pk_hash_show() 116 static int mhi_alloc_aligned_ring(struct mhi_controller *mhi_cntrl, in mhi_alloc_aligned_ring() argument 121 ring->pre_aligned = mhi_alloc_coherent(mhi_cntrl, ring->alloc_size, in mhi_alloc_aligned_ring() 132 void mhi_deinit_free_irq(struct mhi_controller *mhi_cntrl) in mhi_deinit_free_irq() argument 135 struct mhi_event *mhi_event = mhi_cntrl->mhi_event; in mhi_deinit_free_irq() 137 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_deinit_free_irq() [all …]
|
D | main.c | 18 int __must_check mhi_read_reg(struct mhi_controller *mhi_cntrl, in mhi_read_reg() argument 21 return mhi_cntrl->read_reg(mhi_cntrl, base + offset, out); in mhi_read_reg() 24 int __must_check mhi_read_reg_field(struct mhi_controller *mhi_cntrl, in mhi_read_reg_field() argument 31 ret = mhi_read_reg(mhi_cntrl, base, offset, &tmp); in mhi_read_reg_field() 40 void mhi_write_reg(struct mhi_controller *mhi_cntrl, void __iomem *base, in mhi_write_reg() argument 43 mhi_cntrl->write_reg(mhi_cntrl, base + offset, val); in mhi_write_reg() 46 void mhi_write_reg_field(struct mhi_controller *mhi_cntrl, void __iomem *base, in mhi_write_reg_field() argument 52 ret = mhi_read_reg(mhi_cntrl, base, offset, &tmp); in mhi_write_reg_field() 58 mhi_write_reg(mhi_cntrl, base, offset, tmp); in mhi_write_reg_field() 61 void mhi_write_db(struct mhi_controller *mhi_cntrl, void __iomem *db_addr, in mhi_write_db() argument [all …]
|
D | debugfs.c | 17 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_states_show() local 21 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_debugfs_states_show() 22 mhi_is_active(mhi_cntrl) ? "Active" : "Inactive", in mhi_debugfs_states_show() 23 TO_MHI_STATE_STR(mhi_cntrl->dev_state), in mhi_debugfs_states_show() 24 TO_MHI_EXEC_STR(mhi_cntrl->ee), in mhi_debugfs_states_show() 25 mhi_cntrl->wake_set ? "true" : "false"); in mhi_debugfs_states_show() 28 seq_printf(m, "M0: %u M2: %u M3: %u", mhi_cntrl->M0, mhi_cntrl->M2, in mhi_debugfs_states_show() 29 mhi_cntrl->M3); in mhi_debugfs_states_show() 32 atomic_read(&mhi_cntrl->dev_wake), in mhi_debugfs_states_show() 33 atomic_read(&mhi_cntrl->pending_pkts)); in mhi_debugfs_states_show() [all …]
|
D | internal.h | 441 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & \ argument 442 mhi_cntrl->db_access) 470 void (*process_db)(struct mhi_controller *mhi_cntrl, 518 struct mhi_controller *mhi_cntrl; member 530 int (*process_event)(struct mhi_controller *mhi_cntrl, 575 void mhi_create_debugfs(struct mhi_controller *mhi_cntrl); 576 void mhi_destroy_debugfs(struct mhi_controller *mhi_cntrl); 580 static inline void mhi_create_debugfs(struct mhi_controller *mhi_cntrl) in mhi_create_debugfs() argument 584 static inline void mhi_destroy_debugfs(struct mhi_controller *mhi_cntrl) in mhi_destroy_debugfs() argument 597 struct mhi_device *mhi_alloc_device(struct mhi_controller *mhi_cntrl); [all …]
|
/Linux-v5.10/include/linux/ |
D | mhi.h | 424 void (*status_cb)(struct mhi_controller *mhi_cntrl, 426 void (*wake_get)(struct mhi_controller *mhi_cntrl, bool override); 427 void (*wake_put)(struct mhi_controller *mhi_cntrl, bool override); 428 void (*wake_toggle)(struct mhi_controller *mhi_cntrl); 429 int (*runtime_get)(struct mhi_controller *mhi_cntrl); 430 void (*runtime_put)(struct mhi_controller *mhi_cntrl); 431 int (*map_single)(struct mhi_controller *mhi_cntrl, 433 void (*unmap_single)(struct mhi_controller *mhi_cntrl, 435 int (*read_reg)(struct mhi_controller *mhi_cntrl, void __iomem *addr, 437 void (*write_reg)(struct mhi_controller *mhi_cntrl, void __iomem *addr, [all …]
|
/Linux-v5.10/drivers/net/wireless/ath/ath11k/ |
D | mhi.c | 185 static int ath11k_mhi_op_runtime_get(struct mhi_controller *mhi_cntrl) in ath11k_mhi_op_runtime_get() argument 190 static void ath11k_mhi_op_runtime_put(struct mhi_controller *mhi_cntrl) in ath11k_mhi_op_runtime_put() argument 194 static void ath11k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl, in ath11k_mhi_op_status_cb() argument 199 static int ath11k_mhi_op_read_reg(struct mhi_controller *mhi_cntrl, in ath11k_mhi_op_read_reg() argument 208 static void ath11k_mhi_op_write_reg(struct mhi_controller *mhi_cntrl, in ath11k_mhi_op_write_reg() argument
|