Home
last modified time | relevance | path

Searched refs:mc_io (Results 1 – 15 of 15) sorted by relevance

/drivers/staging/fsl-mc/bus/
Dmc-sys.c79 struct fsl_mc_io *mc_io; in fsl_create_mc_io() local
83 mc_io = devm_kzalloc(dev, sizeof(*mc_io), GFP_KERNEL); in fsl_create_mc_io()
84 if (!mc_io) in fsl_create_mc_io()
87 mc_io->dev = dev; in fsl_create_mc_io()
88 mc_io->flags = flags; in fsl_create_mc_io()
89 mc_io->portal_phys_addr = mc_portal_phys_addr; in fsl_create_mc_io()
90 mc_io->portal_size = mc_portal_size; in fsl_create_mc_io()
92 spin_lock_init(&mc_io->spinlock); in fsl_create_mc_io()
94 mutex_init(&mc_io->mutex); in fsl_create_mc_io()
117 mc_io->portal_virt_addr = mc_portal_virt_addr; in fsl_create_mc_io()
[all …]
Ddpbp.c54 int dpbp_open(struct fsl_mc_io *mc_io, in dpbp_open() argument
68 err = mc_send_command(mc_io, &cmd); in dpbp_open()
90 int dpbp_close(struct fsl_mc_io *mc_io, in dpbp_close() argument
101 return mc_send_command(mc_io, &cmd); in dpbp_close()
126 int dpbp_create(struct fsl_mc_io *mc_io, in dpbp_create() argument
141 err = mc_send_command(mc_io, &cmd); in dpbp_create()
159 int dpbp_destroy(struct fsl_mc_io *mc_io, in dpbp_destroy() argument
170 return mc_send_command(mc_io, &cmd); in dpbp_destroy()
181 int dpbp_enable(struct fsl_mc_io *mc_io, in dpbp_enable() argument
192 return mc_send_command(mc_io, &cmd); in dpbp_enable()
[all …]
Ddpmcp.c54 int dpmcp_open(struct fsl_mc_io *mc_io, in dpmcp_open() argument
68 err = mc_send_command(mc_io, &cmd); in dpmcp_open()
89 int dpmcp_close(struct fsl_mc_io *mc_io, in dpmcp_close() argument
100 return mc_send_command(mc_io, &cmd); in dpmcp_close()
124 int dpmcp_create(struct fsl_mc_io *mc_io, in dpmcp_create() argument
138 err = mc_send_command(mc_io, &cmd); in dpmcp_create()
156 int dpmcp_destroy(struct fsl_mc_io *mc_io, in dpmcp_destroy() argument
167 return mc_send_command(mc_io, &cmd); in dpmcp_destroy()
178 int dpmcp_reset(struct fsl_mc_io *mc_io, in dpmcp_reset() argument
189 return mc_send_command(mc_io, &cmd); in dpmcp_reset()
[all …]
Ddpmcp.h41 int dpmcp_open(struct fsl_mc_io *mc_io,
49 int dpmcp_close(struct fsl_mc_io *mc_io,
62 int dpmcp_create(struct fsl_mc_io *mc_io,
67 int dpmcp_destroy(struct fsl_mc_io *mc_io,
71 int dpmcp_reset(struct fsl_mc_io *mc_io,
93 int dpmcp_set_irq(struct fsl_mc_io *mc_io,
99 int dpmcp_get_irq(struct fsl_mc_io *mc_io,
106 int dpmcp_set_irq_enable(struct fsl_mc_io *mc_io,
112 int dpmcp_get_irq_enable(struct fsl_mc_io *mc_io,
118 int dpmcp_set_irq_mask(struct fsl_mc_io *mc_io,
[all …]
Ddprc.c48 int dprc_open(struct fsl_mc_io *mc_io, in dprc_open() argument
62 err = mc_send_command(mc_io, &cmd); in dprc_open()
84 int dprc_close(struct fsl_mc_io *mc_io, in dprc_close() argument
95 return mc_send_command(mc_io, &cmd); in dprc_close()
110 int dprc_create_container(struct fsl_mc_io *mc_io, in dprc_create_container() argument
145 err = mc_send_command(mc_io, &cmd); in dprc_create_container()
178 int dprc_destroy_container(struct fsl_mc_io *mc_io, in dprc_destroy_container() argument
191 return mc_send_command(mc_io, &cmd); in dprc_destroy_container()
216 int dprc_reset_container(struct fsl_mc_io *mc_io, in dprc_reset_container() argument
229 return mc_send_command(mc_io, &cmd); in dprc_reset_container()
[all …]
Dmc-bus.c253 static int get_dprc_icid(struct fsl_mc_io *mc_io, in get_dprc_icid() argument
260 error = dprc_open(mc_io, 0, container_id, &dprc_handle); in get_dprc_icid()
267 error = dprc_get_attributes(mc_io, 0, dprc_handle, &attr); in get_dprc_icid()
277 (void)dprc_close(mc_io, 0, dprc_handle); in get_dprc_icid()
351 error = dprc_get_obj_region(mc_bus_dev->mc_io, in fsl_mc_device_get_mmio_regions()
391 struct fsl_mc_io *mc_io, in fsl_mc_device_add() argument
424 mc_dev->mc_io = mc_io; in fsl_mc_device_add()
449 mc_io2 = parent_mc_dev->mc_io; in fsl_mc_device_add()
454 if (WARN_ON(!mc_io)) { in fsl_mc_device_add()
459 mc_io2 = mc_io; in fsl_mc_device_add()
[all …]
Ddpmng.c46 int mc_get_version(struct fsl_mc_io *mc_io, in mc_get_version() argument
59 err = mc_send_command(mc_io, &cmd); in mc_get_version()
79 int dpmng_get_container_id(struct fsl_mc_io *mc_io, in dpmng_get_container_id() argument
92 err = mc_send_command(mc_io, &cmd); in dpmng_get_container_id()
Ddprc-driver.c264 error = dprc_get_obj_count(mc_bus_dev->mc_io, in dprc_scan_objects()
292 error = dprc_get_obj(mc_bus_dev->mc_io, in dprc_scan_objects()
386 if (!mc_dev->mc_io) { in dprc_probe()
399 NULL, 0, &mc_dev->mc_io); in dprc_probe()
404 error = dprc_open(mc_dev->mc_io, 0, mc_dev->obj_desc.id, in dprc_probe()
424 (void)dprc_close(mc_dev->mc_io, 0, mc_dev->mc_handle); in dprc_probe()
427 fsl_destroy_mc_io(mc_dev->mc_io); in dprc_probe()
447 if (WARN_ON(!mc_dev->mc_io)) in dprc_remove()
452 error = dprc_close(mc_dev->mc_io, 0, mc_dev->mc_handle); in dprc_remove()
Dmc-allocator.c290 struct fsl_mc_io *mc_io = NULL; in fsl_mc_portal_allocate() local
318 if (WARN_ON(mc_portal_size != mc_bus_dev->mc_io->portal_size)) in fsl_mc_portal_allocate()
324 mc_io_flags, &mc_io); in fsl_mc_portal_allocate()
328 *new_mc_io = mc_io; in fsl_mc_portal_allocate()
343 void fsl_mc_portal_free(struct fsl_mc_io *mc_io) in fsl_mc_portal_free() argument
352 dpmcp_dev = mc_io->dpmcp_dev; in fsl_mc_portal_free()
363 fsl_destroy_mc_io(mc_io); in fsl_mc_portal_free()
373 int fsl_mc_portal_reset(struct fsl_mc_io *mc_io) in fsl_mc_portal_reset() argument
376 struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev; in fsl_mc_portal_reset()
381 error = dpmcp_reset(mc_io, 0, dpmcp_dev->mc_handle); in fsl_mc_portal_reset()
/drivers/staging/fsl-mc/include/
Ddprc.h57 int dprc_open(struct fsl_mc_io *mc_io,
62 int dprc_close(struct fsl_mc_io *mc_io,
124 int dprc_create_container(struct fsl_mc_io *mc_io,
131 int dprc_destroy_container(struct fsl_mc_io *mc_io,
136 int dprc_reset_container(struct fsl_mc_io *mc_io,
184 int dprc_set_irq(struct fsl_mc_io *mc_io,
190 int dprc_get_irq(struct fsl_mc_io *mc_io,
197 int dprc_set_irq_enable(struct fsl_mc_io *mc_io,
203 int dprc_get_irq_enable(struct fsl_mc_io *mc_io,
209 int dprc_set_irq_mask(struct fsl_mc_io *mc_io,
[all …]
Ddpbp.h41 int dpbp_open(struct fsl_mc_io *mc_io,
46 int dpbp_close(struct fsl_mc_io *mc_io,
58 int dpbp_create(struct fsl_mc_io *mc_io,
63 int dpbp_destroy(struct fsl_mc_io *mc_io,
67 int dpbp_enable(struct fsl_mc_io *mc_io,
71 int dpbp_disable(struct fsl_mc_io *mc_io,
75 int dpbp_is_enabled(struct fsl_mc_io *mc_io,
80 int dpbp_reset(struct fsl_mc_io *mc_io,
96 int dpbp_set_irq(struct fsl_mc_io *mc_io,
102 int dpbp_get_irq(struct fsl_mc_io *mc_io,
[all …]
Dmc-sys.h104 void fsl_destroy_mc_io(struct fsl_mc_io *mc_io);
106 int fsl_mc_io_set_dpmcp(struct fsl_mc_io *mc_io,
109 void fsl_mc_io_unset_dpmcp(struct fsl_mc_io *mc_io);
111 int mc_send_command(struct fsl_mc_io *mc_io, struct mc_command *cmd);
Dmc.h155 struct fsl_mc_io *mc_io; member
191 void fsl_mc_portal_free(struct fsl_mc_io *mc_io);
193 int fsl_mc_portal_reset(struct fsl_mc_io *mc_io);
Ddpmng.h61 int mc_get_version(struct fsl_mc_io *mc_io,
65 int dpmng_get_container_id(struct fsl_mc_io *mc_io,
Dmc-private.h94 struct fsl_mc_io *mc_io,