thdev 32 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev = to_intel_th_device(dev); thdev 34 drivers/hwtracing/intel_th/core.c if (thdev->type == INTEL_TH_SWITCH && thdev 38 drivers/hwtracing/intel_th/core.c return !strcmp(thdev->name, driver->name); thdev 51 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev = to_intel_th_device(dev); thdev 56 drivers/hwtracing/intel_th/core.c if (thdev->type == INTEL_TH_SWITCH) thdev 57 drivers/hwtracing/intel_th/core.c hub = thdev; thdev 75 drivers/hwtracing/intel_th/core.c ret = sysfs_create_group(&thdev->dev.kobj, thdrv->attr_group); thdev 80 drivers/hwtracing/intel_th/core.c if (thdev->type == INTEL_TH_OUTPUT && thdev 81 drivers/hwtracing/intel_th/core.c !intel_th_output_assigned(thdev)) thdev 83 drivers/hwtracing/intel_th/core.c ret = hubdrv->assign(hub, thdev); thdev 87 drivers/hwtracing/intel_th/core.c thdrv->remove(thdev); thdev 96 drivers/hwtracing/intel_th/core.c static void intel_th_device_remove(struct intel_th_device *thdev); thdev 101 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev = to_intel_th_device(dev); thdev 102 drivers/hwtracing/intel_th/core.c struct intel_th_device *hub = to_intel_th_hub(thdev); thdev 105 drivers/hwtracing/intel_th/core.c if (thdev->type == INTEL_TH_SWITCH) { thdev 110 drivers/hwtracing/intel_th/core.c err = device_for_each_child(dev, thdev, intel_th_child_remove); thdev 125 drivers/hwtracing/intel_th/core.c if (th->thdev[i]->type != INTEL_TH_OUTPUT) { thdev 127 drivers/hwtracing/intel_th/core.c th->thdev[lowest] = th->thdev[i]; thdev 128 drivers/hwtracing/intel_th/core.c th->thdev[i] = NULL; thdev 138 drivers/hwtracing/intel_th/core.c intel_th_device_remove(th->thdev[i]); thdev 139 drivers/hwtracing/intel_th/core.c th->thdev[i] = NULL; thdev 147 drivers/hwtracing/intel_th/core.c sysfs_remove_group(&thdev->dev.kobj, thdrv->attr_group); thdev 151 drivers/hwtracing/intel_th/core.c thdrv->remove(thdev); thdev 153 drivers/hwtracing/intel_th/core.c if (intel_th_output_assigned(thdev)) { thdev 159 drivers/hwtracing/intel_th/core.c hubdrv->unassign(hub, thdev); thdev 176 drivers/hwtracing/intel_th/core.c static void intel_th_device_free(struct intel_th_device *thdev); thdev 191 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev = to_intel_th_device(dev); thdev 192 drivers/hwtracing/intel_th/core.c struct intel_th *th = to_intel_th(thdev); thdev 195 drivers/hwtracing/intel_th/core.c if (thdev->id >= 0) thdev 197 drivers/hwtracing/intel_th/core.c thdev->name, thdev->id); thdev 200 drivers/hwtracing/intel_th/core.c thdev->name); thdev 208 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev = to_intel_th_device(dev); thdev 210 drivers/hwtracing/intel_th/core.c if (thdev->output.port >= 0) thdev 211 drivers/hwtracing/intel_th/core.c return scnprintf(buf, PAGE_SIZE, "%u\n", thdev->output.port); thdev 218 drivers/hwtracing/intel_th/core.c static int intel_th_output_activate(struct intel_th_device *thdev) thdev 221 drivers/hwtracing/intel_th/core.c to_intel_th_driver_or_null(thdev->dev.driver); thdev 222 drivers/hwtracing/intel_th/core.c struct intel_th *th = to_intel_th(thdev); thdev 231 drivers/hwtracing/intel_th/core.c pm_runtime_get_sync(&thdev->dev); thdev 239 drivers/hwtracing/intel_th/core.c ret = thdrv->activate(thdev); thdev 241 drivers/hwtracing/intel_th/core.c intel_th_trace_enable(thdev); thdev 253 drivers/hwtracing/intel_th/core.c pm_runtime_put(&thdev->dev); thdev 259 drivers/hwtracing/intel_th/core.c static void intel_th_output_deactivate(struct intel_th_device *thdev) thdev 262 drivers/hwtracing/intel_th/core.c to_intel_th_driver_or_null(thdev->dev.driver); thdev 263 drivers/hwtracing/intel_th/core.c struct intel_th *th = to_intel_th(thdev); thdev 269 drivers/hwtracing/intel_th/core.c thdrv->deactivate(thdev); thdev 271 drivers/hwtracing/intel_th/core.c intel_th_trace_disable(thdev); thdev 276 drivers/hwtracing/intel_th/core.c pm_runtime_put(&thdev->dev); thdev 283 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev = to_intel_th_device(dev); thdev 285 drivers/hwtracing/intel_th/core.c return scnprintf(buf, PAGE_SIZE, "%d\n", thdev->output.active); thdev 291 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev = to_intel_th_device(dev); thdev 299 drivers/hwtracing/intel_th/core.c if (!!val != thdev->output.active) { thdev 301 drivers/hwtracing/intel_th/core.c ret = intel_th_output_activate(thdev); thdev 303 drivers/hwtracing/intel_th/core.c intel_th_output_deactivate(thdev); thdev 359 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev; thdev 366 drivers/hwtracing/intel_th/core.c thdev = kzalloc(sizeof(*thdev) + strlen(name) + 1, GFP_KERNEL); thdev 367 drivers/hwtracing/intel_th/core.c if (!thdev) thdev 370 drivers/hwtracing/intel_th/core.c thdev->id = id; thdev 371 drivers/hwtracing/intel_th/core.c thdev->type = type; thdev 373 drivers/hwtracing/intel_th/core.c strcpy(thdev->name, name); thdev 374 drivers/hwtracing/intel_th/core.c device_initialize(&thdev->dev); thdev 375 drivers/hwtracing/intel_th/core.c thdev->dev.bus = &intel_th_bus; thdev 376 drivers/hwtracing/intel_th/core.c thdev->dev.type = intel_th_device_type[type]; thdev 377 drivers/hwtracing/intel_th/core.c thdev->dev.parent = parent; thdev 378 drivers/hwtracing/intel_th/core.c thdev->dev.dma_mask = parent->dma_mask; thdev 379 drivers/hwtracing/intel_th/core.c thdev->dev.dma_parms = parent->dma_parms; thdev 380 drivers/hwtracing/intel_th/core.c dma_set_coherent_mask(&thdev->dev, parent->coherent_dma_mask); thdev 382 drivers/hwtracing/intel_th/core.c dev_set_name(&thdev->dev, "%d-%s%d", th->id, name, id); thdev 384 drivers/hwtracing/intel_th/core.c dev_set_name(&thdev->dev, "%d-%s", th->id, name); thdev 386 drivers/hwtracing/intel_th/core.c return thdev; thdev 389 drivers/hwtracing/intel_th/core.c static int intel_th_device_add_resources(struct intel_th_device *thdev, thdev 398 drivers/hwtracing/intel_th/core.c thdev->resource = r; thdev 399 drivers/hwtracing/intel_th/core.c thdev->num_resources = nres; thdev 404 drivers/hwtracing/intel_th/core.c static void intel_th_device_remove(struct intel_th_device *thdev) thdev 406 drivers/hwtracing/intel_th/core.c device_del(&thdev->dev); thdev 407 drivers/hwtracing/intel_th/core.c put_device(&thdev->dev); thdev 410 drivers/hwtracing/intel_th/core.c static void intel_th_device_free(struct intel_th_device *thdev) thdev 412 drivers/hwtracing/intel_th/core.c kfree(thdev->resource); thdev 413 drivers/hwtracing/intel_th/core.c kfree(thdev); thdev 602 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev; thdev 607 drivers/hwtracing/intel_th/core.c thdev = intel_th_device_alloc(th, subdev->type, subdev->name, thdev 609 drivers/hwtracing/intel_th/core.c if (!thdev) thdev 612 drivers/hwtracing/intel_th/core.c thdev->drvdata = th->drvdata; thdev 651 drivers/hwtracing/intel_th/core.c err = intel_th_device_add_resources(thdev, res, subdev->nres); thdev 657 drivers/hwtracing/intel_th/core.c thdev->dev.devt = MKDEV(th->major, th->num_thdevs); thdev 658 drivers/hwtracing/intel_th/core.c thdev->output.type = subdev->otype; thdev 659 drivers/hwtracing/intel_th/core.c thdev->output.port = -1; thdev 660 drivers/hwtracing/intel_th/core.c thdev->output.scratchpad = subdev->scrpd; thdev 662 drivers/hwtracing/intel_th/core.c thdev->host_mode = thdev 664 drivers/hwtracing/intel_th/core.c th->hub = thdev; thdev 667 drivers/hwtracing/intel_th/core.c err = device_add(&thdev->dev); thdev 678 drivers/hwtracing/intel_th/core.c return thdev; thdev 681 drivers/hwtracing/intel_th/core.c kfree(thdev->resource); thdev 684 drivers/hwtracing/intel_th/core.c put_device(&thdev->dev); thdev 700 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev; thdev 719 drivers/hwtracing/intel_th/core.c if (th->thdev[dst]->type != INTEL_TH_OUTPUT) thdev 722 drivers/hwtracing/intel_th/core.c if (th->thdev[dst]->output.type != otype) thdev 739 drivers/hwtracing/intel_th/core.c thdev = intel_th_subdevice_alloc(th, &intel_th_subdevices[src]); thdev 740 drivers/hwtracing/intel_th/core.c if (IS_ERR(thdev)) thdev 741 drivers/hwtracing/intel_th/core.c return PTR_ERR(thdev); thdev 743 drivers/hwtracing/intel_th/core.c th->thdev[th->num_thdevs++] = thdev; thdev 757 drivers/hwtracing/intel_th/core.c struct intel_th_device *thdev; thdev 772 drivers/hwtracing/intel_th/core.c thdev = intel_th_subdevice_alloc(th, subdev); thdev 774 drivers/hwtracing/intel_th/core.c if (IS_ERR(thdev)) { thdev 776 drivers/hwtracing/intel_th/core.c if (PTR_ERR(thdev) == -ENODEV) thdev 779 drivers/hwtracing/intel_th/core.c return PTR_ERR(thdev); thdev 782 drivers/hwtracing/intel_th/core.c th->thdev[th->num_thdevs++] = thdev; thdev 829 drivers/hwtracing/intel_th/core.c if (th->thdev[i]->type != INTEL_TH_OUTPUT) thdev 832 drivers/hwtracing/intel_th/core.c d = to_intel_th_driver(th->thdev[i]->dev.driver); thdev 834 drivers/hwtracing/intel_th/core.c ret |= d->irq(th->thdev[i]); thdev 934 drivers/hwtracing/intel_th/core.c if (th->thdev[i] != th->hub) thdev 935 drivers/hwtracing/intel_th/core.c intel_th_device_remove(th->thdev[i]); thdev 936 drivers/hwtracing/intel_th/core.c th->thdev[i] = NULL; thdev 960 drivers/hwtracing/intel_th/core.c int intel_th_trace_enable(struct intel_th_device *thdev) thdev 962 drivers/hwtracing/intel_th/core.c struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent); thdev 968 drivers/hwtracing/intel_th/core.c if (WARN_ON_ONCE(thdev->type != INTEL_TH_OUTPUT)) thdev 971 drivers/hwtracing/intel_th/core.c pm_runtime_get_sync(&thdev->dev); thdev 972 drivers/hwtracing/intel_th/core.c hubdrv->enable(hub, &thdev->output); thdev 982 drivers/hwtracing/intel_th/core.c int intel_th_trace_switch(struct intel_th_device *thdev) thdev 984 drivers/hwtracing/intel_th/core.c struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent); thdev 990 drivers/hwtracing/intel_th/core.c if (WARN_ON_ONCE(thdev->type != INTEL_TH_OUTPUT)) thdev 993 drivers/hwtracing/intel_th/core.c hubdrv->trig_switch(hub, &thdev->output); thdev 1003 drivers/hwtracing/intel_th/core.c int intel_th_trace_disable(struct intel_th_device *thdev) thdev 1005 drivers/hwtracing/intel_th/core.c struct intel_th_device *hub = to_intel_th_device(thdev->dev.parent); thdev 1009 drivers/hwtracing/intel_th/core.c if (WARN_ON_ONCE(thdev->type != INTEL_TH_OUTPUT)) thdev 1012 drivers/hwtracing/intel_th/core.c hubdrv->disable(hub, &thdev->output); thdev 1013 drivers/hwtracing/intel_th/core.c pm_runtime_put(&thdev->dev); thdev 1019 drivers/hwtracing/intel_th/core.c int intel_th_set_output(struct intel_th_device *thdev, thdev 1022 drivers/hwtracing/intel_th/core.c struct intel_th_device *hub = to_intel_th_hub(thdev); thdev 535 drivers/hwtracing/intel_th/gth.c static void intel_th_gth_disable(struct intel_th_device *thdev, thdev 538 drivers/hwtracing/intel_th/gth.c struct gth_device *gth = dev_get_drvdata(&thdev->dev); thdev 575 drivers/hwtracing/intel_th/gth.c static void intel_th_gth_enable(struct intel_th_device *thdev, thdev 578 drivers/hwtracing/intel_th/gth.c struct gth_device *gth = dev_get_drvdata(&thdev->dev); thdev 579 drivers/hwtracing/intel_th/gth.c struct intel_th *th = to_intel_th(thdev); thdev 610 drivers/hwtracing/intel_th/gth.c static void intel_th_gth_switch(struct intel_th_device *thdev, thdev 613 drivers/hwtracing/intel_th/gth.c struct gth_device *gth = dev_get_drvdata(&thdev->dev); thdev 627 drivers/hwtracing/intel_th/gth.c dev_dbg(&thdev->dev, "timeout waiting for CTS Trigger\n"); thdev 647 drivers/hwtracing/intel_th/gth.c static int intel_th_gth_assign(struct intel_th_device *thdev, thdev 650 drivers/hwtracing/intel_th/gth.c struct gth_device *gth = dev_get_drvdata(&thdev->dev); thdev 653 drivers/hwtracing/intel_th/gth.c if (thdev->host_mode) thdev 686 drivers/hwtracing/intel_th/gth.c static void intel_th_gth_unassign(struct intel_th_device *thdev, thdev 689 drivers/hwtracing/intel_th/gth.c struct gth_device *gth = dev_get_drvdata(&thdev->dev); thdev 693 drivers/hwtracing/intel_th/gth.c if (thdev->host_mode) thdev 707 drivers/hwtracing/intel_th/gth.c intel_th_gth_set_output(struct intel_th_device *thdev, unsigned int master) thdev 709 drivers/hwtracing/intel_th/gth.c struct gth_device *gth = dev_get_drvdata(&thdev->dev); thdev 729 drivers/hwtracing/intel_th/gth.c static int intel_th_gth_probe(struct intel_th_device *thdev) thdev 731 drivers/hwtracing/intel_th/gth.c struct device *dev = &thdev->dev; thdev 738 drivers/hwtracing/intel_th/gth.c res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0); thdev 762 drivers/hwtracing/intel_th/gth.c if (thdev->host_mode) thdev 770 drivers/hwtracing/intel_th/gth.c thdev->host_mode = true; thdev 804 drivers/hwtracing/intel_th/gth.c static void intel_th_gth_remove(struct intel_th_device *thdev) thdev 806 drivers/hwtracing/intel_th/gth.c struct gth_device *gth = dev_get_drvdata(&thdev->dev); thdev 100 drivers/hwtracing/intel_th/intel_th.h intel_th_device_get_resource(struct intel_th_device *thdev, unsigned int type, thdev 105 drivers/hwtracing/intel_th/intel_th.h for (i = 0; i < thdev->num_resources; i++) thdev 106 drivers/hwtracing/intel_th/intel_th.h if (resource_type(&thdev->resource[i]) == type && !num--) thdev 107 drivers/hwtracing/intel_th/intel_th.h return &thdev->resource[i]; thdev 130 drivers/hwtracing/intel_th/intel_th.h intel_th_output_assigned(struct intel_th_device *thdev) thdev 132 drivers/hwtracing/intel_th/intel_th.h return thdev->type == INTEL_TH_OUTPUT && thdev 133 drivers/hwtracing/intel_th/intel_th.h (thdev->output.port >= 0 || thdev 134 drivers/hwtracing/intel_th/intel_th.h thdev->output.type == GTH_NONE); thdev 158 drivers/hwtracing/intel_th/intel_th.h int (*probe)(struct intel_th_device *thdev); thdev 159 drivers/hwtracing/intel_th/intel_th.h void (*remove)(struct intel_th_device *thdev); thdev 161 drivers/hwtracing/intel_th/intel_th.h int (*assign)(struct intel_th_device *thdev, thdev 163 drivers/hwtracing/intel_th/intel_th.h void (*unassign)(struct intel_th_device *thdev, thdev 165 drivers/hwtracing/intel_th/intel_th.h void (*enable)(struct intel_th_device *thdev, thdev 167 drivers/hwtracing/intel_th/intel_th.h void (*trig_switch)(struct intel_th_device *thdev, thdev 169 drivers/hwtracing/intel_th/intel_th.h void (*disable)(struct intel_th_device *thdev, thdev 172 drivers/hwtracing/intel_th/intel_th.h irqreturn_t (*irq)(struct intel_th_device *thdev); thdev 173 drivers/hwtracing/intel_th/intel_th.h void (*wait_empty)(struct intel_th_device *thdev); thdev 174 drivers/hwtracing/intel_th/intel_th.h int (*activate)(struct intel_th_device *thdev); thdev 175 drivers/hwtracing/intel_th/intel_th.h void (*deactivate)(struct intel_th_device *thdev); thdev 182 drivers/hwtracing/intel_th/intel_th.h int (*set_output)(struct intel_th_device *thdev, thdev 203 drivers/hwtracing/intel_th/intel_th.h to_intel_th_parent(struct intel_th_device *thdev) thdev 205 drivers/hwtracing/intel_th/intel_th.h struct device *parent = thdev->dev.parent; thdev 213 drivers/hwtracing/intel_th/intel_th.h static inline struct intel_th *to_intel_th(struct intel_th_device *thdev) thdev 215 drivers/hwtracing/intel_th/intel_th.h if (thdev->type == INTEL_TH_OUTPUT) thdev 216 drivers/hwtracing/intel_th/intel_th.h thdev = to_intel_th_parent(thdev); thdev 218 drivers/hwtracing/intel_th/intel_th.h if (WARN_ON_ONCE(!thdev || thdev->type == INTEL_TH_OUTPUT)) thdev 221 drivers/hwtracing/intel_th/intel_th.h return dev_get_drvdata(thdev->dev.parent); thdev 232 drivers/hwtracing/intel_th/intel_th.h int intel_th_trace_enable(struct intel_th_device *thdev); thdev 233 drivers/hwtracing/intel_th/intel_th.h int intel_th_trace_switch(struct intel_th_device *thdev); thdev 234 drivers/hwtracing/intel_th/intel_th.h int intel_th_trace_disable(struct intel_th_device *thdev); thdev 235 drivers/hwtracing/intel_th/intel_th.h int intel_th_set_output(struct intel_th_device *thdev, thdev 271 drivers/hwtracing/intel_th/intel_th.h struct intel_th_device *thdev[TH_SUBDEVICE_MAX]; thdev 294 drivers/hwtracing/intel_th/intel_th.h to_intel_th_hub(struct intel_th_device *thdev) thdev 296 drivers/hwtracing/intel_th/intel_th.h if (thdev->type == INTEL_TH_SWITCH) thdev 297 drivers/hwtracing/intel_th/intel_th.h return thdev; thdev 298 drivers/hwtracing/intel_th/intel_th.h else if (thdev->type == INTEL_TH_OUTPUT) thdev 299 drivers/hwtracing/intel_th/intel_th.h return to_intel_th_parent(thdev); thdev 301 drivers/hwtracing/intel_th/intel_th.h return to_intel_th(thdev)->hub; thdev 31 drivers/hwtracing/intel_th/msu.c #define msc_dev(x) (&(x)->thdev->dev) thdev 132 drivers/hwtracing/intel_th/msu.c struct intel_th_device *thdev; thdev 798 drivers/hwtracing/intel_th/msu.c msc->thdev->output.multiblock = msc->mode == MSC_MODE_MULTI; thdev 799 drivers/hwtracing/intel_th/msu.c intel_th_trace_enable(msc->thdev); thdev 828 drivers/hwtracing/intel_th/msu.c intel_th_trace_disable(msc->thdev); thdev 864 drivers/hwtracing/intel_th/msu.c static int intel_th_msc_activate(struct intel_th_device *thdev) thdev 866 drivers/hwtracing/intel_th/msu.c struct msc *msc = dev_get_drvdata(&thdev->dev); thdev 886 drivers/hwtracing/intel_th/msu.c static void intel_th_msc_deactivate(struct intel_th_device *thdev) thdev 888 drivers/hwtracing/intel_th/msu.c struct msc *msc = dev_get_drvdata(&thdev->dev); thdev 1432 drivers/hwtracing/intel_th/msu.c struct intel_th_device *thdev = file->private_data; thdev 1433 drivers/hwtracing/intel_th/msu.c struct msc *msc = dev_get_drvdata(&thdev->dev); thdev 1648 drivers/hwtracing/intel_th/msu.c static void intel_th_msc_wait_empty(struct intel_th_device *thdev) thdev 1650 drivers/hwtracing/intel_th/msu.c struct msc *msc = dev_get_drvdata(&thdev->dev); thdev 1697 drivers/hwtracing/intel_th/msu.c intel_th_trace_switch(msc->thdev); thdev 1727 drivers/hwtracing/intel_th/msu.c intel_th_msc_deactivate(msc->thdev); thdev 1730 drivers/hwtracing/intel_th/msu.c static irqreturn_t intel_th_msc_interrupt(struct intel_th_device *thdev) thdev 1732 drivers/hwtracing/intel_th/msu.c struct msc *msc = dev_get_drvdata(&thdev->dev); thdev 2062 drivers/hwtracing/intel_th/msu.c static int intel_th_msc_probe(struct intel_th_device *thdev) thdev 2064 drivers/hwtracing/intel_th/msu.c struct device *dev = &thdev->dev; thdev 2070 drivers/hwtracing/intel_th/msu.c res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0); thdev 2082 drivers/hwtracing/intel_th/msu.c res = intel_th_device_get_resource(thdev, IORESOURCE_IRQ, 1); thdev 2086 drivers/hwtracing/intel_th/msu.c msc->index = thdev->id; thdev 2088 drivers/hwtracing/intel_th/msu.c msc->thdev = thdev; thdev 2102 drivers/hwtracing/intel_th/msu.c static void intel_th_msc_remove(struct intel_th_device *thdev) thdev 2104 drivers/hwtracing/intel_th/msu.c struct msc *msc = dev_get_drvdata(&thdev->dev); thdev 2107 drivers/hwtracing/intel_th/msu.c intel_th_msc_deactivate(thdev); thdev 24 drivers/hwtracing/intel_th/pti.c struct intel_th_device *thdev; thdev 149 drivers/hwtracing/intel_th/pti.c static int intel_th_pti_activate(struct intel_th_device *thdev) thdev 151 drivers/hwtracing/intel_th/pti.c struct pti_device *pti = dev_get_drvdata(&thdev->dev); thdev 164 drivers/hwtracing/intel_th/pti.c intel_th_trace_enable(thdev); thdev 169 drivers/hwtracing/intel_th/pti.c static void intel_th_pti_deactivate(struct intel_th_device *thdev) thdev 171 drivers/hwtracing/intel_th/pti.c struct pti_device *pti = dev_get_drvdata(&thdev->dev); thdev 173 drivers/hwtracing/intel_th/pti.c intel_th_trace_disable(thdev); thdev 191 drivers/hwtracing/intel_th/pti.c if (pti->thdev->output.type == GTH_LPP) { thdev 201 drivers/hwtracing/intel_th/pti.c static int intel_th_pti_probe(struct intel_th_device *thdev) thdev 203 drivers/hwtracing/intel_th/pti.c struct device *dev = &thdev->dev; thdev 208 drivers/hwtracing/intel_th/pti.c res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0); thdev 220 drivers/hwtracing/intel_th/pti.c pti->thdev = thdev; thdev 230 drivers/hwtracing/intel_th/pti.c static void intel_th_pti_remove(struct intel_th_device *thdev) thdev 188 drivers/hwtracing/intel_th/sth.c static int intel_th_sth_probe(struct intel_th_device *thdev) thdev 190 drivers/hwtracing/intel_th/sth.c struct device *dev = &thdev->dev; thdev 196 drivers/hwtracing/intel_th/sth.c res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 0); thdev 204 drivers/hwtracing/intel_th/sth.c res = intel_th_device_get_resource(thdev, IORESOURCE_MEM, 1); thdev 241 drivers/hwtracing/intel_th/sth.c static void intel_th_sth_remove(struct intel_th_device *thdev) thdev 243 drivers/hwtracing/intel_th/sth.c struct sth_device *sth = dev_get_drvdata(&thdev->dev);