Lines Matching refs:device_data
5399 struct lpfc_device_data *device_data; in lpfc_slave_alloc() local
5415 device_data = __lpfc_get_device_data(phba, in lpfc_slave_alloc()
5420 if (!device_data) { in lpfc_slave_alloc()
5422 device_data = lpfc_create_device_data(phba, in lpfc_slave_alloc()
5426 if (!device_data) in lpfc_slave_alloc()
5429 list_add_tail(&device_data->listentry, &phba->luns); in lpfc_slave_alloc()
5431 device_data->rport_data = rport->dd_data; in lpfc_slave_alloc()
5432 device_data->available = true; in lpfc_slave_alloc()
5434 sdev->hostdata = device_data; in lpfc_slave_alloc()
5525 struct lpfc_device_data *device_data = sdev->hostdata; in lpfc_slave_destroy() local
5528 if ((phba->cfg_fof) && (device_data)) { in lpfc_slave_destroy()
5530 device_data->available = false; in lpfc_slave_destroy()
5531 if (!device_data->oas_enabled) in lpfc_slave_destroy()
5532 lpfc_delete_device_data(phba, device_data); in lpfc_slave_destroy()