csdev 21 drivers/hwtracing/coresight/coresight-catu.c #define csdev_to_catu_drvdata(csdev) \ csdev 22 drivers/hwtracing/coresight/coresight-catu.c dev_get_drvdata(csdev->dev.parent) csdev 332 drivers/hwtracing/coresight/coresight-catu.c struct coresight_device *csdev; csdev 336 drivers/hwtracing/coresight/coresight-catu.c csdev = tmc_etr_get_catu_device(tmc_drvdata); csdev 337 drivers/hwtracing/coresight/coresight-catu.c if (!csdev) csdev 343 drivers/hwtracing/coresight/coresight-catu.c catu_table = catu_init_sg_table(&csdev->dev, node, csdev 413 drivers/hwtracing/coresight/coresight-catu.c struct device *dev = &drvdata->csdev->dev; csdev 453 drivers/hwtracing/coresight/coresight-catu.c static int catu_enable(struct coresight_device *csdev, void *data) csdev 456 drivers/hwtracing/coresight/coresight-catu.c struct catu_drvdata *catu_drvdata = csdev_to_catu_drvdata(csdev); csdev 467 drivers/hwtracing/coresight/coresight-catu.c struct device *dev = &drvdata->csdev->dev; csdev 480 drivers/hwtracing/coresight/coresight-catu.c static int catu_disable(struct coresight_device *csdev, void *__unused) csdev 483 drivers/hwtracing/coresight/coresight-catu.c struct catu_drvdata *catu_drvdata = csdev_to_catu_drvdata(csdev); csdev 561 drivers/hwtracing/coresight/coresight-catu.c drvdata->csdev = coresight_register(&catu_desc); csdev 562 drivers/hwtracing/coresight/coresight-catu.c if (IS_ERR(drvdata->csdev)) csdev 563 drivers/hwtracing/coresight/coresight-catu.c ret = PTR_ERR(drvdata->csdev); csdev 65 drivers/hwtracing/coresight/coresight-catu.h struct coresight_device *csdev; csdev 100 drivers/hwtracing/coresight/coresight-catu.h static inline bool coresight_is_catu_device(struct coresight_device *csdev) csdev 104 drivers/hwtracing/coresight/coresight-catu.h if (csdev->type != CORESIGHT_DEV_TYPE_HELPER) csdev 106 drivers/hwtracing/coresight/coresight-catu.h if (csdev->subtype.helper_subtype != CORESIGHT_DEV_SUBTYPE_HELPER_CATU) csdev 86 drivers/hwtracing/coresight/coresight-etb10.c struct coresight_device *csdev; csdev 97 drivers/hwtracing/coresight/coresight-etb10.c static int etb_set_buffer(struct coresight_device *csdev, csdev 144 drivers/hwtracing/coresight/coresight-etb10.c static int etb_enable_sysfs(struct coresight_device *csdev) csdev 148 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 166 drivers/hwtracing/coresight/coresight-etb10.c atomic_inc(csdev->refcnt); csdev 172 drivers/hwtracing/coresight/coresight-etb10.c static int etb_enable_perf(struct coresight_device *csdev, void *data) csdev 177 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 201 drivers/hwtracing/coresight/coresight-etb10.c atomic_inc(csdev->refcnt); csdev 210 drivers/hwtracing/coresight/coresight-etb10.c ret = etb_set_buffer(csdev, handle); csdev 219 drivers/hwtracing/coresight/coresight-etb10.c atomic_inc(csdev->refcnt); csdev 227 drivers/hwtracing/coresight/coresight-etb10.c static int etb_enable(struct coresight_device *csdev, u32 mode, void *data) csdev 233 drivers/hwtracing/coresight/coresight-etb10.c ret = etb_enable_sysfs(csdev); csdev 236 drivers/hwtracing/coresight/coresight-etb10.c ret = etb_enable_perf(csdev, data); csdev 246 drivers/hwtracing/coresight/coresight-etb10.c dev_dbg(&csdev->dev, "ETB enabled\n"); csdev 253 drivers/hwtracing/coresight/coresight-etb10.c struct device *dev = &drvdata->csdev->dev; csdev 289 drivers/hwtracing/coresight/coresight-etb10.c struct device *dev = &drvdata->csdev->dev; csdev 349 drivers/hwtracing/coresight/coresight-etb10.c static int etb_disable(struct coresight_device *csdev) csdev 351 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 356 drivers/hwtracing/coresight/coresight-etb10.c if (atomic_dec_return(csdev->refcnt)) { csdev 369 drivers/hwtracing/coresight/coresight-etb10.c dev_dbg(&csdev->dev, "ETB disabled\n"); csdev 373 drivers/hwtracing/coresight/coresight-etb10.c static void *etb_alloc_buffer(struct coresight_device *csdev, csdev 400 drivers/hwtracing/coresight/coresight-etb10.c static int etb_set_buffer(struct coresight_device *csdev, csdev 424 drivers/hwtracing/coresight/coresight-etb10.c static unsigned long etb_update_buffer(struct coresight_device *csdev, csdev 436 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 446 drivers/hwtracing/coresight/coresight-etb10.c if (atomic_read(csdev->refcnt) != 1) csdev 462 drivers/hwtracing/coresight/coresight-etb10.c dev_err(&csdev->dev, csdev 596 drivers/hwtracing/coresight/coresight-etb10.c dev_dbg(&drvdata->csdev->dev, "ETB dumped\n"); csdev 607 drivers/hwtracing/coresight/coresight-etb10.c dev_dbg(&drvdata->csdev->dev, "%s: successfully opened\n", __func__); csdev 617 drivers/hwtracing/coresight/coresight-etb10.c struct device *dev = &drvdata->csdev->dev; csdev 644 drivers/hwtracing/coresight/coresight-etb10.c dev_dbg(&drvdata->csdev->dev, "%s: released\n", __func__); csdev 785 drivers/hwtracing/coresight/coresight-etb10.c drvdata->csdev = coresight_register(&desc); csdev 786 drivers/hwtracing/coresight/coresight-etb10.c if (IS_ERR(drvdata->csdev)) csdev 787 drivers/hwtracing/coresight/coresight-etb10.c return PTR_ERR(drvdata->csdev); csdev 800 drivers/hwtracing/coresight/coresight-etb10.c coresight_unregister(drvdata->csdev); csdev 243 drivers/hwtracing/coresight/coresight-etm-perf.c struct coresight_device *csdev; csdev 245 drivers/hwtracing/coresight/coresight-etm-perf.c csdev = per_cpu(csdev_src, cpu); csdev 251 drivers/hwtracing/coresight/coresight-etm-perf.c if (!csdev) { csdev 261 drivers/hwtracing/coresight/coresight-etm-perf.c path = coresight_build_path(csdev, sink); csdev 299 drivers/hwtracing/coresight/coresight-etm-perf.c struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); csdev 302 drivers/hwtracing/coresight/coresight-etm-perf.c if (!csdev) csdev 327 drivers/hwtracing/coresight/coresight-etm-perf.c if (source_ops(csdev)->enable(csdev, event, CS_MODE_PERF)) csdev 347 drivers/hwtracing/coresight/coresight-etm-perf.c struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); csdev 355 drivers/hwtracing/coresight/coresight-etm-perf.c if (!csdev) csdev 367 drivers/hwtracing/coresight/coresight-etm-perf.c source_ops(csdev)->disable(csdev, event); csdev 485 drivers/hwtracing/coresight/coresight-etm-perf.c int etm_perf_symlink(struct coresight_device *csdev, bool link) csdev 488 drivers/hwtracing/coresight/coresight-etm-perf.c int ret = 0, cpu = source_ops(csdev)->cpu_id(csdev); csdev 490 drivers/hwtracing/coresight/coresight-etm-perf.c struct device *cs_dev = &csdev->dev; csdev 501 drivers/hwtracing/coresight/coresight-etm-perf.c per_cpu(csdev_src, cpu) = csdev; csdev 520 drivers/hwtracing/coresight/coresight-etm-perf.c int etm_perf_add_symlink_sink(struct coresight_device *csdev) csdev 526 drivers/hwtracing/coresight/coresight-etm-perf.c struct device *dev = &csdev->dev; csdev 529 drivers/hwtracing/coresight/coresight-etm-perf.c if (csdev->type != CORESIGHT_DEV_TYPE_SINK && csdev 530 drivers/hwtracing/coresight/coresight-etm-perf.c csdev->type != CORESIGHT_DEV_TYPE_LINKSINK) csdev 533 drivers/hwtracing/coresight/coresight-etm-perf.c if (csdev->ea != NULL) csdev 560 drivers/hwtracing/coresight/coresight-etm-perf.c csdev->ea = ea; csdev 565 drivers/hwtracing/coresight/coresight-etm-perf.c void etm_perf_del_symlink_sink(struct coresight_device *csdev) csdev 568 drivers/hwtracing/coresight/coresight-etm-perf.c struct dev_ext_attribute *ea = csdev->ea; csdev 570 drivers/hwtracing/coresight/coresight-etm-perf.c if (csdev->type != CORESIGHT_DEV_TYPE_SINK && csdev 571 drivers/hwtracing/coresight/coresight-etm-perf.c csdev->type != CORESIGHT_DEV_TYPE_LINKSINK) csdev 579 drivers/hwtracing/coresight/coresight-etm-perf.c csdev->ea = NULL; csdev 61 drivers/hwtracing/coresight/coresight-etm-perf.h int etm_perf_symlink(struct coresight_device *csdev, bool link); csdev 62 drivers/hwtracing/coresight/coresight-etm-perf.h int etm_perf_add_symlink_sink(struct coresight_device *csdev); csdev 63 drivers/hwtracing/coresight/coresight-etm-perf.h void etm_perf_del_symlink_sink(struct coresight_device *csdev); csdev 73 drivers/hwtracing/coresight/coresight-etm-perf.h static inline int etm_perf_symlink(struct coresight_device *csdev, bool link) csdev 75 drivers/hwtracing/coresight/coresight-etm-perf.h int etm_perf_add_symlink_sink(struct coresight_device *csdev) csdev 77 drivers/hwtracing/coresight/coresight-etm-perf.h void etm_perf_del_symlink_sink(struct coresight_device *csdev) {} csdev 235 drivers/hwtracing/coresight/coresight-etm.h struct coresight_device *csdev; csdev 261 drivers/hwtracing/coresight/coresight-etm.h dev_err(&drvdata->csdev->dev, csdev 275 drivers/hwtracing/coresight/coresight-etm.h dev_err(&drvdata->csdev->dev, csdev 168 drivers/hwtracing/coresight/coresight-etm3x.c dev_err(&drvdata->csdev->dev, csdev 187 drivers/hwtracing/coresight/coresight-etm3x.c dev_err(&drvdata->csdev->dev, csdev 428 drivers/hwtracing/coresight/coresight-etm3x.c dev_dbg(&drvdata->csdev->dev, "cpu: %d enable smp call done: %d\n", csdev 447 drivers/hwtracing/coresight/coresight-etm3x.c static int etm_cpu_id(struct coresight_device *csdev) csdev 449 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 463 drivers/hwtracing/coresight/coresight-etm3x.c etm_dev = drvdata->csdev->dev.parent; csdev 483 drivers/hwtracing/coresight/coresight-etm3x.c static int etm_trace_id(struct coresight_device *csdev) csdev 485 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 490 drivers/hwtracing/coresight/coresight-etm3x.c static int etm_enable_perf(struct coresight_device *csdev, csdev 493 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 504 drivers/hwtracing/coresight/coresight-etm3x.c static int etm_enable_sysfs(struct coresight_device *csdev) csdev 506 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 531 drivers/hwtracing/coresight/coresight-etm3x.c dev_dbg(&csdev->dev, "ETM tracing enabled\n"); csdev 535 drivers/hwtracing/coresight/coresight-etm3x.c static int etm_enable(struct coresight_device *csdev, csdev 540 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 550 drivers/hwtracing/coresight/coresight-etm3x.c ret = etm_enable_sysfs(csdev); csdev 553 drivers/hwtracing/coresight/coresight-etm3x.c ret = etm_enable_perf(csdev, event); csdev 586 drivers/hwtracing/coresight/coresight-etm3x.c dev_dbg(&drvdata->csdev->dev, csdev 590 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_disable_perf(struct coresight_device *csdev) csdev 592 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 612 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_disable_sysfs(struct coresight_device *csdev) csdev 614 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 634 drivers/hwtracing/coresight/coresight-etm3x.c dev_dbg(&csdev->dev, "ETM tracing disabled\n"); csdev 637 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_disable(struct coresight_device *csdev, csdev 641 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 654 drivers/hwtracing/coresight/coresight-etm3x.c etm_disable_sysfs(csdev); csdev 657 drivers/hwtracing/coresight/coresight-etm3x.c etm_disable_perf(csdev); csdev 685 drivers/hwtracing/coresight/coresight-etm3x.c coresight_enable(etmdrvdata[cpu]->csdev); csdev 867 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->csdev = coresight_register(&desc); csdev 868 drivers/hwtracing/coresight/coresight-etm3x.c if (IS_ERR(drvdata->csdev)) { csdev 869 drivers/hwtracing/coresight/coresight-etm3x.c ret = PTR_ERR(drvdata->csdev); csdev 873 drivers/hwtracing/coresight/coresight-etm3x.c ret = etm_perf_symlink(drvdata->csdev, true); csdev 875 drivers/hwtracing/coresight/coresight-etm3x.c coresight_unregister(drvdata->csdev); csdev 880 drivers/hwtracing/coresight/coresight-etm3x.c dev_info(&drvdata->csdev->dev, csdev 883 drivers/hwtracing/coresight/coresight-etm3x.c coresight_enable(drvdata->csdev); csdev 69 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_cpu_id(struct coresight_device *csdev) csdev 71 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 76 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_trace_id(struct coresight_device *csdev) csdev 78 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 92 drivers/hwtracing/coresight/coresight-etm4x.c struct device *etm_dev = &drvdata->csdev->dev; csdev 368 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_enable_perf(struct coresight_device *csdev, csdev 372 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 390 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_enable_sysfs(struct coresight_device *csdev) csdev 392 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 412 drivers/hwtracing/coresight/coresight-etm4x.c dev_dbg(&csdev->dev, "ETM tracing enabled\n"); csdev 416 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_enable(struct coresight_device *csdev, csdev 421 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 431 drivers/hwtracing/coresight/coresight-etm4x.c ret = etm4_enable_sysfs(csdev); csdev 434 drivers/hwtracing/coresight/coresight-etm4x.c ret = etm4_enable_perf(csdev, event); csdev 477 drivers/hwtracing/coresight/coresight-etm4x.c dev_dbg(&drvdata->csdev->dev, csdev 481 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_disable_perf(struct coresight_device *csdev, csdev 486 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 506 drivers/hwtracing/coresight/coresight-etm4x.c static void etm4_disable_sysfs(struct coresight_device *csdev) csdev 508 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 528 drivers/hwtracing/coresight/coresight-etm4x.c dev_dbg(&csdev->dev, "ETM tracing disabled\n"); csdev 531 drivers/hwtracing/coresight/coresight-etm4x.c static void etm4_disable(struct coresight_device *csdev, csdev 535 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 548 drivers/hwtracing/coresight/coresight-etm4x.c etm4_disable_sysfs(csdev); csdev 551 drivers/hwtracing/coresight/coresight-etm4x.c etm4_disable_perf(csdev, event); csdev 1052 drivers/hwtracing/coresight/coresight-etm4x.c coresight_enable(etmdrvdata[cpu]->csdev); csdev 1163 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->csdev = coresight_register(&desc); csdev 1164 drivers/hwtracing/coresight/coresight-etm4x.c if (IS_ERR(drvdata->csdev)) { csdev 1165 drivers/hwtracing/coresight/coresight-etm4x.c ret = PTR_ERR(drvdata->csdev); csdev 1169 drivers/hwtracing/coresight/coresight-etm4x.c ret = etm_perf_symlink(drvdata->csdev, true); csdev 1171 drivers/hwtracing/coresight/coresight-etm4x.c coresight_unregister(drvdata->csdev); csdev 1176 drivers/hwtracing/coresight/coresight-etm4x.c dev_info(&drvdata->csdev->dev, "CPU%d: ETM v%d.%d initialized\n", csdev 1180 drivers/hwtracing/coresight/coresight-etm4x.c coresight_enable(drvdata->csdev); csdev 342 drivers/hwtracing/coresight/coresight-etm4x.h struct coresight_device *csdev; csdev 46 drivers/hwtracing/coresight/coresight-funnel.c struct coresight_device *csdev; csdev 76 drivers/hwtracing/coresight/coresight-funnel.c static int funnel_enable(struct coresight_device *csdev, int inport, csdev 80 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 85 drivers/hwtracing/coresight/coresight-funnel.c if (atomic_read(&csdev->refcnt[inport]) == 0) { csdev 92 drivers/hwtracing/coresight/coresight-funnel.c atomic_inc(&csdev->refcnt[inport]); csdev 96 drivers/hwtracing/coresight/coresight-funnel.c dev_dbg(&csdev->dev, "FUNNEL inport %d enabled\n", inport); csdev 118 drivers/hwtracing/coresight/coresight-funnel.c static void funnel_disable(struct coresight_device *csdev, int inport, csdev 121 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 126 drivers/hwtracing/coresight/coresight-funnel.c if (atomic_dec_return(&csdev->refcnt[inport]) == 0) { csdev 134 drivers/hwtracing/coresight/coresight-funnel.c dev_dbg(&csdev->dev, "FUNNEL inport %d disabled\n", inport); csdev 261 drivers/hwtracing/coresight/coresight-funnel.c drvdata->csdev = coresight_register(&desc); csdev 262 drivers/hwtracing/coresight/coresight-funnel.c if (IS_ERR(drvdata->csdev)) { csdev 263 drivers/hwtracing/coresight/coresight-funnel.c ret = PTR_ERR(drvdata->csdev); csdev 152 drivers/hwtracing/coresight/coresight-priv.h struct list_head *coresight_build_path(struct coresight_device *csdev, csdev 39 drivers/hwtracing/coresight/coresight-replicator.c struct coresight_device *csdev; csdev 97 drivers/hwtracing/coresight/coresight-replicator.c static int replicator_enable(struct coresight_device *csdev, int inport, csdev 101 drivers/hwtracing/coresight/coresight-replicator.c struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 106 drivers/hwtracing/coresight/coresight-replicator.c if (atomic_read(&csdev->refcnt[outport]) == 0) { csdev 114 drivers/hwtracing/coresight/coresight-replicator.c atomic_inc(&csdev->refcnt[outport]); csdev 118 drivers/hwtracing/coresight/coresight-replicator.c dev_dbg(&csdev->dev, "REPLICATOR enabled\n"); csdev 150 drivers/hwtracing/coresight/coresight-replicator.c static void replicator_disable(struct coresight_device *csdev, int inport, csdev 153 drivers/hwtracing/coresight/coresight-replicator.c struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 158 drivers/hwtracing/coresight/coresight-replicator.c if (atomic_dec_return(&csdev->refcnt[outport]) == 0) { csdev 166 drivers/hwtracing/coresight/coresight-replicator.c dev_dbg(&csdev->dev, "REPLICATOR disabled\n"); csdev 257 drivers/hwtracing/coresight/coresight-replicator.c drvdata->csdev = coresight_register(&desc); csdev 258 drivers/hwtracing/coresight/coresight-replicator.c if (IS_ERR(drvdata->csdev)) { csdev 259 drivers/hwtracing/coresight/coresight-replicator.c ret = PTR_ERR(drvdata->csdev); csdev 134 drivers/hwtracing/coresight/coresight-stm.c struct coresight_device *csdev; csdev 194 drivers/hwtracing/coresight/coresight-stm.c static int stm_enable(struct coresight_device *csdev, csdev 198 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 209 drivers/hwtracing/coresight/coresight-stm.c pm_runtime_get_sync(csdev->dev.parent); csdev 215 drivers/hwtracing/coresight/coresight-stm.c dev_dbg(&csdev->dev, "STM tracing enabled\n"); csdev 257 drivers/hwtracing/coresight/coresight-stm.c static void stm_disable(struct coresight_device *csdev, csdev 260 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 275 drivers/hwtracing/coresight/coresight-stm.c pm_runtime_put(csdev->dev.parent); csdev 278 drivers/hwtracing/coresight/coresight-stm.c dev_dbg(&csdev->dev, "STM tracing disabled\n"); csdev 282 drivers/hwtracing/coresight/coresight-stm.c static int stm_trace_id(struct coresight_device *csdev) csdev 284 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 340 drivers/hwtracing/coresight/coresight-stm.c if (!drvdata || !drvdata->csdev) csdev 343 drivers/hwtracing/coresight/coresight-stm.c return coresight_enable(drvdata->csdev); csdev 351 drivers/hwtracing/coresight/coresight-stm.c if (!drvdata || !drvdata->csdev) csdev 354 drivers/hwtracing/coresight/coresight-stm.c coresight_disable(drvdata->csdev); csdev 936 drivers/hwtracing/coresight/coresight-stm.c drvdata->csdev = coresight_register(&desc); csdev 937 drivers/hwtracing/coresight/coresight-stm.c if (IS_ERR(drvdata->csdev)) { csdev 938 drivers/hwtracing/coresight/coresight-stm.c ret = PTR_ERR(drvdata->csdev); csdev 944 drivers/hwtracing/coresight/coresight-stm.c dev_info(&drvdata->csdev->dev, "%s initialized\n", csdev 16 drivers/hwtracing/coresight/coresight-tmc-etf.c static int tmc_set_etf_buffer(struct coresight_device *csdev, csdev 149 drivers/hwtracing/coresight/coresight-tmc-etf.c static int tmc_enable_etf_sink_sysfs(struct coresight_device *csdev) csdev 155 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 185 drivers/hwtracing/coresight/coresight-tmc-etf.c atomic_inc(csdev->refcnt); csdev 208 drivers/hwtracing/coresight/coresight-tmc-etf.c atomic_inc(csdev->refcnt); csdev 223 drivers/hwtracing/coresight/coresight-tmc-etf.c static int tmc_enable_etf_sink_perf(struct coresight_device *csdev, void *data) csdev 228 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 253 drivers/hwtracing/coresight/coresight-tmc-etf.c ret = tmc_set_etf_buffer(csdev, handle); csdev 262 drivers/hwtracing/coresight/coresight-tmc-etf.c atomic_inc(csdev->refcnt); csdev 271 drivers/hwtracing/coresight/coresight-tmc-etf.c atomic_inc(csdev->refcnt); csdev 279 drivers/hwtracing/coresight/coresight-tmc-etf.c static int tmc_enable_etf_sink(struct coresight_device *csdev, csdev 286 drivers/hwtracing/coresight/coresight-tmc-etf.c ret = tmc_enable_etf_sink_sysfs(csdev); csdev 289 drivers/hwtracing/coresight/coresight-tmc-etf.c ret = tmc_enable_etf_sink_perf(csdev, data); csdev 300 drivers/hwtracing/coresight/coresight-tmc-etf.c dev_dbg(&csdev->dev, "TMC-ETB/ETF enabled\n"); csdev 304 drivers/hwtracing/coresight/coresight-tmc-etf.c static int tmc_disable_etf_sink(struct coresight_device *csdev) csdev 307 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 316 drivers/hwtracing/coresight/coresight-tmc-etf.c if (atomic_dec_return(csdev->refcnt)) { csdev 330 drivers/hwtracing/coresight/coresight-tmc-etf.c dev_dbg(&csdev->dev, "TMC-ETB/ETF disabled\n"); csdev 334 drivers/hwtracing/coresight/coresight-tmc-etf.c static int tmc_enable_etf_link(struct coresight_device *csdev, csdev 339 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 348 drivers/hwtracing/coresight/coresight-tmc-etf.c if (atomic_read(&csdev->refcnt[0]) == 0) { csdev 356 drivers/hwtracing/coresight/coresight-tmc-etf.c atomic_inc(&csdev->refcnt[0]); csdev 360 drivers/hwtracing/coresight/coresight-tmc-etf.c dev_dbg(&csdev->dev, "TMC-ETF enabled\n"); csdev 364 drivers/hwtracing/coresight/coresight-tmc-etf.c static void tmc_disable_etf_link(struct coresight_device *csdev, csdev 368 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 377 drivers/hwtracing/coresight/coresight-tmc-etf.c if (atomic_dec_return(&csdev->refcnt[0]) == 0) { csdev 385 drivers/hwtracing/coresight/coresight-tmc-etf.c dev_dbg(&csdev->dev, "TMC-ETF disabled\n"); csdev 388 drivers/hwtracing/coresight/coresight-tmc-etf.c static void *tmc_alloc_etf_buffer(struct coresight_device *csdev, csdev 416 drivers/hwtracing/coresight/coresight-tmc-etf.c static int tmc_set_etf_buffer(struct coresight_device *csdev, csdev 440 drivers/hwtracing/coresight/coresight-tmc-etf.c static unsigned long tmc_update_etf_buffer(struct coresight_device *csdev, csdev 452 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 464 drivers/hwtracing/coresight/coresight-tmc-etf.c if (atomic_read(csdev->refcnt) != 1) csdev 595 drivers/hwtracing/coresight/coresight-tmc-etr.c struct device *real_dev = drvdata->csdev->dev.parent; csdev 613 drivers/hwtracing/coresight/coresight-tmc-etr.c flat_buf->dev = &drvdata->csdev->dev; csdev 675 drivers/hwtracing/coresight/coresight-tmc-etr.c struct device *dev = &drvdata->csdev->dev; csdev 756 drivers/hwtracing/coresight/coresight-tmc-etr.c struct coresight_device *tmp, *etr = drvdata->csdev; csdev 833 drivers/hwtracing/coresight/coresight-tmc-etr.c struct device *dev = &drvdata->csdev->dev; csdev 937 drivers/hwtracing/coresight/coresight-tmc-etr.c dev_dbg(&drvdata->csdev->dev, csdev 1123 drivers/hwtracing/coresight/coresight-tmc-etr.c static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) csdev 1127 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 1163 drivers/hwtracing/coresight/coresight-tmc-etr.c atomic_inc(csdev->refcnt); csdev 1180 drivers/hwtracing/coresight/coresight-tmc-etr.c atomic_inc(csdev->refcnt); csdev 1190 drivers/hwtracing/coresight/coresight-tmc-etr.c dev_dbg(&csdev->dev, "TMC-ETR enabled\n"); csdev 1361 drivers/hwtracing/coresight/coresight-tmc-etr.c static void *tmc_alloc_etr_buffer(struct coresight_device *csdev, csdev 1366 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 1371 drivers/hwtracing/coresight/coresight-tmc-etr.c dev_dbg(&csdev->dev, "Unable to allocate ETR buffer\n"); csdev 1476 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_update_etr_buffer(struct coresight_device *csdev, csdev 1482 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 1489 drivers/hwtracing/coresight/coresight-tmc-etr.c if (atomic_read(csdev->refcnt) != 1) { csdev 1559 drivers/hwtracing/coresight/coresight-tmc-etr.c static int tmc_enable_etr_sink_perf(struct coresight_device *csdev, void *data) csdev 1564 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 1596 drivers/hwtracing/coresight/coresight-tmc-etr.c atomic_inc(csdev->refcnt); csdev 1606 drivers/hwtracing/coresight/coresight-tmc-etr.c atomic_inc(csdev->refcnt); csdev 1614 drivers/hwtracing/coresight/coresight-tmc-etr.c static int tmc_enable_etr_sink(struct coresight_device *csdev, csdev 1619 drivers/hwtracing/coresight/coresight-tmc-etr.c return tmc_enable_etr_sink_sysfs(csdev); csdev 1621 drivers/hwtracing/coresight/coresight-tmc-etr.c return tmc_enable_etr_sink_perf(csdev, data); csdev 1628 drivers/hwtracing/coresight/coresight-tmc-etr.c static int tmc_disable_etr_sink(struct coresight_device *csdev) csdev 1631 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 1640 drivers/hwtracing/coresight/coresight-tmc-etr.c if (atomic_dec_return(csdev->refcnt)) { csdev 1656 drivers/hwtracing/coresight/coresight-tmc-etr.c dev_dbg(&csdev->dev, "TMC-ETR disabled\n"); csdev 39 drivers/hwtracing/coresight/coresight-tmc.c dev_err(&drvdata->csdev->dev, csdev 56 drivers/hwtracing/coresight/coresight-tmc.c dev_err(&drvdata->csdev->dev, csdev 118 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "TMC read start\n"); csdev 140 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "TMC read end\n"); csdev 157 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "%s: successfully opened\n", __func__); csdev 187 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, csdev 193 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "%zu bytes copied\n", actual); csdev 208 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "%s: released\n", __func__); csdev 523 drivers/hwtracing/coresight/coresight-tmc.c drvdata->csdev = coresight_register(&desc); csdev 524 drivers/hwtracing/coresight/coresight-tmc.c if (IS_ERR(drvdata->csdev)) { csdev 525 drivers/hwtracing/coresight/coresight-tmc.c ret = PTR_ERR(drvdata->csdev); csdev 534 drivers/hwtracing/coresight/coresight-tmc.c coresight_unregister(drvdata->csdev); csdev 190 drivers/hwtracing/coresight/coresight-tmc.h struct coresight_device *csdev; csdev 60 drivers/hwtracing/coresight/coresight-tpiu.c struct coresight_device *csdev; csdev 72 drivers/hwtracing/coresight/coresight-tpiu.c static int tpiu_enable(struct coresight_device *csdev, u32 mode, void *__unused) csdev 74 drivers/hwtracing/coresight/coresight-tpiu.c struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 77 drivers/hwtracing/coresight/coresight-tpiu.c atomic_inc(csdev->refcnt); csdev 78 drivers/hwtracing/coresight/coresight-tpiu.c dev_dbg(&csdev->dev, "TPIU enabled\n"); csdev 98 drivers/hwtracing/coresight/coresight-tpiu.c static int tpiu_disable(struct coresight_device *csdev) csdev 100 drivers/hwtracing/coresight/coresight-tpiu.c struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); csdev 102 drivers/hwtracing/coresight/coresight-tpiu.c if (atomic_dec_return(csdev->refcnt)) csdev 107 drivers/hwtracing/coresight/coresight-tpiu.c dev_dbg(&csdev->dev, "TPIU disabled\n"); csdev 166 drivers/hwtracing/coresight/coresight-tpiu.c drvdata->csdev = coresight_register(&desc); csdev 168 drivers/hwtracing/coresight/coresight-tpiu.c if (!IS_ERR(drvdata->csdev)) { csdev 173 drivers/hwtracing/coresight/coresight-tpiu.c return PTR_ERR(drvdata->csdev); csdev 33 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev; csdev 61 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev, *i_csdev; csdev 63 drivers/hwtracing/coresight/coresight.c csdev = data; csdev 70 drivers/hwtracing/coresight/coresight.c if (i_csdev == csdev || !i_csdev->enable || csdev 75 drivers/hwtracing/coresight/coresight.c trace_id = source_ops(csdev)->trace_id(csdev); csdev 85 drivers/hwtracing/coresight/coresight.c static int coresight_source_is_unique(struct coresight_device *csdev) csdev 87 drivers/hwtracing/coresight/coresight.c int trace_id = source_ops(csdev)->trace_id(csdev); csdev 94 drivers/hwtracing/coresight/coresight.c csdev, coresight_id_match); csdev 97 drivers/hwtracing/coresight/coresight.c static int coresight_find_link_inport(struct coresight_device *csdev, csdev 105 drivers/hwtracing/coresight/coresight.c if (conn->child_dev == csdev) csdev 109 drivers/hwtracing/coresight/coresight.c dev_err(&csdev->dev, "couldn't find inport, parent: %s, child: %s\n", csdev 110 drivers/hwtracing/coresight/coresight.c dev_name(&parent->dev), dev_name(&csdev->dev)); csdev 115 drivers/hwtracing/coresight/coresight.c static int coresight_find_link_outport(struct coresight_device *csdev, csdev 121 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { csdev 122 drivers/hwtracing/coresight/coresight.c conn = &csdev->pdata->conns[i]; csdev 127 drivers/hwtracing/coresight/coresight.c dev_err(&csdev->dev, "couldn't find outport, parent: %s, child: %s\n", csdev 128 drivers/hwtracing/coresight/coresight.c dev_name(&csdev->dev), dev_name(&child->dev)); csdev 219 drivers/hwtracing/coresight/coresight.c static int coresight_enable_sink(struct coresight_device *csdev, csdev 228 drivers/hwtracing/coresight/coresight.c if (!sink_ops(csdev)->enable) csdev 231 drivers/hwtracing/coresight/coresight.c ret = sink_ops(csdev)->enable(csdev, mode, data); csdev 234 drivers/hwtracing/coresight/coresight.c csdev->enable = true; csdev 239 drivers/hwtracing/coresight/coresight.c static void coresight_disable_sink(struct coresight_device *csdev) csdev 243 drivers/hwtracing/coresight/coresight.c if (!sink_ops(csdev)->disable) csdev 246 drivers/hwtracing/coresight/coresight.c ret = sink_ops(csdev)->disable(csdev); csdev 249 drivers/hwtracing/coresight/coresight.c csdev->enable = false; csdev 252 drivers/hwtracing/coresight/coresight.c static int coresight_enable_link(struct coresight_device *csdev, csdev 263 drivers/hwtracing/coresight/coresight.c inport = coresight_find_link_inport(csdev, parent); csdev 264 drivers/hwtracing/coresight/coresight.c outport = coresight_find_link_outport(csdev, child); csdev 265 drivers/hwtracing/coresight/coresight.c link_subtype = csdev->subtype.link_subtype; csdev 272 drivers/hwtracing/coresight/coresight.c if (link_ops(csdev)->enable) csdev 273 drivers/hwtracing/coresight/coresight.c ret = link_ops(csdev)->enable(csdev, inport, outport); csdev 275 drivers/hwtracing/coresight/coresight.c csdev->enable = true; csdev 280 drivers/hwtracing/coresight/coresight.c static void coresight_disable_link(struct coresight_device *csdev, csdev 291 drivers/hwtracing/coresight/coresight.c inport = coresight_find_link_inport(csdev, parent); csdev 292 drivers/hwtracing/coresight/coresight.c outport = coresight_find_link_outport(csdev, child); csdev 293 drivers/hwtracing/coresight/coresight.c link_subtype = csdev->subtype.link_subtype; csdev 296 drivers/hwtracing/coresight/coresight.c nr_conns = csdev->pdata->nr_inport; csdev 298 drivers/hwtracing/coresight/coresight.c nr_conns = csdev->pdata->nr_outport; csdev 303 drivers/hwtracing/coresight/coresight.c if (link_ops(csdev)->disable) csdev 304 drivers/hwtracing/coresight/coresight.c link_ops(csdev)->disable(csdev, inport, outport); csdev 307 drivers/hwtracing/coresight/coresight.c if (atomic_read(&csdev->refcnt[i]) != 0) csdev 310 drivers/hwtracing/coresight/coresight.c csdev->enable = false; csdev 313 drivers/hwtracing/coresight/coresight.c static int coresight_enable_source(struct coresight_device *csdev, u32 mode) csdev 317 drivers/hwtracing/coresight/coresight.c if (!coresight_source_is_unique(csdev)) { csdev 318 drivers/hwtracing/coresight/coresight.c dev_warn(&csdev->dev, "traceID %d not unique\n", csdev 319 drivers/hwtracing/coresight/coresight.c source_ops(csdev)->trace_id(csdev)); csdev 323 drivers/hwtracing/coresight/coresight.c if (!csdev->enable) { csdev 324 drivers/hwtracing/coresight/coresight.c if (source_ops(csdev)->enable) { csdev 325 drivers/hwtracing/coresight/coresight.c ret = source_ops(csdev)->enable(csdev, NULL, mode); csdev 329 drivers/hwtracing/coresight/coresight.c csdev->enable = true; csdev 332 drivers/hwtracing/coresight/coresight.c atomic_inc(csdev->refcnt); csdev 345 drivers/hwtracing/coresight/coresight.c static bool coresight_disable_source(struct coresight_device *csdev) csdev 347 drivers/hwtracing/coresight/coresight.c if (atomic_dec_return(csdev->refcnt) == 0) { csdev 348 drivers/hwtracing/coresight/coresight.c if (source_ops(csdev)->disable) csdev 349 drivers/hwtracing/coresight/coresight.c source_ops(csdev)->disable(csdev, NULL); csdev 350 drivers/hwtracing/coresight/coresight.c csdev->enable = false; csdev 352 drivers/hwtracing/coresight/coresight.c return !csdev->enable; csdev 364 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev, *parent, *child; csdev 370 drivers/hwtracing/coresight/coresight.c csdev = nd->csdev; csdev 371 drivers/hwtracing/coresight/coresight.c type = csdev->type; csdev 380 drivers/hwtracing/coresight/coresight.c type = (csdev == coresight_get_sink(path)) ? csdev 386 drivers/hwtracing/coresight/coresight.c coresight_disable_sink(csdev); csdev 397 drivers/hwtracing/coresight/coresight.c parent = list_prev_entry(nd, link)->csdev; csdev 398 drivers/hwtracing/coresight/coresight.c child = list_next_entry(nd, link)->csdev; csdev 399 drivers/hwtracing/coresight/coresight.c coresight_disable_link(csdev, parent, child); csdev 418 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev, *parent, *child; csdev 421 drivers/hwtracing/coresight/coresight.c csdev = nd->csdev; csdev 422 drivers/hwtracing/coresight/coresight.c type = csdev->type; csdev 431 drivers/hwtracing/coresight/coresight.c type = (csdev == coresight_get_sink(path)) ? csdev 437 drivers/hwtracing/coresight/coresight.c ret = coresight_enable_sink(csdev, mode, sink_data); csdev 451 drivers/hwtracing/coresight/coresight.c parent = list_prev_entry(nd, link)->csdev; csdev 452 drivers/hwtracing/coresight/coresight.c child = list_next_entry(nd, link)->csdev; csdev 453 drivers/hwtracing/coresight/coresight.c ret = coresight_enable_link(csdev, parent, child); csdev 471 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev; csdev 476 drivers/hwtracing/coresight/coresight.c csdev = list_last_entry(path, struct coresight_node, link)->csdev; csdev 477 drivers/hwtracing/coresight/coresight.c if (csdev->type != CORESIGHT_DEV_TYPE_SINK && csdev 478 drivers/hwtracing/coresight/coresight.c csdev->type != CORESIGHT_DEV_TYPE_LINKSINK) csdev 481 drivers/hwtracing/coresight/coresight.c return csdev; csdev 487 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev = to_coresight_device(dev); csdev 489 drivers/hwtracing/coresight/coresight.c if ((csdev->type == CORESIGHT_DEV_TYPE_SINK || csdev 490 drivers/hwtracing/coresight/coresight.c csdev->type == CORESIGHT_DEV_TYPE_LINKSINK) && csdev 491 drivers/hwtracing/coresight/coresight.c csdev->activated) { csdev 500 drivers/hwtracing/coresight/coresight.c csdev->activated = false; csdev 532 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev = to_coresight_device(dev); csdev 535 drivers/hwtracing/coresight/coresight.c if (csdev->type == CORESIGHT_DEV_TYPE_SINK || csdev 536 drivers/hwtracing/coresight/coresight.c csdev->type == CORESIGHT_DEV_TYPE_LINKSINK) { csdev 538 drivers/hwtracing/coresight/coresight.c if (!csdev->ea) csdev 544 drivers/hwtracing/coresight/coresight.c hash = (unsigned long)csdev->ea->var; csdev 577 drivers/hwtracing/coresight/coresight.c static void coresight_grab_device(struct coresight_device *csdev) csdev 581 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { csdev 584 drivers/hwtracing/coresight/coresight.c child = csdev->pdata->conns[i].child_dev; csdev 588 drivers/hwtracing/coresight/coresight.c pm_runtime_get_sync(csdev->dev.parent); csdev 595 drivers/hwtracing/coresight/coresight.c static void coresight_drop_device(struct coresight_device *csdev) csdev 599 drivers/hwtracing/coresight/coresight.c pm_runtime_put(csdev->dev.parent); csdev 600 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { csdev 603 drivers/hwtracing/coresight/coresight.c child = csdev->pdata->conns[i].child_dev; csdev 620 drivers/hwtracing/coresight/coresight.c static int _coresight_build_path(struct coresight_device *csdev, csdev 629 drivers/hwtracing/coresight/coresight.c if (csdev == sink) csdev 633 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { csdev 636 drivers/hwtracing/coresight/coresight.c child_dev = csdev->pdata->conns[i].child_dev; csdev 658 drivers/hwtracing/coresight/coresight.c coresight_grab_device(csdev); csdev 659 drivers/hwtracing/coresight/coresight.c node->csdev = csdev; csdev 698 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev; csdev 702 drivers/hwtracing/coresight/coresight.c csdev = nd->csdev; csdev 704 drivers/hwtracing/coresight/coresight.c coresight_drop_device(csdev); csdev 719 drivers/hwtracing/coresight/coresight.c static int coresight_validate_source(struct coresight_device *csdev, csdev 724 drivers/hwtracing/coresight/coresight.c type = csdev->type; csdev 725 drivers/hwtracing/coresight/coresight.c subtype = csdev->subtype.source_subtype; csdev 728 drivers/hwtracing/coresight/coresight.c dev_err(&csdev->dev, "wrong device type in %s\n", function); csdev 734 drivers/hwtracing/coresight/coresight.c dev_err(&csdev->dev, "wrong device subtype in %s\n", function); csdev 741 drivers/hwtracing/coresight/coresight.c int coresight_enable(struct coresight_device *csdev) csdev 748 drivers/hwtracing/coresight/coresight.c subtype = csdev->subtype.source_subtype; csdev 752 drivers/hwtracing/coresight/coresight.c ret = coresight_validate_source(csdev, __func__); csdev 756 drivers/hwtracing/coresight/coresight.c if (csdev->enable) { csdev 763 drivers/hwtracing/coresight/coresight.c atomic_inc(csdev->refcnt); csdev 777 drivers/hwtracing/coresight/coresight.c path = coresight_build_path(csdev, sink); csdev 788 drivers/hwtracing/coresight/coresight.c ret = coresight_enable_source(csdev, CS_MODE_SYSFS); csdev 801 drivers/hwtracing/coresight/coresight.c cpu = source_ops(csdev)->cpu_id(csdev); csdev 825 drivers/hwtracing/coresight/coresight.c void coresight_disable(struct coresight_device *csdev) csdev 832 drivers/hwtracing/coresight/coresight.c ret = coresight_validate_source(csdev, __func__); csdev 836 drivers/hwtracing/coresight/coresight.c if (!csdev->enable || !coresight_disable_source(csdev)) csdev 839 drivers/hwtracing/coresight/coresight.c switch (csdev->subtype.source_subtype) { csdev 841 drivers/hwtracing/coresight/coresight.c cpu = source_ops(csdev)->cpu_id(csdev); csdev 865 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev = to_coresight_device(dev); csdev 867 drivers/hwtracing/coresight/coresight.c return scnprintf(buf, PAGE_SIZE, "%u\n", csdev->activated); csdev 876 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev = to_coresight_device(dev); csdev 883 drivers/hwtracing/coresight/coresight.c csdev->activated = true; csdev 885 drivers/hwtracing/coresight/coresight.c csdev->activated = false; csdev 895 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev = to_coresight_device(dev); csdev 897 drivers/hwtracing/coresight/coresight.c return scnprintf(buf, PAGE_SIZE, "%u\n", csdev->enable); csdev 906 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev = to_coresight_device(dev); csdev 913 drivers/hwtracing/coresight/coresight.c ret = coresight_enable(csdev); csdev 917 drivers/hwtracing/coresight/coresight.c coresight_disable(csdev); csdev 962 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev = to_coresight_device(dev); csdev 964 drivers/hwtracing/coresight/coresight.c fwnode_handle_put(csdev->dev.fwnode); csdev 965 drivers/hwtracing/coresight/coresight.c kfree(csdev->refcnt); csdev 966 drivers/hwtracing/coresight/coresight.c kfree(csdev); csdev 973 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev, *i_csdev; csdev 976 drivers/hwtracing/coresight/coresight.c csdev = data; csdev 980 drivers/hwtracing/coresight/coresight.c if (csdev == i_csdev) csdev 996 drivers/hwtracing/coresight/coresight.c if (conn->child_fwnode == csdev->dev.fwnode) csdev 997 drivers/hwtracing/coresight/coresight.c conn->child_dev = csdev; csdev 1013 drivers/hwtracing/coresight/coresight.c static void coresight_fixup_orphan_conns(struct coresight_device *csdev) csdev 1020 drivers/hwtracing/coresight/coresight.c csdev, coresight_orphan_match); csdev 1024 drivers/hwtracing/coresight/coresight.c static void coresight_fixup_device_conns(struct coresight_device *csdev) csdev 1028 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { csdev 1029 drivers/hwtracing/coresight/coresight.c struct coresight_connection *conn = &csdev->pdata->conns[i]; csdev 1038 drivers/hwtracing/coresight/coresight.c csdev->orphan = true; csdev 1047 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev, *iterator; csdev 1050 drivers/hwtracing/coresight/coresight.c csdev = data; csdev 1054 drivers/hwtracing/coresight/coresight.c if (csdev == iterator) csdev 1067 drivers/hwtracing/coresight/coresight.c if (csdev->dev.fwnode == conn->child_fwnode) { csdev 1092 drivers/hwtracing/coresight/coresight.c static void coresight_remove_conns(struct coresight_device *csdev) csdev 1100 drivers/hwtracing/coresight/coresight.c if (csdev->pdata->nr_inport) csdev 1102 drivers/hwtracing/coresight/coresight.c csdev, coresight_remove_match); csdev 1177 drivers/hwtracing/coresight/coresight.c struct coresight_device *csdev; csdev 1179 drivers/hwtracing/coresight/coresight.c csdev = kzalloc(sizeof(*csdev), GFP_KERNEL); csdev 1180 drivers/hwtracing/coresight/coresight.c if (!csdev) { csdev 1201 drivers/hwtracing/coresight/coresight.c csdev->refcnt = refcnts; csdev 1203 drivers/hwtracing/coresight/coresight.c csdev->pdata = desc->pdata; csdev 1205 drivers/hwtracing/coresight/coresight.c csdev->type = desc->type; csdev 1206 drivers/hwtracing/coresight/coresight.c csdev->subtype = desc->subtype; csdev 1207 drivers/hwtracing/coresight/coresight.c csdev->ops = desc->ops; csdev 1208 drivers/hwtracing/coresight/coresight.c csdev->orphan = false; csdev 1210 drivers/hwtracing/coresight/coresight.c csdev->dev.type = &coresight_dev_type[desc->type]; csdev 1211 drivers/hwtracing/coresight/coresight.c csdev->dev.groups = desc->groups; csdev 1212 drivers/hwtracing/coresight/coresight.c csdev->dev.parent = desc->dev; csdev 1213 drivers/hwtracing/coresight/coresight.c csdev->dev.release = coresight_device_release; csdev 1214 drivers/hwtracing/coresight/coresight.c csdev->dev.bus = &coresight_bustype; csdev 1219 drivers/hwtracing/coresight/coresight.c csdev->dev.fwnode = fwnode_handle_get(dev_fwnode(desc->dev)); csdev 1220 drivers/hwtracing/coresight/coresight.c dev_set_name(&csdev->dev, "%s", desc->name); csdev 1222 drivers/hwtracing/coresight/coresight.c ret = device_register(&csdev->dev); csdev 1224 drivers/hwtracing/coresight/coresight.c put_device(&csdev->dev); csdev 1232 drivers/hwtracing/coresight/coresight.c if (csdev->type == CORESIGHT_DEV_TYPE_SINK || csdev 1233 drivers/hwtracing/coresight/coresight.c csdev->type == CORESIGHT_DEV_TYPE_LINKSINK) { csdev 1234 drivers/hwtracing/coresight/coresight.c ret = etm_perf_add_symlink_sink(csdev); csdev 1237 drivers/hwtracing/coresight/coresight.c device_unregister(&csdev->dev); csdev 1250 drivers/hwtracing/coresight/coresight.c coresight_fixup_device_conns(csdev); csdev 1251 drivers/hwtracing/coresight/coresight.c coresight_fixup_orphan_conns(csdev); csdev 1255 drivers/hwtracing/coresight/coresight.c return csdev; csdev 1258 drivers/hwtracing/coresight/coresight.c kfree(csdev); csdev 1266 drivers/hwtracing/coresight/coresight.c void coresight_unregister(struct coresight_device *csdev) csdev 1268 drivers/hwtracing/coresight/coresight.c etm_perf_del_symlink_sink(csdev); csdev 1270 drivers/hwtracing/coresight/coresight.c coresight_remove_conns(csdev); csdev 1271 drivers/hwtracing/coresight/coresight.c coresight_release_platform_data(csdev->pdata); csdev 1272 drivers/hwtracing/coresight/coresight.c device_unregister(&csdev->dev); csdev 136 drivers/scsi/device_handler/scsi_dh_emc.c struct clariion_dh_data *csdev) csdev 141 drivers/scsi/device_handler/scsi_dh_emc.c if (csdev->buffer[48] != 0) { csdev 148 drivers/scsi/device_handler/scsi_dh_emc.c if (csdev->buffer[4] > 2) { csdev 156 drivers/scsi/device_handler/scsi_dh_emc.c switch (csdev->buffer[28] & 0x0f) { csdev 168 drivers/scsi/device_handler/scsi_dh_emc.c CLARIION_NAME, csdev->buffer[28] & 0x0f); csdev 173 drivers/scsi/device_handler/scsi_dh_emc.c csdev->default_sp = csdev->buffer[5]; csdev 174 drivers/scsi/device_handler/scsi_dh_emc.c csdev->lun_state = csdev->buffer[4]; csdev 175 drivers/scsi/device_handler/scsi_dh_emc.c csdev->current_sp = csdev->buffer[8]; csdev 176 drivers/scsi/device_handler/scsi_dh_emc.c csdev->port = csdev->buffer[7]; csdev 177 drivers/scsi/device_handler/scsi_dh_emc.c if (csdev->lun_state == CLARIION_LUN_OWNED) csdev 181 drivers/scsi/device_handler/scsi_dh_emc.c if (csdev->default_sp == csdev->current_sp) csdev 236 drivers/scsi/device_handler/scsi_dh_emc.c struct clariion_dh_data *csdev) csdev 245 drivers/scsi/device_handler/scsi_dh_emc.c if (csdev->flags & CLARIION_SHORT_TRESPASS) { csdev 247 drivers/scsi/device_handler/scsi_dh_emc.c if (!(csdev->flags & CLARIION_HONOR_RESERVATIONS)) csdev 256 drivers/scsi/device_handler/scsi_dh_emc.c if (!(csdev->flags & CLARIION_HONOR_RESERVATIONS)) csdev 264 drivers/scsi/device_handler/scsi_dh_emc.c memcpy(csdev->buffer, page22, len); csdev 266 drivers/scsi/device_handler/scsi_dh_emc.c err = scsi_execute(sdev, cdb, DMA_TO_DEVICE, csdev->buffer, len, NULL, csdev 345 drivers/scsi/device_handler/scsi_dh_emc.c struct clariion_dh_data *csdev) csdev 360 drivers/scsi/device_handler/scsi_dh_emc.c csdev->flags |= CLARIION_SHORT_TRESPASS; csdev 364 drivers/scsi/device_handler/scsi_dh_emc.c CLARIION_NAME, sp_model, csdev->flags); csdev 370 drivers/scsi/device_handler/scsi_dh_emc.c struct clariion_dh_data *csdev) csdev 374 drivers/scsi/device_handler/scsi_dh_emc.c if (!scsi_get_vpd_page(sdev, 0xC0, csdev->buffer, csdev 376 drivers/scsi/device_handler/scsi_dh_emc.c err = parse_sp_info_reply(sdev, csdev); csdev 384 drivers/scsi/device_handler/scsi_dh_emc.c struct clariion_dh_data *csdev = sdev->handler_data; csdev 387 drivers/scsi/device_handler/scsi_dh_emc.c result = clariion_send_inquiry(sdev, csdev); csdev 391 drivers/scsi/device_handler/scsi_dh_emc.c if (csdev->lun_state == CLARIION_LUN_OWNED) csdev 394 drivers/scsi/device_handler/scsi_dh_emc.c result = send_trespass_cmd(sdev, csdev); csdev 399 drivers/scsi/device_handler/scsi_dh_emc.c csdev->flags&CLARIION_SHORT_TRESPASS?"short":"long" ); csdev 402 drivers/scsi/device_handler/scsi_dh_emc.c result = clariion_send_inquiry(sdev, csdev); csdev 409 drivers/scsi/device_handler/scsi_dh_emc.c CLARIION_NAME, csdev->current_sp + 'A', csdev 410 drivers/scsi/device_handler/scsi_dh_emc.c csdev->port, lun_state[csdev->lun_state], csdev 411 drivers/scsi/device_handler/scsi_dh_emc.c csdev->default_sp + 'A'); csdev 425 drivers/scsi/device_handler/scsi_dh_emc.c struct clariion_dh_data *csdev = sdev->handler_data; csdev 444 drivers/scsi/device_handler/scsi_dh_emc.c csdev->flags |= CLARIION_SHORT_TRESPASS; csdev 446 drivers/scsi/device_handler/scsi_dh_emc.c csdev->flags &= ~CLARIION_SHORT_TRESPASS; csdev 449 drivers/scsi/device_handler/scsi_dh_emc.c csdev->flags |= CLARIION_HONOR_RESERVATIONS; csdev 451 drivers/scsi/device_handler/scsi_dh_emc.c csdev->flags &= ~CLARIION_HONOR_RESERVATIONS; csdev 458 drivers/scsi/device_handler/scsi_dh_emc.c if (csdev->lun_state != CLARIION_LUN_OWNED) csdev 461 drivers/scsi/device_handler/scsi_dh_emc.c csdev->lun_state = CLARIION_LUN_UNINITIALIZED; csdev 462 drivers/scsi/device_handler/scsi_dh_emc.c result = send_trespass_cmd(sdev, csdev); csdev 467 drivers/scsi/device_handler/scsi_dh_emc.c result = clariion_send_inquiry(sdev, csdev); csdev 378 drivers/staging/comedi/comedi_fops.c static ssize_t max_read_buffer_kb_show(struct device *csdev, csdev 381 drivers/staging/comedi/comedi_fops.c unsigned int minor = MINOR(csdev->devt); csdev 400 drivers/staging/comedi/comedi_fops.c static ssize_t max_read_buffer_kb_store(struct device *csdev, csdev 404 drivers/staging/comedi/comedi_fops.c unsigned int minor = MINOR(csdev->devt); csdev 434 drivers/staging/comedi/comedi_fops.c static ssize_t read_buffer_kb_show(struct device *csdev, csdev 437 drivers/staging/comedi/comedi_fops.c unsigned int minor = MINOR(csdev->devt); csdev 456 drivers/staging/comedi/comedi_fops.c static ssize_t read_buffer_kb_store(struct device *csdev, csdev 460 drivers/staging/comedi/comedi_fops.c unsigned int minor = MINOR(csdev->devt); csdev 490 drivers/staging/comedi/comedi_fops.c static ssize_t max_write_buffer_kb_show(struct device *csdev, csdev 494 drivers/staging/comedi/comedi_fops.c unsigned int minor = MINOR(csdev->devt); csdev 513 drivers/staging/comedi/comedi_fops.c static ssize_t max_write_buffer_kb_store(struct device *csdev, csdev 517 drivers/staging/comedi/comedi_fops.c unsigned int minor = MINOR(csdev->devt); csdev 547 drivers/staging/comedi/comedi_fops.c static ssize_t write_buffer_kb_show(struct device *csdev, csdev 550 drivers/staging/comedi/comedi_fops.c unsigned int minor = MINOR(csdev->devt); csdev 569 drivers/staging/comedi/comedi_fops.c static ssize_t write_buffer_kb_store(struct device *csdev, csdev 573 drivers/staging/comedi/comedi_fops.c unsigned int minor = MINOR(csdev->devt); csdev 2878 drivers/staging/comedi/comedi_fops.c struct device *csdev; csdev 2905 drivers/staging/comedi/comedi_fops.c csdev = device_create(comedi_class, hardware_device, csdev 2907 drivers/staging/comedi/comedi_fops.c if (!IS_ERR(csdev)) csdev 2908 drivers/staging/comedi/comedi_fops.c dev->class_dev = get_device(csdev); csdev 2936 drivers/staging/comedi/comedi_fops.c struct device *csdev; csdev 2954 drivers/staging/comedi/comedi_fops.c csdev = device_create(comedi_class, dev->class_dev, csdev 2957 drivers/staging/comedi/comedi_fops.c if (!IS_ERR(csdev)) csdev 2958 drivers/staging/comedi/comedi_fops.c s->class_dev = csdev; csdev 195 include/linux/coresight.h #define source_ops(csdev) csdev->ops->source_ops csdev 196 include/linux/coresight.h #define sink_ops(csdev) csdev->ops->sink_ops csdev 197 include/linux/coresight.h #define link_ops(csdev) csdev->ops->link_ops csdev 198 include/linux/coresight.h #define helper_ops(csdev) csdev->ops->helper_ops csdev 210 include/linux/coresight.h int (*enable)(struct coresight_device *csdev, u32 mode, void *data); csdev 211 include/linux/coresight.h int (*disable)(struct coresight_device *csdev); csdev 212 include/linux/coresight.h void *(*alloc_buffer)(struct coresight_device *csdev, csdev 216 include/linux/coresight.h unsigned long (*update_buffer)(struct coresight_device *csdev, csdev 228 include/linux/coresight.h int (*enable)(struct coresight_device *csdev, int iport, int oport); csdev 229 include/linux/coresight.h void (*disable)(struct coresight_device *csdev, int iport, int oport); csdev 243 include/linux/coresight.h int (*cpu_id)(struct coresight_device *csdev); csdev 244 include/linux/coresight.h int (*trace_id)(struct coresight_device *csdev); csdev 245 include/linux/coresight.h int (*enable)(struct coresight_device *csdev, csdev 247 include/linux/coresight.h void (*disable)(struct coresight_device *csdev, csdev 261 include/linux/coresight.h int (*enable)(struct coresight_device *csdev, void *data); csdev 262 include/linux/coresight.h int (*disable)(struct coresight_device *csdev, void *data); csdev 275 include/linux/coresight.h extern void coresight_unregister(struct coresight_device *csdev); csdev 276 include/linux/coresight.h extern int coresight_enable(struct coresight_device *csdev); csdev 277 include/linux/coresight.h extern void coresight_disable(struct coresight_device *csdev); csdev 291 include/linux/coresight.h static inline void coresight_unregister(struct coresight_device *csdev) {} csdev 293 include/linux/coresight.h coresight_enable(struct coresight_device *csdev) { return -ENOSYS; } csdev 294 include/linux/coresight.h static inline void coresight_disable(struct coresight_device *csdev) {}