Lines Matching refs:vccp
1132 int vccp = nr - 6; in in_min_show() local
1135 if ((nr == 6 || nr == 7) && vccp_limit_type[vccp]) { in in_min_show()
1136 vid = LM93_VID_FROM_REG(data->vid[vccp]); in in_min_show()
1137 rc = LM93_IN_MIN_FROM_REG(data->vccp_limits[vccp], vid); in in_min_show()
1150 int vccp = nr - 6; in in_min_store() local
1160 if ((nr == 6 || nr == 7) && vccp_limit_type[vccp]) { in in_min_store()
1161 vid = LM93_VID_FROM_REG(data->vid[vccp]); in in_min_store()
1162 data->vccp_limits[vccp] = (data->vccp_limits[vccp] & 0xf0) | in in_min_store()
1164 lm93_write_byte(client, LM93_REG_VCCP_LIMIT_OFF(vccp), in in_min_store()
1165 data->vccp_limits[vccp]); in in_min_store()
1197 int vccp = nr - 6; in in_max_show() local
1200 if ((nr == 6 || nr == 7) && vccp_limit_type[vccp]) { in in_max_show()
1201 vid = LM93_VID_FROM_REG(data->vid[vccp]); in in_max_show()
1202 rc = LM93_IN_MAX_FROM_REG(data->vccp_limits[vccp], vid); in in_max_show()
1215 int vccp = nr - 6; in in_max_store() local
1225 if ((nr == 6 || nr == 7) && vccp_limit_type[vccp]) { in in_max_store()
1226 vid = LM93_VID_FROM_REG(data->vid[vccp]); in in_max_store()
1227 data->vccp_limits[vccp] = (data->vccp_limits[vccp] & 0x0f) | in in_max_store()
1229 lm93_write_byte(client, LM93_REG_VCCP_LIMIT_OFF(vccp), in in_max_store()
1230 data->vccp_limits[vccp]); in in_max_store()