Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/bus/fsl-mc/
A Ddprc-driver.c528 &mc_dev->dev); in register_dprc_irq_handler()
547 error = dprc_set_irq_mask(mc_dev->mc_io, 0, mc_dev->mc_handle, 0, in enable_dprc_irq()
560 error = dprc_set_irq_enable(mc_dev->mc_io, 0, mc_dev->mc_handle, 0, 1); in enable_dprc_irq()
631 if (!mc_dev->mc_io) { in dprc_setup()
648 &mc_dev->mc_io); in dprc_setup()
669 error = dprc_open(mc_dev->mc_io, 0, mc_dev->obj_desc.id, in dprc_setup()
676 error = dprc_get_attributes(mc_dev->mc_io, 0, mc_dev->mc_handle, in dprc_setup()
704 (void)dprc_close(mc_dev->mc_io, 0, mc_dev->mc_handle); in dprc_setup()
760 dprc_cleanup(mc_dev); in dprc_probe()
773 devm_free_irq(&mc_dev->dev, irq->virq, &mc_dev->dev); in dprc_teardown_irq()
[all …]
A Dfsl-mc-allocator.c35 *mc_dev) in fsl_mc_resource_pool_add_device()
46 if (mc_dev->resource) in fsl_mc_resource_pool_add_device()
74 resource->data = mc_dev; in fsl_mc_resource_pool_add_device()
98 *mc_dev) in fsl_mc_resource_pool_remove_device()
144 mc_dev->resource = NULL; in fsl_mc_resource_pool_remove_device()
447 if (mc_dev->irqs) in fsl_mc_allocate_irqs()
485 irqs[i]->mc_dev = mc_dev; in fsl_mc_allocate_irqs()
489 mc_dev->irqs = irqs; in fsl_mc_allocate_irqs()
530 mc_dev->irqs = NULL; in fsl_mc_free_irqs()
603 dev_dbg(&mc_dev->dev, in fsl_mc_allocator_probe()
[all …]
A Dfsl-mc-bus.c774 kfree(mc_dev->regions); in fsl_mc_device_release()
779 kfree(mc_dev); in fsl_mc_device_release()
809 mc_dev = &mc_bus->mc_dev; in fsl_mc_device_add()
814 mc_dev = kzalloc(sizeof(*mc_dev), GFP_KERNEL); in fsl_mc_device_add()
815 if (!mc_dev) in fsl_mc_device_add()
820 mc_dev->mc_io = mc_io; in fsl_mc_device_add()
875 mc_dev->dev.dma_mask = &mc_dev->dma_mask; in fsl_mc_device_add()
876 mc_dev->dev.coherent_dma_mask = mc_dev->dma_mask; in fsl_mc_device_add()
907 *new_mc_dev = mc_dev; in fsl_mc_device_add()
911 kfree(mc_dev->regions); in fsl_mc_device_add()
[all …]
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()
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()
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()
575 struct fsl_mc_device *mc_dev = &mc_bus->mc_dev; in fsl_mc_uapi_create_device_file() local
580 mc_uapi->misc.name = dev_name(&mc_dev->dev); in fsl_mc_uapi_create_device_file()
[all …]
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()
A 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()
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-6.3-rc2/drivers/vfio/fsl-mc/
A Dvfio_fsl_mc.c26 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_open_device() local
60 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_regions_cleanup() local
70 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_reset_device() local
101 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_close_device() local
126 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_ioctl() local
247 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_read() local
326 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_write() local
389 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_mmap() local
455 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_init_device() local
503 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_uninit_device() local
[all …]
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
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
177 int irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_cleanup()
[all …]
A Dvfio_fsl_mc_private.h35 struct fsl_mc_device *mc_dev; member
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-ptp.c19 struct fsl_mc_device *mc_dev; in dpaa2_ptp_enable() local
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()
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()
140 err = fsl_mc_portal_allocate(mc_dev, 0, &mc_dev->mc_io); in dpaa2_ptp_probe()
149 err = dprtc_open(mc_dev->mc_io, 0, mc_dev->obj_desc.id, in dpaa2_ptp_probe()
150 &mc_dev->mc_handle); in dpaa2_ptp_probe()
189 err = dprtc_set_irq_enable(mc_dev->mc_io, 0, mc_dev->mc_handle, in dpaa2_ptp_probe()
215 dprtc_close(mc_dev->mc_io, 0, mc_dev->mc_handle); in dpaa2_ptp_probe()
[all …]
A Ddpaa2-mac.c168 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_config()
177 err = dpmac_set_protocol(mac->mc_io, 0, mac->mc_dev->mc_handle, in dpaa2_mac_config()
217 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_up()
233 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_link_down()
465 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_open()
495 fw_node = dpaa2_mac_get_node(&mac->mc_dev->dev, mac->attr.id); in dpaa2_mac_open()
513 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_close()
571 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_get_ethtool_stats()
A Ddpaa2-mac.h15 struct fsl_mc_device *mc_dev; member
A Ddpaa2-switch.c1457 mac->mc_dev = dpmac_dev; in dpaa2_switch_port_connect_mac()
A Ddpaa2-eth.c4649 mac->mc_dev = dpmac_dev; in dpaa2_eth_connect_mac()
/linux-6.3-rc2/include/linux/fsl/
A Dmc.h109 struct fsl_mc_device *mc_dev; member
459 return mc_dev->dev.type == &fsl_mc_bus_dprc_type; in is_fsl_mc_bus_dprc()
464 return mc_dev->dev.type == &fsl_mc_bus_dpni_type; in is_fsl_mc_bus_dpni()
469 return mc_dev->dev.type == &fsl_mc_bus_dpio_type; in is_fsl_mc_bus_dpio()
474 return mc_dev->dev.type == &fsl_mc_bus_dpsw_type; in is_fsl_mc_bus_dpsw()
484 return mc_dev->dev.type == &fsl_mc_bus_dpbp_type; in is_fsl_mc_bus_dpbp()
489 return mc_dev->dev.type == &fsl_mc_bus_dpcon_type; in is_fsl_mc_bus_dpcon()
494 return mc_dev->dev.type == &fsl_mc_bus_dpmcp_type; in is_fsl_mc_bus_dpmcp()
524 return mc_dev->dev.type == &fsl_mc_bus_dpci_type; in is_fsl_mc_bus_dpci()
546 int dprc_cleanup(struct fsl_mc_device *mc_dev);
[all …]
/linux-6.3-rc2/drivers/irqchip/
A 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.3-rc2/drivers/leds/
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()
A 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.3-rc2/arch/x86/events/intel/
A 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()
A 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()

Completed in 76 milliseconds