Searched refs:sample (Results 1 - 25 of 44) sorted by relevance

12

/drivers/staging/iio/resolver/
H A Dad2s1210.h13 unsigned sample; member in struct:ad2s1210_platform_data
H A Dad2s1200.c27 /* input pin sample and rdvel is controlled by driver */
38 int sample; member in struct:ad2s1200_state
54 gpio_set_value(st->sample, 0);
57 gpio_set_value(st->sample, 1);
77 /* delay (2 * AD2S1200_TSCLK + 20) ns for sample pulse */
122 st->sample = pins[0];
H A Dad2s1210.c402 /* read the fault register since last sample */
425 gpio_set_value(st->pdata->sample, 0);
428 gpio_set_value(st->pdata->sample, 1);
432 gpio_set_value(st->pdata->sample, 0);
433 gpio_set_value(st->pdata->sample, 1);
489 gpio_set_value(st->pdata->sample, 0);
535 gpio_set_value(st->pdata->sample, 1);
658 { st->pdata->sample, GPIOF_DIR_IN, "sample" },
672 { st->pdata->sample, GPIOF_DIR_I
[all...]
/drivers/media/video/cx25821/
H A Dcx25821-biffuncs.h28 inline u8 getBit(u32 sample, u8 index) argument
30 return (u8) ((sample >> index) & 1);
38 inline u32 setBitAtPos(u32 sample, u8 bit) argument
40 sample |= (1 << bit);
41 return sample;
/drivers/isdn/mISDN/
H A Ddsp_audio.c104 static unsigned char linear2ulaw(short sample) argument
126 /* Get the sample into sign-magnitude. */
127 sign = (sample >> 8) & 0x80; /* set aside the sign */
129 sample = -sample; /* get magnitude */
132 sample = sample + BIAS;
133 exponent = exp_lut[(sample >> 7) & 0xFF];
134 mantissa = (sample >> (exponent + 3)) & 0x0F;
192 * the seven bit sample i
254 s32 sample; local
318 register s32 sample; local
[all...]
H A Ddsp_biquad.h53 static inline int16_t biquad2(struct biquad2_state *bq, int16_t sample) argument
58 z0 = sample*bq->gain + bq->z1*bq->a1 + bq->z2*bq->a2;
H A Ddsp_cmx.c1308 register s32 sample; local
1487 sample = dsp_audio_law_to_s32[p[t]] +
1490 if (sample < -32768)
1491 sample = -32768;
1492 else if (sample > 32767)
1493 sample = 32767;
1494 *d++ = dsp_audio_s16_to_law[sample & 0xffff];
1520 sample = dsp_audio_law_to_s32[p[t]] + *c++ -
1522 if (sample < -32768)
1523 sample
[all...]
/drivers/oprofile/
H A Dcpu_buffer.c130 * This function prepares the cpu buffer to write a sample.
136 * op_cpu_buffer_write_commit() after preparing the sample. In case of
138 * sample.
146 size * sizeof(entry->sample->data[0]));
149 entry->sample = ring_buffer_event_data(entry->event);
151 entry->data = entry->sample->data;
153 return entry->sample;
169 entry->sample = ring_buffer_event_data(e);
171 / sizeof(entry->sample->data[0]);
172 entry->data = entry->sample
186 struct op_sample *sample; local
239 struct op_sample *sample; local
358 struct op_sample *sample; local
[all...]
H A Dbuffer_sync.c246 /* Convert the EIP value of a sample into a persistent dentry/offset
372 * Add a sample to the global event buffer. If possible the
373 * sample is converted into a persistent dentry/offset pair
387 /* add userspace sample */
513 struct op_sample *sample; local
523 sample = op_cpu_buffer_read_entry(&entry, cpu);
524 if (!sample)
527 if (is_code(sample->eip)) {
528 flags = sample->event;
557 /* ignore sample */
[all...]
/drivers/input/touchscreen/
H A Dmc13783_ts.c41 unsigned int sample[4]; member in struct:mc13783_ts_priv
80 x0 = priv->sample[0] & 0xfff;
81 x1 = priv->sample[1] & 0xfff;
82 x2 = priv->sample[2] & 0xfff;
83 y0 = priv->sample[3] & 0xfff;
84 y1 = (priv->sample[0] >> 12) & 0xfff;
85 y2 = (priv->sample[1] >> 12) & 0xfff;
86 cr0 = (priv->sample[2] >> 12) & 0xfff;
87 cr1 = (priv->sample[3] >> 12) & 0xfff;
128 mode, channel, priv->sample)
[all...]
H A Dtnetv107x-ts.c82 struct sample { struct
95 struct sample samples[TSC_SAMPLES];
99 static int tsc_read_sample(struct tsc_data *ts, struct sample* sample) argument
121 sample->x = x;
122 sample->y = y;
123 sample->p = p;
172 struct sample *sample; local
178 sample
[all...]
H A Dwm9705.c57 * Set adc sample delay.
70 MODULE_PARM_DESC(delay, "Set adc sample delay.");
104 * ADC sample delay times in uS
160 /* polling mode sample settling delay */
169 dev_dbg(wm->dev, "setting adc sample delay to %d u Secs.",
213 * Read a sample from the WM9705 adc in polling mode.
215 static int wm9705_poll_sample(struct wm97xx *wm, int adcsel, int *sample) argument
248 dev_dbg(wm->dev, "adc sample timeout");
252 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD);
256 /* check we have correct sample */
[all...]
H A Dwm9712.c70 * Set adc sample delay.
83 MODULE_PARM_DESC(delay, "Set adc sample delay.");
122 * ADC sample delay times in uS
192 /* polling mode sample settling delay */
199 dev_dbg(wm->dev, "setting adc sample delay to %d u Secs.",
253 * Read a sample from the WM9712 adc in polling mode.
255 static int wm9712_poll_sample(struct wm97xx *wm, int adcsel, int *sample) argument
288 dev_dbg(wm->dev, "adc sample timeout");
292 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD);
296 /* check we have correct sample */
[all...]
H A Dwm9713.c70 * Set adc sample delay.
83 MODULE_PARM_DESC(delay, "Set adc sample delay.");
122 * ADC sample delay times in uS
196 /* sample settling delay */
200 dev_info(wm->dev, "setting adc sample delay to %d u Secs.",
258 * Read a sample from the WM9713 adc in polling mode.
260 static int wm9713_poll_sample(struct wm97xx *wm, int adcsel, int *sample) argument
298 dev_dbg(wm->dev, "adc sample timeout");
302 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD);
306 /* check we have correct sample */
[all...]
H A Dad7877.c168 u16 sample ____cacheline_aligned;
236 req->xfer[1].rx_buf = &req->sample;
243 ret = status ? : req->sample;
279 int sample; local
312 req->xfer[3].rx_buf = &req->sample;
330 sample = req->sample;
334 return status ? : sample;
/drivers/staging/echo/
H A Dfir.h41 history sample offsets that are 16 bit aligned - the dual MAC needs
146 static inline int16_t fir16(struct fir16_state_t *fir, int16_t sample) argument
150 fir->history[fir->curr_pos] = sample;
151 fir->history[fir->curr_pos + fir->taps] = sample;
159 fir->history[fir->curr_pos] = sample;
195 static inline int16_t fir32(struct fir32_state_t *fir, int16_t sample) argument
202 fir->history[fir->curr_pos] = sample;
/drivers/media/rc/
H A Dir-lirc-codec.c36 int sample; local
50 sample = LIRC_FREQUENCY(ev.carrier);
51 IR_dprintk(2, "carrier report (freq: %d)\n", sample);
66 sample = LIRC_TIMEOUT(ev.duration / 1000);
67 IR_dprintk(2, "timeout report (duration: %d)\n", sample);
69 /* Normal sample */
89 sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) :
96 (unsigned char *) &sample);
H A Dfintek-cir.c283 u8 sample; local
287 sample = fintek->buf[i];
290 fintek->cmd = sample;
305 fintek->rem = fintek_cmdsize(fintek->cmd, sample);
314 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0);
315 rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK)
339 u8 sample, status; local
349 sample = fintek_cir_reg_read(fintek, CIR_RX_DATA);
350 fit_dbg("%s: sample: 0x%02x", __func__, sample);
[all...]
/drivers/staging/cxt1e1/
H A Dcomet.c380 ** Write register, (F2), from the sample and unit inputs.
385 WrtXmtWaveform (ci_t * ci, comet_t * comet, u_int32_t sample, u_int32_t unit, u_int8_t data) argument
389 WaveformAddr = (sample << 3) + (unit & 7);
406 u_int32_t sample, unit; local
408 for (sample = 0; sample < COMET_NUM_SAMPLES; sample++)
411 WrtXmtWaveform (ci, comet, sample, unit, table[sample][unit]);
/drivers/macintosh/
H A Dwindfarm_pid.h12 * for CPU control with 2 input sample types (temp and power)
37 int index; /* index of current sample */
46 extern s32 wf_pid_run(struct wf_pid_state *st, s32 sample);
/drivers/staging/media/lirc/
H A Dlirc_ene0100.h33 #define ENE_SAMPLE_BUFFER 0xF8F0 /* regular sample buffer */
34 #define ENE_SAMPLE_SPC_MASK (1 << 7) /* sample is space */
39 /* fan input sample buffer */
41 /* each sample of normal buffer */
43 #define ENE_FAN_SMPL_PULS_MSK 0x8000 /* this bit of combined sample */
44 /* if set, says that sample is pulse */
68 #define ENE_SAMPLE_PERIOD_FAN 61 /* fan input has fixed sample period */
93 #define ENE_CIR_SAMPLE_PERIOD 0xFEC8 /* sample period in us */
100 /* ENE_TX_INPUT, in same manner as it is read from sample buffer */
101 /* sample perio
165 int sample; member in struct:ene_device
[all...]
/drivers/hwmon/
H A Dmc13783-adc.c51 unsigned int sample[4]; local
56 channel, sample);
62 *val = (sample[channel % 4] >> (channel > 3 ? 14 : 2)) & 0x3ff;
/drivers/isdn/i4l/
H A Disdn_audio.c176 #define AMP_BITS 9 /* bits per sample, reduced to avoid overflow */
242 isdn_audio_linear2ulaw(int sample) argument
268 /* Get the sample into sign-magnitude. */
269 sign = (sample >> 8) & 0x80; /* set aside the sign */
271 sample = -sample; /* get magnitude */
272 if (sample > CLIP)
273 sample = CLIP; /* clip the magnitude */
276 sample = sample
448 isdn_audio_goertzel(int *sample, modem_info * info) argument
[all...]
/drivers/char/
H A Drandom.c630 } sample; local
639 sample.jiffies = jiffies;
642 if (!arch_get_random_int(&sample.cycles))
643 sample.cycles = get_cycles();
645 sample.num = num;
646 mix_pool_bytes(&input_pool, &sample, sizeof(sample));
655 delta = sample.jiffies - state->last_time;
656 state->last_time = sample.jiffies;
/drivers/isdn/hardware/eicon/
H A Dcapidtmf.c185 static void capidtmf_goertzel_loop (long *buffer, long *coeffs, short *sample, long count) argument
200 q0 = sample[j] - q2 + (c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15);
211 q0 = sample[j] - q2 - ((c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15));
226 q0 = sample[j] - q2 + (c * (q1 >> 16)) + (((dword)(((dword)(c >> 1)) * ((dword)(q1 & 0xffff)))) >> 15);
237 q0 = sample[j] - q2 - ((c * (q1 >> 16)) + (((dword)(((dword)(c >> 1)) * ((dword)(q1 & 0xffff)))) >> 15));

Completed in 698 milliseconds

12