Lines Matching refs:bar
60 unsigned int bar) in pnp_port_start() argument
62 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_start()
70 unsigned int bar) in pnp_port_end() argument
72 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_end()
80 unsigned int bar) in pnp_port_flags() argument
82 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_flags()
89 static inline int pnp_port_valid(struct pnp_dev *dev, unsigned int bar) in pnp_port_valid() argument
91 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IO, bar)); in pnp_port_valid()
95 unsigned int bar) in pnp_port_len() argument
97 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_len()
106 unsigned int bar) in pnp_mem_start() argument
108 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); in pnp_mem_start()
116 unsigned int bar) in pnp_mem_end() argument
118 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); in pnp_mem_end()
125 static inline unsigned long pnp_mem_flags(struct pnp_dev *dev, unsigned int bar) in pnp_mem_flags() argument
127 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); in pnp_mem_flags()
134 static inline int pnp_mem_valid(struct pnp_dev *dev, unsigned int bar) in pnp_mem_valid() argument
136 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_MEM, bar)); in pnp_mem_valid()
140 unsigned int bar) in pnp_mem_len() argument
142 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); in pnp_mem_len()
150 static inline resource_size_t pnp_irq(struct pnp_dev *dev, unsigned int bar) in pnp_irq() argument
152 struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar); in pnp_irq()
159 static inline unsigned long pnp_irq_flags(struct pnp_dev *dev, unsigned int bar) in pnp_irq_flags() argument
161 struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar); in pnp_irq_flags()
168 static inline int pnp_irq_valid(struct pnp_dev *dev, unsigned int bar) in pnp_irq_valid() argument
170 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IRQ, bar)); in pnp_irq_valid()
174 static inline resource_size_t pnp_dma(struct pnp_dev *dev, unsigned int bar) in pnp_dma() argument
176 struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar); in pnp_dma()
183 static inline unsigned long pnp_dma_flags(struct pnp_dev *dev, unsigned int bar) in pnp_dma_flags() argument
185 struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar); in pnp_dma_flags()
192 static inline int pnp_dma_valid(struct pnp_dev *dev, unsigned int bar) in pnp_dma_valid() argument
194 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_DMA, bar)); in pnp_dma_valid()