Lines Matching refs:hiter
89 static void destroy_header_iter(struct header_iter *hiter) in destroy_header_iter() argument
91 if (!hiter) in destroy_header_iter()
93 pci_dev_put(hiter->dev); in destroy_header_iter()
94 kfree(hiter); in destroy_header_iter()
99 struct header_iter *hiter; in mmio_pipe_open() local
104 hiter = kzalloc(sizeof(*hiter), GFP_KERNEL); in mmio_pipe_open()
105 if (!hiter) in mmio_pipe_open()
108 hiter->dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL); in mmio_pipe_open()
109 iter->private = hiter; in mmio_pipe_open()
115 struct header_iter *hiter = iter->private; in mmio_close() local
116 destroy_header_iter(hiter); in mmio_close()
135 struct header_iter *hiter = iter->private; in mmio_read() local
149 if (!hiter) in mmio_read()
152 mmio_print_pcidev(s, hiter->dev); in mmio_read()
153 hiter->dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, hiter->dev); in mmio_read()
155 if (!hiter->dev) { in mmio_read()
156 destroy_header_iter(hiter); in mmio_read()