Home
last modified time | relevance | path

Searched refs:inq_data (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/sys/cam/ctl/
H A Dctl_scsi_all.c100 struct scsi_inquiry_data *inq_data, struct sbuf *sb) in ctl_scsi_command_string() argument
105 scsi_op_desc(ctsio->cdb[0], inq_data), in ctl_scsi_command_string()
125 struct scsi_inquiry_data *inq_data, struct sbuf *sb, in ctl_scsi_sense_sbuf() argument
138 ctl_scsi_command_string(ctsio, inq_data, sb); in ctl_scsi_sense_sbuf()
144 path_str, inq_data, ctsio->cdb, ctsio->cdb_len); in ctl_scsi_sense_sbuf()
151 struct scsi_inquiry_data *inq_data, char *str, in ctl_scsi_sense_string() argument
158 ctl_scsi_sense_sbuf(ctsio, inq_data, &sb, SSS_FLAG_PRINT_COMMAND); in ctl_scsi_sense_string()
168 struct scsi_inquiry_data *inq_data) in ctl_scsi_sense_print() argument
175 ctl_scsi_sense_sbuf(ctsio, inq_data, &sb, SSS_FLAG_PRINT_COMMAND); in ctl_scsi_sense_print()
185 struct scsi_inquiry_data *inq_data, FIL in ctl_scsi_sense_print() argument
[all...]
H A Dctl_scsi_all.h35 struct scsi_inquiry_data *inq_data);
38 struct scsi_inquiry_data *inq_data,
42 struct scsi_inquiry_data *inq_data,struct sbuf *sb);
44 struct scsi_inquiry_data *inq_data, struct sbuf *sb,
48 struct scsi_inquiry_data *inq_data, char *str,
H A Dctl_util.h107 struct scsi_inquiry_data *inq_data, struct sbuf *sb);
110 struct scsi_inquiry_data *inq_data, char *str,
114 void ctl_io_error_print(union ctl_io *io, struct scsi_inquiry_data *inq_data);
117 void ctl_io_error_print(union ctl_io *io, struct scsi_inquiry_data *inq_data,
H A Dctl_util.c775 ctl_io_error_sbuf(union ctl_io *io, struct scsi_inquiry_data *inq_data, in ctl_io_error_sbuf()
811 ctl_scsi_sense_sbuf(&io->scsiio, inq_data, in ctl_io_string()
841 ctl_io_error_string(union ctl_io *io, struct scsi_inquiry_data *inq_data,
847 ctl_io_error_sbuf(io, inq_data, &sb); in ctl_io_error_print()
863 ctl_io_error_print(union ctl_io *io, struct scsi_inquiry_data *inq_data) in ctl_data_print()
867 printf("%s", ctl_io_error_string(io, inq_data, str, sizeof(str))); in ctl_data_print()
915 ctl_io_error_print(union ctl_io *io, struct scsi_inquiry_data *inq_data,
920 fprintf(ofile, "%s", ctl_io_error_string(io, inq_data, str,
768 ctl_io_error_sbuf(union ctl_io * io,struct scsi_inquiry_data * inq_data,struct sbuf * sb) ctl_io_error_sbuf() argument
820 ctl_io_error_string(union ctl_io * io,struct scsi_inquiry_data * inq_data,char * str,int str_len) ctl_io_error_string() argument
842 ctl_io_error_print(union ctl_io * io,struct scsi_inquiry_data * inq_data) ctl_io_error_print() argument
884 ctl_io_error_print(union ctl_io * io,struct scsi_inquiry_data * inq_data,FILE * ofile) ctl_io_error_print() argument
/freebsd/usr.sbin/mfiutil/
H A Dmfi_drive.c333 struct scsi_inquiry_data iqd, *inq_data = &iqd; in mfi_pd_inq_string() local
337 memcpy(inq_data, info->inquiry_data, in mfi_pd_inq_string()
340 if (SID_QUAL_IS_VENDOR_UNIQUE(inq_data)) in mfi_pd_inq_string()
342 if (SID_TYPE(inq_data) != T_DIRECT) in mfi_pd_inq_string()
344 if (SID_QUAL(inq_data) != SID_QUAL_LU_CONNECTED) in mfi_pd_inq_string()
347 cam_strvis(vendor, inq_data->vendor, sizeof(inq_data->vendor), in mfi_pd_inq_string()
349 cam_strvis(product, inq_data->product, sizeof(inq_data->product), in mfi_pd_inq_string()
351 cam_strvis(revision, inq_data->revision, sizeof(inq_data->revision), in mfi_pd_inq_string()
353 cam_strvis(serial, (char *)inq_data->vendor_specific0, sizeof(inq_data->vendor_specific0), in mfi_pd_inq_string()
363 switch (SID_ANSI_REV(inq_data)) { in mfi_pd_inq_string()
[all …]
/freebsd/usr.sbin/mptutil/
H A Dmpt_cam.c301 struct scsi_inquiry_data *inq_data) in format_scsi_inquiry() argument
305 if (SID_QUAL_IS_VENDOR_UNIQUE(inq_data)) in format_scsi_inquiry()
307 if (SID_TYPE(inq_data) != T_DIRECT) in format_scsi_inquiry()
309 if (SID_QUAL(inq_data) != SID_QUAL_LU_CONNECTED) in format_scsi_inquiry()
312 cam_strvis(vendor, inq_data->vendor, sizeof(inq_data->vendor), in format_scsi_inquiry()
314 cam_strvis(product, inq_data->product, sizeof(inq_data->product), in format_scsi_inquiry()
316 cam_strvis(revision, inq_data->revision, sizeof(inq_data->revision), in format_scsi_inquiry()
326 switch (SID_ANSI_REV(inq_data)) { in format_scsi_inquiry()
335 SID_ANSI_REV(inq_data)); in format_scsi_inquiry()
H A Dmpt_drive.c302 RAID_PHYS_DISK0_INQUIRY_DATA *inq_data; in mpt_pd_inq_string() local
306 inq_data = &pd_info->InquiryData; in mpt_pd_inq_string()
307 cam_strvis(vendor, inq_data->VendorID, sizeof(inq_data->VendorID), in mpt_pd_inq_string()
309 cam_strvis(product, inq_data->ProductID, sizeof(inq_data->ProductID), in mpt_pd_inq_string()
311 cam_strvis(revision, inq_data->ProductRevLevel, in mpt_pd_inq_string()
312 sizeof(inq_data->ProductRevLevel), sizeof(revision)); in mpt_pd_inq_string()
/freebsd/sys/cam/scsi/
H A Dscsi_all.c625 scsi_op_desc(uint16_t opcode, struct scsi_inquiry_data *inq_data) in scsi_op_desc() argument
640 if (inq_data == NULL) { in scsi_op_desc()
644 pd_type = SID_TYPE(inq_data); in scsi_op_desc()
646 match = cam_quirkmatch((caddr_t)inq_data, in scsi_op_desc()
707 scsi_op_desc(uint16_t opcode, struct scsi_inquiry_data *inq_data) in scsi_op_desc() argument
3363 struct scsi_inquiry_data *inq_data, in fetchtableentries() argument
3381 if (inq_data != NULL) in fetchtableentries()
3382 match = cam_quirkmatch((caddr_t)inq_data, in fetchtableentries()
3445 struct scsi_inquiry_data *inq_data, in scsi_sense_desc() argument
3452 inq_data, in scsi_sense_desc()
[all …]
H A Dscsi_all.h2210 #define SID_TYPE(inq_data) ((inq_data)->device & 0x1f) argument
2211 #define SID_QUAL(inq_data) (((inq_data)->device & 0xE0) >> 5) argument
2244 #define SID_QUAL_IS_VENDOR_UNIQUE(inq_data) ((SID_QUAL(inq_data) & 0x04) != 0) argument
2249 #define SID_IS_REMOVABLE(inq_data) (((inq_data)->dev_qual2 & SID_RMB) != 0) argument
2251 #define SID_ANSI_REV(inq_data) ((inq_data)->version & 0x07) argument
3818 struct scsi_inquiry_data *inq_data,
3821 struct scsi_inquiry_data *inq_data,
3846 struct scsi_inquiry_data *inq_data,
3849 struct scsi_inquiry_data *inq_data,
3852 struct scsi_inquiry_data *inq_data, uint64_t info);
[all …]
H A Dscsi_xpt.c111 || (SID_ANSI_REV(&dv->inq_data) > SCSI_REV_2 && cam_srch_hi)))
116 || (SID_ANSI_REV(&dv->inq_data) > SCSI_REV_2)))
771 inq_buf = &periph->path->device->inq_data; in probestart()
829 inq_buf = &periph->path->device->inq_data; in probestart()
999 inq_buf = &periph->path->device->inq_data; in probestart()
1208 inq_buf = &path->device->inq_data; in probedone()
1390 inq_buf = &path->device->inq_data; in probedone()
1640 (unsigned char *)&path->device->inq_data, in probedone()
1705 && (path->device->inq_data.flags & SID_Sync) != 0 in probedone()
1753 if (bcmp(nbuf, &path->device->inq_data, SHORT_INQUIRY_LENGTH)) { in probedone()
[all …]
H A Dscsi_pt.c296 SID_TYPE(&cgd->inq_data) | in ptctor()
373 if (SID_QUAL(&cgd->inq_data) != SID_QUAL_LU_CONNECTED) in ptasync()
375 if (SID_TYPE(&cgd->inq_data) != T_PROCESSOR) in ptasync()
H A Dscsi_ch.c334 if (SID_QUAL(&cgd->inq_data) != SID_QUAL_LU_CONNECTED) in chasync()
336 if (SID_TYPE(&cgd->inq_data)!= T_CHANGER) in chasync()
395 if (cgd->inq_data.version <= SCSI_REV_2) in chregister()
408 SID_TYPE(&cgd->inq_data) | in chregister()
1698 struct scsi_inquiry_data *inq_data; in chscsiversion() local
1719 inq_data = &cgd->inq_data; in chscsiversion()
1720 dev_scsi_version = inq_data->version; in chscsiversion()
H A Dscsi_enc.c693 iqd = (unsigned char *)&cgd->inq_data; in enc_type()
694 buflen = min(sizeof(cgd->inq_data), in enc_type()
695 SID_ADDITIONAL_LENGTH(&cgd->inq_data)); in enc_type()
H A Dscsi_da.c2141 if (SID_QUAL(&cgd->inq_data) != SID_QUAL_LU_CONNECTED) in daasync()
2143 if (SID_TYPE(&cgd->inq_data) != T_DIRECT in daasync()
2144 && SID_TYPE(&cgd->inq_data) != T_RBC in daasync()
2145 && SID_TYPE(&cgd->inq_data) != T_OPTICAL in daasync()
2146 && SID_TYPE(&cgd->inq_data) != T_ZBC_HM) in daasync()
2818 if (SID_IS_REMOVABLE(&cgd->inq_data)) in daregister()
2833 match = cam_quirkmatch((caddr_t)&cgd->inq_data, in daregister()
2855 if (SID_TYPE(&cgd->inq_data) == T_ZBC_HM) in daregister()
2902 if (softc->quirks & DA_Q_NO_6_BYTE || SID_TYPE(&cgd->inq_data) == T_RBC) in daregister()
2930 if (SID_ANSI_REV(&cgd->inq_data) >= SCSI_REV_SPC3 && in daregister()
[all …]
H A Dscsi_cd.c430 if (SID_QUAL(&cgd->inq_data) != SID_QUAL_LU_CONNECTED) in cdasync()
432 if (SID_TYPE(&cgd->inq_data) != T_CDROM in cdasync()
433 && SID_TYPE(&cgd->inq_data) != T_WORM) in cdasync()
614 if (SID_IS_REMOVABLE(&cgd->inq_data)) in cdregister()
623 match = cam_quirkmatch((caddr_t)&cgd->inq_data, in cdregister()
690 cam_strvis(softc->disk->d_descr, cgd->inq_data.vendor, in cdregister()
691 sizeof(cgd->inq_data.vendor), sizeof(softc->disk->d_descr)); in cdregister()
694 cgd->inq_data.product, sizeof(cgd->inq_data.product), in cdregister()
1281 &cgd.inq_data, in cddone()
1300 } else if (SID_TYPE(&cgd.inq_data) == T_CDROM) { in cddone()
H A Dscsi_sa.c2311 if (SID_QUAL(&cgd->inq_data) != SID_QUAL_LU_CONNECTED) in saasync()
2313 if (SID_TYPE(&cgd->inq_data) != T_SEQUENTIAL) in saasync()
2486 softc->scsi_rev = SID_ANSI_REV(&cgd->inq_data); in saregister()
2504 match = cam_quirkmatch((caddr_t)&cgd->inq_data, in saregister()
2535 if (cgd->inq_data.version <= SCSI_REV_CCS) in saregister()
2548 if (SID_ANSI_REV(&cgd->inq_data) >= SCSI_REV_SPC4) in saregister()
2551 if (cgd->inq_data.spc3_flags & SPC3_SID_PROTECT) { in saregister()
2583 DEVSTAT_BS_UNAVAILABLE, SID_TYPE(&cgd->inq_data) | in saregister()
4748 cam_strvis(tmpstr, cgd.inq_data.vendor, in saextget()
4749 sizeof(cgd.inq_data.vendor), sizeof(tmpstr)); in saextget()
[all …]
/freebsd/sys/dev/hyperv/storvsc/
H A Dhv_storvsc_drv_freebsd.c2096 is_scsi_valid(const struct scsi_inquiry_data *inq_data) in is_scsi_valid() argument
2100 type = SID_TYPE(inq_data); in is_scsi_valid()
2103 if (SID_QUAL(inq_data) == SID_QUAL_BAD_LU) in is_scsi_valid()
2332 struct scsi_inquiry_data *inq_data = in storvsc_io_done() local
2355 if (SID_TYPE(inq_data) == T_CDROM && in storvsc_io_done()
2356 inq_data->version == 0 && in storvsc_io_done()
2358 inq_data->version = SCSI_REV_SPC3; in storvsc_io_done()
2362 inq_data->version); in storvsc_io_done()
2368 if (!is_scsi_valid(inq_data) && in storvsc_io_done()
2384 cam_strvis(vendor, inq_data->vendor, in storvsc_io_done()
[all …]
/freebsd/usr.sbin/ctladm/
H A Dctladm.c239 struct scsi_inquiry_data *inq_data);
1076 struct scsi_inquiry_data *inq_data; in cctl_lunlist()
1082 inq_data = NULL; in cctl_lunlist()
1093 inq_data = malloc(sizeof(*inq_data)); in cctl_lunlist()
1094 if (inq_data == NULL) { in cctl_lunlist()
1129 inq_data)) != 0) { in cctl_lunlist()
1133 scsi_print_inquiry(inq_data); in cctl_lunlist()
1140 if (inq_data != NULL) in cctl_lunlist()
1141 free(inq_data); in cctl_lunlist()
1077 struct scsi_inquiry_data *inq_data; cctl_lunlist() local
1969 cctl_get_inquiry(int fd,int lun,int iid,int retries,char * path_str,int path_len,struct scsi_inquiry_data * inq_data) cctl_get_inquiry() argument
2013 struct scsi_inquiry_data *inq_data; cctl_inquiry() local
[all...]
/freebsd/share/examples/scsi_target/
H A Dscsi_cmds.c103 static struct scsi_inquiry_data inq_data; variable
324 bcopy(&inq_data, ctio->data_ptr, sizeof(inq_data)); in tcmd_inquiry()
325 ctio->dxfer_len = inq_data.additional_length + 4; in tcmd_inquiry()
340 inq = &inq_data; in init_inquiry()
/freebsd/lib/libcam/
H A Dcamlib.c619 device->pd_type = SID_TYPE(&ccb.cgd.inq_data); in cam_real_open_device()
620 bcopy(&ccb.cgd.inq_data, &device->inq_data, in cam_real_open_device()
H A Dcamlib.h116 struct scsi_inquiry_data inq_data; /* SCSI Inquiry data */ member
/freebsd/sbin/camcontrol/
H A Dfwdownload.c313 cam_strvis((u_char *)vendor, (u_char *)cam_dev->inq_data.vendor, in fw_get_vendor()
314 sizeof(cam_dev->inq_data.vendor), sizeof(vendor)); in fw_get_vendor()
320 || (vp->dev_type == SID_TYPE(&cam_dev->inq_data))) in fw_get_vendor()
/freebsd/sys/cam/ata/
H A Data_xpt.c630 &path->device->inq_data; in aprobestart()
748 inq_buf = &path->device->inq_data; in aprobedone()
1646 bzero(&device->inq_data, sizeof(device->inq_data)); in ata_alloc_device()
1667 inq_buf = &path->device->inq_data; in ata_device_transport()
1901 struct scsi_inquiry_data *inq_data; in ata_set_transfer_settings() local
1961 inq_data = &device->inq_data; in ata_set_transfer_settings()
1975 || (scsi && (INQ_DATA_TQ_ENABLED(inq_data)) == 0) in ata_set_transfer_settings()
/freebsd/sys/cam/
H A Dcam_xpt_internal.h112 struct scsi_inquiry_data inq_data; member
H A Dcam_compat.h207 struct scsi_inquiry_data inq_data; member

12