/* unregisters all bnx2i adapter instances with the cnic driver while holding the global resource lock  */
void bnx2i_unreg_dev_all(void)
/* unregisters all bnx2i adapter instances with the cnic driver while holding the global resource lock  */
void bnx2i_unreg_dev_all(void)
{
	struct bnx2i_hba *hba, *temp;
	mutex_lock(&bnx2i_dev_lock);
	list_for_each_entry_safe(hba, temp, &adapter_list, link)
		bnx2i_unreg_one_device(hba);
	mutex_unlock(&bnx2i_dev_lock);
}