Lines Matching full:resolution
314 device_printf(dev,"%d bit resolution sensor attached.\n", in lm75_start()
346 SYSCTL_ADD_PROC(ctx, tree, OID_AUTO, "resolution", in lm75_start()
348 lm75_resolution_sysctl, "IU", "LM75 resolution"); in lm75_start()
382 uint8_t resolution = sc->sc_resolution; in lm75_temp_read() local
389 *temp = ((buf >> (16 - resolution)) * multiplier) >> (resolution - 8); in lm75_temp_read()
400 uint8_t buf8[3], resolution = sc->sc_resolution; in lm75_temp_write() local
409 buf = ((temp << (resolution - 8)) / multiplier) << (16 - resolution); in lm75_temp_write()
614 int resolution; in lm75_resolution_sysctl() local
618 resolution = sc->sc_resolution; in lm75_resolution_sysctl()
620 error = sysctl_handle_int(oidp, &resolution, 0, req); in lm75_resolution_sysctl()
624 if (resolution > sc->sc_max_resolution || resolution < 9) in lm75_resolution_sysctl()
627 sc->sc_resolution = (uint8_t) resolution; in lm75_resolution_sysctl()