/drivers/bus/mhi/host/ |
D | pm.c | 111 enum mhi_pm_state __must_check mhi_tryset_pm_state(struct mhi_controller *mhi_cntrl, in mhi_tryset_pm_state() argument 114 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state() 126 mhi_cntrl->pm_state = state; in mhi_tryset_pm_state() 127 return mhi_cntrl->pm_state; in mhi_tryset_pm_state() 130 void mhi_set_mhi_state(struct mhi_controller *mhi_cntrl, enum mhi_state state) in mhi_set_mhi_state() argument 133 mhi_write_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL, in mhi_set_mhi_state() 136 mhi_write_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL, in mhi_set_mhi_state() 143 static void mhi_toggle_dev_wake_nop(struct mhi_controller *mhi_cntrl) in mhi_toggle_dev_wake_nop() argument 147 static void mhi_toggle_dev_wake(struct mhi_controller *mhi_cntrl) in mhi_toggle_dev_wake() argument 149 mhi_cntrl->wake_get(mhi_cntrl, false); in mhi_toggle_dev_wake() [all …]
|
D | init.c | 98 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in serial_number_show() local 101 mhi_cntrl->serial_number); in serial_number_show() 110 struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl; in oem_pk_hash_show() local 113 for (i = 0; i < ARRAY_SIZE(mhi_cntrl->oem_pk_hash); i++) in oem_pk_hash_show() 116 mhi_cntrl->oem_pk_hash[i]); in oem_pk_hash_show() 130 static int mhi_alloc_aligned_ring(struct mhi_controller *mhi_cntrl, in mhi_alloc_aligned_ring() argument 135 ring->pre_aligned = dma_alloc_coherent(mhi_cntrl->cntrl_dev, ring->alloc_size, in mhi_alloc_aligned_ring() 146 void mhi_deinit_free_irq(struct mhi_controller *mhi_cntrl) in mhi_deinit_free_irq() argument 149 struct mhi_event *mhi_event = mhi_cntrl->mhi_event; in mhi_deinit_free_irq() 151 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) { in mhi_deinit_free_irq() [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 | main.c | 19 int __must_check mhi_read_reg(struct mhi_controller *mhi_cntrl, in mhi_read_reg() argument 22 return mhi_cntrl->read_reg(mhi_cntrl, base + offset, out); in mhi_read_reg() 25 int __must_check mhi_read_reg_field(struct mhi_controller *mhi_cntrl, in mhi_read_reg_field() argument 32 ret = mhi_read_reg(mhi_cntrl, base, offset, &tmp); in mhi_read_reg_field() 41 int __must_check mhi_poll_reg_field(struct mhi_controller *mhi_cntrl, in mhi_poll_reg_field() argument 46 u32 out, retry = (mhi_cntrl->timeout_ms * 1000) / delayus; in mhi_poll_reg_field() 49 ret = mhi_read_reg_field(mhi_cntrl, base, offset, mask, shift, in mhi_poll_reg_field() 63 void mhi_write_reg(struct mhi_controller *mhi_cntrl, void __iomem *base, in mhi_write_reg() argument 66 mhi_cntrl->write_reg(mhi_cntrl, base + offset, val); in mhi_write_reg() 69 void mhi_write_reg_field(struct mhi_controller *mhi_cntrl, void __iomem *base, in mhi_write_reg_field() 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 | pci_generic.c | 521 struct mhi_controller mhi_cntrl; member 528 static int mhi_pci_read_reg(struct mhi_controller *mhi_cntrl, in mhi_pci_read_reg() argument 535 static void mhi_pci_write_reg(struct mhi_controller *mhi_cntrl, in mhi_pci_write_reg() argument 541 static void mhi_pci_status_cb(struct mhi_controller *mhi_cntrl, in mhi_pci_status_cb() argument 544 struct pci_dev *pdev = to_pci_dev(mhi_cntrl->cntrl_dev); in mhi_pci_status_cb() 561 static void mhi_pci_wake_get_nop(struct mhi_controller *mhi_cntrl, bool force) in mhi_pci_wake_get_nop() argument 566 static void mhi_pci_wake_put_nop(struct mhi_controller *mhi_cntrl, bool override) in mhi_pci_wake_put_nop() argument 571 static void mhi_pci_wake_toggle_nop(struct mhi_controller *mhi_cntrl) in mhi_pci_wake_toggle_nop() argument 576 static bool mhi_pci_is_alive(struct mhi_controller *mhi_cntrl) in mhi_pci_is_alive() argument 578 struct pci_dev *pdev = to_pci_dev(mhi_cntrl->cntrl_dev); in mhi_pci_is_alive() [all …]
|
D | internal.h | 456 #define MHI_DB_ACCESS_VALID(mhi_cntrl) (mhi_cntrl->pm_state & \ argument 457 mhi_cntrl->db_access) 485 void (*process_db)(struct mhi_controller *mhi_cntrl, 533 struct mhi_controller *mhi_cntrl; member 545 int (*process_event)(struct mhi_controller *mhi_cntrl, 589 void mhi_create_debugfs(struct mhi_controller *mhi_cntrl); 590 void mhi_destroy_debugfs(struct mhi_controller *mhi_cntrl); 594 static inline void mhi_create_debugfs(struct mhi_controller *mhi_cntrl) in mhi_create_debugfs() argument 598 static inline void mhi_destroy_debugfs(struct mhi_controller *mhi_cntrl) in mhi_destroy_debugfs() argument 611 struct mhi_device *mhi_alloc_device(struct mhi_controller *mhi_cntrl); [all …]
|
/drivers/net/wireless/ath/ath11k/ |
D | mhi.c | 275 static int ath11k_mhi_op_runtime_get(struct mhi_controller *mhi_cntrl) in ath11k_mhi_op_runtime_get() argument 280 static void ath11k_mhi_op_runtime_put(struct mhi_controller *mhi_cntrl) in ath11k_mhi_op_runtime_put() argument 284 static void ath11k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl, in ath11k_mhi_op_status_cb() argument 287 struct ath11k_base *ab = dev_get_drvdata(mhi_cntrl->cntrl_dev); in ath11k_mhi_op_status_cb() 298 static int ath11k_mhi_op_read_reg(struct mhi_controller *mhi_cntrl, in ath11k_mhi_op_read_reg() argument 307 static void ath11k_mhi_op_write_reg(struct mhi_controller *mhi_cntrl, in ath11k_mhi_op_write_reg() argument
|
/drivers/net/wwan/ |
D | mhi_wwan_mbim.c | 597 struct mhi_controller *cntrl = mhi_dev->mhi_cntrl; in mhi_mbim_probe() 608 mbim->mru = mhi_dev->mhi_cntrl->mru ? mhi_dev->mhi_cntrl->mru : MHI_DEFAULT_MRU; in mhi_mbim_probe() 627 struct mhi_controller *cntrl = mhi_dev->mhi_cntrl; in mhi_mbim_remove()
|
D | mhi_wwan_ctrl.c | 217 struct mhi_controller *cntrl = mhi_dev->mhi_cntrl; in mhi_wwan_ctrl_probe()
|
/drivers/net/ |
D | mhi_net.c | 315 mhi_netdev->mru = mhi_dev->mhi_cntrl->mru; in mhi_net_newlink()
|