Lines Matching refs:enclosure_dev

1369 	struct _enclosure_node *enclosure_dev, *r;  in mpt3sas_scsih_enclosure_find_by_handle()  local
1372 list_for_each_entry(enclosure_dev, &ioc->enclosure_list, list) { in mpt3sas_scsih_enclosure_find_by_handle()
1373 if (le16_to_cpu(enclosure_dev->pg0.EnclosureHandle) != handle) in mpt3sas_scsih_enclosure_find_by_handle()
1375 r = enclosure_dev; in mpt3sas_scsih_enclosure_find_by_handle()
5651 struct _enclosure_node *enclosure_dev; in _scsih_expander_add() local
5775 enclosure_dev = in _scsih_expander_add()
5778 if (enclosure_dev) in _scsih_expander_add()
5780 le64_to_cpu(enclosure_dev->pg0.EnclosureLogicalID); in _scsih_expander_add()
5935 struct _enclosure_node *enclosure_dev = NULL; in _scsih_check_device() local
5993 enclosure_dev = mpt3sas_scsih_enclosure_find_by_handle(ioc, in _scsih_check_device()
5995 if (enclosure_dev) { in _scsih_check_device()
5997 le64_to_cpu(enclosure_dev->pg0.EnclosureLogicalID); in _scsih_check_device()
5998 if (le16_to_cpu(enclosure_dev->pg0.Flags) & in _scsih_check_device()
6002 enclosure_dev->pg0.ChassisSlot; in _scsih_check_device()
6051 struct _enclosure_node *enclosure_dev = NULL; in _scsih_add_device() local
6100 enclosure_dev = in _scsih_add_device()
6103 if (enclosure_dev == NULL) in _scsih_add_device()
6147 if (enclosure_dev) { in _scsih_add_device()
6149 le64_to_cpu(enclosure_dev->pg0.EnclosureLogicalID); in _scsih_add_device()
6150 if (le16_to_cpu(enclosure_dev->pg0.Flags) & in _scsih_add_device()
6154 enclosure_dev->pg0.ChassisSlot; in _scsih_add_device()
6819 struct _enclosure_node *enclosure_dev; in _scsih_pcie_add_device() local
6924 enclosure_dev = in _scsih_pcie_add_device()
6927 if (enclosure_dev) in _scsih_pcie_add_device()
6929 le64_to_cpu(enclosure_dev->pg0.EnclosureLogicalID); in _scsih_pcie_add_device()
7305 struct _enclosure_node *enclosure_dev = NULL; in _scsih_sas_enclosure_dev_status_change_event() local
7319 enclosure_dev = in _scsih_sas_enclosure_dev_status_change_event()
7324 if (!enclosure_dev) { in _scsih_sas_enclosure_dev_status_change_event()
7325 enclosure_dev = in _scsih_sas_enclosure_dev_status_change_event()
7328 if (!enclosure_dev) { in _scsih_sas_enclosure_dev_status_change_event()
7334 &enclosure_dev->pg0, in _scsih_sas_enclosure_dev_status_change_event()
7340 kfree(enclosure_dev); in _scsih_sas_enclosure_dev_status_change_event()
7344 list_add_tail(&enclosure_dev->list, in _scsih_sas_enclosure_dev_status_change_event()
7349 if (enclosure_dev) { in _scsih_sas_enclosure_dev_status_change_event()
7350 list_del(&enclosure_dev->list); in _scsih_sas_enclosure_dev_status_change_event()
7351 kfree(enclosure_dev); in _scsih_sas_enclosure_dev_status_change_event()
8387 struct _enclosure_node *enclosure_dev = NULL; in _scsih_mark_responding_sas_device() local
8391 enclosure_dev = in _scsih_mark_responding_sas_device()
8394 if (enclosure_dev == NULL) in _scsih_mark_responding_sas_device()
8440 if (enclosure_dev) { in _scsih_mark_responding_sas_device()
8442 enclosure_dev->pg0.EnclosureLogicalID); in _scsih_mark_responding_sas_device()
8443 if (le16_to_cpu(enclosure_dev->pg0.Flags) & in _scsih_mark_responding_sas_device()
8447 enclosure_dev->pg0.ChassisSlot; in _scsih_mark_responding_sas_device()
8476 struct _enclosure_node *enclosure_dev; in _scsih_create_enclosure_list_after_reset() local
8487 enclosure_dev = in _scsih_create_enclosure_list_after_reset()
8489 if (!enclosure_dev) { in _scsih_create_enclosure_list_after_reset()
8495 &enclosure_dev->pg0, in _scsih_create_enclosure_list_after_reset()
8501 kfree(enclosure_dev); in _scsih_create_enclosure_list_after_reset()
8504 list_add_tail(&enclosure_dev->list, in _scsih_create_enclosure_list_after_reset()
8507 le16_to_cpu(enclosure_dev->pg0.EnclosureHandle); in _scsih_create_enclosure_list_after_reset()
8809 struct _enclosure_node *enclosure_dev = NULL; in _scsih_mark_responding_expander() local
8815 enclosure_dev = in _scsih_mark_responding_expander()
8825 if (enclosure_dev) { in _scsih_mark_responding_expander()
8827 le64_to_cpu(enclosure_dev->pg0.EnclosureLogicalID); in _scsih_mark_responding_expander()