Lines Matching refs:reg
82 * Version 0.92 move initial reg dump to separate callable function
189 static void (*__put_cmd640_reg)(u16 reg, u8 val);
190 static u8 (*__get_cmd640_reg)(u16 reg);
193 * This is read from the CFR reg, and is used in several places.
205 static void put_cmd640_reg_pci1(u16 reg, u8 val)
207 outl_p((reg & 0xfc) | cmd640_key, 0xcf8);
208 outb_p(val, (reg & 3) | 0xcfc);
211 static u8 get_cmd640_reg_pci1(u16 reg)
213 outl_p((reg & 0xfc) | cmd640_key, 0xcf8);
214 return inb_p((reg & 3) | 0xcfc);
219 static void put_cmd640_reg_pci2(u16 reg, u8 val)
222 outb_p(val, cmd640_key + reg);
226 static u8 get_cmd640_reg_pci2(u16 reg)
231 b = inb_p(cmd640_key + reg);
238 static void put_cmd640_reg_vlb(u16 reg, u8 val)
240 outb_p(reg, cmd640_key);
244 static u8 get_cmd640_reg_vlb(u16 reg)
246 outb_p(reg, cmd640_key);
250 static u8 get_cmd640_reg(u16 reg)
256 b = __get_cmd640_reg(reg);
261 static void put_cmd640_reg(u16 reg, u8 val)
266 __put_cmd640_reg(reg, val);
367 unsigned int reg = cmd640_vlb ? 0x50 : 0x00;
371 for (; reg <= 0x59; reg++) {
372 if (!(reg & 0x0f))
373 printk("\n%04x:", reg);
374 printk(" %02x", get_cmd640_reg(reg));
414 int reg = prefetch_regs[index];
418 b = __get_cmd640_reg(reg);
424 __put_cmd640_reg(reg, b);
502 * Program the address_setup clocks into ARTTIM reg,
503 * and then the active/recovery counts into the DRWTIM reg
741 * Undocumented magic (there is no 0x5b reg in specs)
745 printk(KERN_ERR "ide: cmd640 init failed: wrong value in reg 0x5b\n");