/drivers/staging/iio/resolver/ |
H A D | ad2s1210.h | 13 unsigned sample; member in struct:ad2s1210_platform_data
|
H A D | ad2s1200.c | 27 /* 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];
|
/drivers/media/video/cx25821/ |
H A D | cx25821-biffuncs.h | 28 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 D | dsp_biquad.h | 53 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 D | l1oip_codec.c | 6 * -> compression by reducing the number of sample resolution to 4 34 Each sample is converted to a-LAW with only 16 steps of level resolution. 259 * The result size must be the number of sample in packet. (2 * input data) 326 int i1, i2, c, sample; local 359 sample = _4bit_to_ulaw[i1]; 361 sample = _4bit_to_alaw[i1]; 364 table_dec[(i1 << 4) | i2] |= (sample << 8); 365 table_dec[(i2 << 4) | i1] |= sample;
|
H A D | dsp_tones.c | 42 /* the last sample+1 is in phase with the first sample. the error is low */ 368 * count - the sample from the beginning of the pattern (phase) 371 * return - the sk_buff with the sample 391 count = tone->count; /* gives current sample */ 393 /* copy sample */ 395 /* find sample to start with */ 438 dsp_tone_hw_message(struct dsp *dsp, u8 *sample, int len) argument 444 (len) ? HFC_SPL_LOOP_ON : HFC_SPL_LOOP_OFF, len, sample,
|
H A D | dsp_audio.c | 104 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 D | dsp_cmx.c | 1308 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/staging/cxt1e1/ |
H A D | comet.c | 380 ** 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/staging/echo/ |
H A D | fir.h | 41 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/hwmon/ |
H A D | mc13783-adc.c | 57 unsigned int sample[4]; local 62 channel, 0, 0, sample); 68 *val = (sample[channel % 4] >> (channel > 3 ? 14 : 2)) & 0x3ff;
|
/drivers/input/touchscreen/ |
H A D | mc13783_ts.c | 41 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 D | wm9705.c | 57 * 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 D | wm9712.c | 70 * 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 D | wm9713.c | 70 * 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 D | tnetv107x-ts.c | 82 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...] |
/drivers/media/rc/ |
H A D | ir-lirc-codec.c | 36 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 D | fintek-cir.c | 293 u8 sample; local 297 sample = fintek->buf[i]; 300 fintek->cmd = sample; 315 fintek->rem = fintek_cmdsize(fintek->cmd, sample); 324 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); 325 rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK) 349 u8 sample, status; local 359 sample = fintek_cir_reg_read(fintek, CIR_RX_DATA); 360 fit_dbg("%s: sample: 0x%02x", __func__, sample); [all...] |
/drivers/oprofile/ |
H A D | cpu_buffer.c | 130 * 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 D | buffer_sync.c | 246 /* 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/gpu/drm/nouveau/ |
H A D | nv04_dac.c | 52 * arbitrary limit to number of sense oscillations tolerated in one sample 58 * arbitrary limit to number of conflicting sample pairs to tolerate at a 181 /* take sample pairs until both samples in the pair agree */ 225 uint32_t sample, testval, regoffset = nv04_dac_output_offset(encoder); local 293 sample = NVReadRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + regoffset); 295 sample &= NVReadRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + regoffset); 312 return sample;
|
H A D | nv17_tv.c | 44 uint32_t sample = 0; local 95 sample |= NVReadRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + regoffset) 101 sample |= NVReadRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + regoffset) 117 return sample;
|
/drivers/isdn/hardware/eicon/ |
H A D | capidtmf.c | 185 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));
|
/drivers/isdn/i4l/ |
H A D | isdn_audio.c | 176 #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/macintosh/ |
H A D | rack-meter.c | 37 /* Number of samples in a sample buffer */ 313 u32 sample = 0; local 316 sample >>= 1; 317 sample |= ((rm->ubuf[led] >= 0x80) << 15); 319 return (sample << 17) | (sample >> 15); 355 /* Fill it now. This routine converts the 8 bits depth sample array
|