Lines Matching defs:instance

700  * instance number (0 or 1). It simply make a psvc_get call to get the
758 int32_t instance;
773 * Get the power supply's instance.
776 status = psvc_get_attr(hdlp, id, PSVC_INSTANCE_ATTR, &instance);
780 if (present == PSVC_PRESENT && !ps_prev_present[instance]) {
804 pcf8574_addr[instance]);
806 fruprom_addr[instance]);
812 ps_reset_prev_failed(instance);
819 * The hardcoded subscript in pcf8574_add[instance][1]
826 pcf8574_addr[instance][1]);
830 SEG5_DEV_NAME"fru@0,%x:fru", fruprom_addr[instance][1]);
887 int instance;
960 status = psvc_get_attr(hdlp, id, PSVC_INSTANCE_ATTR, &instance);
990 if (ps_prev_id[instance][i] == NULL)
991 ps_prev_id[instance][i] = sensor_id;
993 if (ps_prev_failed[instance][i] != 1)
994 ps_prev_failed[instance][i] = 1;
1062 char *sensor = ps_prev_id[instance][i];
1063 int *prev_failed = &ps_prev_failed[instance][i];
1221 int instance;
1224 err = psvc_get_attr(hdlp, id, PSVC_INSTANCE_ATTR, &instance);
1226 ps_prev_present[instance] = ps_present[instance] = presence;
1234 int instance;
1238 err = psvc_get_attr(hdlp, id, PSVC_INSTANCE_ATTR, &instance);
1243 ps_prev_present[instance] = ps_present[instance];
1251 &ps_present[instance]);
1256 (ps_present[instance] != ps_prev_present[instance]));
1259 if (ps_present[instance] != ps_prev_present[instance]) {
1260 err = handle_ps_hotplug(hdlp, id, ps_present[instance]);
1265 if (!ps_present[instance])
1271 if (ps_present[instance] == PSVC_PRESENT &&
1272 ps_prev_present[instance] == PSVC_PRESENT) {
1275 ps_reset_prev_failed(instance);
1276 ps_prev_present[instance] = 0;
1277 handle_ps_hotplug(hdlp, id, ps_present[instance]);
1289 failed_last_time[instance] = 0;
1293 if (! failed_last_time[instance]) {
1302 * The instance determines which power supply the policy
1303 * errored on. For instance PS0 might have failed and then
1306 * The instance keeps track of which failure occurred so
1309 failed_last_time[instance] = 1;
1321 int instance;
1329 err = psvc_get_attr(hdlp, id, PSVC_INSTANCE_ATTR, &instance);
1342 if (byte & led_masks[instance]) { /* Led is OFF */
1347 bit_nums[instance], bit_value,
1353 if (byte & led_masks[instance]) { /* Led is OFF, Turn it ON */
1356 bit_nums[instance], bit_value,