Lines Matching refs:read_reg
138 read_reg( struct i2c_client *cl, int reg, int len ) in read_reg() function
173 temp = read_reg( x.thermostat, 0, 2 ); in poll_temp()
179 casetemp = read_reg(x.fan, 0x0b, 1) << 8; in poll_temp()
180 casetemp |= (read_reg(x.fan, 0x06, 1) & 0x7) << 5; in poll_temp()
215 x.r0 = read_reg( x.fan, 0x00, 1 ); in setup_hardware()
216 x.r1 = read_reg( x.fan, 0x01, 1 ); in setup_hardware()
217 x.r20 = read_reg( x.fan, 0x20, 1 ); in setup_hardware()
218 x.r23 = read_reg( x.fan, 0x23, 1 ); in setup_hardware()
219 x.r25 = read_reg( x.fan, 0x25, 1 ); in setup_hardware()
222 if( (val=read_reg(x.thermostat, 1, 1)) >= 0 ) { in setup_hardware()
363 if( read_reg(cl, 0x3d, 1) != 0x30 || read_reg(cl, 0x3e, 1) != 0x41 ) in attach_fan()
380 if( (temp=read_reg(cl, 0, 2)) < 0 ) in attach_thermostat()
386 hyst_temp = read_reg(cl, 2, 2); in attach_thermostat()
387 os_temp = read_reg(cl, 3, 2); in attach_thermostat()