Lines Matching defs:reg
148 u16 reg = 0;
152 reg = use_dma ? (0x21 | 0x82) : (0x21 & ~0x82);
156 if (reg != hwif->select_data) {
157 hwif->select_data = reg;
160 outw(reg & 0xff, hwif->config_data);
165 reg = inw(hwif->config_data + 3);
166 reg &= 0x13;
167 reg &= ~(1 << hwif->channel);
168 outw(reg, hwif->config_data + 3);
239 u8 reg = 0;
258 /* put config reg into first byte of hwif->select_data */
264 reg = inb(hwif->config_data + 3);
266 reg = (reg & 0x10) | 0x03;
267 outb(reg, hwif->config_data + 3);
270 if (reg & 0x10)