Lines Matching refs:tgt_dev
792 tgtdev = tgt_priv->tgt_dev; in __mpi3mr_get_tgtdev_from_tgtpriv()
4188 struct mpi3mr_tgt_dev *tgt_dev = NULL; in mpi3mr_slave_destroy() local
4205 tgt_dev = __mpi3mr_get_tgtdev_by_perst_id(mrioc, starget->id); in mpi3mr_slave_destroy()
4208 tgt_dev = __mpi3mr_get_tgtdev_by_addr_and_rphy(mrioc, in mpi3mr_slave_destroy()
4212 if (tgt_dev && (!scsi_tgt_priv_data->num_luns)) in mpi3mr_slave_destroy()
4213 tgt_dev->starget = NULL; in mpi3mr_slave_destroy()
4214 if (tgt_dev) in mpi3mr_slave_destroy()
4215 mpi3mr_tgtdev_put(tgt_dev); in mpi3mr_slave_destroy()
4235 struct mpi3mr_tgt_dev *tgt_dev; in mpi3mr_target_destroy() local
4246 tgt_dev = __mpi3mr_get_tgtdev_from_tgtpriv(mrioc, scsi_tgt_priv_data); in mpi3mr_target_destroy()
4247 if (tgt_dev && (tgt_dev->starget == starget) && in mpi3mr_target_destroy()
4248 (tgt_dev->perst_id == starget->id)) in mpi3mr_target_destroy()
4249 tgt_dev->starget = NULL; in mpi3mr_target_destroy()
4250 if (tgt_dev) { in mpi3mr_target_destroy()
4251 scsi_tgt_priv_data->tgt_dev = NULL; in mpi3mr_target_destroy()
4253 mpi3mr_tgtdev_put(tgt_dev); in mpi3mr_target_destroy()
4254 mpi3mr_tgtdev_put(tgt_dev); in mpi3mr_target_destroy()
4276 struct mpi3mr_tgt_dev *tgt_dev = NULL; in mpi3mr_slave_configure() local
4287 tgt_dev = __mpi3mr_get_tgtdev_by_perst_id(mrioc, starget->id); in mpi3mr_slave_configure()
4290 tgt_dev = __mpi3mr_get_tgtdev_by_addr_and_rphy(mrioc, in mpi3mr_slave_configure()
4294 if (!tgt_dev) in mpi3mr_slave_configure()
4297 mpi3mr_change_queue_depth(sdev, tgt_dev->q_depth); in mpi3mr_slave_configure()
4302 switch (tgt_dev->dev_type) { in mpi3mr_slave_configure()
4305 if ((tgt_dev->dev_spec.pcie_inf.dev_info & in mpi3mr_slave_configure()
4309 tgt_dev->dev_spec.pcie_inf.mdts / 512); in mpi3mr_slave_configure()
4310 if (tgt_dev->dev_spec.pcie_inf.pgsz == 0) in mpi3mr_slave_configure()
4315 ((1 << tgt_dev->dev_spec.pcie_inf.pgsz) - 1)); in mpi3mr_slave_configure()
4322 mpi3mr_tgtdev_put(tgt_dev); in mpi3mr_slave_configure()
4340 struct mpi3mr_tgt_dev *tgt_dev = NULL; in mpi3mr_slave_alloc() local
4355 tgt_dev = __mpi3mr_get_tgtdev_by_perst_id(mrioc, starget->id); in mpi3mr_slave_alloc()
4358 tgt_dev = __mpi3mr_get_tgtdev_by_addr_and_rphy(mrioc, in mpi3mr_slave_alloc()
4362 if (tgt_dev) { in mpi3mr_slave_alloc()
4363 if (tgt_dev->starget == NULL) in mpi3mr_slave_alloc()
4364 tgt_dev->starget = starget; in mpi3mr_slave_alloc()
4365 mpi3mr_tgtdev_put(tgt_dev); in mpi3mr_slave_alloc()
4400 struct mpi3mr_tgt_dev *tgt_dev; in mpi3mr_target_alloc() local
4415 tgt_dev = __mpi3mr_get_tgtdev_by_perst_id(mrioc, starget->id); in mpi3mr_target_alloc()
4416 if (tgt_dev && !tgt_dev->is_hidden) in mpi3mr_target_alloc()
4422 tgt_dev = __mpi3mr_get_tgtdev_by_addr_and_rphy(mrioc, in mpi3mr_target_alloc()
4424 if (tgt_dev && !tgt_dev->is_hidden && !tgt_dev->non_stl && in mpi3mr_target_alloc()
4425 (tgt_dev->dev_type == MPI3_DEVICE_DEVFORM_SAS_SATA)) in mpi3mr_target_alloc()
4433 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
4434 scsi_tgt_priv_data->perst_id = tgt_dev->perst_id; in mpi3mr_target_alloc()
4435 scsi_tgt_priv_data->dev_type = tgt_dev->dev_type; in mpi3mr_target_alloc()
4436 scsi_tgt_priv_data->tgt_dev = tgt_dev; in mpi3mr_target_alloc()
4437 tgt_dev->starget = starget; in mpi3mr_target_alloc()
4441 tgt_dev->io_throttle_enabled; in mpi3mr_target_alloc()
4442 if (tgt_dev->dev_type == MPI3_DEVICE_DEVFORM_VD) in mpi3mr_target_alloc()
4444 tgt_dev->dev_spec.vd_inf.tg; in mpi3mr_target_alloc()