• Home
  • Raw
  • Download

Lines Matching refs:starget

215 	struct scsi_target *starget = sdev->sdev_target;  in spi_device_configure()  local
225 spi_support_sync(starget) = scsi_device_sync(sdev); in spi_device_configure()
226 spi_support_wide(starget) = scsi_device_wide(sdev); in spi_device_configure()
227 spi_support_dt(starget) = scsi_device_dt(sdev); in spi_device_configure()
228 spi_support_dt_only(starget) = scsi_device_dt_only(sdev); in spi_device_configure()
229 spi_support_ius(starget) = scsi_device_ius(sdev); in spi_device_configure()
232 spi_support_ius(starget) = 0; in spi_device_configure()
234 spi_support_qas(starget) = scsi_device_qas(sdev); in spi_device_configure()
243 struct scsi_target *starget = to_scsi_target(dev); in spi_setup_transport_attrs() local
245 spi_period(starget) = -1; /* illegal value */ in spi_setup_transport_attrs()
246 spi_min_period(starget) = 0; in spi_setup_transport_attrs()
247 spi_offset(starget) = 0; /* async */ in spi_setup_transport_attrs()
248 spi_max_offset(starget) = 255; in spi_setup_transport_attrs()
249 spi_width(starget) = 0; /* narrow */ in spi_setup_transport_attrs()
250 spi_max_width(starget) = 1; in spi_setup_transport_attrs()
251 spi_iu(starget) = 0; /* no IU */ in spi_setup_transport_attrs()
252 spi_max_iu(starget) = 1; in spi_setup_transport_attrs()
253 spi_dt(starget) = 0; /* ST */ in spi_setup_transport_attrs()
254 spi_qas(starget) = 0; in spi_setup_transport_attrs()
255 spi_max_qas(starget) = 1; in spi_setup_transport_attrs()
256 spi_wr_flow(starget) = 0; in spi_setup_transport_attrs()
257 spi_rd_strm(starget) = 0; in spi_setup_transport_attrs()
258 spi_rti(starget) = 0; in spi_setup_transport_attrs()
259 spi_pcomp_en(starget) = 0; in spi_setup_transport_attrs()
260 spi_hold_mcs(starget) = 0; in spi_setup_transport_attrs()
261 spi_dv_pending(starget) = 0; in spi_setup_transport_attrs()
262 spi_dv_in_progress(starget) = 0; in spi_setup_transport_attrs()
263 spi_initial_dv(starget) = 0; in spi_setup_transport_attrs()
264 mutex_init(&spi_dv_mutex(starget)); in spi_setup_transport_attrs()
275 struct scsi_target *starget = transport_class_to_starget(dev); \
278 tp = (struct spi_transport_attrs *)&starget->starget_data; \
290 struct scsi_target *starget = transport_class_to_starget(dev); \
293 tp = (struct spi_transport_attrs *)&starget->starget_data; \
305 struct scsi_target *starget = transport_class_to_starget(dev); \
306 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \
309 tp = (struct spi_transport_attrs *)&starget->starget_data; \
311 i->f->get_##field(starget); \
322 struct scsi_target *starget = transport_class_to_starget(dev); \
323 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \
329 i->f->set_##field(starget, val); \
340 struct scsi_target *starget = transport_class_to_starget(dev); \
341 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \
344 = (struct spi_transport_attrs *)&starget->starget_data; \
351 i->f->set_##field(starget, val); \
404 struct scsi_target *starget = transport_class_to_starget(dev); in store_spi_revalidate() local
406 device_for_each_child(&starget->dev, NULL, child_iter); in store_spi_revalidate()
484 struct scsi_target *starget = transport_class_to_starget(dev); in show_spi_transport_period() local
485 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in show_spi_transport_period()
488 (struct spi_transport_attrs *)&starget->starget_data; in show_spi_transport_period()
491 i->f->get_period(starget); in show_spi_transport_period()
500 struct scsi_target *starget = transport_class_to_starget(cdev); in store_spi_transport_period() local
501 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in store_spi_transport_period()
504 (struct spi_transport_attrs *)&starget->starget_data; in store_spi_transport_period()
515 i->f->set_period(starget, period); in store_spi_transport_period()
528 struct scsi_target *starget = transport_class_to_starget(cdev); in show_spi_transport_min_period() local
529 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in show_spi_transport_min_period()
532 (struct spi_transport_attrs *)&starget->starget_data; in show_spi_transport_min_period()
545 struct scsi_target *starget = transport_class_to_starget(cdev); in store_spi_transport_min_period() local
547 (struct spi_transport_attrs *)&starget->starget_data; in store_spi_transport_min_period()
754 struct scsi_target *starget = sdev->sdev_target; in spi_dv_retrain() local
769 i->f->get_iu(starget); in spi_dv_retrain()
771 i->f->get_qas(starget); in spi_dv_retrain()
778 if (i->f->set_iu && spi_iu(starget)) { in spi_dv_retrain()
779 starget_printk(KERN_ERR, starget, "Domain Validation Disabling Information Units\n"); in spi_dv_retrain()
781 } else if (i->f->set_qas && spi_qas(starget)) { in spi_dv_retrain()
782 …starget_printk(KERN_ERR, starget, "Domain Validation Disabling Quick Arbitration and Selection\n"); in spi_dv_retrain()
785 newperiod = spi_period(starget); in spi_dv_retrain()
794 starget_printk(KERN_ERR, starget, "Domain Validation Failure, dropping back to Asynchronous\n"); in spi_dv_retrain()
798 starget_printk(KERN_ERR, starget, "Domain Validation detected failure, dropping back\n"); in spi_dv_retrain()
857 struct scsi_target *starget = sdev->sdev_target; in spi_dv_device_internal() local
860 int min_period = spi_min_period(starget); in spi_dv_device_internal()
861 int max_width = spi_max_width(starget); in spi_dv_device_internal()
868 starget_printk(KERN_ERR, starget, "Domain Validation Initial Inquiry Failed\n"); in spi_dv_device_internal()
873 if (!spi_support_wide(starget)) { in spi_dv_device_internal()
874 spi_max_width(starget) = 0; in spi_dv_device_internal()
880 i->f->set_width(starget, 1); in spi_dv_device_internal()
886 starget_printk(KERN_ERR, starget, "Wide Transfers Fail\n"); in spi_dv_device_internal()
887 i->f->set_width(starget, 0); in spi_dv_device_internal()
900 if (!spi_support_sync(starget) && !spi_support_dt(starget)) in spi_dv_device_internal()
911 DV_SET(offset, spi_max_offset(starget)); in spi_dv_device_internal()
916 if (spi_support_qas(starget) && spi_max_qas(starget)) { in spi_dv_device_internal()
922 if (spi_support_ius(starget) && spi_max_iu(starget) && in spi_dv_device_internal()
943 !spi_support_dt(starget)) { in spi_dv_device_internal()
957 i->f->get_dt(starget); in spi_dv_device_internal()
964 if (len == -1 && spi_dt(starget)) in spi_dv_device_internal()
968 starget_printk(KERN_INFO, starget, "Domain Validation skipping write tests\n"); in spi_dv_device_internal()
973 …starget_printk(KERN_WARNING, starget, "Echo buffer size %d is too big, trimming to %d\n", len, SPI… in spi_dv_device_internal()
1000 struct scsi_target *starget = sdev->sdev_target; in spi_dv_device() local
1015 if (unlikely(spi_dv_in_progress(starget))) in spi_dv_device()
1021 spi_dv_in_progress(starget) = 1; in spi_dv_device()
1033 scsi_target_quiesce(starget); in spi_dv_device()
1035 spi_dv_pending(starget) = 1; in spi_dv_device()
1036 mutex_lock(&spi_dv_mutex(starget)); in spi_dv_device()
1038 starget_printk(KERN_INFO, starget, "Beginning Domain Validation\n"); in spi_dv_device()
1042 starget_printk(KERN_INFO, starget, "Ending Domain Validation\n"); in spi_dv_device()
1044 mutex_unlock(&spi_dv_mutex(starget)); in spi_dv_device()
1045 spi_dv_pending(starget) = 0; in spi_dv_device()
1047 scsi_target_resume(starget); in spi_dv_device()
1049 spi_initial_dv(starget) = 1; in spi_dv_device()
1055 spi_dv_in_progress(starget) = 0; in spi_dv_device()
1129 void spi_display_xfer_agreement(struct scsi_target *starget) in spi_display_xfer_agreement() argument
1132 tp = (struct spi_transport_attrs *)&starget->starget_data; in spi_display_xfer_agreement()
1164 dev_info(&starget->dev, in spi_display_xfer_agreement()
1177 dev_info(&starget->dev, "%sasynchronous\n", in spi_display_xfer_agreement()
1404 struct scsi_target *starget; in spi_target_match() local
1416 starget = to_scsi_target(dev); in spi_target_match()
1418 if (i->f->deny_binding && i->f->deny_binding(starget)) in spi_target_match()
1472 struct scsi_target *starget = transport_class_to_starget(cdev); in target_attribute_is_visible() local
1477 spi_support_sync(starget)) in target_attribute_is_visible()
1480 spi_support_sync(starget)) in target_attribute_is_visible()
1483 spi_support_sync(starget)) in target_attribute_is_visible()
1486 spi_support_sync(starget)) in target_attribute_is_visible()
1489 spi_support_wide(starget)) in target_attribute_is_visible()
1492 spi_support_wide(starget)) in target_attribute_is_visible()
1495 spi_support_ius(starget)) in target_attribute_is_visible()
1498 spi_support_ius(starget)) in target_attribute_is_visible()
1501 spi_support_dt(starget)) in target_attribute_is_visible()
1504 spi_support_qas(starget)) in target_attribute_is_visible()
1507 spi_support_qas(starget)) in target_attribute_is_visible()
1510 spi_support_ius(starget)) in target_attribute_is_visible()
1513 spi_support_ius(starget)) in target_attribute_is_visible()
1516 spi_support_ius(starget)) in target_attribute_is_visible()
1519 spi_support_ius(starget)) in target_attribute_is_visible()
1522 spi_support_ius(starget)) in target_attribute_is_visible()