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

123

/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);
78 /* delay (2 * AD2S1200_TSCLK + 20) ns for sample pulse */
126 st->sample = pins[0];
H A Dad2s1210.c388 /* read the fault register since last sample */
411 gpio_set_value(st->pdata->sample, 0);
414 gpio_set_value(st->pdata->sample, 1);
418 gpio_set_value(st->pdata->sample, 0);
419 gpio_set_value(st->pdata->sample, 1);
475 gpio_set_value(st->pdata->sample, 0);
521 gpio_set_value(st->pdata->sample, 1);
643 { st->pdata->sample, GPIOF_DIR_IN, "sample" },
657 { st->pdata->sample, GPIOF_DIR_I
[all...]
/drivers/media/pci/cx25821/
H A Dcx25821-biffuncs.h28 static inline u8 getBit(u32 sample, u8 index) argument
30 return (u8) ((sample >> index) & 1);
38 static 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.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
[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.c235 /* Convert the EIP value of a sample into a persistent dentry/offset
361 * Add a sample to the global event buffer. If possible the
362 * sample is converted into a persistent dentry/offset pair
376 /* add userspace sample */
502 struct op_sample *sample; local
512 sample = op_cpu_buffer_read_entry(&entry, cpu);
513 if (!sample)
516 if (is_code(sample->eip)) {
517 flags = sample->event;
546 /* ignore sample */
[all...]
/drivers/input/touchscreen/
H A Dmc13783_ts.c41 unsigned int sample[4]; member in struct:mc13783_ts_priv
81 x0 = priv->sample[0] & 0xfff;
82 x1 = priv->sample[1] & 0xfff;
83 x2 = priv->sample[2] & 0xfff;
84 y0 = priv->sample[3] & 0xfff;
85 y1 = (priv->sample[0] >> 12) & 0xfff;
86 y2 = (priv->sample[1] >> 12) & 0xfff;
87 cr0 = (priv->sample[2] >> 12) & 0xfff;
88 cr1 = (priv->sample[3] >> 12) & 0xfff;
131 priv->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.\n",
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\n");
292 *sample = wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD);
296 /* check we have correct 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 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...]
/drivers/misc/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/cpufreq/
H A Dintel_pstate.c66 struct sample { struct
111 struct sample sample; member in struct:cpudata
614 struct sample *sample = &cpu->sample; local
617 core_pct = int_tofp(sample->aperf) * int_tofp(100);
618 core_pct = div64_u64(core_pct, int_tofp(sample->mperf));
620 sample->freq = fp_toint(
625 sample
700 struct sample *sample; local
771 struct sample *sample; local
[all...]
/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.c296 u8 sample; local
301 sample = fintek->buf[i];
304 fintek->cmd = sample;
319 fintek->rem = fintek_cmdsize(fintek->cmd, sample);
328 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0);
329 rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK)
357 u8 sample, status; local
367 sample = fintek_cir_reg_read(fintek, CIR_RX_DATA);
368 fit_dbg("%s: sample: 0x%02x", __func__, sample);
[all...]
/drivers/iio/adc/
H A Dad7266.c47 __be16 sample[2]; member in struct:ad7266_state::__anon1383
55 return spi_read(st->spi, &st->data.sample[0], 2);
61 return spi_read(st->spi, &st->data.sample[0], 1);
90 ret = spi_read(st->spi, st->data.sample, 4);
143 *val = be16_to_cpu(st->data.sample[address % 2]);
448 st->single_xfer[0].rx_buf = &st->data.sample[0];
452 st->single_xfer[1].rx_buf = st->data.sample;
456 st->single_xfer[2].tx_buf = &st->data.sample[0];
H A Dad_sigma_delta.c251 unsigned int sample, raw_sample; local
295 sample = raw_sample >> chan->scan_type.shift;
296 sample &= (1 << chan->scan_type.realbits) - 1;
297 *val = sample;
/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/mmc/host/
H A Ddw_mmc-exynos.c271 static inline void dw_mci_exynos_set_clksmpl(struct dw_mci *host, u8 sample) argument
275 clksel = (clksel & ~0x7) | SDMMC_CLKSEL_CCLK_SAMPLE(sample);
282 u8 sample; local
285 sample = (clksel + 1) & 0x7;
286 clksel = (clksel & ~0x7) | sample;
288 return sample;
/drivers/gpu/drm/nouveau/nvif/
H A Dlist.h294 #define __container_of(ptr, sample, member) \
295 (void *)container_of((ptr), typeof(*(sample)), member)
/drivers/hwmon/
H A Dmc13783-adc.c57 unsigned int sample[4]; local
62 channel, 0, 0, sample);
68 *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/media/usb/msi2500/
H A Dmsi2500.c155 u32 sample; /* for sample rate calc */ member in struct:msi2500_state
181 * | 00- 03 | sequence number of first sample in that USB packet
187 * signed 8-bit sample
194 * | 00- 03 | sequence number of first sample in that USB packet
229 * for bit shifting sample by given bits, increasing actual sampling resolution.
238 * | 00- 03 | sequence number of first sample in that USB packet
244 * signed 12-bit sample
250 * | 00- 03 | sequence number of first sample in that USB packet
256 * signed 14-bit sample
263 u32 sample[3]; local
[all...]

Completed in 292 milliseconds

123