Lines Matching defs:window
206 /* Find first disabled window */
213 /* If there is no free window, return erroneous value */
221 int memtag = 0, iotag = 0, window, i;
244 /* Reset PCI-Express space to window register. */
245 window = mvsoc_target(memtag, &target, &attr, NULL, NULL);
247 /* Find free window if we've got spurious one */
248 if (window >= nwindow) {
249 window = axp_pcie_free_win();
251 if (window < 0) {
256 write_mlmbreg(MVSOC_MLMB_WCR(window),
261 write_mlmbreg(MVSOC_MLMB_WBR(window),
264 if (window < nremap) {
265 write_mlmbreg(MVSOC_MLMB_WRLR(window),
267 write_mlmbreg(MVSOC_MLMB_WRHR(window), 0);
270 window = mvsoc_target(iotag, &target, &attr, NULL, NULL);
272 /* Find free window if we've got spurious one */
273 if (window >= nwindow) {
274 window = axp_pcie_free_win();
276 if (window < 0) {
281 write_mlmbreg(MVSOC_MLMB_WCR(window),
286 write_mlmbreg(MVSOC_MLMB_WBR(window),
289 if (window < nremap) {
290 write_mlmbreg(MVSOC_MLMB_WRLR(window),
292 write_mlmbreg(MVSOC_MLMB_WRHR(window), 0);
334 /* Reset PCI-Express space to window register. */