Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/bus/fsl-mc/
Ddprc-driver.c25 static bool fsl_mc_device_match(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()
145 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 const 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.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()
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-v6.6/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.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
113 struct device *cont_dev = fsl_mc_cont_dev(&mc_dev->dev); in vfio_fsl_mc_set_irq_trigger()
139 hwirq = vdev->mc_dev->irqs[index]->virq; in vfio_fsl_mc_set_irq_trigger()
176 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-v6.6/drivers/net/ethernet/freescale/dpaa2/
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 …]
Ddpaa2-mac.c174 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_config()
183 err = dpmac_set_protocol(mac->mc_io, 0, mac->mc_dev->mc_handle, in dpaa2_mac_config()
223 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_up()
239 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_down()
468 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_open()
498 fw_node = dpaa2_mac_get_node(&mac->mc_dev->dev, mac->attr.id); in dpaa2_mac_open()
516 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_close()
574 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.c1457 mac->mc_dev = dpmac_dev; in dpaa2_switch_port_connect_mac()
Ddpaa2-eth.c4649 mac->mc_dev = dpmac_dev; in dpaa2_eth_connect_mac()
/Linux-v6.6/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-v6.6/drivers/irqchip/
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-v6.6/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.c141 struct led_classdev_mc *mc_dev = lcdev_to_mccdev(cdev); in lp55xx_set_mc_brightness() local
142 struct lp55xx_led *led = mcled_cdev_to_led(mc_dev); in lp55xx_set_mc_brightness()
/Linux-v6.6/arch/x86/events/intel/
Duncore_snb.c1469 struct pci_dev *mc_dev = NULL; in tgl_uncore_get_mc_dev() local
1472 mc_dev = pci_get_device(PCI_VENDOR_ID_INTEL, ids->device, NULL); in tgl_uncore_get_mc_dev()
1473 if (mc_dev) in tgl_uncore_get_mc_dev()
1474 return mc_dev; in tgl_uncore_get_mc_dev()
1478 return mc_dev; in tgl_uncore_get_mc_dev()
Duncore_snbep.c5070 struct pci_dev *mc_dev = NULL; in snr_uncore_get_mc_dev() local
5074 mc_dev = pci_get_device(PCI_VENDOR_ID_INTEL, device, mc_dev); in snr_uncore_get_mc_dev()
5075 if (!mc_dev) in snr_uncore_get_mc_dev()
5077 pkg = uncore_pcibus_to_dieid(mc_dev->bus); in snr_uncore_get_mc_dev()
5081 return mc_dev; in snr_uncore_get_mc_dev()