Lines Matching refs:ddw_avail
841 static void __remove_dma_window(struct device_node *np, u32 *ddw_avail, u64 liobn) in __remove_dma_window() argument
845 ret = rtas_call(ddw_avail[DDW_REMOVE_PE_DMA_WIN], 1, 1, NULL, liobn); in __remove_dma_window()
849 np, ret, ddw_avail[DDW_REMOVE_PE_DMA_WIN], liobn); in __remove_dma_window()
853 np, ret, ddw_avail[DDW_REMOVE_PE_DMA_WIN], liobn); in __remove_dma_window()
856 static void remove_dma_window(struct device_node *np, u32 *ddw_avail, in remove_dma_window() argument
866 __remove_dma_window(np, ddw_avail, liobn); in remove_dma_window()
872 u32 ddw_avail[DDW_APPLICABLE_SIZE]; in remove_ddw() local
880 &ddw_avail[0], DDW_APPLICABLE_SIZE); in remove_ddw()
886 remove_dma_window(np, ddw_avail, win); in remove_ddw()
1009 static int query_ddw(struct pci_dev *dev, const u32 *ddw_avail, in query_ddw() argument
1041 ret = rtas_call(ddw_avail[DDW_QUERY_PE_DMA_WIN], 3, out_sz, query_out, in query_ddw()
1061 ddw_avail[DDW_QUERY_PE_DMA_WIN], cfg_addr, BUID_HI(buid), in query_ddw()
1068 static int create_ddw(struct pci_dev *dev, const u32 *ddw_avail, in create_ddw() argument
1091 ret = rtas_call(ddw_avail[DDW_CREATE_PE_DMA_WIN], 5, 4, in create_ddw()
1098 ddw_avail[DDW_CREATE_PE_DMA_WIN], cfg_addr, BUID_HI(buid), in create_ddw()
1249 u32 ddw_avail[DDW_APPLICABLE_SIZE]; in enable_ddw() local
1290 &ddw_avail[0], DDW_APPLICABLE_SIZE); in enable_ddw()
1301 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1329 remove_dma_window(pdn, ddw_avail, default_win); in enable_ddw()
1333 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1384 ret = create_ddw(dev, ddw_avail, &create, page_shift, len); in enable_ddw()
1484 __remove_dma_window(pdn, ddw_avail, create.liobn); in enable_ddw()