Searched refs:mhi_cmd (Results 1 – 5 of 5) sorted by relevance
/drivers/bus/mhi/host/ |
D | init.c | 231 struct mhi_cmd *mhi_cmd; in mhi_deinit_dev_ctxt() local 235 mhi_cmd = mhi_cntrl->mhi_cmd; in mhi_deinit_dev_ctxt() 236 for (i = 0; i < NR_OF_CMD_RINGS; i++, mhi_cmd++) { in mhi_deinit_dev_ctxt() 237 ring = &mhi_cmd->ring; in mhi_deinit_dev_ctxt() 280 struct mhi_cmd *mhi_cmd; in mhi_init_dev_ctxt() local 379 mhi_cmd = mhi_cntrl->mhi_cmd; in mhi_init_dev_ctxt() 381 for (i = 0; i < NR_OF_CMD_RINGS; i++, mhi_cmd++, cmd_ctxt++) { in mhi_init_dev_ctxt() 382 struct mhi_ring *ring = &mhi_cmd->ring; in mhi_init_dev_ctxt() 403 for (--i, --mhi_cmd; i >= 0; i--, mhi_cmd--) { in mhi_init_dev_ctxt() 404 struct mhi_ring *ring = &mhi_cmd->ring; in mhi_init_dev_ctxt() [all …]
|
D | pm.c | 279 struct mhi_cmd *mhi_cmd = in mhi_pm_m0_transition() local 280 &mhi_cntrl->mhi_cmd[PRIMARY_CMD_RING]; in mhi_pm_m0_transition() 292 spin_lock_irq(&mhi_cmd->lock); in mhi_pm_m0_transition() 293 if (mhi_cmd->ring.rp != mhi_cmd->ring.wp) in mhi_pm_m0_transition() 294 mhi_ring_cmd_db(mhi_cntrl, mhi_cmd); in mhi_pm_m0_transition() 295 spin_unlock_irq(&mhi_cmd->lock); in mhi_pm_m0_transition() 469 struct mhi_cmd *mhi_cmd; in mhi_pm_disable_transition() local 536 mhi_cmd = mhi_cntrl->mhi_cmd; in mhi_pm_disable_transition() 538 for (i = 0; i < NR_OF_CMD_RINGS; i++, mhi_cmd++, cmd_ctxt++) { in mhi_pm_disable_transition() 539 struct mhi_ring *ring = &mhi_cmd->ring; in mhi_pm_disable_transition() [all …]
|
D | main.c | 122 void mhi_ring_cmd_db(struct mhi_controller *mhi_cntrl, struct mhi_cmd *mhi_cmd) in mhi_ring_cmd_db() argument 125 struct mhi_ring *ring = &mhi_cmd->ring; in mhi_ring_cmd_db() 775 struct mhi_cmd *cmd_ring = &mhi_cntrl->mhi_cmd[PRIMARY_CMD_RING]; in mhi_process_cmd_completion() 1283 struct mhi_cmd *mhi_cmd = &mhi_cntrl->mhi_cmd[PRIMARY_CMD_RING]; in mhi_send_cmd() local 1284 struct mhi_ring *ring = &mhi_cmd->ring; in mhi_send_cmd() 1291 spin_lock_bh(&mhi_cmd->lock); in mhi_send_cmd() 1293 spin_unlock_bh(&mhi_cmd->lock); in mhi_send_cmd() 1324 mhi_ring_cmd_db(mhi_cntrl, mhi_cmd); in mhi_send_cmd() 1326 spin_unlock_bh(&mhi_cmd->lock); in mhi_send_cmd()
|
D | internal.h | 178 struct mhi_cmd { struct 336 void mhi_ring_cmd_db(struct mhi_controller *mhi_cntrl, struct mhi_cmd *mhi_cmd);
|
/drivers/bus/mhi/ep/ |
D | main.c | 129 struct mhi_ep_ring *ring = &mhi_cntrl->mhi_cmd->ring; in mhi_ep_send_cmd_comp_event() 620 ret = mhi_ep_ring_start(mhi_cntrl, &mhi_cntrl->mhi_cmd->ring, in mhi_ep_cache_host_cfg() 715 struct mhi_ep_ring *ring = &mhi_cntrl->mhi_cmd->ring; in mhi_ep_cmd_ring_worker() 1023 mhi_ep_ring_reset(mhi_cntrl, &mhi_cntrl->mhi_cmd->ring); in mhi_ep_abort_transfer() 1093 mhi_ep_ring_init(&mhi_cntrl->mhi_cmd->ring, RING_TYPE_CMD, 0); in mhi_ep_power_up() 1406 mhi_cntrl->mhi_cmd = kcalloc(NR_OF_CMD_RINGS, sizeof(*mhi_cntrl->mhi_cmd), GFP_KERNEL); in mhi_ep_register_controller() 1407 if (!mhi_cntrl->mhi_cmd) { in mhi_ep_register_controller() 1508 kfree(mhi_cntrl->mhi_cmd); in mhi_ep_register_controller() 1531 kfree(mhi_cntrl->mhi_cmd); in mhi_ep_unregister_controller()
|