Lines Matching full:msb

107 	u8 msb[3];  member
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()
219 currval = read_byte(client, param->msb[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()
269 write_byte(client, param->msb[0], data->reg[param->msb[0]]); in store_fan16()
302 regval = (data->reg[param->msb[0]] << 8) | (data->reg[param->lsb[0]]); in show_in10()
305 /* The LSB value is a 2-bit scaling of the MSB's LSbit value. */ 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()
379 * number of degrees in the MSB with some part of the LSB
388 u8 msb, lsb; in show_temp10() local
392 msb = data->reg[param->msb[0]]; in show_temp10()
394 temp = (((s8) msb) * 1000) + (lsb * 250); 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()
489 currval = read_byte(client, param->msb[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()
547 currval = read_byte(client, param->msb[0]); 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()
623 currval = read_byte(client, param->msb[0]); 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()
630 currval = read_byte(client, param->msb[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()
681 currval = read_byte(client, param->msb[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()
730 currval = read_byte(client, param->msb[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()
778 currval = read_byte(client, param->msb[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()
801 .priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \
806 .priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \
810 * PWRITEM assumes that the initializers for the .msb, .lsb, .mask and .shift
815 .priority = pri, .msb = rm, .lsb = rl, .mask = m, .shift = s,}
1211 for (j = 0; j < ARRAY_SIZE(asc7621_params[i].msb); j++) in sm_asc7621_init()
1212 asc7621_register_priorities[asc7621_params[i].msb[j]] = in sm_asc7621_init()