Lines Matching refs:device_data
6238 struct lpfc_device_data *device_data; in lpfc_slave_alloc() local
6254 device_data = __lpfc_get_device_data(phba, in lpfc_slave_alloc()
6259 if (!device_data) { in lpfc_slave_alloc()
6261 device_data = lpfc_create_device_data(phba, in lpfc_slave_alloc()
6267 if (!device_data) in lpfc_slave_alloc()
6270 list_add_tail(&device_data->listentry, &phba->luns); in lpfc_slave_alloc()
6272 device_data->rport_data = rport->dd_data; in lpfc_slave_alloc()
6273 device_data->available = true; in lpfc_slave_alloc()
6275 sdev->hostdata = device_data; in lpfc_slave_alloc()
6372 struct lpfc_device_data *device_data = sdev->hostdata; in lpfc_slave_destroy() local
6375 if ((phba->cfg_fof) && (device_data)) { in lpfc_slave_destroy()
6377 device_data->available = false; in lpfc_slave_destroy()
6378 if (!device_data->oas_enabled) in lpfc_slave_destroy()
6379 lpfc_delete_device_data(phba, device_data); in lpfc_slave_destroy()