Lines Matching refs:option

39 	struct pnp_option *option;  in pnp_build_option()  local
41 option = kzalloc(sizeof(struct pnp_option), GFP_KERNEL); in pnp_build_option()
42 if (!option) in pnp_build_option()
45 option->flags = option_flags; in pnp_build_option()
46 option->type = type; in pnp_build_option()
48 list_add_tail(&option->list, &dev->options); in pnp_build_option()
49 return option; in pnp_build_option()
55 struct pnp_option *option; in pnp_register_irq_resource() local
58 option = pnp_build_option(dev, IORESOURCE_IRQ, option_flags); in pnp_register_irq_resource()
59 if (!option) in pnp_register_irq_resource()
62 irq = &option->u.irq; in pnp_register_irq_resource()
76 dbg_pnp_show_option(dev, option); in pnp_register_irq_resource()
83 struct pnp_option *option; in pnp_register_dma_resource() local
86 option = pnp_build_option(dev, IORESOURCE_DMA, option_flags); in pnp_register_dma_resource()
87 if (!option) in pnp_register_dma_resource()
90 dma = &option->u.dma; in pnp_register_dma_resource()
94 dbg_pnp_show_option(dev, option); in pnp_register_dma_resource()
103 struct pnp_option *option; in pnp_register_port_resource() local
106 option = pnp_build_option(dev, IORESOURCE_IO, option_flags); in pnp_register_port_resource()
107 if (!option) in pnp_register_port_resource()
110 port = &option->u.port; in pnp_register_port_resource()
117 dbg_pnp_show_option(dev, option); in pnp_register_port_resource()
126 struct pnp_option *option; in pnp_register_mem_resource() local
129 option = pnp_build_option(dev, IORESOURCE_MEM, option_flags); in pnp_register_mem_resource()
130 if (!option) in pnp_register_mem_resource()
133 mem = &option->u.mem; in pnp_register_mem_resource()
140 dbg_pnp_show_option(dev, option); in pnp_register_mem_resource()
146 struct pnp_option *option, *tmp; in pnp_free_options() local
148 list_for_each_entry_safe(option, tmp, &dev->options, list) { in pnp_free_options()
149 list_del(&option->list); in pnp_free_options()
150 kfree(option); in pnp_free_options()
648 struct pnp_option *option; in pnp_possible_config() local
654 list_for_each_entry(option, &dev->options, list) { in pnp_possible_config()
655 if (option->type != type) in pnp_possible_config()
658 switch (option->type) { in pnp_possible_config()
660 port = &option->u.port; in pnp_possible_config()
665 mem = &option->u.mem; in pnp_possible_config()
670 irq = &option->u.irq; in pnp_possible_config()
676 dma = &option->u.dma; in pnp_possible_config()