bfad.c (e4da3fbfbd1de56d2367653e3823e6445e49f8a9) bfad.c (5b7db7af522d9f281ff8bf540d2b5cbea2206b27)
1/*
2 * Copyright (c) 2005-2010 Brocade Communications Systems, Inc.
3 * All rights reserved
4 * www.brocade.com
5 *
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 660 unchanged lines hidden (view full) ---

669 rc = bfad_im_scsi_host_alloc(bfad, vport->drv_port.im_port,
670 dev);
671 if (rc != BFA_STATUS_OK)
672 goto ext_free_fcs_vport;
673 }
674
675 spin_lock_irqsave(&bfad->bfad_lock, flags);
676 bfa_fcs_vport_start(&vport->fcs_vport);
1/*
2 * Copyright (c) 2005-2010 Brocade Communications Systems, Inc.
3 * All rights reserved
4 * www.brocade.com
5 *
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 660 unchanged lines hidden (view full) ---

669 rc = bfad_im_scsi_host_alloc(bfad, vport->drv_port.im_port,
670 dev);
671 if (rc != BFA_STATUS_OK)
672 goto ext_free_fcs_vport;
673 }
674
675 spin_lock_irqsave(&bfad->bfad_lock, flags);
676 bfa_fcs_vport_start(&vport->fcs_vport);
677 list_add_tail(&vport->list_entry, &bfad->vport_list);
677 spin_unlock_irqrestore(&bfad->bfad_lock, flags);
678
679 return BFA_STATUS_OK;
680
681ext_free_fcs_vport:
682 spin_lock_irqsave(&bfad->bfad_lock, flags);
683 vport->comp_del = &fcomp;
684 init_completion(vport->comp_del);

--- 714 unchanged lines hidden (view full) ---

1399 bfa_sm_set_state(bfad, bfad_sm_uninit);
1400
1401 spin_lock_init(&bfad->bfad_lock);
1402 pci_set_drvdata(pdev, bfad);
1403
1404 bfad->ref_count = 0;
1405 bfad->pport.bfad = bfad;
1406 INIT_LIST_HEAD(&bfad->pbc_vport_list);
678 spin_unlock_irqrestore(&bfad->bfad_lock, flags);
679
680 return BFA_STATUS_OK;
681
682ext_free_fcs_vport:
683 spin_lock_irqsave(&bfad->bfad_lock, flags);
684 vport->comp_del = &fcomp;
685 init_completion(vport->comp_del);

--- 714 unchanged lines hidden (view full) ---

1400 bfa_sm_set_state(bfad, bfad_sm_uninit);
1401
1402 spin_lock_init(&bfad->bfad_lock);
1403 pci_set_drvdata(pdev, bfad);
1404
1405 bfad->ref_count = 0;
1406 bfad->pport.bfad = bfad;
1407 INIT_LIST_HEAD(&bfad->pbc_vport_list);
1408 INIT_LIST_HEAD(&bfad->vport_list);
1407
1408 /* Setup the debugfs node for this bfad */
1409 if (bfa_debugfs_enable)
1410 bfad_debugfs_init(&bfad->pport);
1411
1412 retval = bfad_drv_init(bfad);
1413 if (retval != BFA_STATUS_OK)
1414 goto out_drv_init_failure;

--- 236 unchanged lines hidden ---
1409
1410 /* Setup the debugfs node for this bfad */
1411 if (bfa_debugfs_enable)
1412 bfad_debugfs_init(&bfad->pport);
1413
1414 retval = bfad_drv_init(bfad);
1415 if (retval != BFA_STATUS_OK)
1416 goto out_drv_init_failure;

--- 236 unchanged lines hidden ---