Lines Matching refs:state

38 	enum myrb_devstate state;
49 static const char *myrb_devstate_name(enum myrb_devstate state)
55 if (entry[i].state == state)
406 if (new->state == MYRB_DEVICE_OFFLINE)
409 "Adding Logical Drive %d in state %s\n",
410 ldev_num, myrb_devstate_name(new->state));
416 if (new->state != old->state)
419 ldev_num, myrb_devstate_name(new->state));
775 * myrb_set_pdev_state - sets the device state for a physical device
780 struct scsi_device *sdev, enum myrb_devstate state)
791 mbox->type3D.state = state & 0x1F;
1435 if (ldev_info->state != MYRB_DEVICE_ONLINE &&
1436 ldev_info->state != MYRB_DEVICE_WO) {
1437 dev_dbg(&shost->shost_gendev, "ldev %u in state %x, skip\n",
1438 sdev->id, ldev_info ? ldev_info->state : 0xff);
1506 if (ldev_info->state == MYRB_DEVICE_WO) {
1520 if (ldev_info->state == MYRB_DEVICE_WO) {
1534 if (ldev_info->state == MYRB_DEVICE_WO) {
1638 "slave alloc ldev %d state %x\n",
1639 ldev_num, ldev_info->state);
1686 "Failed to get device state, status %x\n",
1698 "slave alloc pdev %d:%d state %x\n",
1699 sdev->channel, sdev->id, pdev_info->state);
1736 if (ldev_info->state != MYRB_DEVICE_ONLINE)
1739 myrb_devstate_name(ldev_info->state));
1776 name = myrb_devstate_name(ldev_info->state);
1781 ldev_info->state);
1791 "Failed to get device state, status %x\n",
1797 name = myrb_devstate_name(pdev_info->state);
1802 pdev_info->state);
1838 if (pdev_info->state == new_state)
1890 ldev_info->state);
2269 enum raid_state state = RAID_STATE_UNKNOWN;
2273 state = RAID_STATE_UNKNOWN;
2277 state = RAID_STATE_RESYNCING;
2279 switch (ldev_info->state) {
2281 state = RAID_STATE_ACTIVE;
2285 state = RAID_STATE_DEGRADED;
2288 state = RAID_STATE_OFFLINE;
2292 raid_set_state(myrb_raid_template, dev, state);
3212 static inline void myrb_translate_devstate(void *state)
3214 memcpy(state + 2, state + 3, 1);
3215 memmove(state + 4, state + 5, 2);
3216 memmove(state + 6, state + 8, 4);