Home
last modified time | relevance | path

Searched refs:sense_data (Results 1 – 25 of 83) sorted by relevance

1234

/freebsd/sys/dev/isci/scil/
H A Dsati_util.c397 U8 * sense_data, in sati_set_sense_data_byte() argument
406 sense_data[byte_offset] = value; in sati_set_sense_data_byte()
457 U8 ** sense_data, in sati_scsi_get_sense_data_buffer() argument
471 *sense_data = (U8*) rsp_iu->data; in sati_scsi_get_sense_data_buffer()
474 *sense_data = sati_cb_get_sense_data_address(scsi_io); in sati_scsi_get_sense_data_buffer()
649 U8 * sense_data, in sati_scsi_block_descriptor_construct() argument
654 sati_set_sense_data_byte(sense_data, sense_len, 0, SCSI_BLOCK_DESCRIPTOR_TYPE); in sati_scsi_block_descriptor_construct()
655 sati_set_sense_data_byte(sense_data, sense_len, 1, SCSI_BLOCK_DESCRIPTOR_ADDITIONAL_LENGTH); in sati_scsi_block_descriptor_construct()
656 sati_set_sense_data_byte(sense_data, sense_len, 2, 0); in sati_scsi_block_descriptor_construct()
657 sati_set_sense_data_byte(sense_data, sense_len, 3, (ili << 5)); in sati_scsi_block_descriptor_construct()
[all …]
H A Dsati_passthrough.c176 U8 * sense_data; in sati_passthrough_construct_sense() local
193 sense_data = (U8*) rsp_iu->data; in sati_passthrough_construct_sense()
196 sense_data = sati_cb_get_sense_data_address(scsi_io); in sati_passthrough_construct_sense()
226 sati_set_sense_data_byte(sense_data, sense_len, 3, (U8)sati_get_ata_error(register_fis)); in sati_passthrough_construct_sense()
227 sati_set_sense_data_byte(sense_data, sense_len, 4, (U8)sati_get_ata_status(register_fis)); in sati_passthrough_construct_sense()
228 sati_set_sense_data_byte(sense_data, sense_len, 5, sati_get_ata_device(register_fis)); in sati_passthrough_construct_sense()
229 sati_set_sense_data_byte(sense_data, sense_len, 6, sati_get_ata_sector_count(register_fis)); in sati_passthrough_construct_sense()
232 …sati_set_sense_data_byte(sense_data, sense_len, 8, (PASSTHROUGH_CDB_EXTEND(cdb) << 7) | (sector_c… in sati_passthrough_construct_sense()
233 sati_set_sense_data_byte(sense_data, sense_len, 9, sati_get_ata_lba_low(register_fis)); in sati_passthrough_construct_sense()
234 sati_set_sense_data_byte(sense_data, sense_len, 10, sati_get_ata_lba_mid(register_fis)); in sati_passthrough_construct_sense()
[all …]
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_response.c119 pqisrc_extract_sense_data(sense_data_u_t *sense_data, uint8_t *key, uint8_t *asc, uint8_t *ascq) in pqisrc_extract_sense_data() argument
121 if (sense_data->fixed_format.response_code == SCSI_SENSE_RESPONSE_70 || in pqisrc_extract_sense_data()
122 sense_data->fixed_format.response_code == SCSI_SENSE_RESPONSE_71) in pqisrc_extract_sense_data()
124 sense_data_fixed_t *fixed = &sense_data->fixed_format; in pqisrc_extract_sense_data()
130 else if (sense_data->descriptor_format.response_code == SCSI_SENSE_RESPONSE_72 || in pqisrc_extract_sense_data()
131 sense_data->descriptor_format.response_code == SCSI_SENSE_RESPONSE_73) in pqisrc_extract_sense_data()
133 sense_data_descriptor_t *desc = &sense_data->descriptor_format; in pqisrc_extract_sense_data()
165 pqisrc_show_sense_data_simple(pqisrc_softstate_t *softs, rcb_t *rcb, sense_data_u_t *sense_data) in pqisrc_show_sense_data_simple() argument
170 pqisrc_extract_sense_data(sense_data, &key, &asc, &ascq); in pqisrc_show_sense_data_simple()
178 pqisrc_show_sense_data_full(pqisrc_softstate_t *softs, rcb_t *rcb, sense_data_u_t *sense_data) in pqisrc_show_sense_data_full() argument
[all …]
H A Dsmartpqi_cam.c338 uint8_t *sense_data, uint16_t sense_data_len) in copy_sense_data_to_csio() argument
342 memset(&csio->sense_data, 0, csio->sense_len); in copy_sense_data_to_csio()
347 if (sense_data) in copy_sense_data_to_csio()
348 memcpy(&csio->sense_data, sense_data, sense_data_len); in copy_sense_data_to_csio()
400 uint8_t *sense_data = NULL; in os_raid_response_error() local
402 sense_data = err_info->data; in os_raid_response_error()
404 copy_sense_data_to_csio(csio, sense_data, sense_data_len); in os_raid_response_error()
523 uint8_t *sense_data = NULL; in os_aio_response_error() local
526 sense_data = err_info->data; in os_aio_response_error()
529 copy_sense_data_to_csio(csio, sense_data, sense_data_len); in os_aio_response_error()
/freebsd/sys/dev/usb/storage/
H A Dustorage_fs.c170 uint32_t sense_data; member
947 currlun->sense_data = SS_INVALID_FIELD_IN_CDB; in ustorage_fs_verify()
962 currlun->sense_data = SS_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE; in ustorage_fs_verify()
1044 currlun->sense_data = currlun->unit_attention_data; in ustorage_fs_request_sense()
1055 sd = currlun->sense_data; in ustorage_fs_request_sense()
1058 currlun->sense_data = SS_NO_SENSE; in ustorage_fs_request_sense()
1097 currlun->sense_data = SS_INVALID_FIELD_IN_CDB; in ustorage_fs_read_capacity()
1136 currlun->sense_data = SS_INVALID_FIELD_IN_CDB; in ustorage_fs_mode_sense()
1142 currlun->sense_data = SS_SAVING_PARAMETERS_NOT_SUPPORTED; in ustorage_fs_mode_sense()
1203 currlun->sense_data = SS_INVALID_FIELD_IN_CDB; in ustorage_fs_mode_sense()
[all …]
/freebsd/tools/tools/vhba/
H A Dvhba.c158 csio->sense_data.error_code = SSD_ERRCODE_VALID|SSD_CURRENT_ERROR; in vhba_fill_sense()
159 csio->sense_data.flags = key; in vhba_fill_sense()
160 csio->sense_data.extra_len = 10; in vhba_fill_sense()
161 csio->sense_data.add_sense_code = asc; in vhba_fill_sense()
162 csio->sense_data.add_sense_code_qual = ascq; in vhba_fill_sense()
163 csio->sense_len = sizeof (csio->sense_data); in vhba_fill_sense()
259 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in vhba_default_cmd()
/freebsd/sys/cam/scsi/
H A Dscsi_all.c3846 scsi_set_sense_data_desc_va(struct scsi_sense_data *sense_data, in scsi_set_sense_data_desc_va() argument
3855 memset(sense_data, 0, sizeof(*sense_data)); in scsi_set_sense_data_desc_va()
3856 sense = (struct scsi_sense_data_desc *)sense_data; in scsi_set_sense_data_desc_va()
3994 scsi_set_sense_data_fixed_va(struct scsi_sense_data *sense_data, in scsi_set_sense_data_fixed_va() argument
4003 memset(sense_data, 0, sizeof(*sense_data)); in scsi_set_sense_data_fixed_va()
4004 sense = (struct scsi_sense_data_fixed *)sense_data; in scsi_set_sense_data_fixed_va()
4098 scsi_set_sense_data_va(struct scsi_sense_data *sense_data, u_int *sense_len, in scsi_set_sense_data_va() argument
4106 scsi_set_sense_data_desc_va(sense_data, sense_len, in scsi_set_sense_data_va()
4109 scsi_set_sense_data_fixed_va(sense_data, sense_len, in scsi_set_sense_data_va()
4114 scsi_set_sense_data(struct scsi_sense_data *sense_data, in scsi_set_sense_data() argument
[all …]
H A Dscsi_targ_bh.c478 csio->sense_data = atio->sense_data; in targbhstart()
575 bcopy(&no_lun_sense_data, &atio->sense_data, in targbhdone()
577 sizeof(atio->sense_data))); in targbhdone()
620 bcopy(&no_lun_sense_data, &atio->sense_data, in targbhdone()
622 sizeof(atio->sense_data))); in targbhdone()
/freebsd/sys/cam/ctl/
H A Dctl_error.h49 void ctl_set_sense_data_va(struct scsi_sense_data *sense_data, u_int *sense_len,
52 void ctl_set_sense_data(struct scsi_sense_data *sense_data, u_int *sense_len,
H A Dctl_error.c67 ctl_set_sense_data_va(struct scsi_sense_data *sense_data, u_int *sense_len, in ctl_set_sense_data_va() argument
107 scsi_set_sense_data_va(sense_data, sense_len, sense_format, in ctl_set_sense_data_va()
112 ctl_set_sense_data(struct scsi_sense_data *sense_data, u_int *sense_len, in ctl_set_sense_data() argument
119 ctl_set_sense_data_va(sense_data, sense_len, lunptr, sense_format, in ctl_set_sense_data()
141 ctl_set_sense_data_va(&ctsio->sense_data, &sense_len, in ctl_set_sense()
H A Dctl_tpc.c145 struct scsi_sense_data sense_data; member
637 memcpy(data->sense_data, &list_copy.sense_data, list_copy.sense_len); in ctl_receive_copy_failure_details()
711 memcpy(data->sense_data, &list_copy.sense_data, list_copy.sense_len); in ctl_receive_copy_status_lid4()
1197 list->ctsio->sense_data = list->fwd_sense_data; in tpc_process_wut()
1354 list->ctsio->sense_data = list->fwd_sense_data; in tpc_process_zero_wut()
1490 list->sense_data = ctsio->sense_data; in tpc_process()
1521 scsi_extract_sense_len(&io->scsiio.sense_data, in tpc_checkcond_parse()
1642 tio->list->fwd_sense_data = io->scsiio.sense_data; in tpc_done()
2401 memcpy(data->sense_data, &list_copy.sense_data, list_copy.sense_len); in ctl_receive_rod_token_information()
2403 ptr = &data->sense_data[data->length_of_the_sense_data_field]; in ctl_receive_rod_token_information()
H A Dctl_io.h334 struct scsi_sense_data sense_data; /* sense data */
569 struct scsi_sense_data sense_data; /* sense data */
328 struct scsi_sense_data sense_data; /* sense data */ global() member
497 struct scsi_sense_data sense_data; /* sense data */ global() member
/freebsd/sys/dev/aic7xxx/
H A Daic79xx_osm.c421 memset(&ccb->csio.sense_data, 0, sizeof(ccb->csio.sense_data)); in ahd_done()
422 memcpy(&ccb->csio.sense_data, in ahd_done()
425 sizeof(ccb->csio.sense_data) in ahd_done()
435 siu = (struct scsi_status_iu_header *)scb->sense_data; in ahd_done()
437 sizeof(ccb->csio.sense_data)); in ahd_done()
438 memset(&ccb->csio.sense_data, 0, sizeof(ccb->csio.sense_data)); in ahd_done()
439 memcpy(&ccb->csio.sense_data, in ahd_done()
444 uint8_t *sense_data in ahd_done()
432 uint8_t *sense_data = (uint8_t *)&ccb->csio.sense_data; ahd_done() local
[all...]
/freebsd/sys/dev/isp/
H A Disp_freebsd.h462 #define XS_SNSP(ccb) (&(ccb)->sense_data)
467 #define XS_SNSKEY(ccb) (scsi_get_sense_key(&(ccb)->sense_data, \
470 #define XS_SNSASC(ccb) (scsi_get_asc(&(ccb)->sense_data, \
473 #define XS_SNSASCQ(ccb) (scsi_get_ascq(&(ccb)->sense_data, \
510 memcpy(&(xs)->sense_data, sp, amt); \
516 uint8_t *ptr = (uint8_t *)(&(xs)->sense_data) + \
/freebsd/sys/dev/tws/
H A Dtws_cam.c369 TWS_TRACE_DEBUG(sc,"sense code, key",sense->sense_data[0], in tws_aen_complete()
370 sense->sense_data[2]); in tws_aen_complete()
500 u_int8_t *sense_data; in tws_scsi_err_complete() local
530 sense_data = (u_int8_t *)&ccb->csio.sense_data; in tws_scsi_err_complete()
531 if (sense_data) { in tws_scsi_err_complete()
532 memcpy(sense_data, hdr->sense_data, TWS_SENSE_DATA_LENGTH ); in tws_scsi_err_complete()
/freebsd/sys/powerpc/ps3/
H A Dps3cdrom.c511 scsi_set_sense_data(&ccb->csio.sense_data, in ps3cdrom_intr()
654 bzero(&ccb->csio.sense_data, sizeof(ccb->csio.sense_data)); in ps3cdrom_transfer()
656 scsi_set_sense_data(&ccb->csio.sense_data, in ps3cdrom_transfer()
/freebsd/tools/tools/vhba/lots/
H A Dvhba_lots.c107 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in vhbalots_act()
/freebsd/tools/tools/vhba/medium/
H A Dvhba_medium.c107 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in vhbamedium_act()
/freebsd/tools/tools/vhba/simple/
H A Dvhba_simple.c107 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in vhbasimple_act()
/freebsd/share/examples/scsi_target/
H A Dscsi_target.h100 struct scsi_sense_data sense_data; member
H A Dscsi_cmds.c248 sense = (struct scsi_sense_data_fixed *)&istate->sense_data; in tcmd_sense()
260 bcopy(sense, &ctio->sense_data, sizeof(*sense)); in tcmd_sense()
309 sense = (struct scsi_sense_data_fixed *)&istate->sense_data; in tcmd_inquiry()
384 sense = (struct scsi_sense_data_fixed *)&istate->sense_data; in tcmd_req_sense()
/freebsd/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c129 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in vhbarptluns_act()
/freebsd/tools/tools/vhba/faulty/
H A Dvhba_faulty.c115 memset(&csio->sense_data, 0, sizeof (csio->sense_data)); in faulty_act()
/freebsd/sys/dev/hptiop/
H A Dhptiop.c422 memset(&ccb->csio.sense_data, 0, in hptiop_request_callback_itl()
423 sizeof(ccb->csio.sense_data)); in hptiop_request_callback_itl()
432 sg_list), (u_int8_t *)&ccb->csio.sense_data, in hptiop_request_callback_itl()
433 MIN(dxfer, sizeof(ccb->csio.sense_data))); in hptiop_request_callback_itl()
435 memcpy(&ccb->csio.sense_data, &req->sg_list, in hptiop_request_callback_itl()
436 MIN(dxfer, sizeof(ccb->csio.sense_data))); in hptiop_request_callback_itl()
574 memset(&ccb->csio.sense_data, 0, in hptiop_request_callback_mv()
575 sizeof(ccb->csio.sense_data)); in hptiop_request_callback_mv()
581 memcpy(&ccb->csio.sense_data, &req->sg_list, in hptiop_request_callback_mv()
582 MIN(req->dataxfer_length, sizeof(ccb->csio.sense_data))); in hptiop_request_callback_mv()
[all …]
/freebsd/sys/dev/isci/
H A Disci_task_request.c153 return (&task_request->sense_data); in scif_cb_task_request_get_response_data_address()

1234