Lines Matching refs:mod_res
108 struct resource *mod_res; in ms02nv_init_one() local
120 mod_res = kzalloc(sizeof(*mod_res), GFP_KERNEL); in ms02nv_init_one()
121 if (!mod_res) in ms02nv_init_one()
124 mod_res->name = ms02nv_name; in ms02nv_init_one()
125 mod_res->start = addr; in ms02nv_init_one()
126 mod_res->end = addr + MS02NV_SLOT_SIZE - 1; in ms02nv_init_one()
127 mod_res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; in ms02nv_init_one()
128 if (request_resource(&iomem_resource, mod_res) < 0) in ms02nv_init_one()
149 mp->resource.module = mod_res; in ms02nv_init_one()
160 request_resource(mod_res, diag_res); in ms02nv_init_one()
173 request_resource(mod_res, user_res); in ms02nv_init_one()
186 request_resource(mod_res, csr_res); in ms02nv_init_one()
240 release_resource(mod_res); in ms02nv_init_one()
242 kfree(mod_res); in ms02nv_init_one()