unsigned int dma_sync_size) { dma_addr_t dma_addr = page_pool_get_dma_addr(page);dma_sync_size = min(dma_sync_size, pool->p.max_len); dma_sync_single_range_for_device(pool->p.dev, page->dma_addr, dma_sync_single_range_for_device(pool->p.dev, dma_addr, ...
dma_unmap_single_attrs(dev->dev.parent, dma_addr, bm_pool->buf_size, DMA_FROM_DEVICE,2 changes: 1 addition & 1 deletion 2 drivers/net/ethernet/ti/cpsw.c Original file line numberDiff line numberDiff line change @@ -431,7 +431,7 @@ static void cpsw_rx_handler(void *token, int...
3.2 dma pool 驱动中经常面临buffer的管理,可以使用dma pool机制来处理,大概的原理如下: dma-pool以页为单位来进行管理分配,可以通过添加多个dma池来使用; dma-pool子系统的细节描述,需要另起一篇文章了; 3.2 Streaming DMA mappings streaming mapping:对应于non-coherence设备; 通常在单次DMA传输时进行map,在传输...
unsigned long private:私有数据 page_pool used by netstack 如果该页被用作DMA映射,dma_addr_t则代表的是映射的一个总线地址: struct { /* page_pool used by netstack */ /** * @dma_addr: might require a 64-bit value even on * 32-bit architectures. */ dma_addr_t dma_addr; }; slab, ...
page_pool used by netstack 如果该页被用作DMA映射,dma_addr_t则代表的是映射的一个总线地址: slab, slob and slub 该页面被slab/slob/slub所管理分配,即已经被buffy分配出去,进一步做小内存分配管理: 主要结构说明: struct list_head slab_list:指向的是slab list链表 ...
struct{/* page_pool used by netstack */ /** * @dma_addr: might require a 64-bit value even on * 32-bit architectures. */ dma_addr_tdma_addr; }; struct{/* slab, slob and slub */ union{ structlist_headslab_list; struct{/* Partial pages */ ...
StorPortFreeDmaMemory 函式 StorPortFreeHostMemoryBuffer 函式 StorPortFreeMdl 函式 StorPortFreePool 函式 StorPortFreeRegistryBuffer 函式 StorPortFreeTimer 函式 StorPortFreeWorker 函式 StorPortGetActiveGroupCount 函式 StorPortGetActiveNodeCount 函式 StorPortGetActivityIdSrb 函式 StorPortGet...
StorPortFreeDmaMemory 函数 StorPortFreeHostMemoryBuffer 函数 StorPortFreeMdl 函数 StorPortFreePool 函数 StorPortFreeRegistryBuffer 函数 StorPortFreeTimer 函数 StorPortFreeWorker 函数 StorPortGetActiveGroupCount 函数 StorPortGetActiveNodeCount 函数 StorPortGetActivityIdSrb 函数 StorPortGetBusData...
StorPortFreeDmaMemory function StorPortFreeHostMemoryBuffer function StorPortFreeMdl function StorPortFreePool function StorPortFreeRegistryBuffer function StorPortFreeTimer function StorPortFreeWorker function StorPortGetActiveGroupCount function StorPortGetActiveNodeCount function StorPortGetActivityIdSrb function ...
Función StorPortFreeDmaMemory Función StorPortFreeHostMemoryBuffer Función StorPortFreeMdl Función StorPortFreePool Función StorPortFreeRegistryBuffer Función StorPortFreeTimer Función StorPortFreeWorker Función StorPortGetActiveGroupCount Función StorPortGetActiveNodeCount Función StorPortGetActi...