/linux-3.4.99/drivers/isdn/mISDN/ |
D | dsp_audio.c | 104 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 …]
|
D | l1oip_codec.c | 326 int i1, i2, c, sample; in l1oip_4bit_alloc() local 359 sample = _4bit_to_ulaw[i1]; in l1oip_4bit_alloc() 361 sample = _4bit_to_alaw[i1]; in l1oip_4bit_alloc() 364 table_dec[(i1 << 4) | i2] |= (sample << 8); in l1oip_4bit_alloc() 365 table_dec[(i2 << 4) | i1] |= sample; in l1oip_4bit_alloc()
|
D | dsp_cmx.c | 1308 register s32 sample; in dsp_cmx_send_member() local 1487 sample = dsp_audio_law_to_s32[p[t]] + in dsp_cmx_send_member() 1490 if (sample < -32768) in dsp_cmx_send_member() 1491 sample = -32768; in dsp_cmx_send_member() 1492 else if (sample > 32767) in dsp_cmx_send_member() 1493 sample = 32767; in dsp_cmx_send_member() 1494 *d++ = dsp_audio_s16_to_law[sample & 0xffff]; in dsp_cmx_send_member() 1520 sample = dsp_audio_law_to_s32[p[t]] + *c++ - in dsp_cmx_send_member() 1522 if (sample < -32768) in dsp_cmx_send_member() 1523 sample = -32768; in dsp_cmx_send_member() [all …]
|
/linux-3.4.99/tools/perf/ |
D | builtin-timechart.c | 237 struct cpu_sample *sample; in pid_put_sample() local 250 sample = malloc(sizeof(struct cpu_sample)); in pid_put_sample() 251 assert(sample != NULL); in pid_put_sample() 252 memset(sample, 0, sizeof(struct cpu_sample)); in pid_put_sample() 253 sample->start_time = start; in pid_put_sample() 254 sample->end_time = end; in pid_put_sample() 255 sample->type = type; in pid_put_sample() 256 sample->next = c->samples; in pid_put_sample() 257 sample->cpu = cpu; in pid_put_sample() 258 c->samples = sample; in pid_put_sample() [all …]
|
D | builtin-inject.c | 68 struct perf_sample *sample __used, in perf_event__repipe() 76 struct perf_sample *sample __used, in perf_event__repipe_sample() 85 struct perf_sample *sample, in perf_event__repipe_mmap() argument 90 err = perf_event__process_mmap(tool, event, sample, machine); in perf_event__repipe_mmap() 91 perf_event__repipe(tool, event, sample, machine); in perf_event__repipe_mmap() 98 struct perf_sample *sample, in perf_event__repipe_task() argument 103 err = perf_event__process_task(tool, event, sample, machine); in perf_event__repipe_task() 104 perf_event__repipe(tool, event, sample, machine); in perf_event__repipe_task() 160 struct perf_sample *sample, in perf_event__inject_buildid() argument 197 perf_event__repipe(tool, event, sample, machine); in perf_event__inject_buildid() [all …]
|
D | builtin-script.c | 259 static void print_sample_start(struct perf_sample *sample, in print_sample_start() argument 280 printf("%5d/%-5d ", sample->pid, sample->tid); in print_sample_start() 282 printf("%5d ", sample->pid); in print_sample_start() 284 printf("%5d ", sample->tid); in print_sample_start() 288 printf("%3d ", sample->cpu); in print_sample_start() 290 printf("[%03d] ", sample->cpu); in print_sample_start() 294 nsecs = sample->time; in print_sample_start() 303 type = trace_parse_common_type(sample->raw_data); in print_sample_start() 336 struct perf_sample *sample, in print_sample_addr() argument 344 printf("%16" PRIx64, sample->addr); in print_sample_addr() [all …]
|
D | builtin-report.c | 59 struct perf_sample *sample, in perf_report__add_branch_hist_entry() argument 71 && sample->callchain) { in perf_report__add_branch_hist_entry() 73 sample->callchain, &parent); in perf_report__add_branch_hist_entry() 79 sample->branch_stack); in perf_report__add_branch_hist_entry() 83 for (i = 0; i < sample->branch_stack->nr; i++) { in perf_report__add_branch_hist_entry() 135 struct perf_sample *sample, in perf_evsel__add_hist_entry() argument 142 if ((sort__has_parent || symbol_conf.use_callchain) && sample->callchain) { in perf_evsel__add_hist_entry() 144 sample->callchain, &parent); in perf_evsel__add_hist_entry() 149 he = __hists__add_entry(&evsel->hists, al, parent, sample->period); in perf_evsel__add_hist_entry() 156 sample->period); in perf_evsel__add_hist_entry() [all …]
|
D | builtin-annotate.c | 46 struct perf_sample *sample, in perf_evsel__add_sample() argument 78 evsel->hists.stats.total_period += sample->period; in perf_evsel__add_sample() 85 struct perf_sample *sample, in process_sample_event() argument 92 if (perf_event__preprocess_sample(event, machine, &al, sample, in process_sample_event() 99 if (ann->cpu_list && !test_bit(sample->cpu, ann->cpu_bitmap)) in process_sample_event() 102 if (!al.filtered && perf_evsel__add_sample(evsel, sample, &al, ann)) { in process_sample_event() 246 .sample = process_sample_event, in cmd_annotate()
|
/linux-3.4.99/drivers/oprofile/ |
D | cpu_buffer.c | 146 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 …]
|
/linux-3.4.99/tools/perf/util/ |
D | session.c | 361 struct perf_sample *sample __used, in process_event_sample_stub() 371 struct perf_sample *sample __used, in process_event_stub() 399 if (tool->sample == NULL) in perf_tool__fill_defaults() 400 tool->sample = process_event_sample_stub; in perf_tool__fill_defaults() 560 struct perf_sample *sample, 570 struct perf_sample sample; in flush_sample_queue() local 583 ret = perf_session__parse_sample(s, iter->event, &sample); in flush_sample_queue() 587 perf_session_deliver_event(s, iter->event, &sample, tool, in flush_sample_queue() 663 struct sample_queue *sample = os->last_sample; in __queue_event() local 670 if (!sample) { in __queue_event() [all …]
|
D | event.h | 137 struct sample_event sample; member 151 struct perf_sample *sample, 172 struct perf_sample *sample, 176 struct perf_sample *sample, 180 struct perf_sample *sample, 184 struct perf_sample *sample, 188 struct perf_sample *sample, 195 struct perf_sample *sample, 202 struct perf_sample *sample, bool swapped); 204 const struct perf_sample *sample,
|
D | evsel.c | 406 struct perf_sample *sample) in perf_event__parse_id_sample() argument 408 const u64 *array = event->sample.array; in perf_event__parse_id_sample() 415 sample->cpu = *p; in perf_event__parse_id_sample() 420 sample->stream_id = *array; in perf_event__parse_id_sample() 425 sample->id = *array; in perf_event__parse_id_sample() 430 sample->time = *array; in perf_event__parse_id_sample() 436 sample->pid = p[0]; in perf_event__parse_id_sample() 437 sample->tid = p[1]; in perf_event__parse_id_sample() 480 array = event->sample.array; in perf_event__parse_sample() 601 const struct perf_sample *sample, in perf_event__synthesize_sample() argument [all …]
|
D | tool.h | 15 struct perf_sample *sample, 19 struct perf_sample *sample, struct machine *machine); 32 event_sample sample, member
|
D | session.h | 133 struct perf_sample *sample) in perf_session__parse_sample() argument 137 session->sample_id_all, sample, in perf_session__parse_sample() 143 const struct perf_sample *sample) in perf_session__synthesize_sample() argument 146 sample, session->header.needs_swap); in perf_session__synthesize_sample() 152 void perf_event__print_ip(union perf_event *event, struct perf_sample *sample,
|
/linux-3.4.99/sound/core/oss/ |
D | mulaw.c | 157 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-3.4.99/drivers/media/video/cx25821/ |
D | cx25821-biffuncs.h | 28 inline u8 getBit(u32 sample, u8 index) in getBit() argument 30 return (u8) ((sample >> index) & 1); in getBit() 38 inline u32 setBitAtPos(u32 sample, u8 bit) in setBitAtPos() argument 40 sample |= (1 << bit); in setBitAtPos() 41 return sample; in setBitAtPos()
|
/linux-3.4.99/drivers/input/touchscreen/ |
D | tnetv107x-ts.c | 82 struct sample { struct 95 struct sample samples[TSC_SAMPLES]; argument 99 static int tsc_read_sample(struct tsc_data *ts, struct sample* sample) in tsc_read_sample() argument 121 sample->x = x; in tsc_read_sample() 122 sample->y = y; in tsc_read_sample() 123 sample->p = p; in tsc_read_sample() 172 struct sample *sample; in tsc_irq() local 178 sample = &ts->samples[index]; in tsc_irq() 179 if (tsc_read_sample(ts, sample) < 0) in tsc_irq() 184 sample = &ts->samples[index]; in tsc_irq() [all …]
|
D | mc13783_ts.c | 41 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()
|
/linux-3.4.99/kernel/time/ |
D | timecompare.c | 55 } buffer[10], sample, *samples; in timecompare_offset() local 86 sample.duration_target = ktime_to_ns(ktime_sub(end, start)); in timecompare_offset() 87 if (sample.duration_target >= 0) { in timecompare_offset() 93 sample.offset = in timecompare_offset() 101 sample.duration_target) in timecompare_offset() 106 samples[index + 1] = sample; in timecompare_offset()
|
/linux-3.4.99/drivers/staging/echo/ |
D | fir.h | 146 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-3.4.99/drivers/isdn/i4l/ |
D | isdn_audio.c | 242 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-3.4.99/net/dccp/ccids/lib/ |
D | packet_history.c | 405 u32 sample = 0, in tfrc_rx_hist_sample_rtt() local 411 sample = SUB16(tfrc_rx_hist_rtt_prev_s(h)->tfrchrx_ccval, in tfrc_rx_hist_sample_rtt() 413 if (sample) in tfrc_rx_hist_sample_rtt() 414 sample = 4 / sample * in tfrc_rx_hist_sample_rtt() 433 sample = ktime_to_us(net_timedelta(tfrc_rx_hist_rtt_last_s(h)->tfrchrx_tstamp)); in tfrc_rx_hist_sample_rtt() 439 if (unlikely(sample > DCCP_SANE_RTT_MAX)) { in tfrc_rx_hist_sample_rtt() 440 DCCP_WARN("RTT sample %u too large, using max\n", sample); in tfrc_rx_hist_sample_rtt() 441 sample = DCCP_SANE_RTT_MAX; in tfrc_rx_hist_sample_rtt() 447 return sample; in tfrc_rx_hist_sample_rtt()
|
/linux-3.4.99/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 252 struct perf_sample *sample, in perl_process_tracepoint() argument 264 int cpu = sample->cpu; in perl_process_tracepoint() 265 void *data = sample->raw_data; in perl_process_tracepoint() 266 unsigned long long nsecs = sample->time; in perl_process_tracepoint() 342 struct perf_sample *sample, in perl_process_event_generic() argument 357 XPUSHs(sv_2mortal(newSVpvn((const char *)sample, sizeof(*sample)))); in perl_process_event_generic() 358 XPUSHs(sv_2mortal(newSVpvn((const char *)sample->raw_data, sample->raw_size))); in perl_process_event_generic() 368 struct perf_sample *sample, in perl_process_event() argument 373 perl_process_tracepoint(pevent, sample, evsel, machine, thread); in perl_process_event() 374 perl_process_event_generic(pevent, sample, evsel, machine, thread); in perl_process_event()
|
/linux-3.4.99/samples/ |
D | Kconfig | 4 You can build and test sample kernel code here. 25 different kobject sample modules showing how to use kobjects, 52 different kfifo sample modules showing how to use the 65 tristate "Build rpmsg client sample -- loadable modules only" 68 Build an rpmsg client sample driver, which demonstrates how
|
/linux-3.4.99/Documentation/sound/alsa/soc/ |
D | DAI.txt | 26 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
|