Home
last modified time | relevance | path

Searched refs:t1 (Results 1 – 25 of 51) sorted by relevance

123

/drivers/ata/
Dpata_sis.c230 u8 t1, t2; in sis_old_set_piomode() local
238 pci_read_config_byte(pdev, port, &t1); in sis_old_set_piomode()
241 t1 &= ~0x0F; /* Clear active/recovery timings */ in sis_old_set_piomode()
244 t1 |= active[speed]; in sis_old_set_piomode()
247 pci_write_config_byte(pdev, port, t1); in sis_old_set_piomode()
292 u32 t1; in sis_133_set_piomode() local
313 pci_read_config_dword(pdev, port, &t1); in sis_133_set_piomode()
314 t1 &= 0xC0C00FFF; /* Mask out timing */ in sis_133_set_piomode()
316 if (t1 & 0x08) /* 100 or 133 ? */ in sis_133_set_piomode()
317 t1 |= timing133[speed]; in sis_133_set_piomode()
[all …]
Dpata_octeon_cf.c141 int t1; in octeon_cf_set_piomode() local
158 t1 = timing.setup; in octeon_cf_set_piomode()
159 if (t1) in octeon_cf_set_piomode()
160 t1--; in octeon_cf_set_piomode()
/drivers/ide/
Dsis5513.c200 u16 t1 = 0; in sis_ata16_program_timings() local
206 pci_read_config_word(dev, drive_pci, &t1); in sis_ata16_program_timings()
209 t1 &= ~0x070f; in sis_ata16_program_timings()
212 t1 &= ~0x8000; /* disable UDMA */ in sis_ata16_program_timings()
213 t1 |= mwdma_timings[mode - XFER_MW_DMA_0]; in sis_ata16_program_timings()
215 t1 |= pio_timings[mode - XFER_PIO_0]; in sis_ata16_program_timings()
217 pci_write_config_word(dev, drive_pci, t1); in sis_ata16_program_timings()
223 u8 t1, drive_pci = 0x40 + drive->dn * 2; in sis_ata100_program_timings() local
236 t1 = mwdma_timings[mode - XFER_MW_DMA_0]; in sis_ata100_program_timings()
238 t1 = pio_timings[mode - XFER_PIO_0]; in sis_ata100_program_timings()
[all …]
Dqd65xx.c301 u16 t1, t2; in qd6580_init_dev() local
306 t1 = QD6580_DEF_DATA; in qd6580_init_dev()
309 t2 = t1 = hwif->channel ? QD6580_DEF_DATA2 : QD6580_DEF_DATA; in qd6580_init_dev()
311 ide_set_drivedata(drive, (void *)((drive->dn & 1) ? t2 : t1)); in qd6580_init_dev()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_time.h51 static inline unsigned long cfs_time_sub(unsigned long t1, unsigned long t2) in cfs_time_sub() argument
53 return (unsigned long)(t1 - t2); in cfs_time_sub()
56 static inline int cfs_time_after(unsigned long t1, unsigned long t2) in cfs_time_after() argument
58 return time_before(t2, t1); in cfs_time_after()
61 static inline int cfs_time_aftereq(unsigned long t1, unsigned long t2) in cfs_time_aftereq() argument
63 return time_before_eq(t2, t1); in cfs_time_aftereq()
/drivers/media/v4l2-core/
Dv4l2-dv-timings.c228 bool v4l2_match_dv_timings(const struct v4l2_dv_timings *t1, in v4l2_match_dv_timings() argument
232 if (t1->type != t2->type || t1->type != V4L2_DV_BT_656_1120) in v4l2_match_dv_timings()
234 if (t1->bt.width == t2->bt.width && in v4l2_match_dv_timings()
235 t1->bt.height == t2->bt.height && in v4l2_match_dv_timings()
236 t1->bt.interlaced == t2->bt.interlaced && in v4l2_match_dv_timings()
237 t1->bt.polarities == t2->bt.polarities && in v4l2_match_dv_timings()
238 t1->bt.pixelclock >= t2->bt.pixelclock - pclock_delta && in v4l2_match_dv_timings()
239 t1->bt.pixelclock <= t2->bt.pixelclock + pclock_delta && in v4l2_match_dv_timings()
240 t1->bt.hfrontporch == t2->bt.hfrontporch && in v4l2_match_dv_timings()
241 t1->bt.vfrontporch == t2->bt.vfrontporch && in v4l2_match_dv_timings()
[all …]
/drivers/staging/lustre/include/linux/libcfs/linux/
Dlinux-time.h126 static inline int cfs_time_before_64(__u64 t1, __u64 t2) in cfs_time_before_64() argument
128 return (__s64)t2 - (__s64)t1 > 0; in cfs_time_before_64()
131 static inline int cfs_time_beforeq_64(__u64 t1, __u64 t2) in cfs_time_beforeq_64() argument
133 return (__s64)t2 - (__s64)t1 >= 0; in cfs_time_beforeq_64()
/drivers/input/gameport/
Dgameport.c85 u64 t1, t2, t3; in gameport_measure_speed() local
95 t1 = ktime_get_ns(); in gameport_measure_speed()
102 t = (t2 - t1) - (t3 - t2); in gameport_measure_speed()
118 unsigned int i, t, t1, t2, t3, tx; in old_gameport_measure_speed() local
128 GET_TIME(t1); in old_gameport_measure_speed()
134 if ((t = DELTA(t2,t1) - DELTA(t3,t2)) < tx) tx = t; in old_gameport_measure_speed()
143 unsigned long tx, t1, t2, flags; in old_gameport_measure_speed()
152 rdtscl(t1); in old_gameport_measure_speed()
157 if (t2 - t1 < tx) tx = t2 - t1; in old_gameport_measure_speed()
/drivers/tty/
Dn_gsm.c141 struct timer_list t1; /* Retransmit timer for SABM and UA */ member
259 int t1, t2; /* Timers in 1/100th of a sec */ member
1428 del_timer(&dlci->t1); in gsm_dlci_close()
1453 del_timer(&dlci->t1); in gsm_dlci_open()
1482 mod_timer(&dlci->t1, jiffies + gsm->t1 * HZ / 100); in gsm_dlci_t1()
1490 mod_timer(&dlci->t1, jiffies + gsm->t1 * HZ / 100); in gsm_dlci_t1()
1515 mod_timer(&dlci->t1, jiffies + gsm->t1 * HZ / 100); in gsm_dlci_begin_open()
1537 mod_timer(&dlci->t1, jiffies + gsm->t1 * HZ / 100); in gsm_dlci_begin_close()
1653 init_timer(&dlci->t1); in gsm_dlci_alloc()
1654 dlci->t1.function = gsm_dlci_t1; in gsm_dlci_alloc()
[all …]
/drivers/staging/skein/
Dthreefish_block.c11 u64 t0 = key_ctx->tweak[0], t1 = key_ctx->tweak[1], in threefish_encrypt_256() local
19 b2 += b3 + k2 + t1; in threefish_encrypt_256()
40 b1 += k2 + t1; in threefish_encrypt_256()
98 b2 += b3 + k0 + t1; in threefish_encrypt_256()
120 b1 += k0 + t1; in threefish_encrypt_256()
178 b2 += b3 + k3 + t1; in threefish_encrypt_256()
199 b1 += k3 + t1; in threefish_encrypt_256()
257 b2 += b3 + k1 + t1; in threefish_encrypt_256()
279 b1 += k1 + t1; in threefish_encrypt_256()
337 b2 += b3 + k4 + t1; in threefish_encrypt_256()
[all …]
/drivers/gpio/
Dgpio-viperboard.c52 u8 t1; member
105 gamsg->t1 = 0x00; in vprbrd_gpioa_get()
158 gamsg->t1 = 0x00; in vprbrd_gpioa_set()
196 gamsg->t1 = 0x00; in vprbrd_gpioa_direction_input()
238 gamsg->t1 = 0x00; in vprbrd_gpioa_direction_output()
/drivers/usb/host/
Dehci-hub.c193 u32 t1 = ehci_readl(ehci, reg) & ~PORT_RWC_BITS; in ehci_adjust_port_wakeup_flags() local
194 u32 t2 = t1 & ~PORT_WAKE_BITS; in ehci_adjust_port_wakeup_flags()
200 if (t1 & PORT_CONNECT) in ehci_adjust_port_wakeup_flags()
271 u32 t1 = ehci_readl(ehci, reg) & ~PORT_RWC_BITS; in ehci_bus_suspend() local
272 u32 t2 = t1 & ~PORT_WAKE_BITS; in ehci_bus_suspend()
275 if (t1 & PORT_OWNER) in ehci_bus_suspend()
277 else if ((t1 & PORT_PE) && !(t1 & PORT_SUSPEND)) { in ehci_bus_suspend()
289 if (t1 & PORT_CONNECT) in ehci_bus_suspend()
295 if (t1 != t2) { in ehci_bus_suspend()
Dxhci-hub.c1198 u32 t1, t2; in xhci_bus_suspend() local
1201 t1 = readl(port_array[port_index]); in xhci_bus_suspend()
1202 t2 = xhci_port_state_to_neutral(t1); in xhci_bus_suspend()
1204 if ((t1 & PORT_PE) && !(t1 & PORT_PLS_MASK)) { in xhci_bus_suspend()
1222 if (t1 & PORT_CONNECT) { in xhci_bus_suspend()
1232 t1 = xhci_port_state_to_neutral(t1); in xhci_bus_suspend()
1233 if (t1 != t2) in xhci_bus_suspend()
/drivers/net/fddi/skfp/
Dhwmtm.c1944 struct s_smt_fp_txd volatile *t1 ; in mac_drv_clear_txd() local
1955 t1 = queue->tx_curr_get ; in mac_drv_clear_txd()
1962 DRV_BUF_FLUSH(t1,DDI_DMA_SYNC_FORCPU) ; in mac_drv_clear_txd()
1963 DB_TX("check OWN/EOF bit of TxD 0x%x",t1,0,5) ; in mac_drv_clear_txd()
1964 tbctrl = le32_to_cpu(CR_READ(t1->txd_tbctrl)); in mac_drv_clear_txd()
1970 t1 = t1->txd_next ; in mac_drv_clear_txd()
1974 t1 = queue->tx_curr_get ; in mac_drv_clear_txd()
1976 tbctrl = le32_to_cpu(t1->txd_tbctrl) ; in mac_drv_clear_txd()
1978 (union s_fp_descr volatile *) t1, in mac_drv_clear_txd()
1981 t2 = t1 ; in mac_drv_clear_txd()
[all …]
/drivers/pci/
Dpci-acpi.c79 hpx->t1 = &hpx->type1_data; in decode_type1_hpx_record()
80 hpx->t1->revision = revision; in decode_type1_hpx_record()
81 hpx->t1->max_mem_read = fields[2].integer.value; in decode_type1_hpx_record()
82 hpx->t1->avg_max_split = fields[3].integer.value; in decode_type1_hpx_record()
83 hpx->t1->tot_max_split = fields[4].integer.value; in decode_type1_hpx_record()
/drivers/usb/gadget/udc/
Dnet2272.c1193 u8 t1, t2; in registers_show() local
1222 t1 = net2272_read(dev, DMAREQ); in registers_show()
1224 t1, ep_name[(t1 & 0x01) + 1], in registers_show()
1225 t1 & (1 << DMA_CONTROL_DACK) ? "dack " : "", in registers_show()
1226 t1 & (1 << DMA_REQUEST_ENABLE) ? "reqenb " : "", in registers_show()
1227 t1 & (1 << DMA_REQUEST) ? "req " : "", in registers_show()
1228 t1 & (1 << DMA_BUFFER_VALID) ? "valid " : ""); in registers_show()
1233 t1 = net2272_read(dev, USBCTL1); in registers_show()
1234 if (t1 & (1 << VBUS_PIN)) { in registers_show()
1235 if (t1 & (1 << USB_HIGH_SPEED)) in registers_show()
[all …]
/drivers/infiniband/hw/ipath/
Dipath_stats.c56 unsigned long t0, t1; in ipath_snap_cntr() local
79 t1 = jiffies; in ipath_snap_cntr()
80 if (time_before(t0 + HZ, t1) && val == -1) { in ipath_snap_cntr()
/drivers/scsi/bfa/
Dbfa_port.c31 __be32 t0, t1; in bfa_port_stats_swap() local
37 t1 = dip[i + 1]; in bfa_port_stats_swap()
40 dip[i + 1] = be32_to_cpu(t1); in bfa_port_stats_swap()
42 dip[i] = be32_to_cpu(t1); in bfa_port_stats_swap()
/drivers/input/joystick/
Danalog.c394 u64 t1, t2, t3; in analog_calibrate_timer() local
401 t1 = get_time(); in analog_calibrate_timer()
410 port->speed = delta(t1, t2) - delta(t2, t3); in analog_calibrate_timer()
417 t1 = get_time(); in analog_calibrate_timer()
425 t = delta(t1, t2) - delta(t2, t3); in analog_calibrate_timer()
/drivers/media/dvb-frontends/
Dlgs8gxx.c377 u8 t1, t2; in lgs8gxx_autolock_gi() local
386 lgs8gxx_read_reg(priv, 0x0C, &t1); in lgs8gxx_autolock_gi()
388 t1 &= ~(GI_MASK); in lgs8gxx_autolock_gi()
389 t1 |= gi; in lgs8gxx_autolock_gi()
392 lgs8gxx_write_reg(priv, 0x0C, t1); in lgs8gxx_autolock_gi()
/drivers/thermal/
Dimx_thermal.c353 int t1, n1; in imx_get_sensor_data() local
384 t1 = 25; /* t1 always 25C */ in imx_get_sensor_data()
406 data->c2 = n1 * data->c1 + 1000 * t1; in imx_get_sensor_data()
/drivers/rapidio/devices/
Dtsi721_dma.c354 bd_ptr->t1.bufptr_lo = cpu_to_le32( in tsi721_desc_fill_init()
356 bd_ptr->t1.bufptr_hi = cpu_to_le32((u64)sg_dma_address(sg) >> 32); in tsi721_desc_fill_init()
357 bd_ptr->t1.s_dist = 0; in tsi721_desc_fill_init()
358 bd_ptr->t1.s_size = 0; in tsi721_desc_fill_init()
/drivers/net/hamradio/
Ddmascc.c312 t1[MAX_NUM_DEVS]; in dmascc_init() local
362 t1[i] = in dmascc_init()
379 outb((TMR_0_HZ / HZ * 10) & 0xFF, t1[i]); in dmascc_init()
380 outb((TMR_0_HZ / HZ * 10) >> 8, t1[i]); in dmascc_init()
398 inb(t1[i]) + (inb(t1[i]) << 8); in dmascc_init()
/drivers/firmware/efi/libstub/
Defi-stub-helper.c635 goto t1; in efi_utf16_to_utf8()
645 t1: in efi_utf16_to_utf8()
/drivers/usb/misc/sisusbvga/
Dsisusb.c1488 u32 t0, t1, t2, t3; in sisusb_getbuswidth() local
1513 ret |= READL(ramptr + 4, &t1); in sisusb_getbuswidth()
1522 if ((t1 == 0x456789ab) && (t0 == 0x01234567)) { in sisusb_getbuswidth()
1527 if ((t1 != 0x456789ab) || (t0 != 0x01234567)) { in sisusb_getbuswidth()
1538 ret |= READL(ramptr + 4, &t1); in sisusb_getbuswidth()
1540 if (t1 != 0xcdef0123) { in sisusb_getbuswidth()
1552 if (t1 == 0x456789ab) { in sisusb_getbuswidth()
1578 ret |= READL(ramptr + 4, &t1); in sisusb_getbuswidth()
1580 if (t1 == 0x456789ab) { in sisusb_getbuswidth()

123