Lines Matching refs:dev

56 static void pnpbios_parse_allocated_ioresource(struct pnp_dev *dev,  in pnpbios_parse_allocated_ioresource()  argument
65 pnp_add_io_resource(dev, start, end, flags); in pnpbios_parse_allocated_ioresource()
68 static void pnpbios_parse_allocated_memresource(struct pnp_dev *dev, in pnpbios_parse_allocated_memresource() argument
77 pnp_add_mem_resource(dev, start, end, flags); in pnpbios_parse_allocated_memresource()
80 static unsigned char *pnpbios_parse_allocated_resource_data(struct pnp_dev *dev, in pnpbios_parse_allocated_resource_data() argument
90 pnp_dbg(&dev->dev, "parse allocated resources\n"); in pnpbios_parse_allocated_resource_data()
92 pnp_init_resources(dev); in pnpbios_parse_allocated_resource_data()
112 pnpbios_parse_allocated_memresource(dev, io, size); in pnpbios_parse_allocated_resource_data()
128 pnpbios_parse_allocated_memresource(dev, io, size); in pnpbios_parse_allocated_resource_data()
136 pnpbios_parse_allocated_memresource(dev, io, size); in pnpbios_parse_allocated_resource_data()
152 pnp_add_irq_resource(dev, io, flags); in pnpbios_parse_allocated_resource_data()
166 pnp_add_dma_resource(dev, io, flags); in pnpbios_parse_allocated_resource_data()
174 pnpbios_parse_allocated_ioresource(dev, io, size); in pnpbios_parse_allocated_resource_data()
186 pnpbios_parse_allocated_ioresource(dev, io, size); in pnpbios_parse_allocated_resource_data()
196 dev_err(&dev->dev, "unknown tag %#x length %d\n", in pnpbios_parse_allocated_resource_data()
208 dev_err(&dev->dev, "no end tag in resource structure\n"); in pnpbios_parse_allocated_resource_data()
217 static __init void pnpbios_parse_mem_option(struct pnp_dev *dev, in pnpbios_parse_mem_option() argument
229 pnp_register_mem_resource(dev, option_flags, min, max, align, len, in pnpbios_parse_mem_option()
233 static __init void pnpbios_parse_mem32_option(struct pnp_dev *dev, in pnpbios_parse_mem32_option() argument
245 pnp_register_mem_resource(dev, option_flags, min, max, align, len, in pnpbios_parse_mem32_option()
249 static __init void pnpbios_parse_fixed_mem32_option(struct pnp_dev *dev, in pnpbios_parse_fixed_mem32_option() argument
259 pnp_register_mem_resource(dev, option_flags, base, base, 0, len, flags); in pnpbios_parse_fixed_mem32_option()
262 static __init void pnpbios_parse_irq_option(struct pnp_dev *dev, in pnpbios_parse_irq_option() argument
278 pnp_register_irq_resource(dev, option_flags, &map, flags); in pnpbios_parse_irq_option()
281 static __init void pnpbios_parse_dma_option(struct pnp_dev *dev, in pnpbios_parse_dma_option() argument
285 pnp_register_dma_resource(dev, option_flags, p[1], p[2]); in pnpbios_parse_dma_option()
288 static __init void pnpbios_parse_port_option(struct pnp_dev *dev, in pnpbios_parse_port_option() argument
300 pnp_register_port_resource(dev, option_flags, min, max, align, len, in pnpbios_parse_port_option()
304 static __init void pnpbios_parse_fixed_port_option(struct pnp_dev *dev, in pnpbios_parse_fixed_port_option() argument
312 pnp_register_port_resource(dev, option_flags, base, base, 0, len, in pnpbios_parse_fixed_port_option()
318 struct pnp_dev *dev) in pnpbios_parse_resource_option_data() argument
327 pnp_dbg(&dev->dev, "parse resource options\n"); in pnpbios_parse_resource_option_data()
345 pnpbios_parse_mem_option(dev, p, len, option_flags); in pnpbios_parse_resource_option_data()
351 pnpbios_parse_mem32_option(dev, p, len, option_flags); in pnpbios_parse_resource_option_data()
357 pnpbios_parse_fixed_mem32_option(dev, p, len, in pnpbios_parse_resource_option_data()
364 pnpbios_parse_irq_option(dev, p, len, option_flags); in pnpbios_parse_resource_option_data()
370 pnpbios_parse_dma_option(dev, p, len, option_flags); in pnpbios_parse_resource_option_data()
376 pnpbios_parse_port_option(dev, p, len, option_flags); in pnpbios_parse_resource_option_data()
386 pnpbios_parse_fixed_port_option(dev, p, len, in pnpbios_parse_resource_option_data()
396 option_flags = pnp_new_dependent_set(dev, priority); in pnpbios_parse_resource_option_data()
410 dev_err(&dev->dev, "unknown tag %#x length %d\n", in pnpbios_parse_resource_option_data()
422 dev_err(&dev->dev, "no end tag in resource structure\n"); in pnpbios_parse_resource_option_data()
433 struct pnp_dev *dev) in pnpbios_parse_compatible_ids() argument
457 strncpy(dev->name, p + 3, in pnpbios_parse_compatible_ids()
459 dev->name[len >= in pnpbios_parse_compatible_ids()
468 dev_id = pnp_add_id(dev, id); in pnpbios_parse_compatible_ids()
480 dev_err(&dev->dev, "unknown tag %#x length %d\n", in pnpbios_parse_compatible_ids()
492 dev_err(&dev->dev, "no end tag in resource structure\n"); in pnpbios_parse_compatible_ids()
501 static void pnpbios_encode_mem(struct pnp_dev *dev, unsigned char *p, in pnpbios_encode_mem() argument
522 pnp_dbg(&dev->dev, " encode mem %#lx-%#lx\n", base, base + len - 1); in pnpbios_encode_mem()
525 static void pnpbios_encode_mem32(struct pnp_dev *dev, unsigned char *p, in pnpbios_encode_mem32() argument
552 pnp_dbg(&dev->dev, " encode mem32 %#lx-%#lx\n", base, base + len - 1); in pnpbios_encode_mem32()
555 static void pnpbios_encode_fixed_mem32(struct pnp_dev *dev, unsigned char *p, in pnpbios_encode_fixed_mem32() argument
578 pnp_dbg(&dev->dev, " encode fixed_mem32 %#lx-%#lx\n", base, in pnpbios_encode_fixed_mem32()
582 static void pnpbios_encode_irq(struct pnp_dev *dev, unsigned char *p, in pnpbios_encode_irq() argument
595 pnp_dbg(&dev->dev, " encode irq mask %#lx\n", map); in pnpbios_encode_irq()
598 static void pnpbios_encode_dma(struct pnp_dev *dev, unsigned char *p, in pnpbios_encode_dma() argument
610 pnp_dbg(&dev->dev, " encode dma mask %#lx\n", map); in pnpbios_encode_dma()
613 static void pnpbios_encode_port(struct pnp_dev *dev, unsigned char *p, in pnpbios_encode_port() argument
633 pnp_dbg(&dev->dev, " encode io %#lx-%#lx\n", base, base + len - 1); in pnpbios_encode_port()
636 static void pnpbios_encode_fixed_port(struct pnp_dev *dev, unsigned char *p, in pnpbios_encode_fixed_port() argument
654 pnp_dbg(&dev->dev, " encode fixed_io %#lx-%#lx\n", base, in pnpbios_encode_fixed_port()
659 *dev, in pnpbios_encode_allocated_resource_data()
685 pnpbios_encode_mem(dev, p, in pnpbios_encode_allocated_resource_data()
686 pnp_get_resource(dev, IORESOURCE_MEM, mem)); in pnpbios_encode_allocated_resource_data()
693 pnpbios_encode_mem32(dev, p, in pnpbios_encode_allocated_resource_data()
694 pnp_get_resource(dev, IORESOURCE_MEM, mem)); in pnpbios_encode_allocated_resource_data()
701 pnpbios_encode_fixed_mem32(dev, p, in pnpbios_encode_allocated_resource_data()
702 pnp_get_resource(dev, IORESOURCE_MEM, mem)); in pnpbios_encode_allocated_resource_data()
709 pnpbios_encode_irq(dev, p, in pnpbios_encode_allocated_resource_data()
710 pnp_get_resource(dev, IORESOURCE_IRQ, irq)); in pnpbios_encode_allocated_resource_data()
717 pnpbios_encode_dma(dev, p, in pnpbios_encode_allocated_resource_data()
718 pnp_get_resource(dev, IORESOURCE_DMA, dma)); in pnpbios_encode_allocated_resource_data()
725 pnpbios_encode_port(dev, p, in pnpbios_encode_allocated_resource_data()
726 pnp_get_resource(dev, IORESOURCE_IO, port)); in pnpbios_encode_allocated_resource_data()
737 pnpbios_encode_fixed_port(dev, p, in pnpbios_encode_allocated_resource_data()
738 pnp_get_resource(dev, IORESOURCE_IO, port)); in pnpbios_encode_allocated_resource_data()
749 dev_err(&dev->dev, "unknown tag %#x length %d\n", in pnpbios_encode_allocated_resource_data()
761 dev_err(&dev->dev, "no end tag in resource structure\n"); in pnpbios_encode_allocated_resource_data()
770 int __init pnpbios_parse_data_stream(struct pnp_dev *dev, in pnpbios_parse_data_stream() argument
776 p = pnpbios_parse_allocated_resource_data(dev, p, end); in pnpbios_parse_data_stream()
779 p = pnpbios_parse_resource_option_data(p, end, dev); in pnpbios_parse_data_stream()
782 p = pnpbios_parse_compatible_ids(p, end, dev); in pnpbios_parse_data_stream()
788 int pnpbios_read_resources_from_node(struct pnp_dev *dev, in pnpbios_read_resources_from_node() argument
794 p = pnpbios_parse_allocated_resource_data(dev, p, end); in pnpbios_read_resources_from_node()
800 int pnpbios_write_resources_to_node(struct pnp_dev *dev, in pnpbios_write_resources_to_node() argument
806 p = pnpbios_encode_allocated_resource_data(dev, p, end); in pnpbios_write_resources_to_node()