Lines Matching refs:SCSIDevice
29 static SCSIDevice *do_scsi_device_find(SCSIBus *bus, in do_scsi_device_find()
34 SCSIDevice *retval = NULL; in do_scsi_device_find()
38 SCSIDevice *dev = SCSI_DEVICE(qdev); in do_scsi_device_find()
71 SCSIDevice *scsi_device_find(SCSIBus *bus, int channel, int id, int lun) in scsi_device_find()
77 SCSIDevice *scsi_device_get(SCSIBus *bus, int channel, int id, int lun) in scsi_device_get()
79 SCSIDevice *d; in scsi_device_get()
93 static void scsi_device_for_each_req_sync(SCSIDevice *s, in scsi_device_for_each_req_sync()
109 SCSIDevice *s;
117 SCSIDevice *s = data->s; in scsi_device_for_each_req_async_bh()
148 static void scsi_device_for_each_req_async(SCSIDevice *s, in scsi_device_for_each_req_async()
174 static void scsi_device_realize(SCSIDevice *s, Error **errp) in scsi_device_realize()
182 static void scsi_device_unrealize(SCSIDevice *s) in scsi_device_unrealize()
190 int scsi_bus_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf, in scsi_bus_parse_cdb()
204 static SCSIRequest *scsi_device_alloc_req(SCSIDevice *s, uint32_t tag, uint32_t lun, in scsi_device_alloc_req()
215 void scsi_device_unit_attention_reported(SCSIDevice *s) in scsi_device_unit_attention_reported()
260 SCSIDevice *s = opaque; in scsi_dma_restart_cb()
273 SCSIDevice **p_dev) in scsi_bus_is_address_free()
275 SCSIDevice *d; in scsi_bus_is_address_free()
293 SCSIDevice *dev = SCSI_DEVICE(qdev); in scsi_bus_check_address()
310 SCSIDevice *d; in scsi_bus_check_address()
322 SCSIDevice *dev = SCSI_DEVICE(qdev); in scsi_qdev_realize()
364 SCSIDevice *dev = SCSI_DEVICE(qdev); in scsi_qdev_unrealize()
378 SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk, in scsi_bus_legacy_add_drive()
385 SCSIDevice *s; in scsi_bus_legacy_add_drive()
576 SCSIDevice *dev = SCSI_DEVICE(qdev); in scsi_target_emulate_report_luns()
775 SCSIRequest *scsi_req_alloc(const SCSIReqOps *reqops, SCSIDevice *d, in scsi_req_alloc()
807 SCSIRequest *scsi_req_new(SCSIDevice *d, uint32_t tag, uint32_t lun, in scsi_req_new()
945 int scsi_device_get_sense(SCSIDevice *dev, uint8_t *buf, int len, bool fixed) in scsi_device_get_sense()
1018 static int ata_passthrough_xfer_unit(SCSIDevice *dev, uint8_t *buf) in ata_passthrough_xfer_unit()
1037 static int ata_passthrough_12_xfer(SCSIDevice *dev, uint8_t *buf) in ata_passthrough_12_xfer()
1060 static int ata_passthrough_16_xfer(SCSIDevice *dev, uint8_t *buf) in ata_passthrough_16_xfer()
1086 static int scsi_req_xfer(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf) in scsi_req_xfer()
1228 static int scsi_req_stream_xfer(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf) in scsi_req_stream_xfer()
1288 static int scsi_req_medium_changer_xfer(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf) in scsi_req_medium_changer_xfer()
1310 static int scsi_req_scanner_length(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf) in scsi_req_scanner_length()
1398 int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf, in scsi_req_parse_cdb()
1435 void scsi_device_report_change(SCSIDevice *dev, SCSISense sense) in scsi_device_report_change()
1711 void scsi_device_set_ua(SCSIDevice *sdev, SCSISense sense) in scsi_device_set_ua()
1739 void scsi_device_purge_requests(SCSIDevice *sdev, SCSISense sense) in scsi_device_purge_requests()
1753 void scsi_device_drained_begin(SCSIDevice *sdev) in scsi_device_drained_begin()
1775 void scsi_device_drained_end(SCSIDevice *sdev) in scsi_device_drained_end()
1795 SCSIDevice *d = SCSI_DEVICE(dev); in scsibus_get_dev_path()
1812 SCSIDevice *d = SCSI_DEVICE(dev); in scsibus_get_fw_dev_path()
1842 SCSIDevice *s = pv; in put_scsi_requests()
1852 SCSIDevice *s = pv; in get_scsi_requests()
1900 SCSIDevice *s = opaque; in scsi_sense_state_needed()
1911 VMSTATE_UINT8_SUB_ARRAY(sense, SCSIDevice,
1923 VMSTATE_UINT8(unit_attention.key, SCSIDevice),
1924 VMSTATE_UINT8(unit_attention.asc, SCSIDevice),
1925 VMSTATE_UINT8(unit_attention.ascq, SCSIDevice),
1926 VMSTATE_BOOL(sense_is_ua, SCSIDevice),
1927 VMSTATE_UINT8_SUB_ARRAY(sense, SCSIDevice, 0, SCSI_SENSE_BUF_SIZE_OLD),
1928 VMSTATE_UINT32(sense_len, SCSIDevice),
1947 DEFINE_PROP_UINT32("channel", SCSIDevice, channel, 0),
1948 DEFINE_PROP_UINT32("scsi-id", SCSIDevice, id, -1),
1949 DEFINE_PROP_UINT32("lun", SCSIDevice, lun, -1),
1966 SCSIDevice *s = SCSI_DEVICE(dev); in scsi_dev_instance_init()
1976 .instance_size = sizeof(SCSIDevice),