Lines Matching refs:mv_dev
1477 struct mvumi_device *mv_dev = NULL , *dev_next; in mvumi_detach_devices() local
1483 list_for_each_entry_safe(mv_dev, dev_next, in mvumi_detach_devices()
1485 mvumi_handle_hotplug(mhba, mv_dev->id, DEVICE_OFFLINE); in mvumi_detach_devices()
1486 list_del_init(&mv_dev->list); in mvumi_detach_devices()
1488 mv_dev->id, mv_dev->wwid); in mvumi_detach_devices()
1489 kfree(mv_dev); in mvumi_detach_devices()
1491 list_for_each_entry_safe(mv_dev, dev_next, &mhba->mhba_dev_list, list) { in mvumi_detach_devices()
1492 list_del_init(&mv_dev->list); in mvumi_detach_devices()
1494 mv_dev->id, mv_dev->wwid); in mvumi_detach_devices()
1495 kfree(mv_dev); in mvumi_detach_devices()
1524 struct mvumi_device *mv_dev = NULL; in mvumi_match_devices() local
1526 list_for_each_entry(mv_dev, &mhba->shost_dev_list, list) { in mvumi_match_devices()
1527 if (mv_dev->wwid == wwid) { in mvumi_match_devices()
1528 if (mv_dev->id != id) { in mvumi_match_devices()
1532 __func__, mv_dev->wwid, mv_dev->id, id); in mvumi_match_devices()
1547 struct mvumi_device *mv_dev = NULL, *dev_next; in mvumi_remove_devices() local
1549 list_for_each_entry_safe(mv_dev, dev_next, in mvumi_remove_devices()
1551 if (mv_dev->id == id) { in mvumi_remove_devices()
1554 mv_dev->id, mv_dev->wwid); in mvumi_remove_devices()
1555 mvumi_handle_hotplug(mhba, mv_dev->id, DEVICE_OFFLINE); in mvumi_remove_devices()
1556 list_del_init(&mv_dev->list); in mvumi_remove_devices()
1557 kfree(mv_dev); in mvumi_remove_devices()
1566 struct mvumi_device *mv_dev = NULL; in mvumi_probe_devices() local
1589 mv_dev = kzalloc(sizeof(struct mvumi_device), in mvumi_probe_devices()
1591 if (!mv_dev) { in mvumi_probe_devices()
1597 mv_dev->id = id; in mvumi_probe_devices()
1598 mv_dev->wwid = wwid; in mvumi_probe_devices()
1599 mv_dev->sdev = NULL; in mvumi_probe_devices()
1600 INIT_LIST_HEAD(&mv_dev->list); in mvumi_probe_devices()
1601 list_add_tail(&mv_dev->list, in mvumi_probe_devices()
1605 " wwid(%llx)\n", id, mv_dev->wwid); in mvumi_probe_devices()
1623 struct mvumi_device *mv_dev = NULL , *dev_next; in mvumi_rescan_bus() local
1637 list_for_each_entry_safe(mv_dev, dev_next, in mvumi_rescan_bus()
1639 if (mvumi_handle_hotplug(mhba, mv_dev->id, in mvumi_rescan_bus()
1645 mv_dev->id, mv_dev->wwid); in mvumi_rescan_bus()
1646 list_del_init(&mv_dev->list); in mvumi_rescan_bus()
1647 kfree(mv_dev); in mvumi_rescan_bus()
1649 list_move_tail(&mv_dev->list, in mvumi_rescan_bus()