/linux-3.4.99/fs/gfs2/ |
D | trans.c | 31 struct gfs2_trans *tr; in gfs2_trans_begin() local 40 tr = kzalloc(sizeof(struct gfs2_trans), GFP_NOFS); in gfs2_trans_begin() 41 if (!tr) in gfs2_trans_begin() 44 tr->tr_ip = (unsigned long)__builtin_return_address(0); in gfs2_trans_begin() 45 tr->tr_blocks = blocks; in gfs2_trans_begin() 46 tr->tr_revokes = revokes; in gfs2_trans_begin() 47 tr->tr_reserved = 1; in gfs2_trans_begin() 49 tr->tr_reserved += 6 + blocks; in gfs2_trans_begin() 51 tr->tr_reserved += gfs2_struct2blk(sdp, revokes, in gfs2_trans_begin() 53 INIT_LIST_HEAD(&tr->tr_list_buf); in gfs2_trans_begin() [all …]
|
D | meta_io.c | 234 struct gfs2_trans *tr = current->journal_info; in gfs2_meta_read() local 235 if (tr && tr->tr_touched) in gfs2_meta_read() 260 struct gfs2_trans *tr = current->journal_info; in gfs2_meta_wait() local 261 if (tr && tr->tr_touched) in gfs2_meta_wait() 307 void gfs2_remove_from_journal(struct buffer_head *bh, struct gfs2_trans *tr, int meta) in gfs2_remove_from_journal() argument 320 tr->tr_num_buf_rm++; in gfs2_remove_from_journal() 324 tr->tr_num_databuf_rm++; in gfs2_remove_from_journal() 326 tr->tr_touched = 1; in gfs2_remove_from_journal()
|
D | log.c | 713 static void log_refund(struct gfs2_sbd *sdp, struct gfs2_trans *tr) in log_refund() argument 720 sdp->sd_log_commited_buf += tr->tr_num_buf_new - tr->tr_num_buf_rm; in log_refund() 721 sdp->sd_log_commited_databuf += tr->tr_num_databuf_new - in log_refund() 722 tr->tr_num_databuf_rm; in log_refund() 725 sdp->sd_log_commited_revoke += tr->tr_num_revoke - tr->tr_num_revoke_rm; in log_refund() 727 gfs2_assert_withdraw(sdp, sdp->sd_log_blks_reserved + tr->tr_reserved >= reserved); in log_refund() 728 unused = sdp->sd_log_blks_reserved - reserved + tr->tr_reserved; in log_refund() 738 static void buf_lo_incore_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) in buf_lo_incore_commit() argument 740 struct list_head *head = &tr->tr_list_buf; in buf_lo_incore_commit() 747 tr->tr_num_buf--; in buf_lo_incore_commit() [all …]
|
/linux-3.4.99/drivers/media/radio/ |
D | radio-timb.c | 54 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_g_tuner() local 55 return v4l2_subdev_call(tr->sd_tuner, tuner, g_tuner, v); in timbradio_vidioc_g_tuner() 61 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_s_tuner() local 62 return v4l2_subdev_call(tr->sd_tuner, tuner, s_tuner, v); in timbradio_vidioc_s_tuner() 96 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_s_frequency() local 97 return v4l2_subdev_call(tr->sd_tuner, tuner, s_frequency, f); in timbradio_vidioc_s_frequency() 103 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_g_frequency() local 104 return v4l2_subdev_call(tr->sd_tuner, tuner, g_frequency, f); in timbradio_vidioc_g_frequency() 110 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_queryctrl() local 111 return v4l2_subdev_call(tr->sd_dsp, core, queryctrl, qc); in timbradio_vidioc_queryctrl() [all …]
|
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) 73 static void write_i2c(struct trust *tr, int n, ...) in write_i2c() argument 121 struct trust *tr = container_of(isa, struct trust, isa); in trust_s_mute_volume() local 123 tr->ioval = (tr->ioval & 0xf7) | (mute << 3); in trust_s_mute_volume() [all …]
|
/linux-3.4.99/drivers/input/touchscreen/ |
D | touchright.c | 50 struct tr { struct 61 struct tr *tr = serio_get_drvdata(serio); in tr_interrupt() local 62 struct input_dev *dev = tr->dev; in tr_interrupt() 64 tr->data[tr->idx] = data; in tr_interrupt() 66 if ((tr->data[0] & TR_FORMAT_STATUS_MASK) == TR_FORMAT_STATUS_BYTE) { in tr_interrupt() 67 if (++tr->idx == TR_LENGTH) { in tr_interrupt() 69 (tr->data[1] << 5) | (tr->data[2] >> 1)); in tr_interrupt() 71 (tr->data[3] << 5) | (tr->data[4] >> 1)); in tr_interrupt() 73 tr->data[0] & TR_FORMAT_TOUCH_BIT); in tr_interrupt() 75 tr->idx = 0; in tr_interrupt() [all …]
|
/linux-3.4.99/drivers/mtd/ |
D | mtd_blkdevs.c | 78 static int do_blktrans_request(struct mtd_blktrans_ops *tr, in do_blktrans_request() argument 85 block = blk_rq_pos(req) << 9 >> tr->blkshift; in do_blktrans_request() 86 nsect = blk_rq_cur_bytes(req) >> tr->blkshift; in do_blktrans_request() 98 return tr->discard(dev, block, nsect); in do_blktrans_request() 102 for (; nsect > 0; nsect--, block++, buf += tr->blksize) in do_blktrans_request() 103 if (tr->readsect(dev, block, buf)) in do_blktrans_request() 108 if (!tr->writesect) in do_blktrans_request() 112 for (; nsect > 0; nsect--, block++, buf += tr->blksize) in do_blktrans_request() 113 if (tr->writesect(dev, block, buf)) in do_blktrans_request() 134 struct mtd_blktrans_ops *tr = dev->tr; in mtd_blktrans_thread() local [all …]
|
D | mtdblock_ro.c | 48 static void mtdblock_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) in mtdblock_add_mtd() argument 59 dev->tr = tr; in mtdblock_add_mtd()
|
/linux-3.4.99/kernel/trace/ |
D | trace_selftest.c | 24 static int trace_test_buffer_cpu(struct trace_array *tr, int cpu) in trace_test_buffer_cpu() argument 30 while ((event = ring_buffer_consume(tr->buffer, cpu, NULL, NULL))) { in trace_test_buffer_cpu() 61 static int trace_test_buffer(struct trace_array *tr, unsigned long *count) in trace_test_buffer() argument 70 cnt = ring_buffer_entries(tr->buffer); in trace_test_buffer() 81 ret = trace_test_buffer_cpu(tr, cpu); in trace_test_buffer() 306 struct trace_array *tr, in trace_selftest_startup_dynamic_tracing() argument 337 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing() 347 ret = trace_test_buffer(tr, &count); in trace_selftest_startup_dynamic_tracing() 368 ret = trace_test_buffer(tr, &count); in trace_selftest_startup_dynamic_tracing() 373 trace->reset(tr); in trace_selftest_startup_dynamic_tracing() [all …]
|
D | trace_irqsoff.c | 37 static void stop_irqsoff_tracer(struct trace_array *tr, int graph); 38 static int start_irqsoff_tracer(struct trace_array *tr, int graph); 102 static int func_prolog_dec(struct trace_array *tr, in func_prolog_dec() argument 124 *data = tr->data[cpu]; in func_prolog_dec() 141 struct trace_array *tr = irqsoff_trace; in irqsoff_tracer_call() local 145 if (!func_prolog_dec(tr, &data, &flags)) in irqsoff_tracer_call() 148 trace_function(tr, ip, parent_ip, flags, preempt_count()); in irqsoff_tracer_call() 184 struct trace_array *tr = irqsoff_trace; in irqsoff_graph_entry() local 190 if (!func_prolog_dec(tr, &data, &flags)) in irqsoff_graph_entry() 194 ret = __trace_graph_entry(tr, trace, flags, pc); in irqsoff_graph_entry() [all …]
|
D | trace_sched_wakeup.c | 34 static void wakeup_reset(struct trace_array *tr); 35 static void __wakeup_reset(struct trace_array *tr); 75 func_prolog_preempt_disable(struct trace_array *tr, in func_prolog_preempt_disable() argument 92 *data = tr->data[cpu]; in func_prolog_preempt_disable() 113 struct trace_array *tr = wakeup_trace; in wakeup_tracer_call() local 118 if (!func_prolog_preempt_disable(tr, &data, &pc)) in wakeup_tracer_call() 122 trace_function(tr, ip, parent_ip, flags, pc); in wakeup_tracer_call() 184 struct trace_array *tr = wakeup_trace; in wakeup_graph_entry() local 189 if (!func_prolog_preempt_disable(tr, &data, &pc)) in wakeup_graph_entry() 193 ret = __trace_graph_entry(tr, trace, flags, pc); in wakeup_graph_entry() [all …]
|
D | trace.h | 255 int (*init)(struct trace_array *tr); 256 void (*reset)(struct trace_array *tr); 257 void (*start)(struct trace_array *tr); 258 void (*stop)(struct trace_array *tr); 275 struct trace_array *tr); 319 int tracer_init(struct tracer *t, struct trace_array *tr); 322 void tracing_reset(struct trace_array *tr, int cpu); 323 void tracing_reset_online_cpus(struct trace_array *tr); 347 struct trace_entry *tracing_get_trace_entry(struct trace_array *tr, 364 void ftrace(struct trace_array *tr, [all …]
|
D | trace_functions.c | 28 static int function_trace_init(struct trace_array *tr) in function_trace_init() argument 30 func_trace = tr; in function_trace_init() 31 tr->cpu = get_cpu(); in function_trace_init() 39 static void function_trace_reset(struct trace_array *tr) in function_trace_reset() argument 45 static void function_trace_start(struct trace_array *tr) in function_trace_start() argument 47 tracing_reset_online_cpus(tr); in function_trace_start() 53 struct trace_array *tr = func_trace; in function_trace_call_preempt_only() local 67 data = tr->data[cpu]; in function_trace_call_preempt_only() 71 trace_function(tr, ip, parent_ip, flags, pc); in function_trace_call_preempt_only() 80 struct trace_array *tr = func_trace; in function_trace_call() local [all …]
|
D | trace_nop.c | 38 static void start_nop_trace(struct trace_array *tr) in start_nop_trace() argument 43 static void stop_nop_trace(struct trace_array *tr) in stop_nop_trace() argument 48 static int nop_trace_init(struct trace_array *tr) in nop_trace_init() argument 50 ctx_trace = tr; in nop_trace_init() 51 start_nop_trace(tr); in nop_trace_init() 55 static void nop_trace_reset(struct trace_array *tr) in nop_trace_reset() argument 57 stop_nop_trace(tr); in nop_trace_reset()
|
D | trace_mmiotrace.c | 29 static void mmio_reset_data(struct trace_array *tr) in mmio_reset_data() argument 34 tracing_reset_online_cpus(tr); in mmio_reset_data() 37 static int mmio_trace_init(struct trace_array *tr) in mmio_trace_init() argument 40 mmio_trace_array = tr; in mmio_trace_init() 42 mmio_reset_data(tr); in mmio_trace_init() 47 static void mmio_trace_reset(struct trace_array *tr) in mmio_trace_reset() argument 52 mmio_reset_data(tr); in mmio_trace_reset() 56 static void mmio_trace_start(struct trace_array *tr) in mmio_trace_start() argument 59 mmio_reset_data(tr); in mmio_trace_start() 131 unsigned long over = ring_buffer_overruns(iter->tr->buffer); in count_overruns() [all …]
|
D | trace_branch.c | 34 struct trace_array *tr = branch_tracer; in probe_likely_condition() local 49 if (unlikely(!tr)) in probe_likely_condition() 54 if (atomic_inc_return(&tr->data[cpu]->disabled) != 1) in probe_likely_condition() 58 buffer = tr->buffer; in probe_likely_condition() 83 atomic_dec(&tr->data[cpu]->disabled); in probe_likely_condition() 96 int enable_branch_tracing(struct trace_array *tr) in enable_branch_tracing() argument 99 branch_tracer = tr; in enable_branch_tracing() 124 static void start_branch_trace(struct trace_array *tr) in start_branch_trace() argument 126 enable_branch_tracing(tr); in start_branch_trace() 129 static void stop_branch_trace(struct trace_array *tr) in stop_branch_trace() argument [all …]
|
D | trace.c | 678 __update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu) in __update_max_tr() argument 680 struct trace_array_cpu *data = tr->data[cpu]; in __update_max_tr() 720 update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu) in update_max_tr() argument 734 buf = tr->buffer; in update_max_tr() 735 tr->buffer = max_tr.buffer; in update_max_tr() 738 __update_max_tr(tr, tsk, cpu); in update_max_tr() 751 update_max_tr_single(struct trace_array *tr, struct task_struct *tsk, int cpu) in update_max_tr_single() argument 768 ret = ring_buffer_swap_cpu(max_tr.buffer, tr->buffer, cpu); in update_max_tr_single() 785 __update_max_tr(tr, tsk, cpu); in update_max_tr_single() 841 struct trace_array *tr = &global_trace; in register_tracer() local [all …]
|
D | trace_sched_switch.c | 25 tracing_sched_switch_trace(struct trace_array *tr, in tracing_sched_switch_trace() argument 31 struct ring_buffer *buffer = tr->buffer; in tracing_sched_switch_trace() 81 tracing_sched_wakeup_trace(struct trace_array *tr, in tracing_sched_wakeup_trace() argument 89 struct ring_buffer *buffer = tr->buffer; in tracing_sched_wakeup_trace() 106 ftrace_trace_stack(tr->buffer, flags, 6, pc); in tracing_sched_wakeup_trace() 107 ftrace_trace_userstack(tr->buffer, flags, pc); in tracing_sched_wakeup_trace() 245 void tracing_sched_switch_assign_trace(struct trace_array *tr) in tracing_sched_switch_assign_trace() argument 247 ctx_trace = tr; in tracing_sched_switch_assign_trace()
|
D | trace_kdb.c | 29 atomic_inc(&iter.tr->data[cpu]->disabled); in ftrace_dump_buf() 49 ring_buffer_read_prepare(iter.tr->buffer, cpu); in ftrace_dump_buf() 56 ring_buffer_read_prepare(iter.tr->buffer, cpu_file); in ftrace_dump_buf() 86 atomic_dec(&iter.tr->data[cpu]->disabled); in ftrace_dump_buf()
|
/linux-3.4.99/arch/x86/kernel/cpu/mcheck/ |
D | mce_amd.c | 129 struct thresh_restart *tr = _tr; in threshold_restart_bank() local 132 rdmsr(tr->b->address, lo, hi); in threshold_restart_bank() 134 if (tr->b->threshold_limit < (hi & THRESHOLD_MAX)) in threshold_restart_bank() 135 tr->reset = 1; /* limit cannot be lower than err count */ in threshold_restart_bank() 137 if (tr->reset) { /* reset err count and overflow bit */ in threshold_restart_bank() 140 (THRESHOLD_MAX - tr->b->threshold_limit); in threshold_restart_bank() 141 } else if (tr->old_limit) { /* change limit w/o reset */ in threshold_restart_bank() 143 (tr->old_limit - tr->b->threshold_limit); in threshold_restart_bank() 152 if (!tr->b->interrupt_capable) in threshold_restart_bank() 155 if (tr->set_lvt_off) { in threshold_restart_bank() [all …]
|
/linux-3.4.99/drivers/net/ethernet/toshiba/ |
D | tc35815.c | 507 struct tc35815_regs __iomem *tr = in tc_mdio_read() local 511 tc_writel(MD_CA_Busy | (mii_id << 5) | (regnum & 0x1f), &tr->MD_CA); in tc_mdio_read() 513 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_read() 518 return tc_readl(&tr->MD_Data) & 0xffff; in tc_mdio_read() 524 struct tc35815_regs __iomem *tr = in tc_mdio_write() local 528 tc_writel(val, &tr->MD_Data); in tc_mdio_write() 530 &tr->MD_CA); in tc_mdio_write() 532 while (tc_readl(&tr->MD_CA) & MD_CA_Busy) { in tc_mdio_write() 550 struct tc35815_regs __iomem *tr = in tc_handle_link_change() local 554 reg = tc_readl(&tr->MAC_Ctl); in tc_handle_link_change() [all …]
|
/linux-3.4.99/arch/powerpc/kvm/ |
D | 44x.c | 89 struct kvm_translation *tr) in kvmppc_core_vcpu_translate() argument 96 eaddr = tr->linear_address; in kvmppc_core_vcpu_translate() 97 pid = (tr->linear_address >> 32) & 0xff; in kvmppc_core_vcpu_translate() 98 as = (tr->linear_address >> 40) & 0x1; in kvmppc_core_vcpu_translate() 102 tr->valid = 0; in kvmppc_core_vcpu_translate() 106 tr->physical_address = kvmppc_mmu_xlate(vcpu, index, eaddr); in kvmppc_core_vcpu_translate() 108 tr->valid = 1; in kvmppc_core_vcpu_translate()
|
/linux-3.4.99/tools/power/cpupower/utils/ |
D | version-gen.sh | 25 eval $(grep '^VERSION[[:space:]]*=' ../../../Makefile|tr -d ' ') 26 eval $(grep '^PATCHLEVEL[[:space:]]*=' ../../../Makefile|tr -d ' ') 27 eval $(grep '^SUBLEVEL[[:space:]]*=' ../../../Makefile|tr -d ' ') 28 eval $(grep '^EXTRAVERSION[[:space:]]*=' ../../../Makefile|tr -d ' ')
|
/linux-3.4.99/include/linux/mtd/ |
D | blktrans.h | 34 struct mtd_blktrans_ops *tr; member 79 void (*add_mtd)(struct mtd_blktrans_ops *tr, struct mtd_info *mtd); 87 extern int register_mtd_blktrans(struct mtd_blktrans_ops *tr); 88 extern int deregister_mtd_blktrans(struct mtd_blktrans_ops *tr);
|
/linux-3.4.99/scripts/ |
D | kallsyms.c | 85 struct text_range *tr; in read_symbol_tr() local 88 tr = &text_ranges[i]; in read_symbol_tr() 90 if (strcmp(sym, tr->stext) == 0) { in read_symbol_tr() 91 tr->start = addr; in read_symbol_tr() 93 } else if (strcmp(sym, tr->etext) == 0) { in read_symbol_tr() 94 tr->end = addr; in read_symbol_tr() 163 struct text_range *tr; in symbol_valid_tr() local 166 tr = &text_ranges[i]; in symbol_valid_tr() 168 if (s->addr >= tr->start && s->addr <= tr->end) in symbol_valid_tr()
|