参照元

説明

引数

返り値

参考

実装

CONFIG_DMA_ENGINE 無効: include/linux/dmaengine.h

static inline struct dma_chan *dma_request_slave_channel(struct device *dev,
                                                         const char *name)
{
        return NULL;
}

CONFIG_DMA_ENGINE 有効: drivers/dma/dmaengine.c

/**
 * 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;
        dma_cap_set(DMA_PRIVATE, ch->device->cap_mask);
        ch->device->privatecnt++;
        return ch;
}
EXPORT_SYMBOL_GPL(dma_request_slave_channel);

コメント


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS