Lines Matching full:range
138 struct logic_pio_hwaddr *range; in add_legacy_isa_io() local
141 range = kzalloc(sizeof(*range), GFP_ATOMIC); in add_legacy_isa_io()
142 if (!range) in add_legacy_isa_io()
145 range->fwnode = fwnode; in add_legacy_isa_io()
146 range->size = size = round_up(size, PAGE_SIZE); in add_legacy_isa_io()
147 range->hw_start = hw_start; in add_legacy_isa_io()
148 range->flags = LOGIC_PIO_CPU_MMIO; in add_legacy_isa_io()
150 ret = logic_pio_register_range(range); in add_legacy_isa_io()
152 kfree(range); in add_legacy_isa_io()
157 if (range->io_start != 0) { in add_legacy_isa_io()
158 logic_pio_unregister_range(range); in add_legacy_isa_io()
159 kfree(range); in add_legacy_isa_io()
163 vaddr = PCI_IOBASE + range->io_start; in add_legacy_isa_io()
175 struct of_range range; in reserve_pio_range() local
186 for_each_of_range(&parser, &range) { in reserve_pio_range()
187 switch (range.flags & IORESOURCE_TYPE_BITS) { in reserve_pio_range()
190 range.cpu_addr, in reserve_pio_range()
191 range.cpu_addr + range.size - 1, in reserve_pio_range()
192 range.bus_addr); in reserve_pio_range()
193 if (add_legacy_isa_io(&np->fwnode, range.cpu_addr, range.size)) in reserve_pio_range()
198 range.cpu_addr, in reserve_pio_range()
199 range.cpu_addr + range.size - 1, in reserve_pio_range()
200 range.bus_addr); in reserve_pio_range()