Searched refs:thdev (Results 1 – 6 of 6) sorted by relevance
/linux-4.4.14/drivers/hwtracing/intel_th/ |
D | core.c | 36 struct intel_th_device *thdev = to_intel_th_device(dev); in intel_th_match() local 38 if (thdev->type == INTEL_TH_SWITCH && in intel_th_match() 42 return !strcmp(thdev->name, driver->name); in intel_th_match() 55 struct intel_th_device *thdev = to_intel_th_device(dev); in intel_th_probe() local 60 if (thdev->type == INTEL_TH_SWITCH) in intel_th_probe() 61 hub = thdev; in intel_th_probe() 74 if (thdev->type == INTEL_TH_OUTPUT && in intel_th_probe() 75 !intel_th_output_assigned(thdev)) in intel_th_probe() 76 ret = hubdrv->assign(hub, thdev); in intel_th_probe() 84 struct intel_th_device *thdev = to_intel_th_device(dev); in intel_th_remove() local [all …]
|
D | intel_th.h | 81 intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type, in intel_th_device_get_resource() argument 86 for (i = 0; i < thdev->num_resources; i++) in intel_th_device_get_resource() 87 if (resource_type(&thdev->resource[i]) == type && !num--) in intel_th_device_get_resource() 88 return &thdev->resource[i]; in intel_th_device_get_resource() 100 intel_th_output_assigned(struct intel_th_device *thdev) in intel_th_output_assigned() argument 102 return thdev->type == INTEL_TH_OUTPUT && in intel_th_output_assigned() 103 thdev->output.port >= 0; in intel_th_output_assigned() 123 int (*probe)(struct intel_th_device *thdev); 124 void (*remove)(struct intel_th_device *thdev); 126 int (*assign)(struct intel_th_device *thdev, [all …]
|
D | pti.c | 32 struct intel_th_device *thdev; member 155 static int intel_th_pti_activate(struct intel_th_device *thdev) in intel_th_pti_activate() argument 157 struct pti_device *pti = dev_get_drvdata(&thdev->dev); in intel_th_pti_activate() 169 intel_th_trace_enable(thdev); in intel_th_pti_activate() 174 static void intel_th_pti_deactivate(struct intel_th_device *thdev) in intel_th_pti_deactivate() argument 176 struct pti_device *pti = dev_get_drvdata(&thdev->dev); in intel_th_pti_deactivate() 178 intel_th_trace_disable(thdev); in intel_th_pti_deactivate() 197 static int intel_th_pti_probe(struct intel_th_device *thdev) in intel_th_pti_probe() argument 199 struct device *dev = &thdev->dev; in intel_th_pti_probe() 205 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0); in intel_th_pti_probe() [all …]
|
D | gth.c | 476 static void intel_th_gth_disable(struct intel_th_device *thdev, in intel_th_gth_disable() argument 479 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_disable() 507 dev_dbg(&thdev->dev, "timeout waiting for GTH[%d] PLE\n", in intel_th_gth_disable() 519 static void intel_th_gth_enable(struct intel_th_device *thdev, in intel_th_gth_enable() argument 522 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_enable() 553 static int intel_th_gth_assign(struct intel_th_device *thdev, in intel_th_gth_assign() argument 556 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_assign() 589 static void intel_th_gth_unassign(struct intel_th_device *thdev, in intel_th_gth_unassign() argument 592 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_unassign() 603 intel_th_gth_set_output(struct intel_th_device *thdev, unsigned int master) in intel_th_gth_set_output() argument [all …]
|
D | sth.c | 184 static int intel_th_sth_probe(struct intel_th_device *thdev) in intel_th_sth_probe() argument 186 struct device *dev = &thdev->dev; in intel_th_sth_probe() 192 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0); in intel_th_sth_probe() 200 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 1); in intel_th_sth_probe() 237 static void intel_th_sth_remove(struct intel_th_device *thdev) in intel_th_sth_remove() argument 239 struct sth_device *sth = dev_get_drvdata(&thdev->dev); in intel_th_sth_remove()
|
D | msu.c | 35 #define msc_dev(x) (&(x)->thdev->dev) 110 struct intel_th_device *thdev; member 512 msc->thdev->output.multiblock = msc->mode == MSC_MODE_MULTI; in msc_configure() 513 intel_th_trace_enable(msc->thdev); in msc_configure() 534 intel_th_trace_disable(msc->thdev); in msc_disable() 569 static int intel_th_msc_activate(struct intel_th_device *thdev) in intel_th_msc_activate() argument 571 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_activate() 592 static void intel_th_msc_deactivate(struct intel_th_device *thdev) in intel_th_msc_deactivate() argument 594 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_deactivate() 1030 struct intel_th_device *thdev = file->private_data; in intel_th_msc_open() local [all …]
|