Lines Matching refs:resource
84 p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; in ipwireless_probe()
85 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in ipwireless_probe()
95 if (!request_region(p_dev->resource[0]->start, in ipwireless_probe()
96 resource_size(p_dev->resource[0]), in ipwireless_probe()
102 p_dev->resource[2]->flags |= in ipwireless_probe()
105 ret = pcmcia_request_window(p_dev, p_dev->resource[2], 0); in ipwireless_probe()
109 ret = pcmcia_map_mem_page(p_dev, p_dev->resource[2], p_dev->card_addr); in ipwireless_probe()
113 ipw->is_v2_card = resource_size(p_dev->resource[2]) == 0x100; in ipwireless_probe()
115 ipw->common_memory = ioremap(p_dev->resource[2]->start, in ipwireless_probe()
116 resource_size(p_dev->resource[2])); in ipwireless_probe()
121 if (!request_mem_region(p_dev->resource[2]->start, in ipwireless_probe()
122 resource_size(p_dev->resource[2]), in ipwireless_probe()
128 p_dev->resource[3]->flags |= WIN_DATA_WIDTH_16 | WIN_MEMORY_TYPE_AM | in ipwireless_probe()
130 p_dev->resource[3]->end = 0; /* this used to be 0x1000 */ in ipwireless_probe()
131 ret = pcmcia_request_window(p_dev, p_dev->resource[3], 0); in ipwireless_probe()
135 ret = pcmcia_map_mem_page(p_dev, p_dev->resource[3], 0); in ipwireless_probe()
139 ipw->attr_memory = ioremap(p_dev->resource[3]->start, in ipwireless_probe()
140 resource_size(p_dev->resource[3])); in ipwireless_probe()
145 if (!request_mem_region(p_dev->resource[3]->start, in ipwireless_probe()
146 resource_size(p_dev->resource[3]), in ipwireless_probe()
157 release_mem_region(p_dev->resource[2]->start, in ipwireless_probe()
158 resource_size(p_dev->resource[2])); in ipwireless_probe()
162 release_region(p_dev->resource[0]->start, in ipwireless_probe()
163 resource_size(p_dev->resource[0])); in ipwireless_probe()
184 ipwireless_init_hardware_v1(ipw->hardware, link->resource[0]->start, in config_ipwireless()
196 ": I/O ports %pR, irq %d\n", link->resource[0], in config_ipwireless()
201 link->resource[3], in config_ipwireless()
202 link->resource[2]); in config_ipwireless()
226 release_mem_region(link->resource[2]->start, in config_ipwireless()
227 resource_size(link->resource[2])); in config_ipwireless()
231 release_mem_region(link->resource[3]->start, in config_ipwireless()
232 resource_size(link->resource[3])); in config_ipwireless()
241 release_region(ipw->link->resource[0]->start, in release_ipwireless()
242 resource_size(ipw->link->resource[0])); in release_ipwireless()
244 release_mem_region(ipw->link->resource[2]->start, in release_ipwireless()
245 resource_size(ipw->link->resource[2])); in release_ipwireless()
249 release_mem_region(ipw->link->resource[3]->start, in release_ipwireless()
250 resource_size(ipw->link->resource[3])); in release_ipwireless()