Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 200 of 323) sorted by relevance

12

/linux-4.1.27/drivers/isdn/mISDN/
Ddsp_audio.c104 static unsigned char linear2ulaw(short sample) in linear2ulaw() argument
127 sign = (sample >> 8) & 0x80; /* set aside the sign */ in linear2ulaw()
129 sample = -sample; /* get magnitude */ in linear2ulaw()
132 sample = sample + BIAS; in linear2ulaw()
133 exponent = exp_lut[(sample >> 7) & 0xFF]; in linear2ulaw()
134 mantissa = (sample >> (exponent + 3)) & 0x0F; in linear2ulaw()
254 s32 sample; in dsp_audio_generate_mix_table() local
260 sample = dsp_audio_law_to_s32[i]; in dsp_audio_generate_mix_table()
261 sample += dsp_audio_law_to_s32[j]; in dsp_audio_generate_mix_table()
262 if (sample > 32767) in dsp_audio_generate_mix_table()
[all …]
Dl1oip_codec.c324 int i1, i2, c, sample; in l1oip_4bit_alloc() local
357 sample = _4bit_to_ulaw[i1]; in l1oip_4bit_alloc()
359 sample = _4bit_to_alaw[i1]; in l1oip_4bit_alloc()
362 table_dec[(i1 << 4) | i2] |= (sample << 8); in l1oip_4bit_alloc()
363 table_dec[(i2 << 4) | i1] |= sample; in l1oip_4bit_alloc()
Ddsp_cmx.c1313 register s32 sample; local
1492 sample = dsp_audio_law_to_s32[p[t]] +
1495 if (sample < -32768)
1496 sample = -32768;
1497 else if (sample > 32767)
1498 sample = 32767;
1499 *d++ = dsp_audio_s16_to_law[sample & 0xffff];
1522 sample = dsp_audio_law_to_s32[p[t]] + *c++ -
1524 if (sample < -32768)
1525 sample = -32768;
[all …]
Ddsp_biquad.h53 static inline int16_t biquad2(struct biquad2_state *bq, int16_t sample) in biquad2() argument
58 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; in biquad2()
Ddsp_tones.c438 dsp_tone_hw_message(struct dsp *dsp, u8 *sample, int len) in dsp_tone_hw_message() argument
444 (len) ? HFC_SPL_LOOP_ON : HFC_SPL_LOOP_OFF, len, sample, in dsp_tone_hw_message()
/linux-4.1.27/tools/perf/
Dbuiltin-timechart.c271 struct cpu_sample *sample; in pid_put_sample() local
283 sample = zalloc(sizeof(*sample)); in pid_put_sample()
284 assert(sample != NULL); in pid_put_sample()
285 sample->start_time = start; in pid_put_sample()
286 sample->end_time = end; in pid_put_sample()
287 sample->type = type; in pid_put_sample()
288 sample->next = c->samples; in pid_put_sample()
289 sample->cpu = cpu; in pid_put_sample()
290 sample->backtrace = backtrace; in pid_put_sample()
291 c->samples = sample; in pid_put_sample()
[all …]
Dbuiltin-inject.c91 struct perf_sample *sample __maybe_unused, in perf_event__repipe()
99 struct perf_sample *sample,
105 struct perf_sample *sample, in perf_event__repipe_sample() argument
111 return f(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
114 build_id__mark_dso_hit(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
121 struct perf_sample *sample, in perf_event__repipe_mmap() argument
126 err = perf_event__process_mmap(tool, event, sample, machine); in perf_event__repipe_mmap()
127 perf_event__repipe(tool, event, sample, machine); in perf_event__repipe_mmap()
134 struct perf_sample *sample, in perf_event__repipe_mmap2() argument
139 err = perf_event__process_mmap2(tool, event, sample, machine); in perf_event__repipe_mmap2()
[all …]
Dbuiltin-lock.c347 struct perf_sample *sample);
350 struct perf_sample *sample);
353 struct perf_sample *sample);
356 struct perf_sample *sample);
396 struct perf_sample *sample) in report_lock_acquire_event() argument
402 const char *name = perf_evsel__strval(evsel, sample, "name"); in report_lock_acquire_event()
403 u64 tmp = perf_evsel__intval(evsel, sample, "lockdep_addr"); in report_lock_acquire_event()
404 int flag = perf_evsel__intval(evsel, sample, "flag"); in report_lock_acquire_event()
414 ts = thread_stat_findnew(sample->tid); in report_lock_acquire_event()
462 seq->prev_event_time = sample->time; in report_lock_acquire_event()
[all …]
Dbuiltin-script.c338 static void print_sample_start(struct perf_sample *sample, in print_sample_start() argument
357 printf("%5d/%-5d ", sample->pid, sample->tid); in print_sample_start()
359 printf("%5d ", sample->pid); in print_sample_start()
361 printf("%5d ", sample->tid); in print_sample_start()
365 printf("%3d ", sample->cpu); in print_sample_start()
367 printf("[%03d] ", sample->cpu); in print_sample_start()
371 nsecs = sample->time; in print_sample_start()
380 struct perf_sample *sample, in print_sample_addr() argument
386 printf("%16" PRIx64, sample->addr); in print_sample_addr()
391 perf_event__preprocess_sample_addr(event, sample, thread, &al); in print_sample_addr()
[all …]
Dbuiltin-sched.c106 struct perf_sample *sample, struct machine *machine);
109 struct perf_sample *sample, struct machine *machine);
112 struct perf_sample *sample, struct machine *machine);
120 struct perf_sample *sample,
693 struct perf_evsel *evsel, struct perf_sample *sample, in replay_wakeup_event() argument
696 const char *comm = perf_evsel__strval(evsel, sample, "comm"); in replay_wakeup_event()
697 const u32 pid = perf_evsel__intval(evsel, sample, "pid"); in replay_wakeup_event()
703 printf(" ... pid %d woke up %s/%d\n", sample->tid, comm, pid); in replay_wakeup_event()
706 waker = register_pid(sched, sample->tid, "<unknown>"); in replay_wakeup_event()
709 add_sched_event_wakeup(sched, waker, sample->time, wakee); in replay_wakeup_event()
[all …]
Dbuiltin-trace.c47 u64 (*integer)(struct tp_field *field, struct perf_sample *sample);
48 void *(*pointer)(struct tp_field *field, struct perf_sample *sample);
53 static u64 tp_field__u##bits(struct tp_field *field, struct perf_sample *sample) \
56 memcpy(&value, sample->raw_data + field->offset, sizeof(value)); \
66 static u64 tp_field__swapped_u##bits(struct tp_field *field, struct perf_sample *sample) \
69 memcpy(&value, sample->raw_data + field->offset, sizeof(value)); \
103 static void *tp_field__ptr(struct tp_field *field, struct perf_sample *sample) in tp_field__ptr() argument
105 return sample->raw_data + field->offset; in tp_field__ptr()
198 #define perf_evsel__sc_tp_uint(evsel, name, sample) \ argument
200 fields->name.integer(&fields->name, sample); })
[all …]
Dbuiltin-mem.c63 struct perf_sample *sample, in dump_raw_samples() argument
70 if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) { in dump_raw_samples()
92 sample->pid, in dump_raw_samples()
94 sample->tid, in dump_raw_samples()
96 sample->ip, in dump_raw_samples()
98 sample->addr, in dump_raw_samples()
100 sample->weight, in dump_raw_samples()
102 sample->data_src, in dump_raw_samples()
112 struct perf_sample *sample, in process_sample_event() argument
116 return dump_raw_samples(tool, event, sample, machine); in process_sample_event()
[all …]
Dbuiltin-kvm.c38 struct perf_sample *sample, in exit_event_get_key() argument
42 key->key = perf_evsel__intval(evsel, sample, KVM_EXIT_REASON); in exit_event_get_key()
51 struct perf_sample *sample, struct event_key *key) in exit_event_begin() argument
54 exit_event_get_key(evsel, sample, key); in exit_event_begin()
67 struct perf_sample *sample __maybe_unused, in exit_event_end()
267 struct perf_sample *sample, in is_child_event() argument
279 child_ops->get_key(evsel, sample, key); in is_child_event()
290 struct perf_sample *sample __maybe_unused) in handle_child_event()
316 struct perf_sample *sample) in handle_end_event() argument
353 if (sample->time < time_begin) { in handle_end_event()
[all …]
Dbuiltin-kmem.c148 struct perf_sample *sample) in perf_evsel__process_alloc_event() argument
150 unsigned long ptr = perf_evsel__intval(evsel, sample, "ptr"), in perf_evsel__process_alloc_event()
151 call_site = perf_evsel__intval(evsel, sample, "call_site"); in perf_evsel__process_alloc_event()
152 int bytes_req = perf_evsel__intval(evsel, sample, "bytes_req"), in perf_evsel__process_alloc_event()
153 bytes_alloc = perf_evsel__intval(evsel, sample, "bytes_alloc"); in perf_evsel__process_alloc_event()
155 if (insert_alloc_stat(call_site, ptr, bytes_req, bytes_alloc, sample->cpu) || in perf_evsel__process_alloc_event()
167 struct perf_sample *sample) in perf_evsel__process_alloc_node_event() argument
169 int ret = perf_evsel__process_alloc_event(evsel, sample); in perf_evsel__process_alloc_node_event()
172 int node1 = cpu__get_node(sample->cpu), in perf_evsel__process_alloc_node_event()
173 node2 = perf_evsel__intval(evsel, sample, "node"); in perf_evsel__process_alloc_node_event()
[all …]
Dbuiltin-annotate.c50 struct perf_sample *sample __maybe_unused, in perf_evsel__add_sample()
81 struct perf_sample *sample, in process_sample_event() argument
88 if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) { in process_sample_event()
94 if (ann->cpu_list && !test_bit(sample->cpu, ann->cpu_bitmap)) in process_sample_event()
97 if (!al.filtered && perf_evsel__add_sample(evsel, sample, &al, ann)) { in process_sample_event()
275 .sample = process_sample_event, in cmd_annotate()
Dbuiltin-top.c696 struct perf_sample *sample, in perf_event__process_sample() argument
709 if (!intlist__has_entry(seen, sample->pid)) { in perf_event__process_sample()
711 sample->pid); in perf_event__process_sample()
712 intlist__add(seen, sample->pid); in perf_event__process_sample()
726 if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) in perf_event__process_sample()
788 err = hist_entry_iter__add(&iter, &al, evsel, sample, in perf_event__process_sample()
801 struct perf_sample sample; in perf_top__mmap_read_idx() local
810 ret = perf_evlist__parse_sample(top->evlist, event, &sample); in perf_top__mmap_read_idx()
816 evsel = perf_evlist__id2evsel(session->evlist, sample.id); in perf_top__mmap_read_idx()
840 sample.pid); in perf_top__mmap_read_idx()
[all …]
Dbuiltin-report.c133 struct perf_sample *sample, in process_sample_event() argument
145 if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) { in process_sample_event()
154 if (rep->cpu_list && !test_bit(sample->cpu, rep->cpu_bitmap)) in process_sample_event()
169 ret = hist_entry_iter__add(&iter, &al, evsel, sample, rep->max_stack, in process_sample_event()
179 struct perf_sample *sample __maybe_unused, in process_read_event()
599 .sample = process_sample_event, in cmd_report()
Dbuiltin-diff.c325 struct perf_sample *sample, in diff__process_sample_event() argument
332 if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) { in diff__process_sample_event()
338 if (hists__add_entry(hists, &al, sample->period, in diff__process_sample_event()
339 sample->weight, sample->transaction)) { in diff__process_sample_event()
350 hists->stats.total_period += sample->period; in diff__process_sample_event()
352 hists->stats.total_non_filtered_period += sample->period; in diff__process_sample_event()
358 .sample = diff__process_sample_event,
Dbuiltin-record.c63 struct perf_sample *sample __maybe_unused, in process_synthesized_event()
196 struct perf_sample *sample, in process_sample_event() argument
204 return build_id__mark_dso_hit(tool, event, sample, evsel, machine); in process_sample_event()
828 .sample = process_sample_event,
/linux-4.1.27/tools/perf/arch/x86/util/
Dkvm-stat.c19 static void mmio_event_get_key(struct perf_evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument
22 key->key = perf_evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key()
23 key->info = perf_evsel__intval(evsel, sample, "type"); in mmio_event_get_key()
31 struct perf_sample *sample, struct event_key *key) in mmio_event_begin() argument
39 perf_evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) { in mmio_event_begin()
40 mmio_event_get_key(evsel, sample, key); in mmio_event_begin()
47 static bool mmio_event_end(struct perf_evsel *evsel, struct perf_sample *sample, in mmio_event_end() argument
56 perf_evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_READ) { in mmio_event_end()
57 mmio_event_get_key(evsel, sample, key); in mmio_event_end()
82 struct perf_sample *sample, in ioport_event_get_key() argument
[all …]
Dunwind-libdw.c8 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers()
/linux-4.1.27/tools/perf/util/
Dthread-stack.c529 struct perf_sample *sample, in thread_stack__bottom() argument
538 if (sample->ip) { in thread_stack__bottom()
539 ip = sample->ip; in thread_stack__bottom()
541 } else if (sample->addr) { in thread_stack__bottom()
542 ip = sample->addr; in thread_stack__bottom()
553 return thread_stack__push_cp(thread->ts, ip, sample->time, ref, cp, in thread_stack__bottom()
559 struct perf_sample *sample, in thread_stack__no_call_return() argument
568 if (sample->ip >= ks && sample->addr < ks) { in thread_stack__no_call_return()
572 sample->time, ref, in thread_stack__no_call_return()
581 to_al->sym, sample->addr, in thread_stack__no_call_return()
[all …]
Dsession.c22 struct perf_sample *sample,
98 struct perf_sample sample; in ordered_events__deliver_event() local
101 int ret = perf_evlist__parse_sample(session->evlist, event->event, &sample); in ordered_events__deliver_event()
109 &sample, session->tool, event->file_offset); in ordered_events__deliver_event()
219 struct perf_sample *sample __maybe_unused, in process_event_sample_stub()
229 struct perf_sample *sample __maybe_unused, in process_event_stub()
267 if (tool->sample == NULL) in perf_tool__fill_defaults()
268 tool->sample = process_event_sample_stub; in perf_tool__fill_defaults()
550 struct perf_sample *sample, u64 file_offset) in perf_session__queue_event() argument
552 return ordered_events__queue(&s->ordered_events, event, sample, file_offset); in perf_session__queue_event()
[all …]
Devsel.c1337 struct perf_sample *sample) in perf_evsel__parse_id_sample() argument
1340 const u64 *array = event->sample.array; in perf_evsel__parse_id_sample()
1348 sample->id = *array; in perf_evsel__parse_id_sample()
1360 sample->cpu = u.val32[0]; in perf_evsel__parse_id_sample()
1365 sample->stream_id = *array; in perf_evsel__parse_id_sample()
1370 sample->id = *array; in perf_evsel__parse_id_sample()
1375 sample->time = *array; in perf_evsel__parse_id_sample()
1388 sample->pid = u.val32[0]; in perf_evsel__parse_id_sample()
1389 sample->tid = u.val32[1]; in perf_evsel__parse_id_sample()
1439 array = event->sample.array; in perf_evsel__parse_sample()
[all …]
Devent.h292 struct sample_event sample; member
307 struct perf_sample *sample,
327 struct perf_sample *sample,
331 struct perf_sample *sample,
335 struct perf_sample *sample,
339 struct perf_sample *sample,
343 struct perf_sample *sample,
347 struct perf_sample *sample,
351 struct perf_sample *sample,
359 struct perf_sample *sample);
[all …]
Ddata-convert-bt.c159 struct perf_sample *sample, in add_tracepoint_field_value() argument
166 void *data = sample->raw_data; in add_tracepoint_field_value()
267 struct perf_sample *sample) in add_tracepoint_fields_values() argument
273 ret = add_tracepoint_field_value(cw, event_class, event, sample, in add_tracepoint_fields_values()
285 struct perf_sample *sample) in add_tracepoint_values() argument
292 common_fields, sample); in add_tracepoint_values()
295 fields, sample); in add_tracepoint_values()
303 struct perf_sample *sample) in add_generic_values() argument
321 ret = value_set_u64_hex(cw, event, "perf_ip", sample->ip); in add_generic_values()
327 ret = value_set_s32(cw, event, "perf_tid", sample->tid); in add_generic_values()
[all …]
Dkvm-stat.h47 struct perf_sample *sample,
54 struct perf_sample *sample,
57 struct perf_sample *sample, struct event_key *key);
111 struct perf_sample *sample,
114 struct perf_sample *sample,
117 struct perf_sample *sample,
Dmachine.h77 struct perf_sample *sample);
79 struct perf_sample *sample);
81 struct perf_sample *sample);
83 struct perf_sample *sample);
85 struct perf_sample *sample);
87 struct perf_sample *sample);
89 struct perf_sample *sample);
125 struct branch_info *sample__resolve_bstack(struct perf_sample *sample,
127 struct mem_info *sample__resolve_mem(struct perf_sample *sample,
131 struct perf_sample *sample,
Dhist.c494 struct perf_sample *sample = iter->sample; in iter_prepare_mem_entry() local
497 mi = sample__resolve_mem(sample, al); in iter_prepare_mem_entry()
516 cost = iter->sample->weight; in iter_add_single_mem_entry()
550 err = hist_entry__append_callchain(he, iter->sample); in iter_finish_mem_entry()
568 struct perf_sample *sample = iter->sample; in iter_prepare_branch_entry() local
570 bi = sample__resolve_bstack(sample, al); in iter_prepare_branch_entry()
575 iter->total = sample->branch_stack->nr; in iter_prepare_branch_entry()
662 struct perf_sample *sample = iter->sample; in iter_add_single_normal_entry() local
666 sample->period, sample->weight, in iter_add_single_normal_entry()
667 sample->transaction, true); in iter_add_single_normal_entry()
[all …]
Devent.c681 struct perf_sample *sample, in perf_event__process_comm() argument
684 return machine__process_comm_event(machine, event, sample); in perf_event__process_comm()
689 struct perf_sample *sample, in perf_event__process_lost() argument
692 return machine__process_lost_event(machine, event, sample); in perf_event__process_lost()
721 struct perf_sample *sample, in perf_event__process_mmap() argument
724 return machine__process_mmap_event(machine, event, sample); in perf_event__process_mmap()
729 struct perf_sample *sample, in perf_event__process_mmap2() argument
732 return machine__process_mmap2_event(machine, event, sample); in perf_event__process_mmap2()
744 struct perf_sample *sample, in perf_event__process_fork() argument
747 return machine__process_fork_event(machine, event, sample); in perf_event__process_fork()
[all …]
Dtool.h16 struct perf_sample *sample,
20 struct perf_sample *sample, struct machine *machine);
33 event_sample sample, member
Dmachine.c431 struct perf_sample *sample) in machine__process_comm_event() argument
445 __thread__set_comm(thread, event->comm.comm, sample->time, exec)) { in machine__process_comm_event()
454 union perf_event *event, struct perf_sample *sample __maybe_unused) in machine__process_lost_event()
1161 struct perf_sample *sample __maybe_unused) in machine__process_mmap2_event()
1211 struct perf_sample *sample __maybe_unused) in machine__process_mmap_event()
1273 struct perf_sample *sample) in machine__process_fork_event() argument
1292 thread__fork(thread, parent, sample->time) < 0) { in machine__process_fork_event()
1301 struct perf_sample *sample __maybe_unused) in machine__process_exit_event()
1317 struct perf_sample *sample) in machine__process_event() argument
1323 ret = machine__process_comm_event(machine, event, sample); break; in machine__process_event()
[all …]
Dsession.h50 struct perf_sample *sample);
55 struct perf_sample *sample, u64 file_offset);
98 void perf_evsel__print_ip(struct perf_evsel *evsel, struct perf_sample *sample,
122 struct perf_sample *sample);
Devsel.h206 void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample,
208 u64 perf_evsel__intval(struct perf_evsel *evsel, struct perf_sample *sample,
212 struct perf_sample *sample, in perf_evsel__strval() argument
215 return perf_evsel__rawptr(evsel, sample, name); in perf_evsel__strval()
276 struct perf_sample *sample);
Ddb-export.c284 struct perf_sample *sample, struct perf_evsel *evsel, in db_export__sample() argument
290 .sample = sample, in db_export__sample()
331 perf_event__preprocess_sample_addr(event, sample, thread, &addr_al); in db_export__sample()
337 err = thread_stack__process(thread, comm, sample, al, in db_export__sample()
Dunwind-libunwind.c88 struct perf_sample *sample; member
433 struct stack_dump *stack = &ui->sample->user_stack; in access_mem()
439 if (__write || !stack || !ui->sample->user_regs.regs) { in access_mem()
444 ret = perf_reg_value(&start, &ui->sample->user_regs, PERF_REG_SP); in access_mem()
487 if (!ui->sample->user_regs.regs) { in access_reg()
496 ret = perf_reg_value(&val, &ui->sample->user_regs, id); in access_reg()
635 .sample = data, in unwind__get_entries()
Dbuild-id.c26 struct perf_sample *sample, in build_id__mark_dso_hit() argument
32 struct thread *thread = machine__findnew_thread(machine, sample->pid, in build_id__mark_dso_hit()
33 sample->tid); in build_id__mark_dso_hit()
41 thread__find_addr_map(thread, cpumode, MAP__FUNCTION, sample->ip, &al); in build_id__mark_dso_hit()
51 struct perf_sample *sample in perf_event__exit_del_thread()
69 .sample = build_id__mark_dso_hit,
Dunwind-libdw.c112 struct stack_dump *stack = &ui->sample->user_stack; in memory_read()
117 ret = perf_reg_value(&start, &ui->sample->user_regs, PERF_REG_SP); in memory_read()
172 .sample = data, in unwind__get_entries()
Ddb-export.h35 struct perf_sample *sample; member
98 struct perf_sample *sample, struct perf_evsel *evsel,
Dunwind-libdw.h13 struct perf_sample *sample; member
Dcallchain.h168 int sample__resolve_callchain(struct perf_sample *sample, struct symbol **parent,
171 int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *sample);
Dcallchain.c760 int sample__resolve_callchain(struct perf_sample *sample, struct symbol **parent, in sample__resolve_callchain() argument
764 if (sample->callchain == NULL) in sample__resolve_callchain()
769 return thread__resolve_callchain(al->thread, evsel, sample, in sample__resolve_callchain()
775 int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *sample) in hist_entry__append_callchain() argument
777 if (!symbol_conf.use_callchain || sample->callchain == NULL) in hist_entry__append_callchain()
779 return callchain_append(he->callchain, &callchain_cursor, sample->period); in hist_entry__append_callchain()
Dbuild-id.h17 struct perf_sample *sample, struct perf_evsel *evsel,
Dordered-events.h47 struct perf_sample *sample, u64 file_offset);
Dthread-stack.h106 struct perf_sample *sample,
Dtrace-event-scripting.c44 struct perf_sample *sample __maybe_unused, in process_event_unsupported()
Dtrace-event.h73 struct perf_sample *sample,
Dordered-events.c156 struct perf_sample *sample, u64 file_offset) in ordered_events__queue() argument
158 u64 timestamp = sample->time; in ordered_events__queue()
Dhist.h90 struct perf_sample *sample; member
114 struct perf_evsel *evsel, struct perf_sample *sample,
/linux-4.1.27/drivers/oprofile/
Dcpu_buffer.c146 size * sizeof(entry->sample->data[0])); in op_cpu_buffer_write_reserve()
149 entry->sample = ring_buffer_event_data(entry->event); in op_cpu_buffer_write_reserve()
151 entry->data = entry->sample->data; in op_cpu_buffer_write_reserve()
153 return entry->sample; in op_cpu_buffer_write_reserve()
169 entry->sample = ring_buffer_event_data(e); in op_cpu_buffer_read_entry()
171 / sizeof(entry->sample->data[0]); in op_cpu_buffer_read_entry()
172 entry->data = entry->sample->data; in op_cpu_buffer_read_entry()
173 return entry->sample; in op_cpu_buffer_read_entry()
186 struct op_sample *sample; in op_add_code() local
219 sample = op_cpu_buffer_write_reserve(&entry, size); in op_add_code()
[all …]
Dbuffer_sync.c504 struct op_sample *sample; in sync_buffer() local
514 sample = op_cpu_buffer_read_entry(&entry, cpu); in sync_buffer()
515 if (!sample) in sync_buffer()
518 if (is_code(sample->eip)) { in sync_buffer()
519 flags = sample->event; in sync_buffer()
551 if (add_sample(mm, sample, in_kernel)) in sync_buffer()
/linux-4.1.27/tools/perf/arch/s390/util/
Dkvm-stat.c22 struct perf_sample *sample, in event_icpt_insn_get_key() argument
27 insn = perf_evsel__intval(evsel, sample, "instruction"); in event_icpt_insn_get_key()
33 struct perf_sample *sample, in event_sigp_get_key() argument
36 key->key = perf_evsel__intval(evsel, sample, "order_code"); in event_sigp_get_key()
41 struct perf_sample *sample, in event_diag_get_key() argument
44 key->key = perf_evsel__intval(evsel, sample, "code"); in event_diag_get_key()
49 struct perf_sample *sample, in event_icpt_prog_get_key() argument
52 key->key = perf_evsel__intval(evsel, sample, "code"); in event_icpt_prog_get_key()
/linux-4.1.27/tools/perf/tests/
Dperf-record.c50 struct perf_sample sample; in test__PERF_RECORD() local
168 err = perf_evlist__parse_sample(evlist, event, &sample); in test__PERF_RECORD()
177 pr_info("%" PRIu64" %d ", sample.time, sample.cpu); in test__PERF_RECORD()
181 if (prev_time > sample.time) { in test__PERF_RECORD()
183 name, prev_time, sample.time); in test__PERF_RECORD()
187 prev_time = sample.time; in test__PERF_RECORD()
189 if (sample.cpu != cpu) { in test__PERF_RECORD()
191 name, cpu, sample.cpu); in test__PERF_RECORD()
195 if ((pid_t)sample.pid != evlist->workload.pid) { in test__PERF_RECORD()
197 name, evlist->workload.pid, sample.pid); in test__PERF_RECORD()
[all …]
Ddwarf-unwind.c19 struct perf_sample *sample __maybe_unused, in mmap_handler()
69 struct perf_sample sample; in unwind_thread() local
73 memset(&sample, 0, sizeof(sample)); in unwind_thread()
75 if (test__arch_unwind_sample(&sample, thread)) { in unwind_thread()
81 &sample, MAX_STACK); in unwind_thread()
91 free(sample.user_stack.data); in unwind_thread()
92 free(sample.user_regs.regs); in unwind_thread()
Dhists_link.c13 struct sample { struct
22 static struct sample fake_common_samples[] = { argument
35 static struct sample fake_samples[][5] = {
67 struct perf_sample sample = { .period = 1, }; in add_hist_entries() local
85 sample.pid = fake_common_samples[k].pid; in add_hist_entries()
86 sample.tid = fake_common_samples[k].pid; in add_hist_entries()
87 sample.ip = fake_common_samples[k].ip; in add_hist_entries()
89 &sample) < 0) in add_hist_entries()
109 sample.pid = fake_samples[i][k].pid; in add_hist_entries()
110 sample.tid = fake_samples[i][k].pid; in add_hist_entries()
[all …]
Dhists_filter.c13 struct sample { struct
22 static struct sample fake_samples[] = { argument
50 struct perf_sample sample = { .period = 100, }; in add_hist_entries() local
76 sample.pid = fake_samples[i].pid; in add_hist_entries()
77 sample.tid = fake_samples[i].pid; in add_hist_entries()
78 sample.ip = fake_samples[i].ip; in add_hist_entries()
81 &sample) < 0) in add_hist_entries()
84 if (hist_entry_iter__add(&iter, &al, evsel, &sample, in add_hist_entries()
Dperf-time-to-tsc.c109 struct perf_sample sample; in test__perf_time_to_tsc() local
118 &sample)); in test__perf_time_to_tsc()
119 comm1_time = sample.time; in test__perf_time_to_tsc()
123 &sample)); in test__perf_time_to_tsc()
124 comm2_time = sample.time; in test__perf_time_to_tsc()
Dsample-parsing.c172 struct perf_sample sample = { in do_test() local
223 sample.read.group.nr = 4; in do_test()
224 sample.read.group.values = values; in do_test()
226 sample.read.one.value = 0x08789faeb786aa87ULL; in do_test()
227 sample.read.one.id = 99; in do_test()
230 sz = perf_event__sample_event_size(&sample, sample_type, read_format); in do_test()
244 &sample, false); in do_test()
271 if (!samples_same(&sample, &sample_out, sample_type, read_format)) { in do_test()
Dhists_cumulate.c13 struct sample { struct
22 static struct sample fake_samples[] = { argument
80 struct perf_sample sample = { .period = 1000, }; in add_hist_entries() local
98 sample.pid = fake_samples[i].pid; in add_hist_entries()
99 sample.tid = fake_samples[i].pid; in add_hist_entries()
100 sample.ip = fake_samples[i].ip; in add_hist_entries()
101 sample.callchain = (struct ip_callchain *)fake_callchains[i]; in add_hist_entries()
104 &sample) < 0) in add_hist_entries()
107 if (hist_entry_iter__add(&iter, &al, evsel, &sample, in add_hist_entries()
Dswitch-tracking.c117 struct perf_sample sample; in process_sample_event() local
122 if (perf_evlist__parse_sample(evlist, event, &sample)) { in process_sample_event()
127 evsel = perf_evlist__id2evsel(evlist, sample.id); in process_sample_event()
129 next_tid = perf_evsel__intval(evsel, &sample, "next_pid"); in process_sample_event()
130 prev_tid = perf_evsel__intval(evsel, &sample, "prev_pid"); in process_sample_event()
131 cpu = sample.cpu; in process_sample_event()
206 struct perf_sample sample; in add_event() local
217 if (perf_evlist__parse_sample(evlist, event, &sample)) { in add_event()
222 if (!sample.time) { in add_event()
227 node->event_time = sample.time; in add_event()
Dmmap-basic.c104 struct perf_sample sample; in test__basic_mmap() local
112 err = perf_evlist__parse_sample(evlist, event, &sample); in test__basic_mmap()
119 evsel = perf_evlist__id2evsel(evlist, sample.id); in test__basic_mmap()
122 " doesn't map to an evsel\n", sample.id); in test__basic_mmap()
Dsw-clock.c87 struct perf_sample sample; in __test__sw_clock_freq() local
92 err = perf_evlist__parse_sample(evlist, event, &sample); in __test__sw_clock_freq()
98 total_periods += sample.period; in __test__sw_clock_freq()
Dopen-syscall-tp-fields.c80 struct perf_sample sample; in test__syscall_open_tp_fields() local
89 err = perf_evsel__parse_sample(evsel, event, &sample); in test__syscall_open_tp_fields()
95 tp_flags = perf_evsel__intval(evsel, &sample, "flags"); in test__syscall_open_tp_fields()
Dparse-no-sample-id-all.c14 struct perf_sample sample; in process_event() local
30 if (perf_evlist__parse_sample(*pevlist, event, &sample)) { in process_event()
Dhists_output.c13 struct sample { struct
23 static struct sample fake_samples[] = { argument
50 struct perf_sample sample = { .period = 100, }; in add_hist_entries() local
64 sample.cpu = fake_samples[i].cpu; in add_hist_entries()
65 sample.pid = fake_samples[i].pid; in add_hist_entries()
66 sample.tid = fake_samples[i].pid; in add_hist_entries()
67 sample.ip = fake_samples[i].ip; in add_hist_entries()
70 &sample) < 0) in add_hist_entries()
73 if (hist_entry_iter__add(&iter, &al, evsel, &sample, in add_hist_entries()
Dcode-reading.c248 struct perf_sample sample; in process_sample_event() local
252 if (perf_evlist__parse_sample(evlist, event, &sample)) { in process_sample_event()
257 thread = machine__findnew_thread(machine, sample.pid, sample.tid); in process_sample_event()
265 return read_object_code(sample.ip, READLEN, cpumode, thread, state); in process_sample_event()
DBuild31 perf-y += sample-parsing.o
32 perf-y += parse-no-sample-id-all.o
Dtests.h60 int test__arch_unwind_sample(struct perf_sample *sample,
/linux-4.1.27/sound/core/oss/
Dmulaw.c157 unsigned char *dst, u16 sample) in cvt_s16_to_native() argument
159 sample ^= data->flip; in cvt_s16_to_native()
161 sample = swab16(sample); in cvt_s16_to_native()
164 memcpy(dst + data->native_ofs, (char *)&sample + data->copy_ofs, in cvt_s16_to_native()
194 signed short sample = ulaw2linear(*src); in mulaw_decode() local
195 cvt_s16_to_native(data, dst, sample); in mulaw_decode()
205 u16 sample = 0; in cvt_native_to_s16() local
206 memcpy((char *)&sample + data->copy_ofs, src + data->native_ofs, in cvt_native_to_s16()
209 sample = swab16(sample); in cvt_native_to_s16()
210 sample ^= data->flip; in cvt_native_to_s16()
[all …]
/linux-4.1.27/drivers/media/pci/cx25821/
Dcx25821-biffuncs.h28 static inline u8 getBit(u32 sample, u8 index) in getBit() argument
30 return (u8) ((sample >> index) & 1); in getBit()
38 static inline u32 setBitAtPos(u32 sample, u8 bit) in setBitAtPos() argument
40 sample |= (1 << bit); in setBitAtPos()
41 return sample; in setBitAtPos()
/linux-4.1.27/tools/perf/arch/arm/tests/
Ddwarf-unwind.c11 static int sample_ustack(struct perf_sample *sample, in sample_ustack() argument
14 struct stack_dump *stack = &sample->user_stack; in sample_ustack()
43 int test__arch_unwind_sample(struct perf_sample *sample, in test__arch_unwind_sample() argument
46 struct regs_dump *regs = &sample->user_regs; in test__arch_unwind_sample()
60 return sample_ustack(sample, thread, buf); in test__arch_unwind_sample()
/linux-4.1.27/tools/perf/arch/x86/tests/
Ddwarf-unwind.c11 static int sample_ustack(struct perf_sample *sample, in sample_ustack() argument
14 struct stack_dump *stack = &sample->user_stack; in sample_ustack()
43 int test__arch_unwind_sample(struct perf_sample *sample, in test__arch_unwind_sample() argument
46 struct regs_dump *regs = &sample->user_regs; in test__arch_unwind_sample()
60 return sample_ustack(sample, thread, buf); in test__arch_unwind_sample()
/linux-4.1.27/drivers/input/touchscreen/
Dmc13783_ts.c41 unsigned int sample[4]; member
81 x0 = priv->sample[0] & 0xfff; in mc13783_ts_report_sample()
82 x1 = priv->sample[1] & 0xfff; in mc13783_ts_report_sample()
83 x2 = priv->sample[2] & 0xfff; in mc13783_ts_report_sample()
84 y0 = priv->sample[3] & 0xfff; in mc13783_ts_report_sample()
85 y1 = (priv->sample[0] >> 12) & 0xfff; in mc13783_ts_report_sample()
86 y2 = (priv->sample[1] >> 12) & 0xfff; in mc13783_ts_report_sample()
87 cr0 = (priv->sample[2] >> 12) & 0xfff; in mc13783_ts_report_sample()
88 cr1 = (priv->sample[3] >> 12) & 0xfff; in mc13783_ts_report_sample()
131 priv->sample) == 0) in mc13783_ts_work()
Dwm9712.c255 static int wm9712_poll_sample(struct wm97xx *wm, int adcsel, int *sample) in wm9712_poll_sample() argument
292 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD); in wm9712_poll_sample()
297 if ((*sample ^ adcsel) & WM97XX_ADCSEL_MASK) { in wm9712_poll_sample()
300 *sample & WM97XX_ADCSEL_MASK); in wm9712_poll_sample()
304 if (wants_pen && !(*sample & WM97XX_PEN_DOWN)) { in wm9712_poll_sample()
306 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD); in wm9712_poll_sample()
307 if (!(*sample & WM97XX_PEN_DOWN)) { in wm9712_poll_sample()
Dwm9705.c215 static int wm9705_poll_sample(struct wm97xx *wm, int adcsel, int *sample) in wm9705_poll_sample() argument
252 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD); in wm9705_poll_sample()
257 if ((*sample ^ adcsel) & WM97XX_ADCSEL_MASK) { in wm9705_poll_sample()
260 *sample & WM97XX_ADCSEL_MASK); in wm9705_poll_sample()
264 if (wants_pen && !(*sample & WM97XX_PEN_DOWN)) { in wm9705_poll_sample()
Dwm9713.c260 static int wm9713_poll_sample(struct wm97xx *wm, int adcsel, int *sample) in wm9713_poll_sample() argument
302 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD); in wm9713_poll_sample()
307 if ((*sample ^ adcsel) & WM97XX_ADCSEL_MASK) { in wm9713_poll_sample()
310 *sample & WM97XX_ADCSEL_MASK); in wm9713_poll_sample()
314 if (wants_pen && !(*sample & WM97XX_PEN_DOWN)) { in wm9713_poll_sample()
Dad7877.c167 u16 sample ____cacheline_aligned;
230 req->xfer[1].rx_buf = &req->sample; in ad7877_read()
237 ret = status ? : req->sample; in ad7877_read()
273 int sample; in ad7877_read_adc() local
306 req->xfer[3].rx_buf = &req->sample; in ad7877_read_adc()
324 sample = req->sample; in ad7877_read_adc()
328 return status ? : sample; in ad7877_read_adc()
Dads7846.c298 __be16 sample ____cacheline_aligned;
309 u8 sample[3] ____cacheline_aligned; member
352 req->xfer[3].rx_buf = &req->sample; in ads7846_read12_ser()
377 status = be16_to_cpu(req->sample); in ads7846_read12_ser()
401 req->xfer[0].rx_buf = req->sample; in ads7845_read12_ser()
413 status = be16_to_cpu(*((u16 *)&req->sample[1])); in ads7845_read12_ser()
/linux-4.1.27/tools/perf/util/scripting-engines/
Dtrace-event-python.c306 static PyObject *python_process_callchain(struct perf_sample *sample, in python_process_callchain() argument
316 if (!symbol_conf.use_callchain || !sample->callchain) in python_process_callchain()
320 sample, NULL, NULL, in python_process_callchain()
382 static void python_process_tracepoint(struct perf_sample *sample, in python_process_tracepoint() argument
394 int cpu = sample->cpu; in python_process_tracepoint()
395 void *data = sample->raw_data; in python_process_tracepoint()
396 unsigned long long nsecs = sample->time; in python_process_tracepoint()
431 callchain = python_process_callchain(sample, evsel, al); in python_process_tracepoint()
687 tuple_set_u64(t, 8, es->sample->ip); in python_export_sample()
688 tuple_set_u64(t, 9, es->sample->time); in python_export_sample()
[all …]
Dtrace-event-perl.c247 static void perl_process_tracepoint(struct perf_sample *sample, in perl_process_tracepoint() argument
257 int cpu = sample->cpu; in perl_process_tracepoint()
258 void *data = sample->raw_data; in perl_process_tracepoint()
259 unsigned long long nsecs = sample->time; in perl_process_tracepoint()
337 struct perf_sample *sample, in perl_process_event_generic() argument
350 XPUSHs(sv_2mortal(newSVpvn((const char *)sample, sizeof(*sample)))); in perl_process_event_generic()
351 XPUSHs(sv_2mortal(newSVpvn((const char *)sample->raw_data, sample->raw_size))); in perl_process_event_generic()
361 struct perf_sample *sample, in perl_process_event() argument
365 perl_process_tracepoint(sample, evsel, al->thread); in perl_process_event()
366 perl_process_event_generic(event, sample, evsel); in perl_process_event()
/linux-4.1.27/samples/
DKconfig4 You can build and test sample kernel code here.
19 different kobject sample modules showing how to use kobjects,
46 different kfifo sample modules showing how to use the
59 tristate "Build rpmsg client sample -- loadable modules only"
62 Build an rpmsg client sample driver, which demonstrates how
67 tristate "Build live patching sample -- loadable modules only"
70 Builds a sample live patch that replaces the procfs handler
/linux-4.1.27/drivers/cpufreq/
Dintel_pstate.c67 struct sample { struct
112 struct sample sample; member
742 struct sample *sample = &cpu->sample; in intel_pstate_calc_busy() local
745 core_pct = int_tofp(sample->aperf) * int_tofp(100); in intel_pstate_calc_busy()
746 core_pct = div64_u64(core_pct, int_tofp(sample->mperf)); in intel_pstate_calc_busy()
748 sample->freq = fp_toint( in intel_pstate_calc_busy()
753 sample->core_pct_busy = (int32_t)core_pct; in intel_pstate_calc_busy()
771 cpu->last_sample_time = cpu->sample.time; in intel_pstate_sample()
772 cpu->sample.time = ktime_get(); in intel_pstate_sample()
773 cpu->sample.aperf = aperf; in intel_pstate_sample()
[all …]
/linux-4.1.27/arch/s390/kernel/
Dperf_cpum_sf.c1049 static int sample_format_is_valid(struct hws_combined_entry *sample, in sample_format_is_valid() argument
1056 if (sample->basic.def != 0x0001) in sample_format_is_valid()
1063 if (sample->diag.def < 0x8001) in sample_format_is_valid()
1068 static int sample_is_consistent(struct hws_combined_entry *sample, in sample_is_consistent() argument
1083 if (sample->basic.I || sample->basic.W) in sample_is_consistent()
1088 static void reset_sample_slot(struct hws_combined_entry *sample, in reset_sample_slot() argument
1092 sample->basic.def = 0; in reset_sample_slot()
1094 sample->diag.def = 0; in reset_sample_slot()
1098 struct hws_combined_entry *sample) in sfr_store_sample() argument
1101 sfr->basic = sample->basic; in sfr_store_sample()
[all …]
/linux-4.1.27/drivers/misc/echo/
Dfir.h146 static inline int16_t fir16(struct fir16_state_t *fir, int16_t sample) in fir16() argument
150 fir->history[fir->curr_pos] = sample; in fir16()
151 fir->history[fir->curr_pos + fir->taps] = sample; in fir16()
159 fir->history[fir->curr_pos] = sample; in fir16()
195 static inline int16_t fir32(struct fir32_state_t *fir, int16_t sample) in fir32() argument
202 fir->history[fir->curr_pos] = sample; in fir32()
/linux-4.1.27/drivers/isdn/i4l/
Disdn_audio.c242 isdn_audio_linear2ulaw(int sample) in isdn_audio_linear2ulaw() argument
269 sign = (sample >> 8) & 0x80; /* set aside the sign */ in isdn_audio_linear2ulaw()
271 sample = -sample; /* get magnitude */ in isdn_audio_linear2ulaw()
272 if (sample > CLIP) in isdn_audio_linear2ulaw()
273 sample = CLIP; /* clip the magnitude */ in isdn_audio_linear2ulaw()
276 sample = sample + BIAS; in isdn_audio_linear2ulaw()
277 exponent = exp_lut[(sample >> 7) & 0xFF]; in isdn_audio_linear2ulaw()
278 mantissa = (sample >> (exponent + 3)) & 0x0F; in isdn_audio_linear2ulaw()
448 isdn_audio_goertzel(int *sample, modem_info *info) in isdn_audio_goertzel() argument
469 sk = sample[n] + ((cos2pik[k] * sk1) >> 15) - sk2; in isdn_audio_goertzel()
/linux-4.1.27/net/dccp/ccids/lib/
Dpacket_history.c406 u32 sample = 0, in tfrc_rx_hist_sample_rtt() local
412 sample = SUB16(tfrc_rx_hist_rtt_prev_s(h)->tfrchrx_ccval, in tfrc_rx_hist_sample_rtt()
414 if (sample) in tfrc_rx_hist_sample_rtt()
415 sample = 4 / sample * in tfrc_rx_hist_sample_rtt()
434 sample = ktime_to_us(net_timedelta(tfrc_rx_hist_rtt_last_s(h)->tfrchrx_tstamp)); in tfrc_rx_hist_sample_rtt()
440 if (unlikely(sample > DCCP_SANE_RTT_MAX)) { in tfrc_rx_hist_sample_rtt()
441 DCCP_WARN("RTT sample %u too large, using max\n", sample); in tfrc_rx_hist_sample_rtt()
442 sample = DCCP_SANE_RTT_MAX; in tfrc_rx_hist_sample_rtt()
448 return sample; in tfrc_rx_hist_sample_rtt()
/linux-4.1.27/tools/perf/Documentation/
Dperf-report.txt33 Show sample percentage for different cpu modes.
76 - dso: name of library or module executed at the time of sample
77 - symbol: name of function executed at the time of sample
80 - cpu: cpu number the task ran at the time of sample
81 - srcline: filename and line number executed at the time of sample. The
87 - overhead: Overhead percentage of sample
88 - overhead_sys: Overhead percentage of sample running in system mode
89 - overhead_us: Overhead percentage of sample running in user mode
90 - overhead_guest_sys: Overhead percentage of sample running in system mode
92 - overhead_guest_us: Overhead percentage of sample running in user mode on
[all …]
Dperf-record.txt93 Event period to sample.
161 Don't sample.
165 Collect raw sample records from all opened counters (default for tracepoint counters).
198 Enable taken branch stack sampling. Each sample captures a series of consecutive
199 taken branches. The number of branches captured with each sample depends on the
226 Enable weightened sampling. An additional weight is recorded per sample and can be
247 each sample. List of captured registers depends on the architecture. This option
Dperf-evlist.txt25 Show just the sample frequency used for each event.
Dperf-top.txt26 Event period to sample.
119 local_weight, abort, in_tx, transaction, overhead, sample, period.
125 overhead, overhead_sys, overhead_us, overhead_children, sample and period.
Dperf-mem.txt38 one sample per line.
Dperf-kvm.txt110 Sorting key. Possible values: sample (default, sort by samples
147 Sorting key. Possible values: sample (default, sort by samples
Dperf-diff.txt116 the command line are searched for the baseline sample pair. If the pair
130 b - baseline sample percentage
/linux-4.1.27/Documentation/sound/alsa/soc/
DDAI.txt26 usually varies depending on the sample rate and the master system clock
27 (SYSCLK). LRCLK is the same as the sample rate. A few devices support separate
29 different sample rates.
38 o Right Justified - MSB is transmitted sample size BCLKs before LRC
47 receive the audio data. Bit clock usually varies depending on sample rate
48 whilst sync runs at the sample rate. PCM also supports Time Division
Dclocking.txt14 audio playback and capture sample rates.
29 runs at exactly the sample rate (LRC = Rate).
48 audio clocks as it usually gives more accurate sample rates than the CPU.
/linux-4.1.27/drivers/media/rc/
Dir-lirc-codec.c36 int sample; in ir_lirc_decode() local
51 sample = LIRC_SPACE(LIRC_VALUE_MASK); in ir_lirc_decode()
56 sample = LIRC_FREQUENCY(ev.carrier); in ir_lirc_decode()
57 IR_dprintk(2, "carrier report (freq: %d)\n", sample); in ir_lirc_decode()
72 sample = LIRC_TIMEOUT(ev.duration / 1000); in ir_lirc_decode()
73 IR_dprintk(2, "timeout report (duration: %d)\n", sample); in ir_lirc_decode()
95 sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) : in ir_lirc_decode()
102 (unsigned char *) &sample); in ir_lirc_decode()
Dfintek-cir.c296 u8 sample; in fintek_process_rx_ir_data() local
301 sample = fintek->buf[i]; in fintek_process_rx_ir_data()
304 fintek->cmd = sample; in fintek_process_rx_ir_data()
319 fintek->rem = fintek_cmdsize(fintek->cmd, sample); in fintek_process_rx_ir_data()
328 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in fintek_process_rx_ir_data()
329 rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK) in fintek_process_rx_ir_data()
357 u8 sample, status; in fintek_get_rx_ir_data() local
367 sample = fintek_cir_reg_read(fintek, CIR_RX_DATA); in fintek_get_rx_ir_data()
368 fit_dbg("%s: sample: 0x%02x", __func__, sample); in fintek_get_rx_ir_data()
370 fintek->buf[fintek->pkts] = sample; in fintek_get_rx_ir_data()
Dnuvoton-cir.c619 u8 sample; in nvt_process_rx_ir_data() local
632 sample = nvt->buf[i]; in nvt_process_rx_ir_data()
634 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in nvt_process_rx_ir_data()
635 rawir.duration = US_TO_NS((sample & BUF_LEN_MASK) in nvt_process_rx_ir_data()
648 if ((sample == BUF_PULSE_BIT) && (i + 1 < nvt->pkts)) { in nvt_process_rx_ir_data()
/linux-4.1.27/drivers/staging/iio/resolver/
Dad2s1200.c39 int sample; member
55 gpio_set_value(st->sample, 0); in ad2s1200_read_raw()
58 gpio_set_value(st->sample, 1); in ad2s1200_read_raw()
127 st->sample = pins[0]; in ad2s1200_probe()
Dad2s1210.c413 gpio_set_value(st->pdata->sample, 0); in ad2s1210_clear_fault()
416 gpio_set_value(st->pdata->sample, 1); in ad2s1210_clear_fault()
420 gpio_set_value(st->pdata->sample, 0); in ad2s1210_clear_fault()
421 gpio_set_value(st->pdata->sample, 1); in ad2s1210_clear_fault()
477 gpio_set_value(st->pdata->sample, 0); in ad2s1210_read_raw()
523 gpio_set_value(st->pdata->sample, 1); in ad2s1210_read_raw()
645 { st->pdata->sample, GPIOF_DIR_IN, "sample" }, in ad2s1210_setup_gpios()
659 { st->pdata->sample, GPIOF_DIR_IN, "sample" }, in ad2s1210_free_gpios()
Dad2s1210.h15 unsigned sample; member
/linux-4.1.27/samples/trace_events/
DMakefile12 CFLAGS_trace-events-sample.o := -I$(src)
14 obj-$(CONFIG_SAMPLE_TRACE_EVENTS) += trace-events-sample.o
Dtrace-events-sample.h25 #define TRACE_SYSTEM sample-trace
522 #define TRACE_INCLUDE_FILE trace-events-sample
/linux-4.1.27/Documentation/timers/
Dtimer_stats.txt18 Linux system over a sample period:
33 To activate a sample period issue:
36 To stop a sample period issue:
44 is kept until a new sample period is started. This allows multiple readouts.
48 Timerstats sample period: 3.888770 s
D00-INDEX8 - sample hpet timer test program
/linux-4.1.27/drivers/iio/adc/
Dad7266.c47 __be16 sample[2]; member
55 return spi_read(st->spi, &st->data.sample[0], 2); in ad7266_wakeup()
61 return spi_read(st->spi, &st->data.sample[0], 1); in ad7266_powerdown()
90 ret = spi_read(st->spi, st->data.sample, 4); in ad7266_trigger_handler()
143 *val = be16_to_cpu(st->data.sample[address % 2]); in ad7266_read_single()
448 st->single_xfer[0].rx_buf = &st->data.sample[0]; in ad7266_probe()
452 st->single_xfer[1].rx_buf = st->data.sample; in ad7266_probe()
456 st->single_xfer[2].tx_buf = &st->data.sample[0]; in ad7266_probe()
Dad_sigma_delta.c251 unsigned int sample, raw_sample; in ad_sigma_delta_single_conversion() local
295 sample = raw_sample >> chan->scan_type.shift; in ad_sigma_delta_single_conversion()
296 sample &= (1 << chan->scan_type.realbits) - 1; in ad_sigma_delta_single_conversion()
297 *val = sample; in ad_sigma_delta_single_conversion()
/linux-4.1.27/Documentation/ABI/testing/
Dconfigfs-usb-gadget-uac29 c_ssize - capture sample size (bytes)
12 p_ssize - playback sample size (bytes)
Devm21 Documentation/keys-trusted-encrypted.txt. (A sample dracut
/linux-4.1.27/sound/synth/emux/
Dsoundfont.c605 zone->sample = set_sample(sf, &zone->v); in load_info()
662 struct snd_sf_sample *sample; in set_sample() local
664 sample = find_sample(sf, avp->sample); in set_sample()
665 if (sample == NULL) in set_sample()
673 avp->start += sample->v.start; in set_sample()
674 avp->end += sample->v.end; in set_sample()
675 avp->loopstart += sample->v.loopstart; in set_sample()
676 avp->loopend += sample->v.loopend; in set_sample()
679 avp->sample_mode = sample->v.mode_flags; in set_sample()
681 return sample; in set_sample()
[all …]
/linux-4.1.27/kernel/time/
Dposix-cpu-timers.c181 unsigned long long *sample) in cpu_clock_sample() argument
187 *sample = prof_ticks(p); in cpu_clock_sample()
190 *sample = virt_ticks(p); in cpu_clock_sample()
193 *sample = task_sched_runtime(p); in cpu_clock_sample()
241 unsigned long long *sample) in cpu_clock_sample_group() argument
250 *sample = cputime_to_expires(cputime.utime + cputime.stime); in cpu_clock_sample_group()
254 *sample = cputime_to_expires(cputime.utime); in cpu_clock_sample_group()
258 *sample = cputime.sum_exec_runtime; in cpu_clock_sample_group()
541 unsigned long long *sample) in cpu_timer_sample_group() argument
550 *sample = cputime_to_expires(cputime.utime + cputime.stime); in cpu_timer_sample_group()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/input/touchscreen/
Dstmpe.txt8 - st,sample-time: ADC converstion time in number of clock. (0 -> 36 clocks, 1 ->
15 - st,ave-ctrl: Sample average control (0 -> 1 sample, 1 -> 2 samples, 2 -> 4
34 st,sample-time = <4>;
Dbrcm,iproc-touchscreen.txt36 0 = 1 sample
/linux-4.1.27/Documentation/hwmon/
Dltc424588 If you have NOT configured the driver to sample all GPIO pins as analog
90 created. The driver will sample the GPIO pin that is currently connected to the
93 If you have configured the driver to sample all GPIO pins as analog voltages,
98 The LTC4245 chip can be configured to sample all GPIO pins with two methods:
102 The default mode of operation is to sample a single GPIO pin.
/linux-4.1.27/arch/m68k/ifpsp060/
Dfskeleton.S61 | simply execute an "rte" as with the sample code below.
75 | The sample routine below simply clears the exception status bit and
94 | The sample routine below simply clears the exception status bit and
113 | The sample routine below simply clears the exception status bit and
132 | The sample routine below simply clears the exception status bit and
151 | The sample routine below simply clears the exception status bit and
170 | The sample routine below simply clears the exception status bit and
188 | The sample routine below clears the exception status bit, clears the NaN
226 | The sample code below enables the FPU, sets the PC field in the exception stack
249 | The sample code below simply executes an "rte".
/linux-4.1.27/Documentation/sound/oss/
Dbtaudio45 The chip gives you 16 bit stereo sound. The sample rate depends on
48 sample rate the hardware uses (32000 is the default).
51 chip which provides digital sound via I2S with 32 kHz sample rate. My
54 The Osprey-200 reportly gives you digital sound with 44100 Hz sample
68 downsampling by powers of two, so you can ask for more usual sample rates
DREADME.ymfsb7 This code references YAMAHA's sample codes and data sheets.
58 with 21.739kHz sample rates rather than 22.050kHz (I think it must be
61 that specify correct sample frequency. For example, to play your MP3 file
72 Its Fs is fixed to 48kHz (It never means the sample frequency become
DESS186821 sample copy of the isapnp.conf directives regarding the ESS1868:
/linux-4.1.27/drivers/media/usb/msi2500/
Dmsi2500.c155 u32 sample; /* for sample rate calc */ member
263 u32 sample[3]; in msi2500_convert_stream() local
269 sample[i] = src[3] << 24 | src[2] << 16 | src[1] << 8 | in msi2500_convert_stream()
271 if (i == 0 && s->next_sample != sample[0]) { in msi2500_convert_stream()
274 sample[0] - s->next_sample, in msi2500_convert_stream()
275 src_len, s->next_sample, sample[0]); in msi2500_convert_stream()
298 s->next_sample = sample[i] + 504; in msi2500_convert_stream()
320 s->next_sample = sample[i] + 252; in msi2500_convert_stream()
330 s->next_sample = sample[i] + 384; in msi2500_convert_stream()
337 s->next_sample = sample[i] + 504; in msi2500_convert_stream()
[all …]
/linux-4.1.27/include/linux/
Duwb.h779 void stats_add_sample(struct stats *stats, s8 sample) in stats_add_sample() argument
794 if (sample < min) /* compute new values */ in stats_add_sample()
795 min = sample; in stats_add_sample()
796 else if (sample > max) in stats_add_sample()
797 max = sample; in stats_add_sample()
798 sigma += sample; in stats_add_sample()
Doprofile.h184 struct op_sample *sample; member
Dwm97xx.h233 int (*poll_sample) (struct wm97xx *, int adcsel, int *sample);
/linux-4.1.27/Documentation/sound/alsa/
DAudiophile-Usb.txt37 * sample depth of 16 or 24 bits
38 * sample rate from 8kHz to 96kHz
39 * Two interfaces can't use different sample depths at the same time.
59 to synchronize the device to an external sample clock
63 synchronization error (for instance sound played at an odd sample rate)
94 This approach has the advantage to let the driver automatically switch from sample
124 * playing an ac3 sample file to the Do port
147 * the sample depth
148 * the sample rate
177 where "test_S16_LE.raw" was in fact a little-endian sample file.
[all …]
DBt87x.txt54 The first device (hw:X,0) gives you 16 bit stereo sound. The sample
63 sample rates are between 119466 and 448000 Hz (yes, these numbers are
65 maximum sample rate is 1792000 Hz, but audio data becomes unusable
DSB-Live-mixer.txt7 various ways of sample processing, which is described here.
121 This control is used to attenuate sample for center PCM FX-bus accumulator.
122 ALSA uses accumulator 6 for center PCM sample. The result sample is forwarded
127 This control is used to attenuate sample for center PCM FX-bus accumulator.
128 ALSA uses accumulator 6 for center PCM sample. The result sample is forwarded
242 If this switch is on, then the sample for the center PCM is put to the
248 If this switch is on, then the sample for the center PCM is put to the
DAudigy-mixer.txt8 various ways of sample processing, which is described here.
57 ALSA uses accumulator 6 for center PCM sample for 5.1 playback. The result sample
62 This control is used to attenuate sample for LFE PCM FX-bus accumulator.
63 ALSA uses accumulator 7 for LFE PCM sample for 5.1 playback. The result sample
182 This control is used to attenuate sample for center speaker of this mix.
187 This control is used to attenuate sample for LFE speaker of this mix.
Dtimestamping.txt26 - 'delay' reports the time it will take to hear a new sample after all
58 supported in hardware by sample counters or wallclocks (e.g. with
173 the information is still very jittery, with up to one sample of
/linux-4.1.27/drivers/mmc/host/
Ddw_mmc-exynos.c381 static inline void dw_mci_exynos_set_clksmpl(struct dw_mci *host, u8 sample) in dw_mci_exynos_set_clksmpl() argument
391 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_set_clksmpl()
403 u8 sample; in dw_mci_exynos_move_next_clksmpl() local
411 sample = (clksel + 1) & 0x7; in dw_mci_exynos_move_next_clksmpl()
412 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_move_next_clksmpl()
420 return sample; in dw_mci_exynos_move_next_clksmpl()
/linux-4.1.27/include/uapi/sound/
Dsfnt_info.h117 unsigned short sample; /* sample id */ member
162 unsigned short sample; /* sample id */ member
/linux-4.1.27/Documentation/devicetree/bindings/sound/
Ddesignware-i2s.txt8 rate reference clock sample.
9 - clock-names : "i2sclk" for the sample rate reference clock.
Dadi,axi-i2s.txt8 the clock used as the sampling rate reference clock sample.
9 - clock-names : "axi" for the clock to the AXI interface, "ref" for the sample
Dadi,axi-spdif-tx.txt8 the clock used as the sampling rate reference clock sample.
9 - clock-names: "axi" for the clock to the AXI interface, "ref" for the sample
Dfsl,ssi.txt36 playback and capture to use different sample sizes and
37 sample rates. Some drivers may require that SRCK and STCK
39 together. This would still allow different sample sizes,
40 but not different sample rates.
Dfsl,asrc.txt33 - fsl,asrc-rate : Defines a mutual sample rate used by DPCM Back Ends.
35 - fsl,asrc-width : Defines a mutual sample width used by DPCM Back Ends.
/linux-4.1.27/Documentation/devicetree/bindings/media/i2c/
Dtvp514x.txt21 - pclk-sample: Clock polarity of the endpoint.
39 pclk-sample = <0>;
Dtvp7002.txt16 - pclk-sample: Clock polarity of the bus. Default value when this property is
46 pclk-sample = <0>;
Dadv7604.txt43 - pclk-sample: Pixel clock polarity. Defaults to output on the falling edge.
45 If none of hsync-active, vsync-active and pclk-sample is specified the
/linux-4.1.27/Documentation/devicetree/bindings/mmc/
Dsunxi-mmc.txt14 - clock-names : must contain "ahb", "mmc", "output" and "sample"
29 clock-names = "ahb", "mod", "output", "sample";
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-smix-defs.h153 uint64_t sample:4; member
157 uint64_t sample:4;
176 uint64_t sample:4; member
180 uint64_t sample:4;
/linux-4.1.27/drivers/hwmon/
Dmc13783-adc.c57 unsigned int sample[4]; in mc13783_adc_read() local
62 channel, 0, 0, sample); in mc13783_adc_read()
68 *val = (sample[channel % 4] >> (channel > 3 ? 14 : 2)) & 0x3ff; in mc13783_adc_read()
/linux-4.1.27/samples/livepatch/
DMakefile1 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-sample.o
/linux-4.1.27/Documentation/devicetree/bindings/spi/
Dspi-rockchip.txt27 - rx-sample-delay-ns: nanoseconds to delay after the SCLK edge before sampling
39 rx-sample-delay-ns = <10>;
/linux-4.1.27/drivers/macintosh/
Drack-meter.c315 u32 sample = 0; in rackmeter_calc_sample() local
318 sample >>= 1; in rackmeter_calc_sample()
319 sample |= ((rm->ubuf[led] >= 0x80) << 15); in rackmeter_calc_sample()
321 return (sample << 17) | (sample >> 15); in rackmeter_calc_sample()
Dwindfarm_pid.h46 extern s32 wf_pid_run(struct wf_pid_state *st, s32 sample);
/linux-4.1.27/drivers/isdn/hardware/eicon/
Dcapidtmf.c185 static void capidtmf_goertzel_loop(long *buffer, long *coeffs, short *sample, long count) in capidtmf_goertzel_loop() argument
200 … q0 = sample[j] - q2 + (c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15); in capidtmf_goertzel_loop()
211 …q0 = sample[j] - q2 - ((c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15)); in capidtmf_goertzel_loop()
226 …q0 = sample[j] - q2 + (c * (q1 >> 16)) + (((dword)(((dword)(c >> 1)) * ((dword)(q1 & 0xffff)))) >>… in capidtmf_goertzel_loop()
237 …q0 = sample[j] - q2 - ((c * (q1 >> 16)) + (((dword)(((dword)(c >> 1)) * ((dword)(q1 & 0xffff)))) >… in capidtmf_goertzel_loop()
/linux-4.1.27/sound/pci/emu10k1/
Demu10k1_callback.c424 unsigned int val, sample; in start_voice()
427 sample = 0x80808080; in start_voice()
429 sample = 0; in start_voice()
435 snd_emu10k1_ptr_write(hw, CDE, ch, sample); in start_voice()
436 snd_emu10k1_ptr_write(hw, CDF, ch, sample); in start_voice()
Demu10k1_patch.c54 "emu: rom font for sample %d\n", sp->v.sample); in snd_emu10k1_sample_new()
Demupcm.c640 unsigned int voice, stereo, i, ccis, cra = 64, cs, sample; in snd_emu10k1_playback_invalidate_cache() local
647 sample = snd_pcm_format_width(runtime->format) == 16 ? 0 : 0x80808080; in snd_emu10k1_playback_invalidate_cache()
648 ccis = emu10k1_ccis(stereo, sample == 0); in snd_emu10k1_playback_invalidate_cache()
650 cs = (sample == 0) ? (32-ccis) : (64-ccis+1) >> 1; in snd_emu10k1_playback_invalidate_cache()
653 snd_emu10k1_ptr_write(emu, CD0 + i, voice, sample); in snd_emu10k1_playback_invalidate_cache()
655 snd_emu10k1_ptr_write(emu, CD0 + i, voice + 1, sample); in snd_emu10k1_playback_invalidate_cache()
/linux-4.1.27/Documentation/video4linux/cx88/
Dhauppauge-wintv-cx88-ir.txt40 as well. Remember, this is a free running sample of the IR receiver state
41 over time, so don't assume any sample starts at any particular place.
/linux-4.1.27/Documentation/devicetree/bindings/video/
Ddisplay-timing.txt31 sample data on falling edge
33 sample data on rising edge
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvif/
Dlist.h294 #define __container_of(ptr, sample, member) \ argument
295 (void *)container_of((ptr), typeof(*(sample)), member)
/linux-4.1.27/Documentation/video4linux/
Dhauppauge-wintv-cx88-ir.txt40 as well. Remember, this is a free running sample of the IR receiver state
41 over time, so don't assume any sample starts at any particular place.
DREADME.saa713474 saa7134 hardware specs and sample board.
/linux-4.1.27/Documentation/devicetree/bindings/hwrng/
Dtimeriomem_rng.txt5 - reg : base address to sample from
/linux-4.1.27/Documentation/devicetree/bindings/memory-controllers/
Dmvebu-devbus.txt47 to read data sample. This parameter is useful for
66 (no affect on first data sample). Set <rd-setup-ps>
71 - devbus,rd-hold-ps: Defines the time between the last data sample to the
74 (the cycle of the last data sample).
/linux-4.1.27/drivers/char/
Drandom.c776 } sample; in add_timer_randomness() local
781 sample.jiffies = jiffies; in add_timer_randomness()
782 sample.cycles = random_get_entropy(); in add_timer_randomness()
783 sample.num = num; in add_timer_randomness()
785 mix_pool_bytes(r, &sample, sizeof(sample)); in add_timer_randomness()
794 delta = sample.jiffies - state->last_time; in add_timer_randomness()
795 state->last_time = sample.jiffies; in add_timer_randomness()
/linux-4.1.27/Documentation/devicetree/bindings/arc/
Dpct.txt9 counted, the HW events themselves cannot serve as a trigger for a sample.
/linux-4.1.27/tools/perf/arch/arm/util/
Dunwind-libdw.c8 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Ddac.c237 uint32_t sample, testval, regoffset = nv04_dac_output_offset(encoder); in nv17_dac_sample_load() local
306 sample = NVReadRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + regoffset); in nv17_dac_sample_load()
308 sample &= NVReadRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + regoffset); in nv17_dac_sample_load()
327 return sample; in nv17_dac_sample_load()
Dtvnv17.c53 uint32_t sample = 0; in nv42_tv_sample_load() local
104 sample |= NVReadRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + regoffset) in nv42_tv_sample_load()
110 sample |= NVReadRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + regoffset) in nv42_tv_sample_load()
126 return sample; in nv42_tv_sample_load()
/linux-4.1.27/drivers/staging/sm750fb/
DTODO6 are supposed to be sample code which is given here if someone wants to
/linux-4.1.27/arch/powerpc/oprofile/cell/
Dspu_task_sync.c588 unsigned int sample = *(samples+i); in spu_sync_buffer() local
591 if (sample == 0) in spu_sync_buffer()
593 file_offset = vma_map_lookup( map, sample, the_spu, &grd_val); in spu_sync_buffer()
/linux-4.1.27/drivers/staging/comedi/drivers/
Dcomedi_test.c196 unsigned short sample; in waveform_ai_interrupt() local
198 sample = fake_waveform(dev, CR_CHAN(cmd->chanlist[j]), in waveform_ai_interrupt()
203 comedi_buf_write_samples(s, &sample, 1); in waveform_ai_interrupt()
Dadv_pci1710.c378 unsigned int sample; in pci171x_ai_read_sample() local
381 sample = inw(dev->iobase + PCI171x_AD_DATA); in pci171x_ai_read_sample()
388 chan = sample >> 12; in pci171x_ai_read_sample()
396 *val = sample & s->maxdata; in pci171x_ai_read_sample()
/linux-4.1.27/drivers/media/usb/uvc/
Duvc_video.c376 struct uvc_clock_sample *sample; in uvc_video_clock_decode() local
464 sample = &stream->clock.samples[stream->clock.head]; in uvc_video_clock_decode()
465 sample->dev_stc = get_unaligned_le32(&data[header_size - 6]); in uvc_video_clock_decode()
466 sample->dev_sof = dev_sof; in uvc_video_clock_decode()
467 sample->host_sof = host_sof; in uvc_video_clock_decode()
468 sample->host_ts = ts; in uvc_video_clock_decode()
529 static u16 uvc_video_clock_host_sof(const struct uvc_clock_sample *sample) in uvc_video_clock_host_sof() argument
534 delta_sof = (sample->host_sof - sample->dev_sof) & 255; in uvc_video_clock_host_sof()
536 return (sample->dev_sof + delta_sof) & 2047; in uvc_video_clock_host_sof()
/linux-4.1.27/Documentation/devicetree/bindings/media/
Dpxa-camera.txt40 pclk-sample = <1>; /* Rising */
Dvideo-interfaces.txt89 - pclk-sample: sample data on rising (1) or falling (0) edge of the pixel clock
157 pclk-sample = <1>; /* Rising */
189 pclk-sample = <1>;
Dsamsung-fimc.txt135 pclk-sample = <1>;
183 pclk-sample = <1>;
/linux-4.1.27/Documentation/devicetree/bindings/phy/
Dapm-xgene-phy.txt22 - apm,tx-eye-direction : Eye tuning manual control direction. 0 means sample
24 sample data later than the nominal sampling point.
/linux-4.1.27/net/dccp/
Dinput.c527 u32 sample = dp->dccps_options_received.dccpor_timestamp_echo; in dccp_rcv_respond_partopen_state_process() local
553 if (likely(sample)) { in dccp_rcv_respond_partopen_state_process()
554 long delta = dccp_timestamp() - sample; in dccp_rcv_respond_partopen_state_process()
/linux-4.1.27/include/sound/
Dsoundfont.h40 struct snd_sf_sample *sample; /* Link to sample */ member
/linux-4.1.27/Documentation/devicetree/bindings/mfd/
Dtwl4030-audio.txt15 from the start of the recorded sample (in ms)
/linux-4.1.27/Documentation/accounting/
Dcgroupstats.txt22 has been developed, the sample output of the utility is shown below
/linux-4.1.27/tools/perf/scripts/python/
Devent_analyzing_sample.py72 sample = param_dict["sample"]
/linux-4.1.27/Documentation/devicetree/bindings/staging/iio/adc/
Dmxs-lradc.txt19 - fsl,settling: delay between plate switch to next sample. Allowed value is
/linux-4.1.27/tools/power/cpupower/bench/
DREADME-BENCH81 below possible ondemand sample kick ins (1)):
85 switching up (compare with below possible ondemand sample kick ins (2))::
/linux-4.1.27/drivers/net/caif/
DKconfig23 platform specific SPI device. A sample CAIF SPI Platform device is
/linux-4.1.27/Documentation/devicetree/bindings/media/xilinx/
Dvideo.txt25 - xlnx,video-width: This property qualifies the video format with the sample
/linux-4.1.27/Documentation/w1/
Dw1.generic68 (write_bit) and sample the signal level (read_bit).
71 sample a bit (touch_bit) and reset the bus (reset_bus).
/linux-4.1.27/Documentation/ia64/
Derr_inject.txt11 sample. The driver provides interface to PAL to inject error
13 arch/ia64/kernel/err_inject.c. The application sample (shown below)
22 Below is a sample application as part of the whole tool. The sample
27 The sample application takes err.conf as error configuration input. GCC
29 this sample application to inject errors.
64 The sample application source code:
/linux-4.1.27/arch/arm/boot/dts/
Dsun9i-a80.dtsi331 clock-names = "ahb", "mmc", "output", "sample";
343 clock-names = "ahb", "mmc", "output", "sample";
355 clock-names = "ahb", "mmc", "output", "sample";
367 clock-names = "ahb", "mmc", "output", "sample";
Dimx53-m53.dtsi68 st,sample-time = <4>;
Ds5pv210-goni.dts393 pclk-sample = <1>;
416 pclk-sample = <0>;
Dsun4i-a10.dtsi485 "sample";
500 "sample";
515 "sample";
530 "sample";
Dsun5i-a10s.dtsi384 "sample";
399 "sample";
414 "sample";
Dsun8i-a23.dtsi284 "sample";
301 "sample";
318 "sample";
/linux-4.1.27/arch/powerpc/oprofile/
Dop_model_cell.c1494 u32 sample; in cell_handle_interrupt_spu() local
1511 sample = 0xABCDEF; in cell_handle_interrupt_spu()
1561 sample = trace_entry >> 14; in cell_handle_interrupt_spu()
1572 spu_sync_buffer(spu_num, &sample, 1); in cell_handle_interrupt_spu()
/linux-4.1.27/kernel/events/
Dcore.c5058 struct perf_sample_data *sample) in perf_event__output_id_sample() argument
5061 __perf_event__output_id_sample(handle, sample); in perf_event__output_id_sample()
5458 struct perf_sample_data sample; in perf_event_read_event() local
5470 perf_event_header__init_id(&read_event.header, &sample, event); in perf_event_read_event()
5477 perf_event__output_id_sample(event, &handle, &sample); in perf_event_read_event()
5568 struct perf_sample_data sample; in perf_event_task_output() local
5575 perf_event_header__init_id(&task_event->event_id.header, &sample, event); in perf_event_task_output()
5592 perf_event__output_id_sample(event, &handle, &sample); in perf_event_task_output()
5664 struct perf_sample_data sample; in perf_event_comm_output() local
5671 perf_event_header__init_id(&comm_event->event_id.header, &sample, event); in perf_event_comm_output()
[all …]
Dinternal.h92 struct perf_sample_data *sample);
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dmlx4_en.h178 #define AVG_PERF_COUNTER(cnt, sample) \ argument
179 ((cnt) = ((cnt) * (AVG_SIZE - 1) + (sample) * AVG_FACTOR) / AVG_SIZE)
187 #define AVG_PERF_COUNTER(cnt, sample) do {} while (0) argument
/linux-4.1.27/net/dccp/ccids/
Dccid3.c764 const u32 sample = tfrc_rx_hist_sample_rtt(&hc->rx_hist, skb); in ccid3_hc_rx_packet_recv() local
770 if (sample != 0) in ccid3_hc_rx_packet_recv()
771 hc->rx_rtt = tfrc_ewma(hc->rx_rtt, sample, 9); in ccid3_hc_rx_packet_recv()
/linux-4.1.27/Documentation/hid/
Dhid-sensor.txt82 int (*capture_sample)(..): Capture a sample for one of its data fields
139 to poll for any field. If there is some new sample, the core driver will call
140 registered callback function to process the sample.
/linux-4.1.27/include/linux/mfd/
Dmc13xxx.h35 u8 ato, bool atox, unsigned int *sample);
/linux-4.1.27/drivers/mfd/
Dmc13xxx-core.c257 unsigned int *sample) in mc13xxx_adc_do_conversion() argument
333 MC13XXX_ADC2, &sample[i]); in mc13xxx_adc_do_conversion()
/linux-4.1.27/drivers/media/usb/airspy/
Dairspy.c154 unsigned int sample; member
258 unsigned int samples = s->sample - s->sample_measured; in airspy_convert_stream()
261 s->sample_measured = s->sample; in airspy_convert_stream()
268 s->sample += src_len / 2; in airspy_convert_stream()
/linux-4.1.27/drivers/media/usb/hackrf/
Dhackrf.c141 unsigned int sample; member
235 unsigned int samples = dev->sample - dev->sample_measured; in hackrf_convert_stream()
238 dev->sample_measured = dev->sample; in hackrf_convert_stream()
245 dev->sample += src_len / 2; in hackrf_convert_stream()
/linux-4.1.27/tools/testing/selftests/ftrace/
DREADME73 There are some sample test scripts for result code under samples/.
/linux-4.1.27/Documentation/input/
Dcma3000_d0x.txt22 axis and supports 400, 100, 40 Hz sample frequency.
/linux-4.1.27/Documentation/devicetree/bindings/iio/adc/
Dat91_adc.txt28 - atmel,adc-sample-hold-time: Sample and Hold Time in microseconds
/linux-4.1.27/drivers/staging/iio/Documentation/
Doverview.txt9 input subsystems. Hwmon is very much directed at low sample rate

12