Lines Matching refs:lc
12693 mptsas_led_control_t lc; in led_control() local
12697 if (ddi_copyin((void *)data, &lc, sizeof (lc), mode) != 0) { in led_control()
12701 if ((lc.Command != MPTSAS_LEDCTL_FLAG_SET && in led_control()
12702 lc.Command != MPTSAS_LEDCTL_FLAG_GET) || in led_control()
12703 lc.Led < MPTSAS_LEDCTL_LED_MIN || in led_control()
12704 lc.Led > MPTSAS_LEDCTL_LED_MAX || in led_control()
12705 (lc.Command == MPTSAS_LEDCTL_FLAG_SET && lc.LedStatus != 0 && in led_control()
12706 lc.LedStatus != 1)) { in led_control()
12710 if ((lc.Command == MPTSAS_LEDCTL_FLAG_SET && (mode & FWRITE) == 0) || in led_control()
12711 (lc.Command == MPTSAS_LEDCTL_FLAG_GET && (mode & FREAD) == 0)) in led_control()
12716 mep = mptsas_enc_lookup(mpt, lc.Enclosure); in led_control()
12722 if (lc.Slot < mep->me_fslot) { in led_control()
12731 slotidx = lc.Slot - mep->me_fslot; in led_control()
12737 if (lc.Command == MPTSAS_LEDCTL_FLAG_SET) { in led_control()
12739 mep->me_slotleds[slotidx] &= ~(1 << (lc.Led - 1)); in led_control()
12740 mep->me_slotleds[slotidx] |= lc.LedStatus << (lc.Led - 1); in led_control()
12749 lc.LedStatus = (mep->me_slotleds[slotidx] >> (lc.Led - 1)) & 1; in led_control()
12752 if (ddi_copyout(&lc, (void *)data, sizeof (lc), mode) != 0) { in led_control()