Lines Matching refs:res
87 struct resource *res; in configure_memory() local
94 if (NULL != (res = kmalloc(sizeof(struct resource), GFP_KERNEL))) { in configure_memory()
97 res->name = name; in configure_memory()
98 res->start = mem_parent->start + get_24(buf+len+2); in configure_memory()
99 res->end = res->start + get_16(buf+len+5)*1024; in configure_memory()
100 res->flags = IORESOURCE_MEM; in configure_memory()
101 printk("memory %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end); in configure_memory()
102 result = request_resource(mem_parent, res); in configure_memory()
178 struct resource *res; in configure_port() local
186 if (NULL != (res = kmalloc(sizeof(struct resource), GFP_KERNEL))) { in configure_port()
187 res->name = board; in configure_port()
188 res->start = get_16(buf+len+1); in configure_port()
189 res->end = get_16(buf+len+1)+(c&HPEE_PORT_SIZE_MASK)+1; in configure_port()
190 res->flags = IORESOURCE_IO; in configure_port()
191 printk("ioports %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end); in configure_port()
192 result = request_resource(io_parent, res); in configure_port()
323 int res=0; in parse_slot_config() local
404 res=-1; in parse_slot_config()
417 res=-1; in parse_slot_config()
423 res=-2; in parse_slot_config()
426 return res; in parse_slot_config()