Lines Matching refs:dpmcp_dev
13 struct fsl_mc_device *dpmcp_dev) in fsl_mc_io_set_dpmcp() argument
17 if (mc_io->dpmcp_dev) in fsl_mc_io_set_dpmcp()
20 if (dpmcp_dev->mc_io) in fsl_mc_io_set_dpmcp()
25 dpmcp_dev->obj_desc.id, in fsl_mc_io_set_dpmcp()
26 &dpmcp_dev->mc_handle); in fsl_mc_io_set_dpmcp()
30 mc_io->dpmcp_dev = dpmcp_dev; in fsl_mc_io_set_dpmcp()
31 dpmcp_dev->mc_io = mc_io; in fsl_mc_io_set_dpmcp()
38 struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev; in fsl_mc_io_unset_dpmcp() local
42 dpmcp_dev->mc_handle); in fsl_mc_io_unset_dpmcp()
44 dev_err(&dpmcp_dev->dev, "dpmcp_close() failed: %d\n", in fsl_mc_io_unset_dpmcp()
48 mc_io->dpmcp_dev = NULL; in fsl_mc_io_unset_dpmcp()
49 dpmcp_dev->mc_io = NULL; in fsl_mc_io_unset_dpmcp()
68 struct fsl_mc_device *dpmcp_dev, in fsl_create_mc_io() argument
111 if (dpmcp_dev) { in fsl_create_mc_io()
112 error = fsl_mc_io_set_dpmcp(mc_io, dpmcp_dev); in fsl_create_mc_io()
132 struct fsl_mc_device *dpmcp_dev; in fsl_destroy_mc_io() local
137 dpmcp_dev = mc_io->dpmcp_dev; in fsl_destroy_mc_io()
139 if (dpmcp_dev) in fsl_destroy_mc_io()
173 struct fsl_mc_device *dpmcp_dev; in fsl_mc_portal_allocate() local
194 dpmcp_dev = resource->data; in fsl_mc_portal_allocate()
196 if (dpmcp_dev->obj_desc.ver_major < DPMCP_MIN_VER_MAJOR || in fsl_mc_portal_allocate()
197 (dpmcp_dev->obj_desc.ver_major == DPMCP_MIN_VER_MAJOR && in fsl_mc_portal_allocate()
198 dpmcp_dev->obj_desc.ver_minor < DPMCP_MIN_VER_MINOR)) { in fsl_mc_portal_allocate()
199 dev_err(&dpmcp_dev->dev, in fsl_mc_portal_allocate()
201 dpmcp_dev->obj_desc.ver_major, in fsl_mc_portal_allocate()
202 dpmcp_dev->obj_desc.ver_minor); in fsl_mc_portal_allocate()
207 mc_portal_phys_addr = dpmcp_dev->regions[0].start; in fsl_mc_portal_allocate()
208 mc_portal_size = resource_size(dpmcp_dev->regions); in fsl_mc_portal_allocate()
212 mc_portal_size, dpmcp_dev, in fsl_mc_portal_allocate()
234 struct fsl_mc_device *dpmcp_dev; in fsl_mc_portal_free() local
241 dpmcp_dev = mc_io->dpmcp_dev; in fsl_mc_portal_free()
243 resource = dpmcp_dev->resource; in fsl_mc_portal_free()
247 if (resource->data != dpmcp_dev) in fsl_mc_portal_free()
263 struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev; in fsl_mc_portal_reset() local
265 error = dpmcp_reset(mc_io, 0, dpmcp_dev->mc_handle); in fsl_mc_portal_reset()
267 dev_err(&dpmcp_dev->dev, "dpmcp_reset() failed: %d\n", error); in fsl_mc_portal_reset()