Searched refs:thdev (Results 1 – 4 of 4) sorted by relevance
32 struct intel_th_device *thdev = to_intel_th_device(dev); in intel_th_match() local34 if (thdev->type == INTEL_TH_SWITCH && in intel_th_match()38 return !strcmp(thdev->name, driver->name); in intel_th_match()51 struct intel_th_device *thdev = to_intel_th_device(dev); in intel_th_probe() local56 if (thdev->type == INTEL_TH_SWITCH) in intel_th_probe()57 hub = thdev; in intel_th_probe()75 ret = sysfs_create_group(&thdev->dev.kobj, thdrv->attr_group); in intel_th_probe()80 if (thdev->type == INTEL_TH_OUTPUT && in intel_th_probe()81 !intel_th_output_assigned(thdev)) in intel_th_probe()83 ret = hubdrv->assign(hub, thdev); in intel_th_probe()[all …]
102 intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type, in intel_th_device_get_resource() argument107 for (i = 0; i < thdev->num_resources; i++) in intel_th_device_get_resource()108 if (resource_type(&thdev->resource[i]) == type && !num--) in intel_th_device_get_resource()109 return &thdev->resource[i]; in intel_th_device_get_resource()132 intel_th_output_assigned(struct intel_th_device *thdev) in intel_th_output_assigned() argument134 return thdev->type == INTEL_TH_OUTPUT && in intel_th_output_assigned()135 (thdev->output.port >= 0 || in intel_th_output_assigned()136 thdev->output.type == GTH_NONE); in intel_th_output_assigned()161 int (*probe)(struct intel_th_device *thdev);162 void (*remove)(struct intel_th_device *thdev);[all …]
24 struct intel_th_device *thdev; member 149 static int intel_th_pti_activate(struct intel_th_device *thdev) in intel_th_pti_activate() argument 151 struct pti_device *pti = dev_get_drvdata(&thdev->dev); in intel_th_pti_activate() 164 intel_th_trace_enable(thdev); in intel_th_pti_activate() 169 static void intel_th_pti_deactivate(struct intel_th_device *thdev) in intel_th_pti_deactivate() argument 171 struct pti_device *pti = dev_get_drvdata(&thdev->dev); in intel_th_pti_deactivate() 173 intel_th_trace_disable(thdev); in intel_th_pti_deactivate() 191 if (pti->thdev->output.type == GTH_LPP) { in read_hw_config() 201 static int intel_th_pti_probe(struct intel_th_device *thdev) in intel_th_pti_probe() argument 203 struct device *dev = &thdev in intel_th_pti_probe() 230 intel_th_pti_remove(struct intel_th_device * thdev) intel_th_pti_remove() argument [all...]
31 #define msc_dev(x) (&(x)->thdev->dev)110 * @thdev: intel_th_device pointer141 struct intel_th_device *thdev; member 811 msc->thdev->output.multiblock = msc->mode == MSC_MODE_MULTI; in msc_configure() 812 intel_th_trace_enable(msc->thdev); in msc_configure() 841 intel_th_trace_disable(msc->thdev); in msc_disable() 877 static int intel_th_msc_activate(struct intel_th_device *thdev) in intel_th_msc_activate() argument 879 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_activate() 899 static void intel_th_msc_deactivate(struct intel_th_device *thdev) in intel_th_msc_deactivate() argument 901 struct msc *msc = dev_get_drvdata(&thdev in intel_th_msc_deactivate() 1473 struct intel_th_device *thdev = file->private_data; intel_th_msc_open() local 1493 struct intel_th_device *thdev = msc->thdev; intel_th_msc_release() local 1676 intel_th_msc_wait_empty(struct intel_th_device * thdev) intel_th_msc_wait_empty() argument 1762 intel_th_msc_interrupt(struct intel_th_device * thdev) intel_th_msc_interrupt() argument 2126 intel_th_msc_probe(struct intel_th_device * thdev) intel_th_msc_probe() argument 2169 intel_th_msc_remove(struct intel_th_device * thdev) intel_th_msc_remove() argument [all...]