Lines Matching defs:buf
100 show_cpu_temperature( struct device *dev, struct device_attribute *attr, char *buf )
102 return sprintf(buf, "%d.%d\n", x.temp>>8, (x.temp & 255)*10/256 );
106 show_case_temperature( struct device *dev, struct device_attribute *attr, char *buf )
108 return sprintf(buf, "%d.%d\n", x.casetemp>>8, (x.casetemp & 255)*10/256 );
141 u8 buf[2];
145 buf[0] = reg;
146 if( i2c_master_send(cl, buf, 1) != 1 )
148 if( i2c_master_recv(cl, buf, len) != len )
150 return (len == 2)? ((unsigned int)buf[0] << 8) | buf[1] : buf[0];