• Home
  • Raw
  • Download

Lines Matching refs:mp

60 	struct ms02nv_private *mp = mtd->priv;  in ms02nv_read()  local
62 memcpy(buf, mp->uaddr + from, len); in ms02nv_read()
70 struct ms02nv_private *mp = mtd->priv; in ms02nv_write() local
72 memcpy(mp->uaddr + to, buf, len); in ms02nv_write()
111 struct ms02nv_private *mp; in ms02nv_init_one() local
148 mp = kzalloc(sizeof(*mp), GFP_KERNEL); in ms02nv_init_one()
149 if (!mp) in ms02nv_init_one()
152 mtd->priv = mp; in ms02nv_init_one()
153 mp->resource.module = mod_res; in ms02nv_init_one()
166 mp->resource.diag_ram = diag_res; in ms02nv_init_one()
179 mp->resource.user_ram = user_res; in ms02nv_init_one()
192 mp->resource.csr = csr_res; in ms02nv_init_one()
194 mp->addr = phys_to_virt(addr); in ms02nv_init_one()
195 mp->size = size; in ms02nv_init_one()
203 mp->uaddr = phys_to_virt(fixaddr); in ms02nv_init_one()
224 mp->next = root_ms02nv_mtd; in ms02nv_init_one()
240 kfree(mp); in ms02nv_init_one()
253 struct ms02nv_private *mp = mtd->priv; in ms02nv_remove_one() local
255 root_ms02nv_mtd = mp->next; in ms02nv_remove_one()
259 release_resource(mp->resource.csr); in ms02nv_remove_one()
260 kfree(mp->resource.csr); in ms02nv_remove_one()
261 release_resource(mp->resource.user_ram); in ms02nv_remove_one()
262 kfree(mp->resource.user_ram); in ms02nv_remove_one()
263 release_resource(mp->resource.diag_ram); in ms02nv_remove_one()
264 kfree(mp->resource.diag_ram); in ms02nv_remove_one()
265 release_resource(mp->resource.module); in ms02nv_remove_one()
266 kfree(mp->resource.module); in ms02nv_remove_one()
267 kfree(mp); in ms02nv_remove_one()