Lines Matching refs:desired
388 const struct mvebu_pcie_window *desired, in mvebu_pcie_set_window() argument
391 if (desired->base == cur->base && desired->remap == cur->remap && in mvebu_pcie_set_window()
392 desired->size == cur->size) in mvebu_pcie_set_window()
407 if (desired->size == 0) in mvebu_pcie_set_window()
410 mvebu_pcie_add_windows(port, target, attribute, desired->base, in mvebu_pcie_set_window()
411 desired->size, desired->remap); in mvebu_pcie_set_window()
412 *cur = *desired; in mvebu_pcie_set_window()
417 struct mvebu_pcie_window desired = {}; in mvebu_pcie_handle_iobase_change() local
424 &desired, &port->iowin); in mvebu_pcie_handle_iobase_change()
441 desired.remap = ((port->bridge.iobase & 0xF0) << 8) | in mvebu_pcie_handle_iobase_change()
443 desired.base = port->pcie->io.start + desired.remap; in mvebu_pcie_handle_iobase_change()
444 desired.size = ((0xFFF | ((port->bridge.iolimit & 0xF0) << 8) | in mvebu_pcie_handle_iobase_change()
446 desired.remap) + in mvebu_pcie_handle_iobase_change()
449 mvebu_pcie_set_window(port, port->io_target, port->io_attr, &desired, in mvebu_pcie_handle_iobase_change()
455 struct mvebu_pcie_window desired = {.remap = MVEBU_MBUS_NO_REMAP}; in mvebu_pcie_handle_membase_change() local
461 &desired, &port->memwin); in mvebu_pcie_handle_membase_change()
471 desired.base = ((port->bridge.membase & 0xFFF0) << 16); in mvebu_pcie_handle_membase_change()
472 desired.size = (((port->bridge.memlimit & 0xFFF0) << 16) | 0xFFFFF) - in mvebu_pcie_handle_membase_change()
473 desired.base + 1; in mvebu_pcie_handle_membase_change()
475 mvebu_pcie_set_window(port, port->mem_target, port->mem_attr, &desired, in mvebu_pcie_handle_membase_change()