Lines Matching refs:Data

69 	irqnum = res->Data.Irq.InterruptCount;  in acpi_lookup_irq_handler()
70 irq = res->Data.Irq.Interrupts[0]; in acpi_lookup_irq_handler()
74 irqnum = res->Data.ExtendedIrq.InterruptCount; in acpi_lookup_irq_handler()
75 irq = res->Data.ExtendedIrq.Interrupts[0]; in acpi_lookup_irq_handler()
122 KASSERT(res->Data.Irq.InterruptCount == 1, in acpi_config_intr()
124 irq = res->Data.Irq.Interrupts[0]; in acpi_config_intr()
125 trig = res->Data.Irq.Triggering; in acpi_config_intr()
126 pol = res->Data.Irq.Polarity; in acpi_config_intr()
129 KASSERT(res->Data.ExtendedIrq.InterruptCount == 1, in acpi_config_intr()
131 irq = res->Data.ExtendedIrq.Interrupts[0]; in acpi_config_intr()
132 trig = res->Data.ExtendedIrq.Triggering; in acpi_config_intr()
133 pol = res->Data.ExtendedIrq.Polarity; in acpi_config_intr()
198 if (res->Data.FixedIo.AddressLength <= 0) in acpi_parse_resource()
201 res->Data.FixedIo.Address, res->Data.FixedIo.AddressLength)); in acpi_parse_resource()
202 set->set_ioport(dev, arc->context, res->Data.FixedIo.Address, in acpi_parse_resource()
203 res->Data.FixedIo.AddressLength); in acpi_parse_resource()
206 if (res->Data.Io.AddressLength <= 0) in acpi_parse_resource()
208 if (res->Data.Io.Minimum == res->Data.Io.Maximum) { in acpi_parse_resource()
210 res->Data.Io.Minimum, res->Data.Io.AddressLength)); in acpi_parse_resource()
211 set->set_ioport(dev, arc->context, res->Data.Io.Minimum, in acpi_parse_resource()
212 res->Data.Io.AddressLength); in acpi_parse_resource()
215 res->Data.Io.Minimum, res->Data.Io.Maximum, in acpi_parse_resource()
216 res->Data.Io.AddressLength)); in acpi_parse_resource()
217 set->set_iorange(dev, arc->context, res->Data.Io.Minimum, in acpi_parse_resource()
218 res->Data.Io.Maximum, res->Data.Io.AddressLength, in acpi_parse_resource()
219 res->Data.Io.Alignment); in acpi_parse_resource()
223 if (res->Data.FixedMemory32.AddressLength <= 0) in acpi_parse_resource()
226 res->Data.FixedMemory32.Address, in acpi_parse_resource()
227 res->Data.FixedMemory32.AddressLength)); in acpi_parse_resource()
228 set->set_memory(dev, arc->context, res->Data.FixedMemory32.Address, in acpi_parse_resource()
229 res->Data.FixedMemory32.AddressLength); in acpi_parse_resource()
232 if (res->Data.Memory32.AddressLength <= 0) in acpi_parse_resource()
234 if (res->Data.Memory32.Minimum == res->Data.Memory32.Maximum) { in acpi_parse_resource()
236 res->Data.Memory32.Minimum, res->Data.Memory32.AddressLength)); in acpi_parse_resource()
237 set->set_memory(dev, arc->context, res->Data.Memory32.Minimum, in acpi_parse_resource()
238 res->Data.Memory32.AddressLength); in acpi_parse_resource()
241 res->Data.Memory32.Minimum, res->Data.Memory32.Maximum, in acpi_parse_resource()
242 res->Data.Memory32.AddressLength)); in acpi_parse_resource()
243 set->set_memoryrange(dev, arc->context, res->Data.Memory32.Minimum, in acpi_parse_resource()
244 res->Data.Memory32.Maximum, res->Data.Memory32.AddressLength, in acpi_parse_resource()
245 res->Data.Memory32.Alignment); in acpi_parse_resource()
249 if (res->Data.Memory24.AddressLength <= 0) in acpi_parse_resource()
251 if (res->Data.Memory24.Minimum == res->Data.Memory24.Maximum) { in acpi_parse_resource()
253 res->Data.Memory24.Minimum, res->Data.Memory24.AddressLength)); in acpi_parse_resource()
254 set->set_memory(dev, arc->context, res->Data.Memory24.Minimum, in acpi_parse_resource()
255 res->Data.Memory24.AddressLength); in acpi_parse_resource()
258 res->Data.Memory24.Minimum, res->Data.Memory24.Maximum, in acpi_parse_resource()
259 res->Data.Memory24.AddressLength)); in acpi_parse_resource()
260 set->set_memoryrange(dev, arc->context, res->Data.Memory24.Minimum, in acpi_parse_resource()
261 res->Data.Memory24.Maximum, res->Data.Memory24.AddressLength, in acpi_parse_resource()
262 res->Data.Memory24.Alignment); in acpi_parse_resource()
271 set->set_irq(dev, arc->context, res->Data.Irq.Interrupts, in acpi_parse_resource()
272 res->Data.Irq.InterruptCount, res->Data.Irq.Triggering, in acpi_parse_resource()
273 res->Data.Irq.Polarity); in acpi_parse_resource()
281 set->set_drq(dev, arc->context, res->Data.Dma.Channels, in acpi_parse_resource()
282 res->Data.Dma.ChannelCount); in acpi_parse_resource()
287 res->Data.StartDpf.CompatibilityPriority); in acpi_parse_resource()
299 gran = res->Data.Address16.Address.Granularity; in acpi_parse_resource()
300 min = res->Data.Address16.Address.Minimum; in acpi_parse_resource()
301 max = res->Data.Address16.Address.Maximum; in acpi_parse_resource()
302 length = res->Data.Address16.Address.AddressLength; in acpi_parse_resource()
306 gran = res->Data.Address32.Address.Granularity; in acpi_parse_resource()
307 min = res->Data.Address32.Address.Minimum; in acpi_parse_resource()
308 max = res->Data.Address32.Address.Maximum; in acpi_parse_resource()
309 length = res->Data.Address32.Address.AddressLength; in acpi_parse_resource()
313 gran = res->Data.Address64.Address.Granularity; in acpi_parse_resource()
314 min = res->Data.Address64.Address.Minimum; in acpi_parse_resource()
315 max = res->Data.Address64.Address.Maximum; in acpi_parse_resource()
316 length = res->Data.Address64.Address.AddressLength; in acpi_parse_resource()
322 gran = res->Data.ExtAddress64.Address.Granularity; in acpi_parse_resource()
323 min = res->Data.ExtAddress64.Address.Minimum; in acpi_parse_resource()
324 max = res->Data.ExtAddress64.Address.Maximum; in acpi_parse_resource()
325 length = res->Data.ExtAddress64.Address.AddressLength; in acpi_parse_resource()
331 if (res->Data.Address.ProducerConsumer != ACPI_CONSUMER) { in acpi_parse_resource()
334 acpi_address_range_name(res->Data.Address.ResourceType))); in acpi_parse_resource()
337 if (res->Data.Address.ResourceType != ACPI_MEMORY_RANGE && in acpi_parse_resource()
338 res->Data.Address.ResourceType != ACPI_IO_RANGE) { in acpi_parse_resource()
345 if (min > ULONG_MAX || (res->Data.Address.MaxAddressFixed && max > in acpi_parse_resource()
354 if (res->Data.Address.MinAddressFixed == ACPI_ADDRESS_FIXED && in acpi_parse_resource()
355 res->Data.Address.MaxAddressFixed == ACPI_ADDRESS_FIXED) { in acpi_parse_resource()
356 if (res->Data.Address.ResourceType == ACPI_MEMORY_RANGE) { in acpi_parse_resource()
366 if (res->Data.Address32.ResourceType == ACPI_MEMORY_RANGE) { in acpi_parse_resource()
379 if (res->Data.ExtendedIrq.ProducerConsumer != ACPI_CONSUMER) { in acpi_parse_resource()
383 set->set_ext_irq(dev, arc->context, res->Data.ExtendedIrq.Interrupts, in acpi_parse_resource()
384 res->Data.ExtendedIrq.InterruptCount, in acpi_parse_resource()
385 res->Data.ExtendedIrq.Triggering, res->Data.ExtendedIrq.Polarity); in acpi_parse_resource()