| /linux-6.15/fs/gfs2/ |
| H A D | trans.c | 32 tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, in gfs2_print_trans() 35 tr->tr_num_buf_new, tr->tr_num_buf_rm, in gfs2_print_trans() 36 tr->tr_num_databuf_new, tr->tr_num_databuf_rm, in gfs2_print_trans() 37 tr->tr_num_revoke); in gfs2_print_trans() 55 tr->tr_ip = ip; in __gfs2_trans_begin() 56 tr->tr_blocks = blocks; in __gfs2_trans_begin() 116 if (!tr) in gfs2_trans_begin() 141 gfs2_log_release_revokes(sdp, tr->tr_revokes - tr->tr_num_revoke); in gfs2_trans_end() 143 nbuf = tr->tr_num_buf_new + tr->tr_num_databuf_new; in gfs2_trans_end() 148 gfs2_assert_withdraw(sdp, tr->tr_num_revoke <= tr->tr_revokes)) in gfs2_trans_end() [all …]
|
| H A D | log.c | 395 gfs2_ail_empty_tr(sdp, tr, &tr->tr_ail2_list); in __ail2_empty() 655 if (tr) { in calc_reserved() 656 blocks = tr->tr_num_buf_new - tr->tr_num_buf_rm; in calc_reserved() 946 gfs2_ail_empty_tr(sdp, tr, &tr->tr_ail1_list); in gfs2_ail_drain() 947 gfs2_ail_empty_tr(sdp, tr, &tr->tr_ail2_list); in gfs2_ail_drain() 954 gfs2_ail_empty_tr(sdp, tr, &tr->tr_ail2_list); in gfs2_ail_drain() 1003 if (!tr) in trans_drain() 1065 if (tr) { in gfs2_log_flush() 1121 if (tr && !list_empty(&tr->tr_ail1_list)) { in gfs2_log_flush() 1168 if (tr && list_empty(&tr->tr_list)) in gfs2_log_flush() [all …]
|
| /linux-6.15/kernel/trace/ |
| H A D | trace_irqsoff.c | 66 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument 172 tr->max_latency = 0; in irqsoff_display_graph() 251 if (is_graph(iter->tr)) in irqsoff_trace_open() 282 if (is_graph(tr)) in irqsoff_print_header() 293 if (is_graph(tr)) in __trace_function() 518 register_irqsoff_function(tr, is_graph(tr), 1); in irqsoff_function_set() 520 unregister_irqsoff_function(tr, is_graph(tr)); in irqsoff_function_set() 586 tr->max_latency = 0; in __irqsoff_tracer_init() 587 irqsoff_trace = tr; in __irqsoff_tracer_init() 594 if (start_irqsoff_tracer(tr, (tr->flags & TRACE_ARRAY_FL_GLOBAL && in __irqsoff_tracer_init() [all …]
|
| H A D | trace_functions.c | 72 tr->ops = ops; in ftrace_allocate_ftrace_ops() 80 kfree(tr->ops); in ftrace_free_ftrace_ops() 81 tr->ops = NULL; in ftrace_free_ftrace_ops() 95 if (!tr->ops) in ftrace_create_function_files() 98 ret = allocate_fgraph_ops(tr, tr->ops); in ftrace_create_function_files() 100 kfree(tr->ops); in ftrace_create_function_files() 154 if (!tr->ops) in function_trace_init() 907 if (!tr) in ftrace_trace_onoff_callback() 926 if (!tr) in ftrace_stacktrace_callback() 941 if (!tr) in ftrace_dump_callback() [all …]
|
| H A D | trace.c | 598 if (tr && trace_array_get(tr) < 0) in tracing_check_open_get_tr() 4607 iter->tr = tr; in __tracing_open() 6194 tr->current_trace->reset(tr); in tracing_set_nop() 6275 tr->current_trace->reset(tr); in tracing_set_tracer() 6501 iter->tr = tr; in tracing_open_pipe() 7441 iter->tr = tr; in tracing_snapshot_open() 8082 info->iter.tr = tr; in tracing_buffers_open() 9124 topt->tr = tr; in create_trace_option_file() 9535 buf->tr = tr; in allocate_trace_buffer() 9889 if (tr->ref > 1 || (tr->current_trace && tr->trace_ref)) in __remove_instance() [all …]
|
| H A D | trace_sched_wakeup.c | 44 # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) argument 110 tr->max_latency = 0; in wakeup_display_graph() 288 register_wakeup_function(tr, is_graph(tr), 1); in wakeup_function_set() 290 unregister_wakeup_function(tr, is_graph(tr)); in wakeup_function_set() 325 if (is_graph(tr)) in __trace_function() 648 wakeup_reset(tr); in start_wakeup_tracer() 659 if (start_func_tracer(tr, is_graph(tr))) in start_wakeup_tracer() 674 stop_func_tracer(tr, is_graph(tr)); in stop_wakeup_tracer() 692 wakeup_trace = tr; in __wakeup_tracer_init() 737 wakeup_reset(tr); in wakeup_tracer_reset() [all …]
|
| H A D | trace.h | 213 struct trace_array *tr; member 485 struct trace_array *tr; in top_trace_array() local 491 typeof(*tr), list); in top_trace_array() 493 return tr; in top_trace_array() 579 struct trace_array *tr; member 835 struct trace_array *tr); 837 struct trace_array *tr); 1196 struct trace_array *tr, 1200 struct trace_array *tr, 1204 struct trace_array *tr, [all …]
|
| H A D | trace_events.c | 624 struct trace_array *tr = trace_file->tr; in trace_event_ignore_this_pid() local 759 struct trace_array *tr = file->tr; in __ftrace_event_enable_disable() local 1382 if (!tr) in ftrace_set_clr_event() 1446 if (!tr) in trace_set_clr_event() 1471 if (!tr) in trace_array_set_clr_event() 1878 struct trace_array *tr = dir->tr; in system_enable_read() local 2226 dir->tr = tr; in system_tr_open() 2824 dir->tr = tr; in event_subsystem_dir() 2968 struct trace_array *tr = file->tr; in event_create_dir() local 3409 file->tr = tr; in trace_create_new_event() [all …]
|
| H A D | trace_selftest.c | 425 trace->reset(tr); in trace_selftest_startup_dynamic_tracing() 433 trace->reset(tr); in trace_selftest_startup_dynamic_tracing() 727 trace->reset(tr); in trace_selftest_startup_function() 1222 trace->stop(tr); in trace_selftest_startup_irqsoff() 1229 trace->reset(tr); in trace_selftest_startup_irqsoff() 1284 trace->stop(tr); in trace_selftest_startup_preemptoff() 1291 trace->reset(tr); in trace_selftest_startup_preemptoff() 1350 trace->stop(tr); in trace_selftest_startup_preemptirqsoff() 1371 trace->start(tr); in trace_selftest_startup_preemptirqsoff() 1380 trace->stop(tr); in trace_selftest_startup_preemptirqsoff() [all …]
|
| H A D | trace_functions_graph.c | 433 tr->gops = gops; in allocate_fgraph_ops() 434 gops->private = tr; in allocate_fgraph_ops() 443 kfree(tr->gops); in free_fgraph_ops() 508 graph_trace_reset(tr); in graph_trace_update_thresh() 700 struct trace_array *tr = iter->tr; in print_graph_irq() local 918 struct trace_array *tr = iter->tr; in print_graph_entry_leaf() local 991 struct trace_array *tr = iter->tr; in print_graph_entry_nested() local 1051 struct trace_array *tr = iter->tr; in print_graph_prologue() local 1256 struct trace_array *tr = iter->tr; in print_graph_return() local 1335 struct trace_array *tr = iter->tr; in print_graph_comment() local [all …]
|
| H A D | trace_boot.c | 39 if (trace_set_options(tr, buf) < 0) in trace_boot_set_instance_options() 48 tracer_tracing_on(tr); in trace_boot_set_instance_options() 50 tracer_tracing_off(tr); in trace_boot_set_instance_options() 55 if (tracing_set_clock(tr, p) < 0) in trace_boot_set_instance_options() 615 trace_boot_init_events(tr, node); in trace_boot_init_one_instance() 624 struct trace_array *tr; in trace_boot_init_instances() local 637 if (!tr) { in trace_boot_init_instances() 642 trace_array_put(tr); in trace_boot_init_instances() 649 struct trace_array *tr; in trace_boot_init() local 655 tr = top_trace_array(); in trace_boot_init() [all …]
|
| H A D | trace_hwlat.c | 300 if (latency > tr->max_latency) { in get_sample() 301 tr->max_latency = latency; in get_sample() 302 latency_fsnotify(tr); in get_sample() 706 hwlat_tracer_stop(tr); in hwlat_mode_write() 720 hwlat_tracer_start(tr); in hwlat_mode_write() 817 err = start_single_kthread(tr); in hwlat_tracer_start() 836 hwlat_trace = tr; in hwlat_tracer_init() 839 tr->max_latency = 0; in hwlat_tracer_init() 846 if (tracer_tracing_is_on(tr)) in hwlat_tracer_init() 847 hwlat_tracer_start(tr); in hwlat_tracer_init() [all …]
|
| H A D | trace_mmiotrace.c | 28 static void mmio_reset_data(struct trace_array *tr) in mmio_reset_data() argument 33 tracing_reset_online_cpus(&tr->array_buffer); in mmio_reset_data() 36 static int mmio_trace_init(struct trace_array *tr) in mmio_trace_init() argument 39 mmio_trace_array = tr; in mmio_trace_init() 41 mmio_reset_data(tr); in mmio_trace_init() 51 mmio_reset_data(tr); in mmio_trace_reset() 58 mmio_reset_data(tr); in mmio_trace_start() 317 struct trace_array *tr = mmio_trace_array; in mmio_trace_rw() local 319 __trace_mmiotrace_rw(tr, data, rw); in mmio_trace_rw() 346 struct trace_array *tr = mmio_trace_array; in mmio_trace_mapping() local [all …]
|
| H A D | trace_nop.c | 37 static void start_nop_trace(struct trace_array *tr) in start_nop_trace() argument 42 static void stop_nop_trace(struct trace_array *tr) in stop_nop_trace() argument 47 static int nop_trace_init(struct trace_array *tr) in nop_trace_init() argument 49 ctx_trace = tr; in nop_trace_init() 50 start_nop_trace(tr); in nop_trace_init() 54 static void nop_trace_reset(struct trace_array *tr) in nop_trace_reset() argument 56 stop_nop_trace(tr); in nop_trace_reset() 64 static int nop_set_flag(struct trace_array *tr, u32 old_flags, u32 bit, int set) in nop_set_flag() argument
|
| /linux-6.15/drivers/media/radio/ |
| H A D | radio-timb.c | 99 tr = devm_kzalloc(&pdev->dev, sizeof(*tr), GFP_KERNEL); in timbradio_probe() 100 if (!tr) { in timbradio_probe() 105 tr->pdata = *pdata; in timbradio_probe() 114 tr->video_dev.lock = &tr->lock; in timbradio_probe() 117 strscpy(tr->v4l2_dev.name, DRIVER_NAME, sizeof(tr->v4l2_dev.name)); in timbradio_probe() 122 tr->video_dev.v4l2_dev = &tr->v4l2_dev; in timbradio_probe() 124 tr->sd_tuner = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe() 126 tr->sd_dsp = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe() 128 if (tr->sd_tuner == NULL || tr->sd_dsp == NULL) { in timbradio_probe() 133 tr->v4l2_dev.ctrl_handler = tr->sd_dsp->ctrl_handler; in timbradio_probe() [all …]
|
| H A D | radio-trust.c | 58 struct trust *tr = kzalloc(sizeof(*tr), GFP_KERNEL); in trust_alloc() local 60 return tr ? &tr->isa : NULL; in trust_alloc() 67 #define TR_DELAY do { inb(tr->isa.io); inb(tr->isa.io); inb(tr->isa.io); } while (0) 68 #define TR_SET_SCL outb(tr->ioval |= 2, tr->isa.io) 69 #define TR_CLR_SCL outb(tr->ioval &= 0xfd, tr->isa.io) 70 #define TR_SET_SDA outb(tr->ioval |= 1, tr->isa.io) 71 #define TR_CLR_SDA outb(tr->ioval &= 0xfe, tr->isa.io) 123 tr->ioval = (tr->ioval & 0xf7) | (mute << 3); in trust_s_mute_volume() 124 outb(tr->ioval, isa->io); in trust_s_mute_volume() 133 tr->ioval = (tr->ioval & 0xfb) | (!stereo << 2); in trust_s_stereo() [all …]
|
| /linux-6.15/kernel/bpf/ |
| H A D | trampoline.c | 152 tr = kzalloc(sizeof(*tr), GFP_KERNEL); in bpf_trampoline_lookup() 153 if (!tr) in bpf_trampoline_lookup() 158 kfree(tr); in bpf_trampoline_lookup() 159 tr = NULL; in bpf_trampoline_lookup() 162 tr->fops->private = tr; in bpf_trampoline_lookup() 175 return tr; in bpf_trampoline_lookup() 411 err = unregister_fentry(tr, tr->cur_image->image); in bpf_trampoline_update() 459 &tr->func.model, tr->flags, tlinks, in bpf_trampoline_update() 749 if (!tr) in bpf_trampoline_link_cgroup_shim() 826 if (!tr) in bpf_trampoline_get() [all …]
|
| /linux-6.15/drivers/input/touchscreen/ |
| H A D | touchright.c | 45 struct tr { struct 56 struct tr *tr = serio_get_drvdata(serio); in tr_interrupt() local 59 tr->data[tr->idx] = data; in tr_interrupt() 64 (tr->data[1] << 5) | (tr->data[2] >> 1)); in tr_interrupt() 66 (tr->data[3] << 5) | (tr->data[4] >> 1)); in tr_interrupt() 70 tr->idx = 0; in tr_interrupt() 83 struct tr *tr = serio_get_drvdata(serio); in tr_disconnect() local 90 kfree(tr); in tr_disconnect() 101 struct tr *tr; in tr_connect() local 105 tr = kzalloc(sizeof(*tr), GFP_KERNEL); in tr_connect() [all …]
|
| /linux-6.15/drivers/mtd/ |
| H A D | mtd_blkdevs.c | 124 struct mtd_blktrans_ops *tr = dev->tr; in mtd_blktrans_work() local 259 ret = dev->tr->getgeo ? dev->tr->getgeo(dev, geo) : -ENOTTY; in blktrans_getgeo() 278 struct mtd_blktrans_ops *tr = new->tr; in add_mtd_blktrans_dev() local 337 if (tr->discard) in add_mtd_blktrans_dev() 339 if (tr->flush) in add_mtd_blktrans_dev() 464 tr->add_mtd(tr, mtd); in blktrans_notify_add() 483 ret = register_blkdev(tr->major, tr->name); in register_mtd_blktrans() 486 tr->name, tr->major, ret); in register_mtd_blktrans() 493 tr->blkshift = ffs(tr->blksize) - 1; in register_mtd_blktrans() 501 tr->add_mtd(tr, mtd); in register_mtd_blktrans() [all …]
|
| /linux-6.15/samples/ftrace/ |
| H A D | sample-trace-array.c | 20 struct trace_array *tr; variable 29 trace_array_set_clr_event(tr, "sample-subsystem", "sample_event", in trace_work_fn() 55 trace_array_printk(tr, _THIS_IP_, "trace_array_printk: count=%d\n", in simple_thread_func() 72 trace_array_set_clr_event(tr, "sample-subsystem", "sample_event", true); in simple_thread() 94 trace_array_put(tr); in simple_thread() 108 tr = trace_array_get_by_name("sample-instance", "sched,timer,kprobes"); in sample_trace_array_init() 110 if (!tr) in sample_trace_array_init() 115 trace_array_init_printk(tr); in sample_trace_array_init() 119 trace_array_put(tr); in sample_trace_array_init() 120 trace_array_destroy(tr); in sample_trace_array_init() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | trace.h | 41 #define trace_array_puts(tr, str) \ argument 43 str ? __trace_array_puts(tr, _THIS_IP_, str, strlen(str)) : -1; \ 45 int __trace_array_puts(struct trace_array *tr, unsigned long ip, 50 int trace_array_printk(struct trace_array *tr, unsigned long ip, 52 int trace_array_init_printk(struct trace_array *tr); 53 void trace_array_put(struct trace_array *tr); 55 int trace_array_destroy(struct trace_array *tr); 76 int trace_array_printk(struct trace_array *tr, unsigned long ip, const char *fmt, ...) in trace_array_printk() argument 80 static inline int trace_array_init_printk(struct trace_array *tr) in trace_array_init_printk() argument 84 static inline void trace_array_put(struct trace_array *tr) in trace_array_put() argument [all …]
|
| /linux-6.15/drivers/s390/crypto/ |
| H A D | zcrypt_api.c | 688 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo() 703 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_modexpo() 792 cpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_crt() 807 qpen = (tr && tr->again_counter && tr->last_qid && in zcrypt_rsa_crt() 911 cpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_cprb() 928 qpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_cprb() 980 memset(&tr, 0, sizeof(tr)); in zcrypt_send_cprb() 1107 cpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_ep11_cprb() 1125 qpen = (tr && tr->again_counter && tr->last_qid && in _zcrypt_send_ep11_cprb() 1182 memset(&tr, 0, sizeof(tr)); in zcrypt_send_ep11_cprb() [all …]
|
| /linux-6.15/fs/xfs/ |
| H A D | xfs_discard.c | 466 struct xfs_trim_rtdev *tr) in xfs_discard_free_rtdev_extents() argument 618 low = tr.restart_rtx; in xfs_trim_rtextents() 653 if (--tr->batch <= 0) { in xfs_trim_gather_rtgroup_extent() 684 tr->queued++; in xfs_trim_gather_rtgroup_extent() 713 tr.extents = kzalloc(sizeof(*tr.extents), GFP_KERNEL); in xfs_trim_rtgroup_extents() 714 if (!tr.extents) { in xfs_trim_rtgroup_extents() 719 tr.queued = 0; in xfs_trim_rtgroup_extents() 721 tr.extents->owner = tr.extents; in xfs_trim_rtgroup_extents() 731 kfree(tr.extents); in xfs_trim_rtgroup_extents() 735 if (!tr.queued) in xfs_trim_rtgroup_extents() [all …]
|
| /linux-6.15/drivers/net/ethernet/toshiba/ |
| H A D | tc35815.c | 528 &tr->MD_CA); in tc_mdio_write() 575 &tr->Tx_Ctl); in tc_handle_link_change() 1189 tc_writel(0, &tr->Int_En); in tc35815_schedule_restart() 1190 tc_writel(tc_readl(&tr->DMA_Ctl) | DMA_IntMask, &tr->DMA_Ctl); in tc35815_schedule_restart() 1639 &tr->Int_Src); in tc35815_poll() 1652 tc_writel(tc_readl(&tr->DMA_Ctl) & ~DMA_IntMask, &tr->DMA_Ctl); in tc35815_poll() 2034 tc_writel(0, &tr->MAC_Ctl); in tc35815_chip_reset() 2041 tc_writel(0, &tr->Int_En); in tc35815_chip_reset() 2046 tc_writel(0, &tr->Tx_Ctl); in tc35815_chip_reset() 2047 tc_writel(0, &tr->Rx_Ctl); in tc35815_chip_reset() [all …]
|
| /linux-6.15/tools/bootconfig/scripts/ |
| H A D | ftrace.sh | 55 tr=`echo $t | cut -d: -f2` 56 if [ "$tr" = "" ]; then 63 if [ $tr = "enable_event" -o $tr = "disable_event" ]; then 64 tr=`echo $t | cut -d: -f2-4` 67 tr=`echo $t | cut -d: -f2` 71 tr="$tr:$limit" 73 echo "!$name:$tr" > set_ftrace_filter
|