Lines Matching refs:tgtdev

299 	struct mpi3mr_tgt_dev *tgtdev;  in mpi3mr_get_all_tgt_info()  local
311 list_for_each_entry(tgtdev, &mrioc->tgtdev_list, list) in mpi3mr_get_all_tgt_info()
332 list_for_each_entry(tgtdev, &mrioc->tgtdev_list, list) { in mpi3mr_get_all_tgt_info()
334 devmap_info[i].handle = tgtdev->dev_handle; in mpi3mr_get_all_tgt_info()
335 devmap_info[i].perst_id = tgtdev->perst_id; in mpi3mr_get_all_tgt_info()
336 if (tgtdev->host_exposed && tgtdev->starget) { in mpi3mr_get_all_tgt_info()
337 devmap_info[i].target_id = tgtdev->starget->id; in mpi3mr_get_all_tgt_info()
339 tgtdev->starget->channel; in mpi3mr_get_all_tgt_info()
731 struct mpi3mr_tgt_dev *tgtdev; in mpi3mr_build_nvme_prp() local
733 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_build_nvme_prp()
734 if (!tgtdev) { in mpi3mr_build_nvme_prp()
740 if (tgtdev->dev_spec.pcie_inf.pgsz == 0) { in mpi3mr_build_nvme_prp()
744 mpi3mr_tgtdev_put(tgtdev); in mpi3mr_build_nvme_prp()
748 dev_pgsz = 1 << (tgtdev->dev_spec.pcie_inf.pgsz); in mpi3mr_build_nvme_prp()
749 mpi3mr_tgtdev_put(tgtdev); in mpi3mr_build_nvme_prp()
967 struct mpi3mr_tgt_dev *tgtdev; in mpi3mr_bsg_process_mpt_cmds() local
1243 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_bsg_process_mpt_cmds()
1244 if (tgtdev && tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_bsg_process_mpt_cmds()
1246 tgtdev->starget->hostdata; in mpi3mr_bsg_process_mpt_cmds()
1248 mpi3mr_tgtdev_put(tgtdev); in mpi3mr_bsg_process_mpt_cmds()
1763 struct mpi3mr_tgt_dev *tgtdev; in sas_address_show() local
1772 tgtdev = tgt_priv_data->tgt_dev; in sas_address_show()
1773 if (!tgtdev || tgtdev->dev_type != MPI3_DEVICE_DEVFORM_SAS_SATA) in sas_address_show()
1776 (unsigned long long)tgtdev->dev_spec.sas_sata_inf.sas_address); in sas_address_show()
1797 struct mpi3mr_tgt_dev *tgtdev; in device_handle_show() local
1806 tgtdev = tgt_priv_data->tgt_dev; in device_handle_show()
1807 if (!tgtdev) in device_handle_show()
1809 return sysfs_emit(buf, "0x%04x\n", tgtdev->dev_handle); in device_handle_show()
1830 struct mpi3mr_tgt_dev *tgtdev; in persistent_id_show() local
1839 tgtdev = tgt_priv_data->tgt_dev; in persistent_id_show()
1840 if (!tgtdev) in persistent_id_show()
1842 return sysfs_emit(buf, "%d\n", tgtdev->perst_id); in persistent_id_show()