Home
last modified time | relevance | path

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

/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 in vfio_fsl_mc_regions_cleanup()
70 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_reset_device() local
101 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_close_device() local
126 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_ioctl_get_region_info() local
144 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_ioctl() local
241 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_read() local
320 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_write() local
383 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_mmap() local
422 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); vfio_fsl_mc_bus_notifier() local
449 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_mc_init_device() local
478 vfio_fsl_mc_scan_container(struct fsl_mc_device * mc_dev) vfio_fsl_mc_scan_container() argument
497 struct fsl_mc_device *mc_dev = vdev->mc_dev; vfio_fsl_uninit_device() local
510 struct fsl_mc_device *mc_dev = to_fsl_mc_device(core_vdev->dev); vfio_fsl_mc_init_dev() local
528 vfio_fsl_mc_probe(struct fsl_mc_device * mc_dev) vfio_fsl_mc_probe() argument
567 vfio_fsl_mc_remove(struct fsl_mc_device * mc_dev) vfio_fsl_mc_remove() argument
[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-switch.c1465 mac->mc_dev = dpmac_dev; in dpaa2_switch_port_connect_mac()
H A Ddpaa2-eth.c4682 mac->mc_dev = dpmac_dev; in dpaa2_eth_connect_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-bus.c86 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_match() local
107 if ((mc_dev->obj_desc.state & FSL_MC_OBJ_STATE_PLUGGED) == 0 && in fsl_mc_bus_match()
108 !fsl_mc_is_root_dprc(&mc_dev->dev)) in fsl_mc_bus_match()
116 if (id->vendor == mc_dev->obj_desc.vendor && in fsl_mc_bus_match()
117 strcmp(id->obj_type, mc_dev->obj_desc.type) == 0) { in fsl_mc_bus_match()
134 const struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_bus_uevent()
137 mc_dev->obj_desc.vendor, in fsl_mc_bus_uevent()
138 mc_dev->obj_desc.type)) in fsl_mc_bus_uevent()
147 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); in fsl_mc_probe()
150 return mc_drv->probe(mc_dev);
130 const struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_bus_uevent() local
143 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_probe() local
154 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_remove() local
163 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_shutdown() local
173 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_dma_configure() local
206 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); modalias_show() local
217 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); driver_override_store() local
233 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); driver_override_show() local
616 translate_mc_addr(struct fsl_mc_device * mc_dev,enum dprc_region_type mc_region_type,u64 mc_offset,phys_addr_t * phys_addr) translate_mc_addr() argument
651 fsl_mc_device_get_mmio_regions(struct fsl_mc_device * mc_dev,struct fsl_mc_device * mc_bus_dev) fsl_mc_device_get_mmio_regions() argument
758 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); fsl_mc_device_release() local
777 struct fsl_mc_device *mc_dev = NULL; fsl_mc_device_add() local
911 fsl_mc_device_remove(struct fsl_mc_device * mc_dev) fsl_mc_device_remove() argument
924 fsl_mc_get_endpoint(struct fsl_mc_device * mc_dev,u16 if_id) fsl_mc_get_endpoint() argument
[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()
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.h602 struct fsl_mc_device mc_dev; member
612 container_of(_mc_dev, struct fsl_mc_bus, mc_dev)
619 void fsl_mc_device_remove(struct fsl_mc_device *mc_dev);
683 int disable_dprc_irq(struct fsl_mc_device *mc_dev);
684 int enable_dprc_irq(struct fsl_mc_device *mc_dev);
685 int get_dprc_irq_state(struct fsl_mc_device *mc_dev);
/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
410 int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev,
416 int __must_check fsl_mc_object_allocate(struct fsl_mc_device *mc_dev,
426 int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev);
428 void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev);
430 struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev,
451 static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev)
453 return mc_dev->dev.type == &fsl_mc_bus_dprc_type;
456 static inline bool is_fsl_mc_bus_dpni(const struct fsl_mc_device *mc_dev) in is_fsl_mc_bus_dprc()
455 is_fsl_mc_bus_dprc(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dprc() argument
460 is_fsl_mc_bus_dpni(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpni() argument
465 is_fsl_mc_bus_dpio(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpio() argument
470 is_fsl_mc_bus_dpsw(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpsw() argument
475 is_fsl_mc_bus_dpdmux(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpdmux() argument
480 is_fsl_mc_bus_dpbp(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpbp() argument
485 is_fsl_mc_bus_dpcon(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpcon() argument
490 is_fsl_mc_bus_dpmcp(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpmcp() argument
495 is_fsl_mc_bus_dpmac(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpmac() argument
500 is_fsl_mc_bus_dprtc(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dprtc() argument
505 is_fsl_mc_bus_dpseci(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpseci() argument
510 is_fsl_mc_bus_dpdcei(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpdcei() argument
515 is_fsl_mc_bus_dpaiop(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpaiop() argument
520 is_fsl_mc_bus_dpci(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpci() argument
525 is_fsl_mc_bus_dpdmai(const struct fsl_mc_device * mc_dev) is_fsl_mc_bus_dpdmai() argument
[all...]
/linux/arch/x86/events/intel/
H A Duncore_snbep.c4980 struct pci_dev *mc_dev = NULL; in snr_uncore_pci_init()
4984 mc_dev = pci_get_device(PCI_VENDOR_ID_INTEL, device, mc_dev); in snr_uncore_get_mc_dev()
4985 if (!mc_dev) in snr_uncore_get_mc_dev()
4987 pkg = uncore_pcibus_to_dieid(mc_dev->bus); in snr_uncore_get_mc_dev()
4991 return mc_dev; in snr_uncore_get_mc_dev()
4986 struct pci_dev *mc_dev = NULL; snr_uncore_get_mc_dev() local