Lines Matching refs:device_data
6258 struct lpfc_device_data *device_data; in lpfc_slave_alloc() local
6274 device_data = __lpfc_get_device_data(phba, in lpfc_slave_alloc()
6279 if (!device_data) { in lpfc_slave_alloc()
6281 device_data = lpfc_create_device_data(phba, in lpfc_slave_alloc()
6287 if (!device_data) in lpfc_slave_alloc()
6290 list_add_tail(&device_data->listentry, &phba->luns); in lpfc_slave_alloc()
6292 device_data->rport_data = rport->dd_data; in lpfc_slave_alloc()
6293 device_data->available = true; in lpfc_slave_alloc()
6295 sdev->hostdata = device_data; in lpfc_slave_alloc()
6392 struct lpfc_device_data *device_data = sdev->hostdata; in lpfc_slave_destroy() local
6395 if ((phba->cfg_fof) && (device_data)) { in lpfc_slave_destroy()
6397 device_data->available = false; in lpfc_slave_destroy()
6398 if (!device_data->oas_enabled) in lpfc_slave_destroy()
6399 lpfc_delete_device_data(phba, device_data); in lpfc_slave_destroy()