Lines Matching refs:param

152 	struct asc7621_param *param = to_asc7621_param(sda)
158 struct asc7621_param *param = to_asc7621_param(sda)
169 return sprintf(buf, "%u\n", data->reg[param->msb[0]]); in show_u8()
184 data->reg[param->msb[0]] = reqval; in store_u8()
185 write_byte(client, param->msb[0], reqval); in store_u8()
199 (data->reg[param->msb[0]] >> param-> in show_bitmask()
200 shift[0]) & param->mask[0]); in show_bitmask()
214 reqval = clamp_val(reqval, 0, param->mask[0]); in store_bitmask()
216 reqval = (reqval & param->mask[0]) << param->shift[0]; in store_bitmask()
219 currval = read_byte(client, param->msb[0]); in store_bitmask()
220 reqval |= (currval & ~(param->mask[0] << param->shift[0])); in store_bitmask()
221 data->reg[param->msb[0]] = reqval; in store_bitmask()
222 write_byte(client, param->msb[0], reqval); in store_bitmask()
240 regval = (data->reg[param->msb[0]] << 8) | data->reg[param->lsb[0]]; in show_fan16()
267 data->reg[param->msb[0]] = (reqval >> 8) & 0xff; in store_fan16()
268 data->reg[param->lsb[0]] = reqval & 0xff; in store_fan16()
269 write_byte(client, param->msb[0], data->reg[param->msb[0]]); in store_fan16()
270 write_byte(client, param->lsb[0], data->reg[param->lsb[0]]); in store_fan16()
302 regval = (data->reg[param->msb[0]] << 8) | (data->reg[param->lsb[0]]); in show_in10()
319 ((data->reg[param->msb[0]] * in show_in8()
340 data->reg[param->msb[0]] = reqval; in store_in8()
341 write_byte(client, param->msb[0], reqval); in store_in8()
352 return sprintf(buf, "%d\n", ((s8) data->reg[param->msb[0]]) * 1000); in show_temp8()
371 data->reg[param->msb[0]] = temp; in store_temp8()
372 write_byte(client, param->msb[0], temp); in store_temp8()
392 msb = data->reg[param->msb[0]]; in show_temp10()
393 lsb = (data->reg[param->lsb[0]] >> 6) & 0x03; in show_temp10()
405 u8 regval = data->reg[param->msb[0]]; in show_temp62()
429 data->reg[param->msb[0]] = temp; in store_temp62()
430 write_byte(client, param->msb[0], temp); in store_temp62()
455 auto_point1 = ((s8) data->reg[param->msb[1]]) * 1000; in show_ap2_temp()
457 ((data->reg[param->msb[0]] >> param->shift[0]) & param->mask[0]); in show_ap2_temp()
478 auto_point1 = data->reg[param->msb[1]] * 1000; in store_ap2_temp()
488 newval = (newval & param->mask[0]) << param->shift[0]; in store_ap2_temp()
489 currval = read_byte(client, param->msb[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()
508 config = (data->reg[param->msb[0]] >> param->shift[0]) & param->mask[0]; in show_pwm_ac()
509 altbit = (data->reg[param->msb[1]] >> param->shift[1]) & param->mask[1]; in show_pwm_ac()
543 config = (config & param->mask[0]) << param->shift[0]; in store_pwm_ac()
544 altbit = (altbit & param->mask[1]) << param->shift[1]; in store_pwm_ac()
547 currval = read_byte(client, param->msb[0]); in store_pwm_ac()
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()
563 config = (data->reg[param->msb[0]] >> param->shift[0]) & param->mask[0]; in show_pwm_enable()
564 altbit = (data->reg[param->msb[1]] >> param->shift[1]) & param->mask[1]; in show_pwm_enable()
565 minoff = (data->reg[param->msb[2]] >> param->shift[2]) & param->mask[2]; in show_pwm_enable()
621 config = (config & param->mask[0]) << param->shift[0]; in store_pwm_enable()
622 altbit = (altbit & param->mask[1]) << param->shift[1]; in store_pwm_enable()
623 currval = read_byte(client, param->msb[0]); 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()
629 minoff = (minoff & param->mask[2]) << param->shift[2]; in store_pwm_enable()
630 currval = read_byte(client, param->msb[2]); in store_pwm_enable()
632 minoff | (currval & ~(param->mask[2] << param->shift[2])); 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()
650 (data->reg[param->msb[0]] >> param->shift[0]) & param->mask[0]; in show_pwm_freq()
678 newval = (newval & param->mask[0]) << param->shift[0]; in store_pwm_freq()
681 currval = read_byte(client, param->msb[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()
698 (data->reg[param->msb[0]] >> param->shift[0]) & param->mask[0]; in show_pwm_ast()
727 newval = (newval & param->mask[0]) << param->shift[0]; in store_pwm_ast()
730 currval = read_byte(client, param->msb[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()
747 (data->reg[param->msb[0]] >> param->shift[0]) & param->mask[0]; in show_temp_st()
775 newval = (newval & param->mask[0]) << param->shift[0]; in store_temp_st()
778 currval = read_byte(client, param->msb[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()