Lines Matching refs:newkey
684 char newkey[5];
689 newkey[0] = fan_speed_keys[sensor_attr->nr][0];
690 newkey[1] = '0' + sensor_attr->index;
691 newkey[2] = fan_speed_keys[sensor_attr->nr][2];
692 newkey[3] = fan_speed_keys[sensor_attr->nr][3];
693 newkey[4] = 0;
697 ret = applesmc_read_key(newkey, buffer, 2);
713 char newkey[5];
723 newkey[0] = fan_speed_keys[sensor_attr->nr][0];
724 newkey[1] = '0' + sensor_attr->index;
725 newkey[2] = fan_speed_keys[sensor_attr->nr][2];
726 newkey[3] = fan_speed_keys[sensor_attr->nr][3];
727 newkey[4] = 0;
733 ret = applesmc_write_key(newkey, buffer, 2);
803 char newkey[5];
808 newkey[0] = FAN_POSITION[0];
809 newkey[1] = '0' + sensor_attr->index;
810 newkey[2] = FAN_POSITION[2];
811 newkey[3] = FAN_POSITION[3];
812 newkey[4] = 0;
816 ret = applesmc_read_key(newkey, buffer, 16);