Lines Matching refs:enclosure_dev

1070 	struct mpi3mr_enclosure_node *enclosure_dev = NULL;  in mpi3mr_update_tgtdev()  local
1085 enclosure_dev = mpi3mr_enclosure_find_by_handle(mrioc, in mpi3mr_update_tgtdev()
1087 if (enclosure_dev) in mpi3mr_update_tgtdev()
1089 enclosure_dev->pg0.enclosure_logical_id); in mpi3mr_update_tgtdev()
1347 struct mpi3mr_enclosure_node *enclosure_dev, *enclosure_dev_next; in mpi3mr_free_enclosure_list() local
1349 list_for_each_entry_safe(enclosure_dev, in mpi3mr_free_enclosure_list()
1351 list_del(&enclosure_dev->list); in mpi3mr_free_enclosure_list()
1352 kfree(enclosure_dev); in mpi3mr_free_enclosure_list()
1369 struct mpi3mr_enclosure_node *enclosure_dev, *r = NULL; in mpi3mr_enclosure_find_by_handle() local
1371 list_for_each_entry(enclosure_dev, &mrioc->enclosure_list, list) { in mpi3mr_enclosure_find_by_handle()
1372 if (le16_to_cpu(enclosure_dev->pg0.enclosure_handle) != handle) in mpi3mr_enclosure_find_by_handle()
1374 r = enclosure_dev; in mpi3mr_enclosure_find_by_handle()
1429 struct mpi3mr_enclosure_node *enclosure_dev = NULL; in mpi3mr_encldev_add_chg_evt_bh() local
1444 enclosure_dev = mpi3mr_enclosure_find_by_handle(mrioc, in mpi3mr_encldev_add_chg_evt_bh()
1446 if (!enclosure_dev && present) { in mpi3mr_encldev_add_chg_evt_bh()
1447 enclosure_dev = in mpi3mr_encldev_add_chg_evt_bh()
1450 if (!enclosure_dev) in mpi3mr_encldev_add_chg_evt_bh()
1452 list_add_tail(&enclosure_dev->list, in mpi3mr_encldev_add_chg_evt_bh()
1455 if (enclosure_dev) { in mpi3mr_encldev_add_chg_evt_bh()
1457 list_del(&enclosure_dev->list); in mpi3mr_encldev_add_chg_evt_bh()
1458 kfree(enclosure_dev); in mpi3mr_encldev_add_chg_evt_bh()
1460 memcpy(&enclosure_dev->pg0, encl_pg0, in mpi3mr_encldev_add_chg_evt_bh()
1461 sizeof(enclosure_dev->pg0)); in mpi3mr_encldev_add_chg_evt_bh()