Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 25 of 27) sorted by relevance

12

/drivers/isdn/mISDN/
Ddsp_audio.c103 static unsigned char linear2ulaw(short sample) in linear2ulaw() argument
126 sign = (sample >> 8) & 0x80; /* set aside the sign */ in linear2ulaw()
128 sample = -sample; /* get magnitude */ in linear2ulaw()
131 sample = sample + BIAS; in linear2ulaw()
132 exponent = exp_lut[(sample >> 7) & 0xFF]; in linear2ulaw()
133 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 …]
Ddsp_cmx.c1292 register s32 sample; in dsp_cmx_send_member() local
1462 sample = dsp_audio_law_to_s32[p[t]] + in dsp_cmx_send_member()
1465 if (sample < -32768) in dsp_cmx_send_member()
1466 sample = -32768; in dsp_cmx_send_member()
1467 else if (sample > 32767) in dsp_cmx_send_member()
1468 sample = 32767; in dsp_cmx_send_member()
1469 *d++ = dsp_audio_s16_to_law[sample & 0xffff]; in dsp_cmx_send_member()
1495 sample = dsp_audio_law_to_s32[p[t]] + *c++ - in dsp_cmx_send_member()
1497 if (sample < -32768) in dsp_cmx_send_member()
1498 sample = -32768; in dsp_cmx_send_member()
[all …]
Dl1oip_codec.c325 int i1, i2, c, sample; in l1oip_4bit_alloc() local
360 sample = _4bit_to_ulaw[i1]; in l1oip_4bit_alloc()
362 sample = _4bit_to_alaw[i1]; in l1oip_4bit_alloc()
365 table_dec[(i1<<4) | i2] |= (sample<<8); in l1oip_4bit_alloc()
366 table_dec[(i2<<4) | i1] |= sample; in l1oip_4bit_alloc()
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.c431 dsp_tone_hw_message(struct dsp *dsp, u8 *sample, int len) in dsp_tone_hw_message() argument
437 (len)?HFC_SPL_LOOP_ON:HFC_SPL_LOOP_OFF, len, sample, in dsp_tone_hw_message()
/drivers/oprofile/
Dcpu_buffer.c164 size * sizeof(entry->sample->data[0]), &entry->irq_flags); in op_cpu_buffer_write_reserve()
166 entry->sample = ring_buffer_event_data(entry->event); in op_cpu_buffer_write_reserve()
168 entry->sample = NULL; in op_cpu_buffer_write_reserve()
170 if (!entry->sample) in op_cpu_buffer_write_reserve()
174 entry->data = entry->sample->data; in op_cpu_buffer_write_reserve()
176 return entry->sample; in op_cpu_buffer_write_reserve()
202 entry->sample = ring_buffer_event_data(e); in op_cpu_buffer_read_entry()
204 / sizeof(entry->sample->data[0]); in op_cpu_buffer_read_entry()
205 entry->data = entry->sample->data; in op_cpu_buffer_read_entry()
206 return entry->sample; in op_cpu_buffer_read_entry()
[all …]
Dbuffer_sync.c505 struct op_sample *sample; in sync_buffer() local
515 sample = op_cpu_buffer_read_entry(&entry, cpu); in sync_buffer()
516 if (!sample) in sync_buffer()
519 if (is_code(sample->eip)) { in sync_buffer()
520 flags = sample->event; in sync_buffer()
552 if (add_sample(mm, sample, in_kernel)) in sync_buffer()
/drivers/staging/echo/
Dfir.h160 static __inline__ int16_t fir16(struct fir16_state_t *fir, int16_t sample) in fir16() argument
168 fir->history[fir->curr_pos] = sample; in fir16()
169 fir->history[fir->curr_pos + fir->taps] = sample; in fir16()
199 fir->history[fir->curr_pos] = sample; in fir16()
200 fir->history[fir->curr_pos + fir->taps] = sample; in fir16()
228 fir->history[fir->curr_pos] = sample; in fir16()
229 fir->history[fir->curr_pos + fir->taps] = sample; in fir16()
237 fir->history[fir->curr_pos] = sample; in fir16()
273 static __inline__ int16_t fir32(struct fir32_state_t *fir, int16_t sample) in fir32() argument
280 fir->history[fir->curr_pos] = sample; in fir32()
/drivers/isdn/i4l/
Disdn_audio.c241 isdn_audio_linear2ulaw(int sample) in isdn_audio_linear2ulaw() argument
268 sign = (sample >> 8) & 0x80; /* set aside the sign */ in isdn_audio_linear2ulaw()
270 sample = -sample; /* get magnitude */ in isdn_audio_linear2ulaw()
271 if (sample > CLIP) in isdn_audio_linear2ulaw()
272 sample = CLIP; /* clip the magnitude */ in isdn_audio_linear2ulaw()
275 sample = sample + BIAS; in isdn_audio_linear2ulaw()
276 exponent = exp_lut[(sample >> 7) & 0xFF]; in isdn_audio_linear2ulaw()
277 mantissa = (sample >> (exponent + 3)) & 0x0F; in isdn_audio_linear2ulaw()
447 isdn_audio_goertzel(int *sample, modem_info * info) in isdn_audio_goertzel() argument
468 sk = sample[n] + ((cos2pik[k] * sk1) >> 15) - sk2; in isdn_audio_goertzel()
/drivers/input/touchscreen/
Dwm9705.c215 static int wm9705_poll_sample(struct wm97xx *wm, int adcsel, int *sample) in wm9705_poll_sample() argument
254 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD); in wm9705_poll_sample()
259 if ((*sample & WM97XX_ADCSEL_MASK) != adcsel) { in wm9705_poll_sample()
261 *sample & WM97XX_ADCSEL_MASK); in wm9705_poll_sample()
265 if (!(*sample & WM97XX_PEN_DOWN)) { in wm9705_poll_sample()
Dwm9712.c255 static int wm9712_poll_sample(struct wm97xx *wm, int adcsel, int *sample) in wm9712_poll_sample() argument
294 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD); in wm9712_poll_sample()
299 if ((*sample & WM97XX_ADCSEL_MASK) != adcsel) { in wm9712_poll_sample()
301 *sample & WM97XX_ADCSEL_MASK); in wm9712_poll_sample()
305 if (!(*sample & WM97XX_PEN_DOWN)) { in wm9712_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 & WM97XX_ADCSRC_MASK) != ffs(adcsel >> 1) << 12) { in wm9713_poll_sample()
309 *sample & WM97XX_ADCSRC_MASK); in wm9713_poll_sample()
313 if (!(*sample & WM97XX_PEN_DOWN)) { in wm9713_poll_sample()
Dads7846.c198 __be16 sample; member
249 req->xfer[3].rx_buf = &req->sample; in ads7846_read12_ser()
274 status = be16_to_cpu(req->sample); in ads7846_read12_ser()
/drivers/macintosh/
Drack-meter.c314 u32 sample = 0; in rackmeter_calc_sample() local
317 sample >>= 1; in rackmeter_calc_sample()
318 sample |= ((rm->ubuf[led] >= 0x80) << 15); in rackmeter_calc_sample()
320 return (sample << 17) | (sample >> 15); in rackmeter_calc_sample()
Dwindfarm_pid.h46 extern s32 wf_pid_run(struct wf_pid_state *st, s32 sample);
/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()
/drivers/staging/comedi/drivers/
Drtd520.c1312 sampl_t sample; in ai_read_n() local
1330 sample = d + 2048; /* convert to comedi unsigned data */ in ai_read_n()
1332 sample = d; in ai_read_n()
1334 if (!comedi_buf_put(s->async, sample)) in ai_read_n()
1349 sampl_t sample; in ai_read_dregs() local
1358 sample = d + 2048; /* convert to comedi unsigned data */ in ai_read_dregs()
1360 sample = d; in ai_read_dregs()
1362 if (!comedi_buf_put(s->async, sample)) in ai_read_dregs()
1444 sampl_t sample; in ai_process_dma() local
1447 sample = (*dp >> 3) + 2048; /* convert to comedi unsigned data */ in ai_process_dma()
[all …]
/drivers/char/
Drandom.c616 } sample; in add_timer_randomness() local
625 sample.jiffies = jiffies; in add_timer_randomness()
626 sample.cycles = get_cycles(); in add_timer_randomness()
627 sample.num = num; in add_timer_randomness()
628 mix_pool_bytes(&input_pool, &sample, sizeof(sample)); in add_timer_randomness()
637 delta = sample.jiffies - state->last_time; in add_timer_randomness()
638 state->last_time = sample.jiffies; in add_timer_randomness()
/drivers/staging/asus_oled/
DTODO7 - put the sample .txt files and README file somewhere.
/drivers/net/mlx4/
Dmlx4_en.h171 #define AVG_PERF_COUNTER(cnt, sample) \ argument
172 ((cnt) = ((cnt) * (AVG_SIZE - 1) + (sample) * AVG_FACTOR) / AVG_SIZE)
181 #define AVG_PERF_COUNTER(cnt, sample) do {} while (0) argument
/drivers/sn/
Dioc3.c34 static inline unsigned mcr_pack(unsigned pulse, unsigned sample) in mcr_pack() argument
36 return (pulse << 10) | (sample << 2); in mcr_pack()
/drivers/net/
Dioc3-eth.c227 static inline u32 mcr_pack(u32 pulse, u32 sample) in mcr_pack() argument
229 return (pulse << 10) | (sample << 2); in mcr_pack()
/drivers/usb/misc/
DKconfig269 including sample test device firmware and "how to use it".
/drivers/net/usb/
DKconfig310 by some sample firmware from Epson.
/drivers/usb/gadget/
DKconfig700 which includes sample code for accessing the device file.

12