Lines Matching refs:free_win
160 u32 free_win; in dw_pcie_ep_inbound_atu() local
164 free_win = find_first_zero_bit(ep->ib_window_map, pci->num_ib_windows); in dw_pcie_ep_inbound_atu()
166 free_win = ep->bar_to_atu[bar] - 1; in dw_pcie_ep_inbound_atu()
168 if (free_win >= pci->num_ib_windows) { in dw_pcie_ep_inbound_atu()
173 ret = dw_pcie_prog_ep_inbound_atu(pci, func_no, free_win, type, in dw_pcie_ep_inbound_atu()
184 ep->bar_to_atu[bar] = free_win + 1; in dw_pcie_ep_inbound_atu()
185 set_bit(free_win, ep->ib_window_map); in dw_pcie_ep_inbound_atu()
195 u32 free_win; in dw_pcie_ep_outbound_atu() local
198 free_win = find_first_zero_bit(ep->ob_window_map, pci->num_ob_windows); in dw_pcie_ep_outbound_atu()
199 if (free_win >= pci->num_ob_windows) { in dw_pcie_ep_outbound_atu()
204 ret = dw_pcie_prog_ep_outbound_atu(pci, func_no, free_win, PCIE_ATU_TYPE_MEM, in dw_pcie_ep_outbound_atu()
209 set_bit(free_win, ep->ob_window_map); in dw_pcie_ep_outbound_atu()
210 ep->outbound_addr[free_win] = phys_addr; in dw_pcie_ep_outbound_atu()