/netbsd/sys/arch/bebox/stand/boot/ |
H A D | siop.c | 834 memset(&sense, 0, sizeof(sense)); in scsi_request_sense() 836 sense.lun = xs->lun; in scsi_request_sense() 843 sense.resid = sense.datalen; in scsi_request_sense() 908 sense->segment, in scsi_interpret_sense() 915 sense->info[0], in scsi_interpret_sense() 916 sense->info[1], in scsi_interpret_sense() 917 sense->info[2], in scsi_interpret_sense() 918 sense->info[3], in scsi_interpret_sense() 919 sense->extra_len)); in scsi_interpret_sense() 1199 if (sense == NULL) in siop_init() [all …]
|
/netbsd/lib/libc/stdlib/ |
H A D | merge.c | 114 int sense; in mergesort() local 159 sense = -1; in mergesort() 163 sense = 0; in mergesort() 178 (*cmp)(q, p) <= sense) in mergesort() 286 int length, tmp, sense; in setup() local 312 sense = (cmp(f1, f1 + size) > 0); in setup() 313 for (; f1 < last; sense = !sense) { in setup() 317 if ((cmp(f2, f2+ size) > 0) != sense) in setup() 324 if (sense > 0) in setup() 332 if (sense > 0) in setup() [all …]
|
/netbsd/sys/arch/prep/stand/boot/ |
H A D | siop.c | 805 struct scsi_xfer sense; in scsi_request_sense() local 813 memset(&sense, 0, sizeof(sense)); in scsi_request_sense() 814 sense.target = xs->target; in scsi_request_sense() 815 sense.lun = xs->lun; in scsi_request_sense() 817 sense.cmd = (void *)cmd; in scsi_request_sense() 819 sense.data = (void *)data; in scsi_request_sense() 821 sense.error = XS_NOERROR; in scsi_request_sense() 822 sense.resid = sense.datalen; in scsi_request_sense() 823 sense.status = SCSI_OK; in scsi_request_sense() 1160 if (sense == NULL) in siop_init() [all …]
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/ |
H A D | nouveau_nvkm_subdev_bios_i2c.c | 101 info->sense = DCB_I2C_UNUSED; in dcb_i2c_parse() 108 info->sense = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 153 info->sense = nvbios_rd08(bios, ent + 5); in dcb_i2c_parse() 154 if (!info->sense) info->sense = 0x3e; in dcb_i2c_parse() 159 info->sense = nvbios_rd08(bios, ent + 7); in dcb_i2c_parse() 160 if (!info->sense) info->sense = 0x36; in dcb_i2c_parse()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/i2c/ |
H A D | nouveau_nvkm_subdev_i2c_busnv04.c | 37 u8 sense; member 67 return !!(nvkm_rdvgac(device, 0, bus->sense) & 0x04); in nv04_i2c_bus_sense_scl() 75 return !!(nvkm_rdvgac(device, 0, bus->sense) & 0x08); in nv04_i2c_bus_sense_sda() 88 nv04_i2c_bus_new(struct nvkm_i2c_pad *pad, int id, u8 drive, u8 sense, in nv04_i2c_bus_new() argument 99 bus->sense = sense; in nv04_i2c_bus_new()
|
/netbsd/tests/dev/scsipi/libscsitest/ |
H A D | scsitest.c | 85 struct scsi_sense_data *sense = &xs->sense.scsi_sense; in sense_notready() local 89 sense->response_code = 0x70; in sense_notready() 90 sense->flags = SKEY_NOT_READY; in sense_notready() 91 sense->asc = 0x3A; in sense_notready() 92 sense->ascq = 0x00; in sense_notready() 93 sense->extra_len = 6; in sense_notready()
|
/netbsd/sys/dev/scsipi/ |
H A D | scsipi_verbose.c | 892 scsipi_print_sense_data_real(struct scsi_sense_data *sense, int verbosity) in scsipi_print_sense_data_real() argument 896 char *sbs, *s = (char *) sense; in scsipi_print_sense_data_real() 976 for (j = i; j < sizeof (*sense); j++) in scsipi_print_sense_data_real() 979 if (j == sizeof (*sense)) in scsipi_print_sense_data_real() 992 if (i >= sizeof (*sense)) in scsipi_print_sense_data_real() 1075 scsipi_print_sense_data(&xs->sense.scsi_sense, verbosity); in scsipi_print_sense_real()
|
H A D | atapi_base.c | 83 key = (xs->sense.atapi_sense & 0xf0) >> 4; in atapi_interpret_sense() 151 if (xs->sense.atapi_sense & 0x01) { in atapi_interpret_sense() 156 if (xs->sense.atapi_sense & 0x02) { /* vol overflow */ in atapi_interpret_sense() 160 if (xs->sense.atapi_sense & 0x04) { /* Aborted command */ in atapi_interpret_sense() 176 xs->sense.atapi_sense); in atapi_interpret_sense()
|
H A D | scsipi_base.c | 898 sense = &xs->sense.scsi_sense; in scsipi_interpret_sense() 908 sense->segment, in scsipi_interpret_sense() 915 sense->info[0], in scsipi_interpret_sense() 916 sense->info[1], in scsipi_interpret_sense() 917 sense->info[2], in scsipi_interpret_sense() 918 sense->info[3], in scsipi_interpret_sense() 919 sense->extra_len); in scsipi_interpret_sense() 999 if (sense->asc == 0x3A) { in scsipi_interpret_sense() 1017 sense->asc == 0x25 && in scsipi_interpret_sense() 1018 sense->ascq == 0x00) in scsipi_interpret_sense() [all …]
|
H A D | sd.c | 1063 struct scsi_sense_data *sense = &xs->sense.scsi_sense; in sd_interpret_sense() local 1082 sense->asc == 0x24 && in sd_interpret_sense() 1083 sense->ascq == 0x00) { /* Illegal field in CDB */ in sd_interpret_sense() 1108 if (SSD_SENSE_KEY(sense->flags) == SKEY_NOT_READY && in sd_interpret_sense() 1109 sense->asc == 0x4) { in sd_interpret_sense() 1110 if (sense->ascq == 0x01) { in sd_interpret_sense() 1121 } else if (sense->ascq == 0x02) { in sd_interpret_sense() 1142 sense->asc == 0x31 && in sd_interpret_sense() 1143 sense->ascq == 0x00) { /* maybe for any asq ? */ in sd_interpret_sense() 1292 struct scsi_mode_parameter_header_10 *header = sense; in sd_mode_select() [all …]
|
H A D | scsipi_ioctl.c | 169 screq->senselen_used = uimin(sizeof(xs->sense.scsi_sense), in scsipi_user_done() 171 memcpy(screq->sense, &xs->sense.scsi_sense, in scsipi_user_done() 177 screq->senselen_used = uimin(sizeof(xs->sense.atapi_sense), in scsipi_user_done() 179 memcpy(screq->sense, &xs->sense.atapi_sense, in scsipi_user_done()
|
H A D | st.c | 2152 struct scsi_sense_data *sense = &xs->sense.scsi_sense; in st_interpret_sense() local 2169 info = _4btol(sense->info); in st_interpret_sense() 2173 key = SSD_SENSE_KEY(sense->flags); in st_interpret_sense() 2175 st->asc = sense->asc; in st_interpret_sense() 2176 st->ascq = sense->ascq; in st_interpret_sense() 2203 } else if (sense->flags & SSD_EOM) { in st_interpret_sense() 2221 if (sense->flags & SSD_FILEMARK) { in st_interpret_sense() 2231 if (sense->flags & SSD_ILI) { in st_interpret_sense() 2276 if (sense->flags & SSD_EOM) { in st_interpret_sense() 2401 if (sense->extra_len != 0) { in st_interpret_sense() [all …]
|
/netbsd/usr.sbin/mmcformat/ |
H A D | mmcformat.c | 91 struct uscsi_sense sense; in uscsi_waitop() local 115 cmd, 6, buffer, 0, 10000, &sense); in uscsi_waitop() 121 asc = sense.asc; in uscsi_waitop() 122 ascq = sense.ascq; in uscsi_waitop() 125 if (sense.skey_valid) { in uscsi_waitop() 126 progress = sense.sense_key; in uscsi_waitop() 515 struct uscsi_sense sense; in uscsi_format_cdrw_mode7() local 564 cmd, 6, buffer, sizeof(buffer), UINT_MAX, &sense); in uscsi_format_cdrw_mode7() 578 struct uscsi_sense sense; in uscsi_format_disc() local 623 cmd, 6, buffer, 12, UINT_MAX, &sense); in uscsi_format_disc()
|
H A D | uscsi_subr.c | 146 uscsi_sense->asc = req.sense[12]; in uscsi_command() 147 uscsi_sense->ascq = req.sense[13]; in uscsi_command() 148 uscsi_sense->skey_valid = req.sense[15] & 128; in uscsi_command() 149 uscsi_sense->sense_key = (req.sense[16] << 8) | in uscsi_command() 150 (req.sense[17]); in uscsi_command() 155 req.sense, req.senselen_used, 1); in uscsi_command()
|
/netbsd/sbin/iscsictl/ |
H A D | iscsic_driverif.c | 374 io->req.senselen = sizeof(io->req.sense); in do_ioctl() 381 switch (io->req.sense[2] & 0x0f) { in do_ioctl() 408 io->req.sense[2] & 0x0f); in do_ioctl() 412 add_asc_info(esp, io->req.sense[12], io->req.sense[13]); in do_ioctl() 415 dump_data((char *)buf, io->req.sense, io->req.senselen_used); in do_ioctl()
|
/netbsd/sbin/scsictl/ |
H A D | scsictl.c | 464 struct scsi_sense_data sense; in device_format() local 493 scsi_request_sense(fd, &sense, sizeof (sense)); in device_format() 494 if ((j = SSD_SENSE_KEY(sense.flags)) == SKEY_NO_SENSE) in device_format() 501 cp = scsi_decode_sense((const unsigned char *) &sense, 2, in device_format() 626 memcpy(&sense, req.sense, sizeof(sense)); in device_format() 627 if (sense.sks.sks_bytes[0] & SSD_SKSV) { in device_format() 628 j = (sense.sks.sks_bytes[1] << 8) | in device_format() 629 (sense.sks.sks_bytes[2]); in device_format() 636 } while (SSD_SENSE_KEY(sense.flags) == SKEY_NOT_READY); in device_format()
|
/netbsd/sys/dev/ic/ |
H A D | icpsp.c | 196 rc->rc_sense_len = htole32(sizeof(xs->sense.scsi_sense)); in icpsp_scsipi_request() 225 sizeof(xs->sense.scsi_sense), BUS_DMASYNC_PREREAD); in icpsp_scsipi_request() 288 sizeof(xs->sense.scsi_sense), BUS_DMASYNC_POSTREAD); in icpsp_intr() 308 memcpy(&xs->sense.scsi_sense, in icpsp_intr() 310 sizeof(xs->sense.scsi_sense)); in icpsp_intr()
|
H A D | isp_netbsd.h | 231 #define XS_SNSP(xs) (&(xs)->sense.scsi_sense) 232 #define XS_SNSLEN(xs) (sizeof (xs)->sense) 233 #define XS_SNSKEY(xs) SSD_SENSE_KEY((xs)->sense.scsi_sense.flags) 234 #define XS_SNSASC(xs) ((xs)->sense.scsi_sense.asc) 235 #define XS_SNSASCQ(xs) ((xs)->sense.scsi_sense.ascq) 262 memcpy(&(xs)->sense, ptr, imin(XS_SNSLEN(xs), len))
|
H A D | aic79xx_osm.c | 275 memset(&xs->sense.scsi_sense, 0, sizeof(xs->sense.scsi_sense)); in ahd_done() 276 memcpy(&xs->sense.scsi_sense, ahd_get_sense_buf(ahd, scb), in ahd_done() 291 sizeof(xs->sense.scsi_sense)); in ahd_done() 292 memset(&xs->sense.scsi_sense, 0, sizeof(xs->sense.scsi_sense)); in ahd_done() 293 memcpy(&xs->sense.scsi_sense, in ahd_done() 299 printf(" 0x%x", ((uint8_t *)&xs->sense.scsi_sense)[i]); in ahd_done()
|
/netbsd/sys/dev/pci/ |
H A D | vioscsi.c | 476 sense_len = MIN(sizeof(xs->sense), in vioscsi_req_done() 478 memcpy(&xs->sense, vr->vr_res.sense, sense_len); in vioscsi_req_done() 507 struct scsi_sense_data *sense = &xs->sense.scsi_sense; in vioscsi_bad_target() local 512 memset(sense, 0, sizeof(*sense)); in vioscsi_bad_target() 513 sense->response_code = 0x70; in vioscsi_bad_target() 514 sense->flags = SKEY_ILLEGAL_REQUEST; in vioscsi_bad_target()
|
/netbsd/sys/compat/linux/common/ |
H A D | linux_sg.c | 155 error = copyout(req.sense, lreq.sbp, req.senselen); in linux_ioctl_sg() 293 for (i = 0; i < sizeof(br->sense) / sizeof(br->sense[0]); i++) in dump_scsireq() 294 printf("%.2u ", br->sense[i]); in dump_scsireq()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/dispnv04/ |
H A D | nouveau_dispnv04_dac.c | 70 static int sample_load_twice(struct drm_device *dev, bool sense[2]) in sample_load_twice() 128 sense[i] = false; in sample_load_twice() 130 sense[i] = sense_a; in sample_load_twice() 147 bool sense = true; in nv04_dac_detect() local 209 sense = false; in nv04_dac_detect() 211 sense = sense_pair[0]; in nv04_dac_detect() 217 } while (++blue < 0x18 && sense); in nv04_dac_detect()
|
/netbsd/external/gpl3/gcc/dist/gcc/ |
H A D | shortest-paths.h | 57 enum shortest_path_sense sense); 92 enum shortest_path_sense sense) in shortest_paths() argument 94 m_sense (sense), in shortest_paths()
|
/netbsd/sys/arch/usermode/dev/ |
H A D | vatapi.c | 74 void scsipi_print_sense_data_real(struct scsi_sense_data *sense, int verbosity); 295 (struct scsi_sense_data *) kreq->sense, 1); in vatapi_report_problem() 336 memcpy(&xs->sense.scsi_sense, kreq.sense, in vatapi_complete()
|
/netbsd/sys/external/bsd/drm2/dist/drm/radeon/ |
H A D | radeon_asic.c | 248 .sense = &r100_hpd_sense, 316 .sense = &r100_hpd_sense, 412 .sense = &r100_hpd_sense, 480 .sense = &r100_hpd_sense, 548 .sense = &r100_hpd_sense, 616 .sense = &r100_hpd_sense, 684 .sense = &rs600_hpd_sense, 985 .sense = &r600_hpd_sense, 1071 .sense = &r600_hpd_sense, 1166 .sense = &r600_hpd_sense, [all …]
|