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

12345

/drivers/usb/misc/
H A Dtrancevibrator.c52 struct trancevibrator *tv = usb_get_intfdata(intf); local
54 return sprintf(buf, "%d\n", tv->speed);
61 struct trancevibrator *tv = usb_get_intfdata(intf); local
69 old = tv->speed;
70 tv->speed = temp;
72 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed);
75 retval = usb_control_msg(tv->udev, usb_sndctrlpipe(tv->udev, 0),
78 tv
[all...]
/drivers/rtc/
H A Dhctosys.c29 struct timespec tv = { local
55 rtc_tm_to_time(&tm, &tv.tv_sec);
57 err = do_settimeofday(&tv);
64 (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/rts5208/
H A Drtsx.h154 struct timeval tv; local
159 do_gettimeofday(&tv);
161 timeval_buf[0] = (u8)(tv.tv_sec >> 24);
162 timeval_buf[1] = (u8)(tv.tv_sec >> 16);
163 timeval_buf[2] = (u8)(tv.tv_sec >> 8);
164 timeval_buf[3] = (u8)(tv.tv_sec);
165 timeval_buf[4] = (u8)(tv.tv_usec >> 24);
166 timeval_buf[5] = (u8)(tv.tv_usec >> 16);
167 timeval_buf[6] = (u8)(tv.tv_usec >> 8);
168 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/qxl/
H A Dqxl_release.c169 struct qxl_bo_list, tv.head);
170 bo = to_qxl_bo(entry->tv.bo);
172 list_del(&entry->tv.head);
218 list_for_each_entry(entry, &release->bos, tv.head) {
219 if (entry->tv.bo == &bo->tbo)
228 entry->tv.bo = &bo->tbo;
229 entry->tv.shared = false;
230 list_add_tail(&entry->tv.head, &release->bos);
271 list_for_each_entry(entry, &release->bos, tv.head) {
272 struct qxl_bo *bo = to_qxl_bo(entry->tv
[all...]
/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_time.h112 static inline void cfs_fs_timeval(struct timeval *tv) argument
117 cfs_fs_time_usec(&time, tv);
/drivers/staging/lustre/lnet/selftest/
H A Dping_test.c95 struct timeval tv; local
113 cfs_fs_timeval(&tv);
114 req->pnr_time_sec = tv.tv_sec;
115 req->pnr_time_usec = tv.tv_usec;
127 struct timeval tv; local
164 cfs_fs_timeval(&tv);
166 (unsigned)((tv.tv_sec - (unsigned)reqst->pnr_time_sec) * 1000000
167 + (tv.tv_usec - reqst->pnr_time_usec)));
/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/pci/saa7134/
H A Dsaa7134-cards.c93 .tv = 1,
98 .tv = 1,
120 .tv = 1,
126 .tv = 1,
169 .tv = 1,
210 .tv = 1,
241 .tv = 1,
247 .tv = 1,
291 .tv = 1,
297 .tv
7394 struct tveeprom tv; local
[all...]
/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-tcpip.c258 struct timeval tv; local
275 tv = (struct timeval) {
280 (char *)&tv, sizeof(tv));
284 (long)tv.tv_sec, (int)tv.tv_usec, rc);
321 struct timeval tv; local
336 tv = (struct timeval) {
341 (char *)&tv, sizeof(tv));
[all...]
H A Dlinux-tracefile.c195 struct timeval tv; local
197 do_gettimeofday(&tv);
203 header->ph_sec = (__u32)tv.tv_sec;
204 header->ph_usec = tv.tv_usec;
/drivers/staging/media/lirc/
H A Dlirc_parallel.c147 struct timeval tv, now; local
151 do_gettimeofday(&tv);
152 tv.tv_sec++; /* wait max. 1 sec. */
160 } while (count < 1000 && (now.tv_sec < tv.tv_sec
161 || (now.tv_sec == tv.tv_sec
162 && now.tv_usec < tv.tv_usec)));
164 timeelapsed = ((now.tv_sec + 1 - tv.tv_sec)*1000000
165 + (now.tv_usec - tv.tv_usec));
223 struct timeval tv; local
247 do_gettimeofday(&tv);
[all...]
/drivers/input/misc/
H A Dhp_sdc_rtc.c436 struct timeval tv; local
452 if (hp_sdc_rtc_read_rt(&tv)) {
456 tv.tv_sec, (int)tv.tv_usec/1000);
459 if (hp_sdc_rtc_read_fhs(&tv)) {
463 tv.tv_sec, (int)tv.tv_usec/1000);
466 if (hp_sdc_rtc_read_mt(&tv)) {
470 tv.tv_sec, (int)tv
[all...]
/drivers/staging/lustre/lustre/llite/
H A Dsuper25.c108 struct timeval tv; local
174 do_gettimeofday(&tv);
175 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]);
/drivers/staging/lustre/lustre/obdclass/
H A Dlustre_handles.c196 struct timeval tv; local
214 do_gettimeofday(&tv);
215 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]);
/drivers/media/pci/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;
252 struct timeval tv; local
262 do_gettimeofday(&tv);
265 if (tv.tv_sec - ir->base_time.tv_sec > 1) {
268 gap = 1000000 * (tv.tv_sec - ir->base_time.tv_sec) +
269 tv
[all...]
/drivers/video/fbdev/omap2/displays-new/
H A DMakefile5 obj-$(CONFIG_DISPLAY_CONNECTOR_ANALOG_TV) += connector-analog-tv.o
/drivers/media/usb/au0828/
H A Dau0828-cards.c153 struct tveeprom tv; local
155 tveeprom_hauppauge_analog(&dev->i2c_client, &tv, eeprom_data);
156 dev->board.tuner_type = tv.tuner_type;
159 switch (tv.model) {
177 __func__, tv.model);
182 __func__, tv.model);
/drivers/media/pci/cx18/
H A Dcx18-driver.c325 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) argument
330 memset(tv, 0, sizeof(*tv));
347 tveeprom_hauppauge_analog(c, tv, eedata);
351 tv->model = 0x718;
357 tv->model = 0xffffffff;
368 struct tveeprom tv; local
370 cx18_read_eeprom(cx, &tv);
377 switch (tv.model) {
409 "(cardtype=1)\n", tv
[all...]
/drivers/staging/lustre/lnet/lnet/
H A Dlib-eq.c345 struct timeval tv; variable in typeref:struct:timeval
349 cfs_duration_usec(cfs_time_sub(cfs_time_current(), now), &tv);
350 tms -= (int)(tv.tv_sec * 1000 + tv.tv_usec / 1000);
/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,
/drivers/staging/bcm/
H A DLeakyBucket.c18 struct timeval tv; local
29 do_gettimeofday(&tv);
34 liCurrentTime = ((tv.tv_sec -
36 (tv.tv_usec - curr_pi->stLastUpdateTokenAt.tv_usec) /
42 memcpy(&curr_pi->stLastUpdateTokenAt, &tv,
/drivers/media/pci/ivtv/
H A Divtv-driver.c405 void ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv) argument
411 tveeprom_hauppauge_analog(&itv->i2c_client, tv, eedata);
416 struct tveeprom tv; local
419 ivtv_read_eeprom(itv, &tv);
423 switch (tv.model) {
446 IVTV_ERR("Unknown model %d, defaulting to PVR-150\n", tv.model);
451 switch (tv.model) {
480 if (tv.model / 1000 == 23) {
484 .tv = { 0x61, I2C_CLIENT_END },
496 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

Completed in 7907 milliseconds

12345