/drivers/media/rc/ |
H A D | ene_ir.c | 192 /* Read properities of hw sample buffer */ 284 /* Gets address of next sample from HW ring buffer */ 406 /* set sample period*/ 453 input with a maximum sample */ 611 /* TX one sample - must be called with dev->hw_lock*/ 615 u32 sample; local 623 /* Grab next TX sample */ 632 dbg("TX: last sample sent by hardware"); 639 sample = dev->tx_buffer[dev->tx_pos++]; 642 dev->tx_sample = DIV_ROUND_CLOSEST(sample, sample_perio [all...] |
H A D | nuvoton-cir.c | 8 * sample code upon which portions of this driver are based. Indirect 392 /* set sample limit count (PE interrupt raised when reached) */ 402 * sample period (currently 50us) 430 /* set sample limit count (PE interrupt raised when reached) */ 440 * sample period (currently 50us) 615 * sample data in the raw event kfifo until we see 0x7<something> (except f) 622 u8 sample; local 638 sample = nvt->buf[i]; 640 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); 641 rawir.duration = US_TO_NS((sample [all...] |
/drivers/media/video/uvc/ |
H A D | uvc_video.c | 368 struct uvc_clock_sample *sample; local 456 sample = &stream->clock.samples[stream->clock.head]; 457 sample->dev_stc = get_unaligned_le32(&data[header_size - 6]); 458 sample->dev_sof = dev_sof; 459 sample->host_sof = host_sof; 460 sample->host_ts = ts; 505 * uvc_video_clock_host_sof - Return the host SOF value for a clock sample 521 static u16 uvc_video_clock_host_sof(const struct uvc_clock_sample *sample) argument 526 delta_sof = (sample->host_sof - sample [all...] |
/drivers/sn/ |
H A D | ioc3.c | 35 static inline unsigned mcr_pack(unsigned pulse, unsigned sample) argument 37 return (pulse << 10) | (sample << 2);
|
/drivers/staging/media/lirc/ |
H A D | lirc_ene0100.h | 33 #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/char/ |
H A D | random.c | 630 } 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/staging/comedi/drivers/ |
H A D | pcmmio.c | 1205 short sample, adc_adjust = 0; local 1255 sample = inb(iobase + iooffset + 0); 1258 sample |= inb(iobase + iooffset + 1) << 8; 1259 sample += adc_adjust; /* adjustment .. munge data */ 1260 data[n] = sample;
|
H A D | das1800.c | 116 #define FIFO_SIZE 1024 /* 1024 sample fifo */ 1040 uint16_t sample) 1042 sample += 1 << (thisboard->resolution - 1); 1043 return sample; 1780 static const int sample_size = 2; /* size in bytes of one sample from board */ 1039 munge_bipolar_sample(const struct comedi_device *dev, uint16_t sample) argument
|
H A D | rtd520.c | 48 timers: ADC sample, pacer, burst, about, delay, DA1, DA2 49 sample counter 91 With DMA, you can sample at 1.15Mhz with 70% idle on a 400Mhz K6-2 463 /* Set sample counter source select (write only) */ 550 /* ADC sample counter, 10bit */ 1364 short sample; local 1382 sample = d + 2048; /* convert to comedi unsigned data */ 1384 sample = d; 1386 if (!comedi_buf_put(s->async, sample)) 1401 short sample; local 1495 short sample; local [all...] |
H A D | ni_mio_common.c | 1380 /* Check if there's a single sample stuck in the FIFO */ 1399 /* Assume there is a single sample stuck in the FIFO */ 1400 ni_writel(0x01, AIFIFO_Control_6143); /* Get stranded sample into FIFO */ 1501 /* Check if stranded sample is present */ 1503 ni_writel(0x01, AIFIFO_Control_6143); /* Get stranded sample into FIFO */ 1544 /* Check if there's a single sample stuck in the FIFO */ 1561 /* Check if there's a single sample stuck in the FIFO */ 1563 ni_writel(0x01, AIFIFO_Control_6143); /* Get stranded sample into FIFO */ 1839 /* The 6143 has 32-bit FIFOs. You need to strobe a bit to move a single 16bit stranded sample into the FIFO */ 1843 ni_writel(0x01, AIFIFO_Control_6143); /* Get stranded sample int 5956 unsigned short sample; local [all...] |
/drivers/input/touchscreen/ |
H A D | ad7877.c | 168 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/mfd/ |
H A D | mc13xxx-core.c | 586 unsigned int *sample) 662 MC13XXX_ADC2, &sample[i]); 584 mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, unsigned int mode, unsigned int channel, u8 ato, bool atox, unsigned int *sample) argument
|
/drivers/net/ethernet/sgi/ |
H A D | ioc3-eth.c | 225 static inline u32 mcr_pack(u32 pulse, u32 sample) argument 227 return (pulse << 10) | (sample << 2);
|
/drivers/net/wireless/b43/ |
H A D | phy_lp.c | 1791 struct b43_c32 sample; local 1807 sample = b43_cordic(angle); 1809 buf[i] = CORDIC_CONVERT((sample.i * max) & 0xFF) << 8; 1810 buf[i] |= CORDIC_CONVERT((sample.q * max) & 0xFF);
|
/drivers/power/ |
H A D | ab8500_fg.c | 368 * @sample: the capacity in mAh to add to the filter 373 static int ab8500_fg_add_cap_sample(struct ab8500_fg *di, int sample) argument 381 avg->sum += sample - avg->samples[avg->pos]; 382 avg->samples[avg->pos] = sample; 393 * Check the time stamp for each sample. If too old, 394 * replace with latest sample 428 * @sample: the capacity in mAh to fill the filter with 432 static void ab8500_fg_fill_cap_sample(struct ab8500_fg *di, int sample) argument 441 avg->samples[i] = sample; 447 avg->sum = sample * NBR_AVG_SAMPLE [all...] |