/kernel/linux/linux-5.10/drivers/hwtracing/intel_th/ |
D | core.c | 32 struct intel_th_device *thdev = to_intel_th_device(dev); in intel_th_match() local 34 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() local 56 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 …]
|
D | intel_th.h | 102 intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type, in intel_th_device_get_resource() argument 107 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() argument 134 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 …]
|
D | pti.c | 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->dev; in intel_th_pti_probe() [all …]
|
D | gth.c | 535 static void intel_th_gth_disable(struct intel_th_device *thdev, in intel_th_gth_disable() argument 538 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_disable() 567 static void intel_th_gth_prepare(struct intel_th_device *thdev, in intel_th_gth_prepare() argument 570 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_prepare() 590 static void intel_th_gth_enable(struct intel_th_device *thdev, in intel_th_gth_enable() argument 593 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_enable() 594 struct intel_th *th = to_intel_th(thdev); in intel_th_gth_enable() 625 static void intel_th_gth_switch(struct intel_th_device *thdev, in intel_th_gth_switch() argument 628 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_switch() 642 dev_dbg(&thdev->dev, "timeout waiting for CTS Trigger\n"); in intel_th_gth_switch() [all …]
|
D | sth.c | 186 static int intel_th_sth_probe(struct intel_th_device *thdev) in intel_th_sth_probe() argument 188 struct device *dev = &thdev->dev; in intel_th_sth_probe() 194 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0); in intel_th_sth_probe() 202 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 1); in intel_th_sth_probe() 239 static void intel_th_sth_remove(struct intel_th_device *thdev) in intel_th_sth_remove() argument 241 struct sth_device *sth = dev_get_drvdata(&thdev->dev); in intel_th_sth_remove()
|
D | msu.c | 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 [all …]
|
/kernel/linux/linux-4.19/drivers/hwtracing/intel_th/ |
D | core.c | 32 struct intel_th_device *thdev = to_intel_th_device(dev); in intel_th_match() local 34 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() local 56 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 …]
|
D | intel_th.h | 93 intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type, in intel_th_device_get_resource() argument 98 for (i = 0; i < thdev->num_resources; i++) in intel_th_device_get_resource() 99 if (resource_type(&thdev->resource[i]) == type && !num--) in intel_th_device_get_resource() 100 return &thdev->resource[i]; in intel_th_device_get_resource() 123 intel_th_output_assigned(struct intel_th_device *thdev) in intel_th_output_assigned() argument 125 return thdev->type == INTEL_TH_OUTPUT && in intel_th_output_assigned() 126 (thdev->output.port >= 0 || in intel_th_output_assigned() 127 thdev->output.type == GTH_NONE); in intel_th_output_assigned() 151 int (*probe)(struct intel_th_device *thdev); 152 void (*remove)(struct intel_th_device *thdev); [all …]
|
D | pti.c | 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->dev; in intel_th_pti_probe() [all …]
|
D | gth.c | 468 static void intel_th_gth_disable(struct intel_th_device *thdev, in intel_th_gth_disable() argument 471 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_disable() 499 dev_dbg(&thdev->dev, "timeout waiting for GTH[%d] PLE\n", in intel_th_gth_disable() 524 static void intel_th_gth_enable(struct intel_th_device *thdev, in intel_th_gth_enable() argument 527 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_enable() 528 struct intel_th *th = to_intel_th(thdev); in intel_th_gth_enable() 566 static int intel_th_gth_assign(struct intel_th_device *thdev, in intel_th_gth_assign() argument 569 struct gth_device *gth = dev_get_drvdata(&thdev->dev); in intel_th_gth_assign() 572 if (thdev->host_mode) in intel_th_gth_assign() 605 static void intel_th_gth_unassign(struct intel_th_device *thdev, in intel_th_gth_unassign() argument [all …]
|
D | sth.c | 182 static int intel_th_sth_probe(struct intel_th_device *thdev) in intel_th_sth_probe() argument 184 struct device *dev = &thdev->dev; in intel_th_sth_probe() 190 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0); in intel_th_sth_probe() 198 res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 1); in intel_th_sth_probe() 235 static void intel_th_sth_remove(struct intel_th_device *thdev) in intel_th_sth_remove() argument 237 struct sth_device *sth = dev_get_drvdata(&thdev->dev); in intel_th_sth_remove()
|
D | msu.c | 29 #define msc_dev(x) (&(x)->thdev->dev) 105 struct intel_th_device *thdev; member 519 msc->thdev->output.multiblock = msc->mode == MSC_MODE_MULTI; in msc_configure() 520 intel_th_trace_enable(msc->thdev); in msc_configure() 541 intel_th_trace_disable(msc->thdev); in msc_disable() 576 static int intel_th_msc_activate(struct intel_th_device *thdev) in intel_th_msc_activate() argument 578 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_activate() 598 static void intel_th_msc_deactivate(struct intel_th_device *thdev) in intel_th_msc_deactivate() argument 600 struct msc *msc = dev_get_drvdata(&thdev->dev); in intel_th_msc_deactivate() 1066 struct intel_th_device *thdev = file->private_data; in intel_th_msc_open() local [all …]
|