Lines Matching refs:thdev
31 #define msc_dev(x) (&(x)->thdev->dev)
132 struct intel_th_device *thdev; member
802 msc->thdev->output.multiblock = msc->mode == MSC_MODE_MULTI; in msc_configure()
803 intel_th_trace_enable(msc->thdev); in msc_configure()
832 intel_th_trace_disable(msc->thdev); in msc_disable()
868 static int intel_th_msc_activate(struct intel_th_device *thdev) in intel_th_msc_activate() argument
870 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_activate()
890 static void intel_th_msc_deactivate(struct intel_th_device *thdev) in intel_th_msc_deactivate() argument
892 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_deactivate()
1436 struct intel_th_device *thdev = file->private_data; in intel_th_msc_open() local
1437 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_open()
1652 static void intel_th_msc_wait_empty(struct intel_th_device *thdev) in intel_th_msc_wait_empty() argument
1654 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_wait_empty()
1701 intel_th_trace_switch(msc->thdev); in msc_win_switch()
1735 intel_th_msc_deactivate(msc->thdev); in msc_work()
1738 static irqreturn_t intel_th_msc_interrupt(struct intel_th_device *thdev) in intel_th_msc_interrupt() argument
1740 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_interrupt()
2102 static int intel_th_msc_probe(struct intel_th_device *thdev) in intel_th_msc_probe() argument
2104 struct device *dev = &thdev->dev; in intel_th_msc_probe()
2110 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0); in intel_th_msc_probe()
2122 res = intel_th_device_get_resource(thdev, IORESOURCE_IRQ, 1); in intel_th_msc_probe()
2126 if (INTEL_TH_CAP(to_intel_th(thdev), multi_is_broken)) in intel_th_msc_probe()
2129 msc->index = thdev->id; in intel_th_msc_probe()
2131 msc->thdev = thdev; in intel_th_msc_probe()
2145 static void intel_th_msc_remove(struct intel_th_device *thdev) in intel_th_msc_remove() argument
2147 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_remove()
2150 intel_th_msc_deactivate(thdev); in intel_th_msc_remove()