Home
last modified time | relevance | path

Searched refs:mc_dev (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ptp.c19 struct fsl_mc_device *mc_dev; in dpaa2_ptp_enable() local
26 mc_dev = to_fsl_mc_device(dev); in dpaa2_ptp_enable()
50 err = dprtc_get_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable()
62 err = dprtc_set_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable()
92 struct fsl_mc_device *mc_dev; in dpaa2_ptp_irq_handler_thread() local
98 mc_dev = to_fsl_mc_device(dev); in dpaa2_ptp_irq_handler_thread()
100 err = dprtc_get_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread()
118 err = dprtc_clear_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread()
128 static int dpaa2_ptp_probe(struct fsl_mc_device *mc_dev) in dpaa2_ptp_probe() argument
130 struct device *dev = &mc_dev->dev; in dpaa2_ptp_probe()
[all …]
H A Ddpaa2-switch.c1667 mac->mc_dev = dpmac_dev; in dpaa2_switch_port_connect_mac()
1716 put_device(&mac->mc_dev->dev); in dpaa2_switch_port_disconnect_mac()
H A Ddpaa2-eth.c4684 mac->mc_dev = dpmac_dev; in dpaa2_eth_connect_mac()
4737 put_device(&mac->mc_dev->dev); in dpaa2_eth_disconnect_mac()
/linux/drivers/bus/fsl-mc/
H A Dfsl-mc-allocator.c15 static bool __must_check fsl_mc_is_allocatable(struct fsl_mc_device *mc_dev) in fsl_mc_is_allocatable() argument
17 return is_fsl_mc_bus_dpbp(mc_dev) || in fsl_mc_is_allocatable()
18 is_fsl_mc_bus_dpmcp(mc_dev) || in fsl_mc_is_allocatable()
19 is_fsl_mc_bus_dpcon(mc_dev); in fsl_mc_is_allocatable()
35 *mc_dev) 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()
44 if (!fsl_mc_is_allocatable(mc_dev)) in fsl_mc_resource_pool_add_device()
46 if (mc_dev->resource) in fsl_mc_resource_pool_add_device()
73 resource->id = mc_dev->obj_desc.id; in fsl_mc_resource_pool_add_device()
74 resource->data = mc_dev; in fsl_mc_resource_pool_add_device()
[all …]
H A Dfsl-mc-uapi.c381 static int fsl_mc_command_check(struct fsl_mc_device *mc_dev, in fsl_mc_command_check() argument
399 dev_err(&mc_dev->dev, "MC command 0x%04x: cmdid not accepted\n", cmdid); in fsl_mc_command_check()
411 dev_err(&mc_dev->dev, "MC command 0x%04x: garbage beyond max size of %d bytes!\n", in fsl_mc_command_check()
422 dev_err(&mc_dev->dev, "MC command 0x%04x: token 0x%04x is invalid!\n", in fsl_mc_command_check()
432 dev_err(&mc_dev->dev, "MC command 0x%04x: unknown module ID 0x%x\n", in fsl_mc_command_check()
443 dev_err(&mc_dev->dev, "MC command 0x%04x: needs CAP_NET_ADMIN!\n", in fsl_mc_command_check()
452 static int fsl_mc_uapi_send_command(struct fsl_mc_device *mc_dev, unsigned long arg, in fsl_mc_uapi_send_command() argument
462 error = fsl_mc_command_check(mc_dev, &mc_cmd); in fsl_mc_uapi_send_command()
492 root_mc_device = &mc_bus->mc_dev; in fsl_mc_uapi_dev_open()
559 root_mc_device = &mc_bus->mc_dev; in fsl_mc_uapi_dev_ioctl()
[all …]
H A Dmc-io.c165 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev, in fsl_mc_portal_allocate() argument
178 if (mc_dev->flags & FSL_MC_IS_DPRC) { in fsl_mc_portal_allocate()
179 mc_bus_dev = mc_dev; in fsl_mc_portal_allocate()
181 if (!dev_is_fsl_mc(mc_dev->dev.parent)) in fsl_mc_portal_allocate()
184 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); in fsl_mc_portal_allocate()
222 if (mc_dev != mc_bus_dev) { in fsl_mc_portal_allocate()
223 dpmcp_dev->consumer_link = device_link_add(&mc_dev->dev, in fsl_mc_portal_allocate()
/linux/include/linux/fsl/
H A Dmc.h109 struct fsl_mc_device *mc_dev; member
412 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev,
418 int __must_check fsl_mc_object_allocate(struct fsl_mc_device *mc_dev,
424 int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev);
426 void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev);
428 struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev,
449 static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dprc() argument
451 return mc_dev->dev.type == &fsl_mc_bus_dprc_type; in is_fsl_mc_bus_dprc()
454 static inline bool is_fsl_mc_bus_dpni(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dpni() argument
456 return mc_dev->dev.type == &fsl_mc_bus_dpni_type; in is_fsl_mc_bus_dpni()
[all …]
/linux/drivers/vfio/fsl-mc/
H A Dvfio_fsl_mc_intr.c17 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_irqs_allocate() local
23 if (mc_dev->obj_desc.irq_count == 0) in vfio_fsl_mc_irqs_allocate()
30 irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_allocate()
37 ret = fsl_mc_allocate_irqs(mc_dev); in vfio_fsl_mc_irqs_allocate()
69 hwirq = vdev->mc_dev->irqs[index]->virq; in vfio_set_trigger()
81 hwirq, dev_name(&vdev->mc_dev->dev)); in vfio_set_trigger()
110 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_set_irq_trigger() local
112 struct device *cont_dev = fsl_mc_cont_dev(&mc_dev->dev); in vfio_fsl_mc_set_irq_trigger()
175 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_irqs_cleanup() local
176 int irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_cleanup()
[all …]
H A Dvfio_fsl_mc_private.h35 struct fsl_mc_device *mc_dev; member
/linux/drivers/leds/
H A Dleds-lp50xx.c307 struct led_classdev_mc *mc_dev = lcdev_to_mccdev(cdev); in lp50xx_brightness_set() local
308 struct lp50xx_led *led = mcled_cdev_to_led(mc_dev); in lp50xx_brightness_set()
337 mc_dev->subled_info[i].intensity); in lp50xx_brightness_set()