Home
last modified time | relevance | path

Searched refs:mc_bus (Results 1 – 8 of 8) sorted by relevance

/drivers/bus/fsl-mc/
Dfsl-mc-allocator.c31 *mc_bus, in fsl_mc_resource_pool_add_device()
39 struct fsl_mc_device *mc_bus_dev = &mc_bus->mc_dev; in fsl_mc_resource_pool_add_device()
49 res_pool = &mc_bus->resource_pools[pool_type]; in fsl_mc_resource_pool_add_device()
52 if (res_pool->mc_bus != mc_bus) in fsl_mc_resource_pool_add_device()
101 struct fsl_mc_bus *mc_bus; in fsl_mc_resource_pool_remove_device() local
114 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_resource_pool_remove_device()
116 if (res_pool != &mc_bus->resource_pools[resource->type]) in fsl_mc_resource_pool_remove_device()
175 int __must_check fsl_mc_resource_allocate(struct fsl_mc_bus *mc_bus, in fsl_mc_resource_allocate() argument
181 struct fsl_mc_device *mc_bus_dev = &mc_bus->mc_dev; in fsl_mc_resource_allocate()
191 res_pool = &mc_bus->resource_pools[pool_type]; in fsl_mc_resource_allocate()
[all …]
Ddprc-driver.c248 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in dprc_scan_objects() local
329 if (alloc_interrupts && !mc_bus->irq_resources) { in dprc_scan_objects()
363 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in dprc_scan_container() local
370 mutex_lock(&mc_bus->scan_mutex); in dprc_scan_container()
372 mutex_unlock(&mc_bus->scan_mutex); in dprc_scan_container()
401 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_dev); in dprc_irq0_handler_thread() local
411 mutex_lock(&mc_bus->scan_mutex); in dprc_irq0_handler_thread()
456 mutex_unlock(&mc_bus->scan_mutex); in dprc_irq0_handler_thread()
465 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_dev); in disable_dprc_irq() local
502 mc_bus->irq_enabled = 0; in disable_dprc_irq()
[all …]
Dfsl-mc-uapi.c476 struct fsl_mc_bus *mc_bus; in fsl_mc_uapi_dev_open() local
484 mc_bus = container_of(mc_uapi, struct fsl_mc_bus, uapi_misc); in fsl_mc_uapi_dev_open()
485 root_mc_device = &mc_bus->mc_dev; in fsl_mc_uapi_dev_open()
548 struct fsl_mc_bus *mc_bus; in fsl_mc_uapi_dev_ioctl() local
551 mc_bus = container_of(priv_data->uapi, struct fsl_mc_bus, uapi_misc); in fsl_mc_uapi_dev_ioctl()
552 root_mc_device = &mc_bus->mc_dev; in fsl_mc_uapi_dev_ioctl()
573 int fsl_mc_uapi_create_device_file(struct fsl_mc_bus *mc_bus) in fsl_mc_uapi_create_device_file() argument
575 struct fsl_mc_device *mc_dev = &mc_bus->mc_dev; in fsl_mc_uapi_create_device_file()
576 struct fsl_mc_uapi *mc_uapi = &mc_bus->uapi_misc; in fsl_mc_uapi_create_device_file()
587 mc_uapi->static_mc_io = mc_bus->mc_dev.mc_io; in fsl_mc_uapi_create_device_file()
[all …]
Dfsl-mc-private.h544 struct fsl_mc_bus *mc_bus; member
609 int __must_check fsl_mc_resource_allocate(struct fsl_mc_bus *mc_bus,
643 int fsl_mc_uapi_create_device_file(struct fsl_mc_bus *mc_bus);
645 void fsl_mc_uapi_remove_device_file(struct fsl_mc_bus *mc_bus);
649 static inline int fsl_mc_uapi_create_device_file(struct fsl_mc_bus *mc_bus) in fsl_mc_uapi_create_device_file() argument
654 static inline void fsl_mc_uapi_remove_device_file(struct fsl_mc_bus *mc_bus) in fsl_mc_uapi_remove_device_file() argument
Dfsl-mc-bus.c790 struct fsl_mc_bus *mc_bus = NULL; in fsl_mc_device_add() local
802 mc_bus = kzalloc(sizeof(*mc_bus), GFP_KERNEL); in fsl_mc_device_add()
803 if (!mc_bus) in fsl_mc_device_add()
806 mutex_init(&mc_bus->scan_mutex); in fsl_mc_device_add()
807 mc_dev = &mc_bus->mc_dev; in fsl_mc_device_add()
910 kfree(mc_bus); in fsl_mc_device_add()
976 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_get_endpoint() local
978 if (mutex_trylock(&mc_bus->scan_mutex)) { in fsl_mc_get_endpoint()
980 mutex_unlock(&mc_bus->scan_mutex); in fsl_mc_get_endpoint()
Dmc-io.c170 struct fsl_mc_bus *mc_bus; in fsl_mc_portal_allocate() local
187 mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_portal_allocate()
189 error = fsl_mc_resource_allocate(mc_bus, FSL_MC_POOL_DPMCP, &resource); in fsl_mc_portal_allocate()
Dfsl-mc-msi.c123 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); in fsl_mc_msi_write_msg() local
125 &mc_bus->irq_resources[msi_desc->fsl_mc.msi_index]; in fsl_mc_msi_write_msg()
/drivers/dma/
Dpl330.c358 u32 mc_bus; member
1044 go.addr = req->mc_bus; in _trigger()
1422 PL330_DBGMC_START(req->mc_bus); in _setup_req()
1870 thrd->req[0].mc_bus = pl330->mcode_bus in _reset_thread()
1876 thrd->req[1].mc_bus = thrd->req[0].mc_bus in _reset_thread()