Lines Matching defs:piar
70 struct pci_io_addr_range *piar;
71 piar = rb_entry(n, struct pci_io_addr_range, rb_node);
73 if (addr < piar->addr_lo) {
76 if (addr > piar->addr_hi) {
79 pci_dev_get(piar->pcidev);
80 return piar->pcidev;
121 struct pci_io_addr_range *piar;
122 piar = rb_entry(n, struct pci_io_addr_range, rb_node);
124 (piar->flags & IORESOURCE_IO) ? "i/o" : "mem", cnt,
125 piar->addr_lo, piar->addr_hi, pci_name(piar->pcidev));
139 struct pci_io_addr_range *piar;
144 piar = rb_entry(parent, struct pci_io_addr_range, rb_node);
145 if (ahi < piar->addr_lo) {
147 } else if (alo > piar->addr_hi) {
150 if (dev != piar->pcidev ||
151 alo != piar->addr_lo || ahi != piar->addr_hi) {
154 return piar;
157 piar = kmalloc(sizeof(struct pci_io_addr_range), GFP_ATOMIC);
158 if (!piar)
162 piar->addr_lo = alo;
163 piar->addr_hi = ahi;
164 piar->pcidev = dev;
165 piar->flags = flags;
172 rb_link_node(&piar->rb_node, parent, p);
173 rb_insert_color(&piar->rb_node, &pci_io_addr_cache_root.rb_root);
175 return piar;
244 struct pci_io_addr_range *piar;
245 piar = rb_entry(n, struct pci_io_addr_range, rb_node);
247 if (piar->pcidev == dev) {
249 pci_dev_put(piar->pcidev);
250 kfree(piar);