Lines Matching refs:mv_dev

1500 	struct mvumi_device *mv_dev = NULL , *dev_next;  in mvumi_detach_devices()  local
1506 list_for_each_entry_safe(mv_dev, dev_next, in mvumi_detach_devices()
1508 mvumi_handle_hotplug(mhba, mv_dev->id, DEVICE_OFFLINE); in mvumi_detach_devices()
1509 list_del_init(&mv_dev->list); in mvumi_detach_devices()
1511 mv_dev->id, mv_dev->wwid); in mvumi_detach_devices()
1512 kfree(mv_dev); in mvumi_detach_devices()
1514 list_for_each_entry_safe(mv_dev, dev_next, &mhba->mhba_dev_list, list) { in mvumi_detach_devices()
1515 list_del_init(&mv_dev->list); in mvumi_detach_devices()
1517 mv_dev->id, mv_dev->wwid); in mvumi_detach_devices()
1518 kfree(mv_dev); in mvumi_detach_devices()
1547 struct mvumi_device *mv_dev = NULL; in mvumi_match_devices() local
1549 list_for_each_entry(mv_dev, &mhba->shost_dev_list, list) { in mvumi_match_devices()
1550 if (mv_dev->wwid == wwid) { in mvumi_match_devices()
1551 if (mv_dev->id != id) { in mvumi_match_devices()
1555 __func__, mv_dev->wwid, mv_dev->id, id); in mvumi_match_devices()
1570 struct mvumi_device *mv_dev = NULL, *dev_next; in mvumi_remove_devices() local
1572 list_for_each_entry_safe(mv_dev, dev_next, in mvumi_remove_devices()
1574 if (mv_dev->id == id) { in mvumi_remove_devices()
1577 mv_dev->id, mv_dev->wwid); in mvumi_remove_devices()
1578 mvumi_handle_hotplug(mhba, mv_dev->id, DEVICE_OFFLINE); in mvumi_remove_devices()
1579 list_del_init(&mv_dev->list); in mvumi_remove_devices()
1580 kfree(mv_dev); in mvumi_remove_devices()
1589 struct mvumi_device *mv_dev = NULL; in mvumi_probe_devices() local
1612 mv_dev = kzalloc(sizeof(struct mvumi_device), in mvumi_probe_devices()
1614 if (!mv_dev) { in mvumi_probe_devices()
1620 mv_dev->id = id; in mvumi_probe_devices()
1621 mv_dev->wwid = wwid; in mvumi_probe_devices()
1622 mv_dev->sdev = NULL; in mvumi_probe_devices()
1623 INIT_LIST_HEAD(&mv_dev->list); in mvumi_probe_devices()
1624 list_add_tail(&mv_dev->list, in mvumi_probe_devices()
1628 " wwid(%llx)\n", id, mv_dev->wwid); in mvumi_probe_devices()
1646 struct mvumi_device *mv_dev = NULL , *dev_next; in mvumi_rescan_bus() local
1660 list_for_each_entry_safe(mv_dev, dev_next, in mvumi_rescan_bus()
1662 if (mvumi_handle_hotplug(mhba, mv_dev->id, in mvumi_rescan_bus()
1668 mv_dev->id, mv_dev->wwid); in mvumi_rescan_bus()
1669 list_del_init(&mv_dev->list); in mvumi_rescan_bus()
1670 kfree(mv_dev); in mvumi_rescan_bus()
1672 list_move_tail(&mv_dev->list, in mvumi_rescan_bus()