Searched refs:tv (Results 1 - 25 of 95) sorted by relevance

1234

/drivers/usb/misc/
H A Dtrancevibrator.c53 struct trancevibrator *tv = usb_get_intfdata(intf); local
55 return sprintf(buf, "%d\n", tv->speed);
62 struct trancevibrator *tv = usb_get_intfdata(intf); local
70 old = tv->speed;
71 tv->speed = temp;
73 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed);
76 retval = usb_control_msg(tv->udev, usb_sndctrlpipe(tv->udev, 0),
79 tv
[all...]
/drivers/rtc/
H A Dhctosys.c31 struct timespec tv = { local
57 rtc_tm_to_time(&tm, &tv.tv_sec);
59 do_settimeofday(&tv);
66 (unsigned int) tv.tv_sec);
/drivers/isdn/hardware/eicon/
H A Ddivamnt.c91 struct timeval tv; local
93 do_gettimeofday(&tv);
95 if (tv.tv_sec > start_time.tv_sec) {
96 if (start_time.tv_usec > tv.tv_usec) {
97 tv.tv_sec--;
98 tv.tv_usec += 1000000;
100 *sec = (dword) (tv.tv_sec - start_time.tv_sec);
101 *usec = (dword) (tv.tv_usec - start_time.tv_usec);
102 } else if (tv.tv_sec == start_time.tv_sec) {
104 if (start_time.tv_usec < tv
[all...]
/drivers/staging/rts5139/
H A Drts51x.h129 struct timeval tv; local
134 do_gettimeofday(&tv);
136 timeval_buf[0] = (u8) (tv.tv_sec >> 24);
137 timeval_buf[1] = (u8) (tv.tv_sec >> 16);
138 timeval_buf[2] = (u8) (tv.tv_sec >> 8);
139 timeval_buf[3] = (u8) (tv.tv_sec);
140 timeval_buf[4] = (u8) (tv.tv_usec >> 24);
141 timeval_buf[5] = (u8) (tv.tv_usec >> 16);
142 timeval_buf[6] = (u8) (tv.tv_usec >> 8);
143 timeval_buf[7] = (u8) (tv
[all...]
/drivers/staging/rts_pstor/
H A Drtsx.h156 struct timeval tv; local
161 do_gettimeofday(&tv);
163 timeval_buf[0] = (u8)(tv.tv_sec >> 24);
164 timeval_buf[1] = (u8)(tv.tv_sec >> 16);
165 timeval_buf[2] = (u8)(tv.tv_sec >> 8);
166 timeval_buf[3] = (u8)(tv.tv_sec);
167 timeval_buf[4] = (u8)(tv.tv_usec >> 24);
168 timeval_buf[5] = (u8)(tv.tv_usec >> 16);
169 timeval_buf[6] = (u8)(tv.tv_usec >> 8);
170 timeval_buf[7] = (u8)(tv
[all...]
/drivers/isdn/mISDN/
H A Dclock.c26 * enabled. If function call is delayed, tv must be set with the timestamp
142 mISDN_clock_update(struct mISDNclock *iclock, int samples, struct timeval *tv) argument
162 if (tv) { /* tv must be set, if function call is delayed */
163 iclock_tv.tv_sec = tv->tv_sec;
164 iclock_tv.tv_usec = tv->tv_usec;
169 if (tv) { /* tv must be set, if function call is delayed */
170 tv_now.tv_sec = tv->tv_sec;
171 tv_now.tv_usec = tv
[all...]
/drivers/gpu/drm/radeon/
H A Dradeon_legacy_tv.c33 /* tv standard constants */
46 /* tv pll setting for 27 mhz ref clk */
55 /* tv pll setting for 14 mhz ref clk */
166 * Table of all allowed modes for tv output
393 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr);
394 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr);
395 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr);
398 tmp = ((uint32_t)tv_dac->tv.h_code_timing[i] << 14) | ((uint32_t)tv_dac->tv.h_code_timing[i+1]);
400 if (tv_dac->tv
[all...]
/drivers/media/video/saa7134/
H A Dsaa7134-cards.c88 .tv = 1,
93 .tv = 1,
115 .tv = 1,
121 .tv = 1,
164 .tv = 1,
205 .tv = 1,
236 .tv = 1,
242 .tv = 1,
286 .tv = 1,
292 .tv
7269 struct tveeprom tv; local
[all...]
/drivers/staging/media/lirc/
H A Dlirc_parallel.c146 struct timeval tv, now; local
150 do_gettimeofday(&tv);
151 tv.tv_sec++; /* wait max. 1 sec. */
159 } while (count < 1000 && (now.tv_sec < tv.tv_sec
160 || (now.tv_sec == tv.tv_sec
161 && now.tv_usec < tv.tv_usec)));
163 timeelapsed = ((now.tv_sec + 1 - tv.tv_sec)*1000000
164 + (now.tv_usec - tv.tv_usec));
231 struct timeval tv; local
255 do_gettimeofday(&tv);
[all...]
H A Dlirc_serial.c647 struct timeval tv; local
671 do_gettimeofday(&tv);
703 tv.tv_sec, lasttv.tv_sec,
704 tv.tv_usec, lasttv.tv_usec);
708 deltv = tv.tv_sec-lasttv.tv_sec;
709 if (tv.tv_sec < lasttv.tv_sec ||
710 (tv.tv_sec == lasttv.tv_sec &&
711 tv.tv_usec < lasttv.tv_usec)) {
718 tv.tv_sec, lasttv.tv_sec,
719 tv
[all...]
H A Dlirc_sasem.c573 struct timeval tv; local
595 do_gettimeofday(&tv);
596 ms = (tv.tv_sec - context->presstime.tv_sec) * 1000 +
597 (tv.tv_usec - context->presstime.tv_usec) / 1000;
613 context->presstime.tv_sec = tv.tv_sec;
614 context->presstime.tv_usec = tv.tv_usec;
624 context->presstime.tv_sec = tv.tv_sec;
625 context->presstime.tv_usec = tv.tv_usec;
/drivers/input/misc/
H A Dhp_sdc_rtc.c427 struct timeval tv; local
445 if (hp_sdc_rtc_read_rt(&tv)) {
449 tv.tv_sec, (int)tv.tv_usec/1000);
452 if (hp_sdc_rtc_read_fhs(&tv)) {
456 tv.tv_sec, (int)tv.tv_usec/1000);
459 if (hp_sdc_rtc_read_mt(&tv)) {
463 tv.tv_sec, (int)tv
[all...]
/drivers/media/video/bt8xx/
H A Dbttv-input.c197 struct timeval tv; local
202 do_gettimeofday(&tv);
205 if (tv.tv_sec - ir->base_time.tv_sec > 1) {
208 gap = 1000000 * (tv.tv_sec - ir->base_time.tv_sec) +
209 tv.tv_usec - ir->base_time.tv_usec;
249 struct timeval tv; local
259 do_gettimeofday(&tv);
262 if (tv.tv_sec - ir->base_time.tv_sec > 1) {
265 gap = 1000000 * (tv.tv_sec - ir->base_time.tv_sec) +
266 tv
[all...]
/drivers/media/video/au0828/
H A Dau0828-cards.c156 struct tveeprom tv; local
158 tveeprom_hauppauge_analog(&dev->i2c_client, &tv, eeprom_data);
159 dev->board.tuner_type = tv.tuner_type;
162 switch (tv.model) {
178 "unknown hauppauge model #%d\n", __func__, tv.model);
183 __func__, tv.model);
/drivers/media/video/cx18/
H A Dcx18-driver.c325 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) argument
335 memset(tv, 0, sizeof(*tv));
343 tveeprom_hauppauge_analog(&c, tv, eedata);
347 tv->model = 0x718;
353 tv->model = 0xffffffff;
361 struct tveeprom tv; local
363 cx18_read_eeprom(cx, &tv);
370 switch (tv.model) {
402 "(cardtype=1)\n", tv
[all...]
H A Dcx18-cards.h113 unsigned short tv[4]; /* tv tuner i2c addresses to probe */ member in struct:cx18_card_tuner_i2c
/drivers/input/serio/
H A Dhp_sdc_mlc.c152 struct timeval tv; local
163 do_gettimeofday(&tv);
164 tv.tv_usec += USEC_PER_SEC * (tv.tv_sec - mlc->instart.tv_sec);
165 if (tv.tv_usec - mlc->instart.tv_usec > mlc->intimeout) {
167 tv.tv_usec - mlc->instart.tv_usec,
H A Dhil_mlc.c277 struct timeval tv; local
279 do_gettimeofday(&tv);
281 if (mlc->lcv && (tv.tv_sec - mlc->lcv_tv.tv_sec) < 5)
284 mlc->lcv_tv = tv;
735 struct timeval tv; local
740 do_gettimeofday(&tv);
741 tv.tv_usec += USEC_PER_SEC * (tv.tv_sec - mlc->instart.tv_sec);
742 tv.tv_usec -= mlc->instart.tv_usec;
743 if (tv
[all...]
/drivers/staging/bcm/
H A DLeakyBucket.c22 struct timeval tv; local
31 do_gettimeofday(&tv);
37 liCurrentTime = ((tv.tv_sec-
39 (tv.tv_usec-Adapter->PackInfo[i].stLastUpdateTokenAt.tv_usec)/
47 &tv, sizeof(struct timeval));
/drivers/media/video/ivtv/
H A Divtv-driver.c374 void ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv) argument
380 tveeprom_hauppauge_analog(&itv->i2c_client, tv, eedata);
385 struct tveeprom tv; local
388 ivtv_read_eeprom(itv, &tv);
392 switch (tv.model) {
415 IVTV_ERR("Unknown model %d, defaulting to PVR-150\n", tv.model);
420 switch (tv.model) {
449 if (tv.model / 1000 == 23) {
453 .tv = { 0x61, I2C_CLIENT_END },
465 tv
[all...]
/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_core.c76 static void peak_usb_add_us(struct timeval *tv, u32 delta_us) argument
83 tv->tv_usec += delta_us;
84 if (tv->tv_usec >= 1000000) {
85 tv->tv_usec -= 1000000;
88 tv->tv_sec += delta_s;
145 struct timeval *tv)
160 *tv = time_ref->tv_host_0;
161 peak_usb_add_us(tv, (u32)delta_us);
163 *tv = ktime_to_timeval(ktime_get());
144 peak_usb_get_ts_tv(struct peak_time_ref *time_ref, u32 ts, struct timeval *tv) argument
/drivers/scsi/bfa/
H A Dbfa_port.c98 struct timeval tv; local
104 do_gettimeofday(&tv);
105 port->stats->fc.secs_reset = tv.tv_sec - port->stats_reset_time;
126 struct timeval tv; local
134 do_gettimeofday(&tv);
135 port->stats_reset_time = tv.tv_sec;
457 struct timeval tv; local
479 do_gettimeofday(&tv);
480 port->stats_reset_time = tv.tv_sec;
/drivers/media/rc/keymaps/
H A DMakefile6 rc-ati-tv-wonder-hd-600.o \
49 rc-kworld-plus-tv-analog.o \
93 rc-videomate-tv-pvr.o \
/drivers/media/video/
H A Dtuner-core.c2 * i2c tv tuner chip device driver
550 * @tv: pointer to be filled if the adapter is TV
560 struct tuner **radio, struct tuner **tv)
565 *tv = NULL;
580 else if (*tv == NULL && pos->type != TUNER_TDA9887 &&
582 *tv = pos;
606 struct tuner *tv; local
641 tuner_lookup(t->i2c->adapter, &radio, &tv);
642 if (tv)
643 tv
559 tuner_lookup(struct i2c_adapter *adap, struct tuner **radio, struct tuner **tv) argument
[all...]
/drivers/s390/block/
H A Ddasd_eer.c298 struct timeval tv; local
312 do_gettimeofday(&tv);
313 header.tv_sec = tv.tv_sec;
314 header.tv_usec = tv.tv_usec;
342 struct timeval tv; local
355 do_gettimeofday(&tv);
356 header.tv_sec = tv.tv_sec;
357 header.tv_usec = tv.tv_usec;

Completed in 717 milliseconds

1234