Lines Matching refs:mv_dev

1463 	struct mvumi_device *mv_dev = NULL , *dev_next;  in mvumi_detach_devices()  local
1469 list_for_each_entry_safe(mv_dev, dev_next, in mvumi_detach_devices()
1471 mvumi_handle_hotplug(mhba, mv_dev->id, DEVICE_OFFLINE); in mvumi_detach_devices()
1472 list_del_init(&mv_dev->list); in mvumi_detach_devices()
1474 mv_dev->id, mv_dev->wwid); in mvumi_detach_devices()
1475 kfree(mv_dev); in mvumi_detach_devices()
1477 list_for_each_entry_safe(mv_dev, dev_next, &mhba->mhba_dev_list, list) { in mvumi_detach_devices()
1478 list_del_init(&mv_dev->list); in mvumi_detach_devices()
1480 mv_dev->id, mv_dev->wwid); in mvumi_detach_devices()
1481 kfree(mv_dev); in mvumi_detach_devices()
1510 struct mvumi_device *mv_dev = NULL; in mvumi_match_devices() local
1512 list_for_each_entry(mv_dev, &mhba->shost_dev_list, list) { in mvumi_match_devices()
1513 if (mv_dev->wwid == wwid) { in mvumi_match_devices()
1514 if (mv_dev->id != id) { in mvumi_match_devices()
1518 __func__, mv_dev->wwid, mv_dev->id, id); in mvumi_match_devices()
1533 struct mvumi_device *mv_dev = NULL, *dev_next; in mvumi_remove_devices() local
1535 list_for_each_entry_safe(mv_dev, dev_next, in mvumi_remove_devices()
1537 if (mv_dev->id == id) { in mvumi_remove_devices()
1540 mv_dev->id, mv_dev->wwid); in mvumi_remove_devices()
1541 mvumi_handle_hotplug(mhba, mv_dev->id, DEVICE_OFFLINE); in mvumi_remove_devices()
1542 list_del_init(&mv_dev->list); in mvumi_remove_devices()
1543 kfree(mv_dev); in mvumi_remove_devices()
1552 struct mvumi_device *mv_dev = NULL; in mvumi_probe_devices() local
1575 mv_dev = kzalloc(sizeof(struct mvumi_device), in mvumi_probe_devices()
1577 if (!mv_dev) { in mvumi_probe_devices()
1583 mv_dev->id = id; in mvumi_probe_devices()
1584 mv_dev->wwid = wwid; in mvumi_probe_devices()
1585 mv_dev->sdev = NULL; in mvumi_probe_devices()
1586 INIT_LIST_HEAD(&mv_dev->list); in mvumi_probe_devices()
1587 list_add_tail(&mv_dev->list, in mvumi_probe_devices()
1591 " wwid(%llx)\n", id, mv_dev->wwid); in mvumi_probe_devices()
1609 struct mvumi_device *mv_dev = NULL , *dev_next; in mvumi_rescan_bus() local
1623 list_for_each_entry_safe(mv_dev, dev_next, in mvumi_rescan_bus()
1625 if (mvumi_handle_hotplug(mhba, mv_dev->id, in mvumi_rescan_bus()
1631 mv_dev->id, mv_dev->wwid); in mvumi_rescan_bus()
1632 list_del_init(&mv_dev->list); in mvumi_rescan_bus()
1633 kfree(mv_dev); in mvumi_rescan_bus()
1635 list_move_tail(&mv_dev->list, in mvumi_rescan_bus()