Lines Matching refs:LM78_ADDR_REG_OFFSET
52 #define LM78_ADDR_REG_OFFSET 5
672 if (!request_region(res->start + LM78_ADDR_REG_OFFSET, 2, "lm78")) {
714 release_region(res->start + LM78_ADDR_REG_OFFSET, 2);
730 release_region(res->start + LM78_ADDR_REG_OFFSET, 2);
747 outb_p(reg, data->isa_addr + LM78_ADDR_REG_OFFSET);
768 outb_p(reg, data->isa_addr + LM78_ADDR_REG_OFFSET);
878 save = inb_p(address + LM78_ADDR_REG_OFFSET);
882 outb_p(val, address + LM78_ADDR_REG_OFFSET);
883 if (inb_p(address + LM78_ADDR_REG_OFFSET) != (val | 0x80)) {
884 outb_p(save, address + LM78_ADDR_REG_OFFSET);
889 outb_p(LM78_REG_CONFIG, address + LM78_ADDR_REG_OFFSET);
893 outb_p(LM78_REG_I2C_ADDR, address + LM78_ADDR_REG_OFFSET);
899 if (inb_p(address + LM78_ADDR_REG_OFFSET) & 0x80)
903 outb_p(0x4f, address + LM78_ADDR_REG_OFFSET);
909 outb_p(0x58, address + LM78_ADDR_REG_OFFSET);
915 outb_p(LM78_REG_CHIPID, address + LM78_ADDR_REG_OFFSET);