Lines Matching refs:dir
801 mhi_chan->dir = ch_cfg->dir; in parse_ch_cfg()
810 mhi_chan->type = (enum mhi_ch_type)mhi_chan->dir; in parse_ch_cfg()
824 if (mhi_chan->pre_alloc && mhi_chan->dir != DMA_FROM_DEVICE) { in parse_ch_cfg()
833 if ((mhi_chan->dir == DMA_BIDIRECTIONAL || in parse_ch_cfg()
834 mhi_chan->dir == DMA_NONE) && !mhi_chan->offload_ch) { in parse_ch_cfg()
1329 int dir; in mhi_driver_remove() local
1336 for (dir = 0; dir < 2; dir++) { in mhi_driver_remove()
1337 mhi_chan = dir ? mhi_dev->ul_chan : mhi_dev->dl_chan; in mhi_driver_remove()
1351 ch_state[dir] = mhi_chan->ch_state; in mhi_driver_remove()
1365 for (dir = 0; dir < 2; dir++) { in mhi_driver_remove()
1366 mhi_chan = dir ? mhi_dev->ul_chan : mhi_dev->dl_chan; in mhi_driver_remove()
1373 if ((ch_state[dir] == MHI_CH_STATE_ENABLED || in mhi_driver_remove()
1374 ch_state[dir] == MHI_CH_STATE_STOP) && in mhi_driver_remove()