linux-4.4.1/dma_declare_contiguous()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#f29030a5]
#backlinks
*説明 [#e39f036c]
-パス: [[linux-4.4.1/include/linux/dma-contiguous.h]]
-FIXME: これは何?
--説明
**引数 [#oeede878]
-struct device *dev
--
--[[linux-4.4.1/device]]
-phys_addr_t size
--
--[[linux-4.4.1/phys_addr_t]]
-phys_addr_t base
--
-phys_addr_t limit
--
**返り値 [#c46954c9]
-int
--
**参考 [#g795cee3]
*実装 [#d24e82c4]
#ifdef CONFIG_DMA_CMA
-CONFIG_DMA_CMA が有効
--[[linux-4.4.1/CONFIG_DMA_CMA]]
...
/**
* dma_declare_contiguous() - reserve area for contiguou...
* for particular device
* @dev: Pointer to device structure.
* @size: Size of the reserved memory.
* @base: Start address of the reserved memory (optiona...
* @limit: End address of the reserved memory (optional,...
*
* This function reserves memory for specified device. I...
* called by board specific code when early allocator (m...
* is still activate.
*/
static inline int dma_declare_contiguous(struct device *...
phys_addr_t base, phys_addr_t limit)
{
struct cma *cma;
int ret;
-
--[[linux-4.4.1/cma]]
ret = dma_contiguous_reserve_area(size, base, limit, &c...
if (ret == 0)
dev_set_cma_area(dev, cma);
-
--[[linux-4.4.1/dma_contiguous_reserve_area()]]
--[[linux-4.4.1/dev_set_cma_area()]]
return ret;
}
#else
-CONFIG_DMA_CMA が無効
...
static inline
int dma_declare_contiguous(struct device *dev, phys_addr...
phys_addr_t base, phys_addr_t limit)
{
return -ENOSYS;
}
*コメント [#b114c2be]
終了行:
*参照元 [#f29030a5]
#backlinks
*説明 [#e39f036c]
-パス: [[linux-4.4.1/include/linux/dma-contiguous.h]]
-FIXME: これは何?
--説明
**引数 [#oeede878]
-struct device *dev
--
--[[linux-4.4.1/device]]
-phys_addr_t size
--
--[[linux-4.4.1/phys_addr_t]]
-phys_addr_t base
--
-phys_addr_t limit
--
**返り値 [#c46954c9]
-int
--
**参考 [#g795cee3]
*実装 [#d24e82c4]
#ifdef CONFIG_DMA_CMA
-CONFIG_DMA_CMA が有効
--[[linux-4.4.1/CONFIG_DMA_CMA]]
...
/**
* dma_declare_contiguous() - reserve area for contiguou...
* for particular device
* @dev: Pointer to device structure.
* @size: Size of the reserved memory.
* @base: Start address of the reserved memory (optiona...
* @limit: End address of the reserved memory (optional,...
*
* This function reserves memory for specified device. I...
* called by board specific code when early allocator (m...
* is still activate.
*/
static inline int dma_declare_contiguous(struct device *...
phys_addr_t base, phys_addr_t limit)
{
struct cma *cma;
int ret;
-
--[[linux-4.4.1/cma]]
ret = dma_contiguous_reserve_area(size, base, limit, &c...
if (ret == 0)
dev_set_cma_area(dev, cma);
-
--[[linux-4.4.1/dma_contiguous_reserve_area()]]
--[[linux-4.4.1/dev_set_cma_area()]]
return ret;
}
#else
-CONFIG_DMA_CMA が無効
...
static inline
int dma_declare_contiguous(struct device *dev, phys_addr...
phys_addr_t base, phys_addr_t limit)
{
return -ENOSYS;
}
*コメント [#b114c2be]
ページ名: