Home
last modified time | relevance | path

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

/linux/drivers/bus/fsl-mc/
H A Ddprc-driver.c25 static bool fsl_mc_device_match(const struct fsl_mc_device *mc_dev, in fsl_mc_device_match() argument
28 return mc_dev->obj_desc.id == obj_desc->id && in fsl_mc_device_match()
29 strcmp(mc_dev->obj_desc.type, obj_desc->type) == 0; in fsl_mc_device_match()
46 struct fsl_mc_device *mc_dev; in __fsl_mc_device_remove_if_not_in_mc() local
51 mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_remove_if_not_in_mc()
58 fsl_mc_device_match(mc_dev, obj_desc)) in __fsl_mc_device_remove_if_not_in_mc()
63 fsl_mc_device_remove(mc_dev); in __fsl_mc_device_remove_if_not_in_mc()
118 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_match() local
120 return fsl_mc_device_match(mc_dev, obj_desc); in __fsl_mc_device_match()
137 * @mc_dev
145 check_plugged_state_change(struct fsl_mc_device * mc_dev,struct fsl_mc_obj_desc * obj_desc) check_plugged_state_change() argument
405 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); dprc_irq0_handler_thread() local
468 disable_dprc_irq(struct fsl_mc_device * mc_dev) disable_dprc_irq() argument
512 get_dprc_irq_state(struct fsl_mc_device * mc_dev) get_dprc_irq_state() argument
519 register_dprc_irq_handler(struct fsl_mc_device * mc_dev) register_dprc_irq_handler() argument
545 enable_dprc_irq(struct fsl_mc_device * mc_dev) enable_dprc_irq() argument
583 dprc_setup_irq(struct fsl_mc_device * mc_dev) dprc_setup_irq() argument
619 dprc_setup(struct fsl_mc_device * mc_dev) dprc_setup() argument
738 dprc_probe(struct fsl_mc_device * mc_dev) dprc_probe() argument
773 dprc_teardown_irq(struct fsl_mc_device * mc_dev) dprc_teardown_irq() argument
793 dprc_cleanup(struct fsl_mc_device * mc_dev) dprc_cleanup() argument
844 dprc_remove(struct fsl_mc_device * mc_dev) dprc_remove() argument
[all...]
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.c374 static int fsl_mc_command_check(struct fsl_mc_device *mc_dev, in fsl_mc_command_check() argument
392 dev_err(&mc_dev->dev, "MC command 0x%04x: cmdid not accepted\n", cmdid); in fsl_mc_command_check()
404 dev_err(&mc_dev->dev, "MC command 0x%04x: garbage beyond max size of %d bytes!\n", in fsl_mc_command_check()
415 dev_err(&mc_dev->dev, "MC command 0x%04x: token 0x%04x is invalid!\n", in fsl_mc_command_check()
425 dev_err(&mc_dev->dev, "MC command 0x%04x: unknown module ID 0x%x\n", in fsl_mc_command_check()
436 dev_err(&mc_dev->dev, "MC command 0x%04x: needs CAP_NET_ADMIN!\n", in fsl_mc_command_check()
445 static int fsl_mc_uapi_send_command(struct fsl_mc_device *mc_dev, unsigned long arg, in fsl_mc_uapi_send_command() argument
455 error = fsl_mc_command_check(mc_dev, &mc_cmd); in fsl_mc_uapi_send_command()
485 root_mc_device = &mc_bus->mc_dev; in fsl_mc_uapi_dev_open()
552 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()
217 dpmcp_dev->consumer_link = device_link_add(&mc_dev->dev, in fsl_mc_portal_allocate()
H A Dfsl-mc-msi.c63 struct fsl_mc_device *owner_mc_dev = mc_dev_irq->mc_dev; in __fsl_mc_msi_write_msg()
185 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_find_msi_domain() local
192 mc_dev->icid, in fsl_mc_find_msi_domain()
205 msi_domain = iort_get_device_domain(dev, mc_dev->icid, in fsl_mc_find_msi_domain()
H A Dfsl-mc-private.h606 struct fsl_mc_device mc_dev; member
616 container_of(_mc_dev, struct fsl_mc_bus, mc_dev)
623 void fsl_mc_device_remove(struct fsl_mc_device *mc_dev);
691 int disable_dprc_irq(struct fsl_mc_device *mc_dev);
692 int enable_dprc_irq(struct fsl_mc_device *mc_dev);
693 int get_dprc_irq_state(struct fsl_mc_device *mc_dev);
/linux/drivers/vfio/fsl-mc/
H A Dvfio_fsl_mc.c26 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_open_device() local
27 int count = mc_dev->obj_desc.region_count; in vfio_fsl_mc_open_device()
36 struct resource *res = &mc_dev->regions[i]; in vfio_fsl_mc_open_device()
37 int no_mmap = is_fsl_mc_bus_dprc(mc_dev); in vfio_fsl_mc_open_device()
41 vdev->regions[i].type = mc_dev->regions[i].flags & IORESOURCE_BITS; in vfio_fsl_mc_open_device()
51 if (!(mc_dev->regions[i].flags & IORESOURCE_READONLY)) in vfio_fsl_mc_open_device()
60 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_regions_cleanup() local
63 for (i = 0; i < mc_dev->obj_desc.region_count; i++) in vfio_fsl_mc_regions_cleanup()
70 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_reset_device() local
73 if (is_fsl_mc_bus_dprc(vdev->mc_dev)) { in vfio_fsl_mc_reset_device()
[all …]
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/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-eth.c4656 mac->mc_dev = dpmac_dev; in dpaa2_eth_connect_mac()
/linux/include/linux/fsl/
H A Dmc.h103 * @mc_dev: MC object device that owns this interrupt
109 struct fsl_mc_device *mc_dev; member
414 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev,
422 int __must_check fsl_mc_object_allocate(struct fsl_mc_device *mc_dev,
432 int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev);
434 void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev);
436 struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev,
457 static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dprc() argument
459 return mc_dev->dev.type == &fsl_mc_bus_dprc_type; in is_fsl_mc_bus_dprc()
462 static inline bool is_fsl_mc_bus_dpni(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dpni() argument
467 is_fsl_mc_bus_dpio(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpio() argument
472 is_fsl_mc_bus_dpsw(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpsw() argument
477 is_fsl_mc_bus_dpdmux(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpdmux() argument
482 is_fsl_mc_bus_dpbp(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpbp() argument
487 is_fsl_mc_bus_dpcon(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpcon() argument
492 is_fsl_mc_bus_dpmcp(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpmcp() argument
497 is_fsl_mc_bus_dpmac(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpmac() argument
502 is_fsl_mc_bus_dprtc(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dprtc() argument
507 is_fsl_mc_bus_dpseci(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpseci() argument
512 is_fsl_mc_bus_dpdcei(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpdcei() argument
517 is_fsl_mc_bus_dpaiop(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpaiop() argument
522 is_fsl_mc_bus_dpci(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpci() argument
527 is_fsl_mc_bus_dpdmai(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpdmai() argument
[all...]
/linux/drivers/leds/rgb/
H A Dleds-ncp5623.c30 struct led_classdev_mc mc_dev; member
46 struct ncp5623 *ncp = container_of(mc_cdev, struct ncp5623, mc_dev); in ncp5623_brightness_set()
83 struct ncp5623 *ncp = container_of(mc_cdev, struct ncp5623, mc_dev); in ncp5623_pattern_set()
193 subled_info[ncp->mc_dev.num_colors].channel = reg; in ncp5623_probe()
194 subled_info[ncp->mc_dev.num_colors++].color_index = color_index; in ncp5623_probe()
199 ncp->mc_dev.led_cdev.max_brightness = NCP5623_MAX_BRIGHTNESS; in ncp5623_probe()
200 ncp->mc_dev.subled_info = subled_info; in ncp5623_probe()
201 ncp->mc_dev.led_cdev.brightness_set_blocking = ncp5623_brightness_set; in ncp5623_probe()
202 ncp->mc_dev.led_cdev.pattern_set = ncp5623_pattern_set; in ncp5623_probe()
203 ncp->mc_dev.led_cdev.pattern_clear = ncp5623_pattern_clear; in ncp5623_probe()
[all …]
/linux/drivers/irqchip/
H A Dirq-gic-v3-its-fsl-mc-msi.c27 struct fsl_mc_device *mc_dev) in fsl_mc_msi_domain_get_msi_id() argument
33 out_id = of_node ? of_msi_map_id(&mc_dev->dev, of_node, mc_dev->icid) : in fsl_mc_msi_domain_get_msi_id()
34 iort_msi_map_id(&mc_dev->dev, mc_dev->icid); in fsl_mc_msi_domain_get_msi_id()
/linux/drivers/leds/
H A Dleds-lp50xx.c302 struct led_classdev_mc *mc_dev = lcdev_to_mccdev(cdev); in lp50xx_brightness_set() local
303 struct lp50xx_led *led = mcled_cdev_to_led(mc_dev); in lp50xx_brightness_set()
332 mc_dev->subled_info[i].intensity); in lp50xx_brightness_set()
H A Dleds-lp55xx-common.c438 struct led_classdev_mc *mc_dev = lcdev_to_mccdev(cdev); in lp55xx_set_mc_brightness() local
439 struct lp55xx_led *led = mcled_cdev_to_led(mc_dev); in lp55xx_set_mc_brightness()