Lines Matching refs:scsi_tgt_priv_data
1095 struct mpi3mr_stgt_priv_data *scsi_tgt_priv_data = NULL; in mpi3mr_update_tgtdev() local
1139 scsi_tgt_priv_data = (struct mpi3mr_stgt_priv_data *) in mpi3mr_update_tgtdev()
1141 scsi_tgt_priv_data->perst_id = tgtdev->perst_id; in mpi3mr_update_tgtdev()
1142 scsi_tgt_priv_data->dev_handle = tgtdev->dev_handle; in mpi3mr_update_tgtdev()
1143 scsi_tgt_priv_data->dev_type = tgtdev->dev_type; in mpi3mr_update_tgtdev()
1144 scsi_tgt_priv_data->io_throttle_enabled = in mpi3mr_update_tgtdev()
1147 atomic_set(&scsi_tgt_priv_data->block_io, 0); in mpi3mr_update_tgtdev()
1148 scsi_tgt_priv_data->wslen = tgtdev->wslen; in mpi3mr_update_tgtdev()
1265 if (scsi_tgt_priv_data) in mpi3mr_update_tgtdev()
1266 scsi_tgt_priv_data->throttle_group = tg; in mpi3mr_update_tgtdev()
2503 struct mpi3mr_stgt_priv_data *scsi_tgt_priv_data = NULL; in mpi3mr_pcietopochg_evt_th() local
2510 scsi_tgt_priv_data = NULL; in mpi3mr_pcietopochg_evt_th()
2513 scsi_tgt_priv_data = (struct mpi3mr_stgt_priv_data *) in mpi3mr_pcietopochg_evt_th()
2517 if (scsi_tgt_priv_data) { in mpi3mr_pcietopochg_evt_th()
2518 scsi_tgt_priv_data->dev_removed = 1; in mpi3mr_pcietopochg_evt_th()
2519 scsi_tgt_priv_data->dev_removedelay = 0; in mpi3mr_pcietopochg_evt_th()
2520 atomic_set(&scsi_tgt_priv_data->block_io, 0); in mpi3mr_pcietopochg_evt_th()
2526 if (scsi_tgt_priv_data) { in mpi3mr_pcietopochg_evt_th()
2527 scsi_tgt_priv_data->dev_removedelay = 1; in mpi3mr_pcietopochg_evt_th()
2528 atomic_inc(&scsi_tgt_priv_data->block_io); in mpi3mr_pcietopochg_evt_th()
2532 if (scsi_tgt_priv_data && in mpi3mr_pcietopochg_evt_th()
2533 scsi_tgt_priv_data->dev_removedelay) { in mpi3mr_pcietopochg_evt_th()
2534 scsi_tgt_priv_data->dev_removedelay = 0; in mpi3mr_pcietopochg_evt_th()
2536 (&scsi_tgt_priv_data->block_io); in mpi3mr_pcietopochg_evt_th()
2569 struct mpi3mr_stgt_priv_data *scsi_tgt_priv_data = NULL; in mpi3mr_sastopochg_evt_th() local
2577 scsi_tgt_priv_data = NULL; in mpi3mr_sastopochg_evt_th()
2580 scsi_tgt_priv_data = (struct mpi3mr_stgt_priv_data *) in mpi3mr_sastopochg_evt_th()
2584 if (scsi_tgt_priv_data) { in mpi3mr_sastopochg_evt_th()
2585 scsi_tgt_priv_data->dev_removed = 1; in mpi3mr_sastopochg_evt_th()
2586 scsi_tgt_priv_data->dev_removedelay = 0; in mpi3mr_sastopochg_evt_th()
2587 atomic_set(&scsi_tgt_priv_data->block_io, 0); in mpi3mr_sastopochg_evt_th()
2593 if (scsi_tgt_priv_data) { in mpi3mr_sastopochg_evt_th()
2594 scsi_tgt_priv_data->dev_removedelay = 1; in mpi3mr_sastopochg_evt_th()
2595 atomic_inc(&scsi_tgt_priv_data->block_io); in mpi3mr_sastopochg_evt_th()
2599 if (scsi_tgt_priv_data && in mpi3mr_sastopochg_evt_th()
2600 scsi_tgt_priv_data->dev_removedelay) { in mpi3mr_sastopochg_evt_th()
2601 scsi_tgt_priv_data->dev_removedelay = 0; in mpi3mr_sastopochg_evt_th()
2603 (&scsi_tgt_priv_data->block_io); in mpi3mr_sastopochg_evt_th()
2633 struct mpi3mr_stgt_priv_data *scsi_tgt_priv_data = NULL; in mpi3mr_devstatuschg_evt_th() local
2669 scsi_tgt_priv_data = (struct mpi3mr_stgt_priv_data *) in mpi3mr_devstatuschg_evt_th()
2672 atomic_inc(&scsi_tgt_priv_data->block_io); in mpi3mr_devstatuschg_evt_th()
2674 scsi_tgt_priv_data->dev_removed = 1; in mpi3mr_devstatuschg_evt_th()
2676 atomic_dec_if_positive(&scsi_tgt_priv_data->block_io); in mpi3mr_devstatuschg_evt_th()
3643 struct mpi3mr_stgt_priv_data *scsi_tgt_priv_data = NULL; in mpi3mr_issue_tm() local
3687 scsi_tgt_priv_data = ((sdev_priv_data) ? in mpi3mr_issue_tm()
3691 scsi_tgt_priv_data = (struct mpi3mr_stgt_priv_data *) in mpi3mr_issue_tm()
3695 if (scsi_tgt_priv_data) in mpi3mr_issue_tm()
3696 atomic_inc(&scsi_tgt_priv_data->block_io); in mpi3mr_issue_tm()
3780 if (!scsi_tgt_priv_data) in mpi3mr_issue_tm()
3782 scsi_tgt_priv_data->pend_count = 0; in mpi3mr_issue_tm()
3785 (void *)scsi_tgt_priv_data->starget); in mpi3mr_issue_tm()
3801 if (scsi_tgt_priv_data) in mpi3mr_issue_tm()
3802 atomic_dec_if_positive(&scsi_tgt_priv_data->block_io); in mpi3mr_issue_tm()
4291 struct mpi3mr_stgt_priv_data *scsi_tgt_priv_data; in mpi3mr_slave_destroy() local
4303 scsi_tgt_priv_data = starget->hostdata; in mpi3mr_slave_destroy()
4305 scsi_tgt_priv_data->num_luns--; in mpi3mr_slave_destroy()
4316 if (tgt_dev && (!scsi_tgt_priv_data->num_luns)) in mpi3mr_slave_destroy()
4338 struct mpi3mr_stgt_priv_data *scsi_tgt_priv_data; in mpi3mr_target_destroy() local
4347 scsi_tgt_priv_data = starget->hostdata; in mpi3mr_target_destroy()
4350 tgt_dev = __mpi3mr_get_tgtdev_from_tgtpriv(mrioc, scsi_tgt_priv_data); in mpi3mr_target_destroy()
4355 scsi_tgt_priv_data->tgt_dev = NULL; in mpi3mr_target_destroy()
4356 scsi_tgt_priv_data->perst_id = 0; in mpi3mr_target_destroy()
4443 struct mpi3mr_stgt_priv_data *scsi_tgt_priv_data; in mpi3mr_slave_alloc() local
4454 scsi_tgt_priv_data = starget->hostdata; in mpi3mr_slave_alloc()
4483 scsi_dev_priv_data->tgt_priv_data = scsi_tgt_priv_data; in mpi3mr_slave_alloc()
4486 scsi_tgt_priv_data->num_luns++; in mpi3mr_slave_alloc()
4503 struct mpi3mr_stgt_priv_data *scsi_tgt_priv_data; in mpi3mr_target_alloc() local
4509 scsi_tgt_priv_data = kzalloc(sizeof(*scsi_tgt_priv_data), GFP_KERNEL); in mpi3mr_target_alloc()
4510 if (!scsi_tgt_priv_data) in mpi3mr_target_alloc()
4513 starget->hostdata = scsi_tgt_priv_data; in mpi3mr_target_alloc()
4519 scsi_tgt_priv_data->starget = starget; in mpi3mr_target_alloc()
4520 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
4521 scsi_tgt_priv_data->perst_id = tgt_dev->perst_id; in mpi3mr_target_alloc()
4522 scsi_tgt_priv_data->dev_type = tgt_dev->dev_type; in mpi3mr_target_alloc()
4523 scsi_tgt_priv_data->tgt_dev = tgt_dev; in mpi3mr_target_alloc()
4525 atomic_set(&scsi_tgt_priv_data->block_io, 0); in mpi3mr_target_alloc()
4534 scsi_tgt_priv_data->dev_nvme_dif = 1; in mpi3mr_target_alloc()
4535 scsi_tgt_priv_data->io_throttle_enabled = tgt_dev->io_throttle_enabled; in mpi3mr_target_alloc()
4536 scsi_tgt_priv_data->wslen = tgt_dev->wslen; in mpi3mr_target_alloc()
4538 scsi_tgt_priv_data->throttle_group = tgt_dev->dev_spec.vd_inf.tg; in mpi3mr_target_alloc()
4547 scsi_tgt_priv_data->starget = starget; in mpi3mr_target_alloc()
4548 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
4549 scsi_tgt_priv_data->perst_id = tgt_dev->perst_id; in mpi3mr_target_alloc()
4550 scsi_tgt_priv_data->dev_type = tgt_dev->dev_type; in mpi3mr_target_alloc()
4551 scsi_tgt_priv_data->tgt_dev = tgt_dev; in mpi3mr_target_alloc()
4552 scsi_tgt_priv_data->io_throttle_enabled = tgt_dev->io_throttle_enabled; in mpi3mr_target_alloc()
4553 scsi_tgt_priv_data->wslen = tgt_dev->wslen; in mpi3mr_target_alloc()
4555 atomic_set(&scsi_tgt_priv_data->block_io, 0); in mpi3mr_target_alloc()