Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/bus/fsl-mc/
Ddprc-driver.c26 static bool fsl_mc_device_match(struct fsl_mc_device *mc_dev, in fsl_mc_device_match() argument
29 return mc_dev->obj_desc.id == obj_desc->id && in fsl_mc_device_match()
30 strcmp(mc_dev->obj_desc.type, obj_desc->type) == 0; in fsl_mc_device_match()
47 struct fsl_mc_device *mc_dev; in __fsl_mc_device_remove_if_not_in_mc() local
49 mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_remove_if_not_in_mc()
56 fsl_mc_device_match(mc_dev, obj_desc)) in __fsl_mc_device_remove_if_not_in_mc()
61 fsl_mc_device_remove(mc_dev); in __fsl_mc_device_remove_if_not_in_mc()
113 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in __fsl_mc_device_match() local
115 return fsl_mc_device_match(mc_dev, obj_desc); in __fsl_mc_device_match()
140 static void check_plugged_state_change(struct fsl_mc_device *mc_dev, in check_plugged_state_change() argument
[all …]
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 …]
Dfsl-mc-bus.c86 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_match() local
91 if (mc_dev->driver_override) { in fsl_mc_bus_match()
92 found = !strcmp(mc_dev->driver_override, mc_drv->driver.name); in fsl_mc_bus_match()
103 if ((mc_dev->obj_desc.state & FSL_MC_OBJ_STATE_PLUGGED) == 0 && in fsl_mc_bus_match()
104 !fsl_mc_is_root_dprc(&mc_dev->dev)) in fsl_mc_bus_match()
112 if (id->vendor == mc_dev->obj_desc.vendor && in fsl_mc_bus_match()
113 strcmp(id->obj_type, mc_dev->obj_desc.type) == 0) { in fsl_mc_bus_match()
130 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_uevent() local
133 mc_dev->obj_desc.vendor, in fsl_mc_bus_uevent()
134 mc_dev->obj_desc.type)) in fsl_mc_bus_uevent()
[all …]
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 …]
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()
Dfsl-mc-msi.c65 struct fsl_mc_device *owner_mc_dev = mc_dev_irq->mc_dev; in __fsl_mc_msi_write_msg()
187 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_find_msi_domain() local
194 mc_dev->icid, in fsl_mc_find_msi_domain()
207 msi_domain = iort_get_device_domain(dev, mc_dev->icid, in fsl_mc_find_msi_domain()
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-6.1.9/drivers/vfio/fsl-mc/
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 …]
Dvfio_fsl_mc_intr.c18 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_irqs_allocate() local
24 if (mc_dev->obj_desc.irq_count == 0) in vfio_fsl_mc_irqs_allocate()
31 irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_allocate()
38 ret = fsl_mc_allocate_irqs(mc_dev); in vfio_fsl_mc_irqs_allocate()
70 hwirq = vdev->mc_dev->irqs[index]->virq; in vfio_set_trigger()
82 hwirq, dev_name(&vdev->mc_dev->dev)); in vfio_set_trigger()
111 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_set_irq_trigger() local
114 struct device *cont_dev = fsl_mc_cont_dev(&mc_dev->dev); in vfio_fsl_mc_set_irq_trigger()
140 hwirq = vdev->mc_dev->irqs[index]->virq; in vfio_fsl_mc_set_irq_trigger()
177 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_irqs_cleanup() local
[all …]
Dvfio_fsl_mc_private.h35 struct fsl_mc_device *mc_dev; member
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ptp.c20 struct fsl_mc_device *mc_dev; in dpaa2_ptp_enable() local
27 mc_dev = to_fsl_mc_device(dev); in dpaa2_ptp_enable()
51 err = dprtc_get_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable()
63 err = dprtc_set_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_enable()
93 struct fsl_mc_device *mc_dev; in dpaa2_ptp_irq_handler_thread() local
99 mc_dev = to_fsl_mc_device(dev); in dpaa2_ptp_irq_handler_thread()
101 err = dprtc_get_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread()
119 err = dprtc_clear_irq_status(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_irq_handler_thread()
129 static int dpaa2_ptp_probe(struct fsl_mc_device *mc_dev) in dpaa2_ptp_probe() argument
131 struct device *dev = &mc_dev->dev; in dpaa2_ptp_probe()
[all …]
Ddpaa2-mac.c167 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_config()
176 err = dpmac_set_protocol(mac->mc_io, 0, mac->mc_dev->mc_handle, in dpaa2_mac_config()
216 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_up()
232 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_down()
453 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_open()
483 fw_node = dpaa2_mac_get_node(&mac->mc_dev->dev, mac->attr.id); in dpaa2_mac_open()
501 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_close()
559 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_get_ethtool_stats()
Ddpaa2-mac.h15 struct fsl_mc_device *mc_dev; member
Ddpaa2-switch.c1449 mac->mc_dev = dpmac_dev; in dpaa2_switch_port_connect_mac()
Ddpaa2-eth.c4439 mac->mc_dev = dpmac_dev; in dpaa2_eth_connect_mac()
/linux-6.1.9/include/linux/fsl/
Dmc.h109 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
464 return mc_dev->dev.type == &fsl_mc_bus_dpni_type; in is_fsl_mc_bus_dpni()
[all …]
/linux-6.1.9/drivers/irqchip/
Dirq-gic-v3-its-fsl-mc-msi.c29 struct fsl_mc_device *mc_dev) in fsl_mc_msi_domain_get_msi_id() argument
35 out_id = of_node ? of_msi_map_id(&mc_dev->dev, of_node, mc_dev->icid) : in fsl_mc_msi_domain_get_msi_id()
36 iort_msi_map_id(&mc_dev->dev, mc_dev->icid); in fsl_mc_msi_domain_get_msi_id()
/linux-6.1.9/drivers/leds/
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()
Dleds-lp55xx-common.c140 struct led_classdev_mc *mc_dev = lcdev_to_mccdev(cdev); in lp55xx_set_mc_brightness() local
141 struct lp55xx_led *led = mcled_cdev_to_led(mc_dev); in lp55xx_set_mc_brightness()
/linux-6.1.9/arch/x86/events/intel/
Duncore_snb.c1308 struct pci_dev *mc_dev = NULL; in tgl_uncore_get_mc_dev() local
1311 mc_dev = pci_get_device(PCI_VENDOR_ID_INTEL, ids->device, NULL); in tgl_uncore_get_mc_dev()
1312 if (mc_dev) in tgl_uncore_get_mc_dev()
1313 return mc_dev; in tgl_uncore_get_mc_dev()
1317 return mc_dev; in tgl_uncore_get_mc_dev()
Duncore_snbep.c4844 struct pci_dev *mc_dev = NULL; in snr_uncore_get_mc_dev() local
4848 mc_dev = pci_get_device(PCI_VENDOR_ID_INTEL, device, mc_dev); in snr_uncore_get_mc_dev()
4849 if (!mc_dev) in snr_uncore_get_mc_dev()
4851 pkg = uncore_pcibus_to_dieid(mc_dev->bus); in snr_uncore_get_mc_dev()
4855 return mc_dev; in snr_uncore_get_mc_dev()