参照元

説明

引数

返り値

参考

実装

CONFIG_DMA_ENGINE 無効: include/linux/dmaengine.h

static inline struct dma_chan *dma_request_slave_channel_reason(
                                        struct device *dev, const char *name)
{
        return ERR_PTR(-ENODEV);
}

CONFIG_DMA_ENGINE 有効: drivers/dma/dmaengine.c

/**
 * dma_request_slave_channel_reason - 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 an error pointer.
 */
struct dma_chan *dma_request_slave_channel_reason(struct device *dev,
                                                  const char *name)
{
        /* If device-tree is present get slave info from here */
        if (dev->of_node)
                return of_dma_request_slave_channel(dev->of_node, name);
        /* If device was enumerated by ACPI get slave info from here */
        if (ACPI_HANDLE(dev))
                return acpi_dma_request_slave_chan_by_name(dev, name);
        return ERR_PTR(-ENODEV);
}
EXPORT_SYMBOL_GPL(dma_request_slave_channel_reason);

コメント


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-04-28 (木) 21:44:19