Lines Matching refs:t
53 u8 t = 0, offset = amd_offset(dev); in amd_set_speed() local
55 pci_read_config_byte(dev, AMD_ADDRESS_SETUP + offset, &t); in amd_set_speed()
56 t = (t & ~(3 << ((3 - dn) << 1))) | ((clamp_val(timing->setup, 1, 4) - 1) << ((3 - dn) << 1)); in amd_set_speed()
57 pci_write_config_byte(dev, AMD_ADDRESS_SETUP + offset, t); in amd_set_speed()
66 case ATA_UDMA2: t = timing->udma ? (0xc0 | (clamp_val(timing->udma, 2, 5) - 2)) : 0x03; break; in amd_set_speed()
67 …case ATA_UDMA4: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 2, 10)]) : 0x03; b… in amd_set_speed()
68 …case ATA_UDMA5: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 1, 10)]) : 0x03; b… in amd_set_speed()
69 …case ATA_UDMA6: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 1, 15)]) : 0x03; b… in amd_set_speed()
74 pci_write_config_byte(dev, AMD_UDMA_TIMING + offset + 3 - dn, t); in amd_set_speed()
86 struct ide_timing t, p; in amd_set_drive() local
94 ide_timing_compute(drive, speed, &t, T, UT); in amd_set_drive()
98 ide_timing_merge(&p, &t, &t, IDE_TIMING_8BIT); in amd_set_drive()
101 if (speed == XFER_UDMA_5 && amd_clock <= 33333) t.udma = 1; in amd_set_drive()
102 if (speed == XFER_UDMA_6 && amd_clock <= 33333) t.udma = 15; in amd_set_drive()
104 amd_set_speed(dev, drive->dn, udma_mask, &t); in amd_set_drive()
127 u8 t = 0, offset = amd_offset(dev); in amd7411_cable_detect() local
129 pci_read_config_byte(dev, AMD_CABLE_DETECT + offset, &t); in amd7411_cable_detect()
131 amd_80w = ((t & 0x3) ? 1 : 0) | ((t & 0xc) ? 2 : 0); in amd7411_cable_detect()
147 u8 t = 0, offset = amd_offset(dev); in init_chipset_amd74xx() local
166 pci_read_config_byte(dev, AMD_IDE_CONFIG + offset, &t); in init_chipset_amd74xx()
172 t &= 0x0f; in init_chipset_amd74xx()
174 t |= 0xf0; in init_chipset_amd74xx()
175 pci_write_config_byte(dev, AMD_IDE_CONFIG + offset, t); in init_chipset_amd74xx()