Lines Matching refs:newval
472 u8 currval, newval = 0; in store_ap2_temp() local
483 newval = i; in store_ap2_temp()
488 newval = (newval & param->mask[0]) << param->shift[0]; in store_ap2_temp()
490 newval |= (currval & ~(param->mask[0] << param->shift[0])); in store_ap2_temp()
491 data->reg[param->msb[0]] = newval; in store_ap2_temp()
492 write_byte(client, param->msb[0], newval); in store_ap2_temp()
522 u8 currval, config, altbit, newval; in store_pwm_ac() local
548 newval = config | (currval & ~(param->mask[0] << param->shift[0])); in store_pwm_ac()
549 newval = altbit | (newval & ~(param->mask[1] << param->shift[1])); in store_pwm_ac()
550 data->reg[param->msb[0]] = newval; in store_pwm_ac()
551 write_byte(client, param->msb[0], newval); in store_pwm_ac()
560 u8 config, altbit, minoff, val, newval; in show_pwm_enable() local
571 newval = 255; in show_pwm_enable()
573 newval = 0; in show_pwm_enable()
575 newval = 1; in show_pwm_enable()
577 newval = 2; in show_pwm_enable()
579 newval = 3; in show_pwm_enable()
581 return sprintf(buf, "%u\n", newval); in show_pwm_enable()
590 u8 currval, config, altbit, newval, minoff = 255; in store_pwm_enable() local
597 newval = 0x04; in store_pwm_enable()
600 newval = 0x07; in store_pwm_enable()
603 newval = 0x00; in store_pwm_enable()
607 newval = 0x00; in store_pwm_enable()
611 newval = 0x03; in store_pwm_enable()
617 config = newval & 0x07; in store_pwm_enable()
618 altbit = (newval >> 3) & 0x01; in store_pwm_enable()
624 newval = config | (currval & ~(param->mask[0] << param->shift[0])); in store_pwm_enable()
625 newval = altbit | (newval & ~(param->mask[1] << param->shift[1])); in store_pwm_enable()
626 data->reg[param->msb[0]] = newval; in store_pwm_enable()
627 write_byte(client, param->msb[0], newval); in store_pwm_enable()
631 newval = in store_pwm_enable()
633 data->reg[param->msb[2]] = newval; in store_pwm_enable()
634 write_byte(client, param->msb[2], newval); in store_pwm_enable()
663 u8 currval, newval = 255; in store_pwm_freq() local
671 newval = i; in store_pwm_freq()
675 if (newval == 255) in store_pwm_freq()
678 newval = (newval & param->mask[0]) << param->shift[0]; in store_pwm_freq()
682 newval |= (currval & ~(param->mask[0] << param->shift[0])); in store_pwm_freq()
683 data->reg[param->msb[0]] = newval; in store_pwm_freq()
684 write_byte(client, param->msb[0], newval); in store_pwm_freq()
712 u8 currval, newval = 255; in store_pwm_ast() local
720 newval = i; in store_pwm_ast()
724 if (newval == 255) in store_pwm_ast()
727 newval = (newval & param->mask[0]) << param->shift[0]; in store_pwm_ast()
731 newval |= (currval & ~(param->mask[0] << param->shift[0])); in store_pwm_ast()
732 data->reg[param->msb[0]] = newval; in store_pwm_ast()
733 write_byte(client, param->msb[0], newval); in store_pwm_ast()
759 u8 currval, newval = 255; in store_temp_st() local
767 newval = i; in store_temp_st()
772 if (newval == 255) in store_temp_st()
775 newval = (newval & param->mask[0]) << param->shift[0]; in store_temp_st()
779 newval |= (currval & ~(param->mask[0] << param->shift[0])); in store_temp_st()
780 data->reg[param->msb[0]] = newval; in store_temp_st()
781 write_byte(client, param->msb[0], newval); in store_temp_st()