*参照元 [#m813562b]
#backlinks

*説明 [#bd9e5abd]
-パス: 複数あり
--CONFIG_DMA_ENGINE 無効: [[linux-4.4.1/include/linux/dmaengine.h]]
--CONFIG_DMA_ENGINE 有効: [[linux-4.4.1/drivers/dma/dmaengine.c]]

-FIXME: これは何?
--説明


**引数 [#y75f990b]
-struct device *dev
--
--[[linux-4.4.1/device]]
--const char *name
--


**返り値 [#dd8c2863]
-struct dma_chan *
--
--[[linux-4.4.1/dma_chan]]


**参考 [#i39b45d8]


*実装 [#b763be31]

**CONFIG_DMA_ENGINE 無効: include/linux/dmaengine.h [#y6251a3f]
 static inline struct dma_chan *dma_request_slave_channel(struct device *dev,
                                                          const char *name)
 {
         return NULL;
 }


**CONFIG_DMA_ENGINE 有効: drivers/dma/dmaengine.c [#t0bfa76a]
 /**
  * dma_request_slave_channel - try to allocate an exclusive slave channel
  * @dev:        pointer to client device structure
  * @name:       slave channel name
  *
  * Returns pointer to appropriate DMA channel on success or NULL.
  */
 struct dma_chan *dma_request_slave_channel(struct device *dev,
                                            const char *name)
 {
         struct dma_chan *ch = dma_request_slave_channel_reason(dev, name);
         if (IS_ERR(ch))
                 return NULL;
 
-
--[[linux-4.4.1/dma_chan]]
--[[linux-4.4.1/dma_request_slave_channel_reason()]]
--[[linux-4.4.1/IS_ERR()]]

         dma_cap_set(DMA_PRIVATE, ch->device->cap_mask);
         ch->device->privatecnt++;
 
-
--[[linux-4.4.1/dma_cap_set()]]

         return ch;
 }
 EXPORT_SYMBOL_GPL(dma_request_slave_channel);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]


*コメント [#h7fe998d]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS