/haiku/src/add-ons/kernel/bus_managers/ata/ |
H A D | ATARequest.cpp | 108 // when the request completed and has set sense 117 // copy sense data if caller requested it 119 // we cannot copy sense directly as sense buffer may be too small 120 scsi_sense sense; local 121 _FillSense(&sense); 123 size_t senseLength = MIN(sizeof(fCCB->sense), sizeof(sense)); 124 memcpy(fCCB->sense, &sense, senseLengt 149 scsi_sense sense; local 212 _FillSense(scsi_sense *sense) argument [all...] |
H A D | ATAPrivate.h | 316 void _FillSense(scsi_sense *sense);
|
/haiku/src/add-ons/kernel/generic/scsi_periph/ |
H A D | error_handling.cpp | 14 /*! Decode sense data and generate error code. */ 18 scsi_sense *sense = (scsi_sense *)request->sense; local 21 SHOW_ERROR0(2, "No auto-sense (but there should be)"); 30 SHOW_ERROR(2, "sense too short (%d bytes)", SCSI_MAX_SENSE_SIZE - request->sense_resid); 36 switch (sense->error_code) { 45 switch ((sense->asc << 8) | sense->ascq) { 105 switch (sense->asc) { 111 sense [all...] |
H A D | io.cpp | 196 if (user_memcpy(cmd->sense_data, request->sense, length) != B_OK) 201 memcpy(cmd->sense_data, request->sense, length);
|
/haiku/src/system/libroot/posix/stdlib/ |
H A D | merge.c | 102 int sense; local 140 sense = -1; 144 sense = 0; 147 while ((b += size) < t && CMP(q, b) >sense) 156 CMP(q, p) <= sense) 161 } else if (CMP(q, p) <= sense) { 170 if (CMP(q, p = b + i) <= sense) 178 p = b + (i >>= 1)) <= sense) 251 * when THRESHOLD/2 pairs compare with same sense. (Only used when NATURAL 258 int i, length, size2, tmp, sense; local [all...] |
/haiku/src/add-ons/kernel/busses/scsi/virtio/ |
H A D | VirtioSCSIRequest.cpp | 111 // when the request completed and has set sense 119 // copy sense data if caller requested it 121 size_t senseLength = min_c(sizeof(fCCB->sense), 123 memcpy(fCCB->sense, fResponse->sense, senseLength); 124 fCCB->sense_resid = sizeof(fCCB->sense) - senseLength; 158 // Copy sense data from last request into data buffer of current request. 159 // The sense data of last request is still present in the current request, 162 copy_sg_data(fCCB, 0, command->allocation_length, fResponse->sense,
|
H A D | virtio_scsi.h | 53 /* Response, followed by sense data and data-in */ 60 uint8_t sense[VIRTIO_SCSI_SENSE_SIZE]; member in struct:virtio_scsi_cmd_resp
|
H A D | VirtioSCSIPrivate.h | 139 void _FillSense(scsi_sense *sense);
|
H A D | VirtioSCSIController.cpp | 190 TRACE("request sense\n"); 327 uint16 sense = (event->reason >> 8) local 329 if (sense == SCSIS_ASC_CAPACITY_DATA_HAS_CHANGED) {
|
/haiku/src/add-ons/kernel/bus_managers/scsi/ |
H A D | emulation.cpp | 424 /*! Set sense of request */ 428 scsi_sense *sense = (scsi_sense *)request->sense; local 436 // without autosense, we had to manage virtual sense data, 441 memset(sense, 0, sizeof(*sense)); 443 sense->error_code = SCSIS_CURR_ERROR; 444 sense->sense_key = sense_key; 445 sense->add_sense_length = sizeof(*sense) [all...] |
H A D | scsi_io.cpp | 168 /** finish special auto-sense request */ 181 // we got sense data -> copy it to sense buffer 185 SHOW_FLOW(3, "Got sense: %d bytes", sense_len); 187 memcpy(orig_request->sense, request->data, sense_len); 192 // failed to get sense 271 // device reported a check condition state and auto-sense haven't 286 // queue auto-sense request after checking was_servicable but before 287 // releasing locks so no other request overtakes auto-sense 322 // special treatment for finished auto-sense [all...] |
/haiku/src/add-ons/kernel/busses/scsi/buslogic/ |
H A D | buslogic.h | 51 uchar length_sense; /* length of sense data block */ 64 uint32 sense; /* 32bit physical pointer to the sense datablk */ member in struct:_bl_ccb32 77 uchar sensedata[256]; /* data area for sense data return */
|
H A D | buslogic.c | 444 bl_ccb->sense = toLE(priv_phys); 586 dt_printf("buslogic/%d: data %d/%d, sense %d/%d\n", req,
|
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/ |
H A D | scsi_cd.cpp | 153 if (status == B_OK || (request->sense[0] & 0x7f) != 0x70) 156 switch (request->sense[2]) { 162 uint32 errorBlock = (request->sense[3] << 24U) 163 | (request->sense[4] << 16U) | (request->sense[5] << 8U) 164 | request->sense[6]; 215 // TBD: for all but CD-ROMs, read mode sense - medium type 610 // the sorting order manually (only makes much sense if you grab
|
/haiku/headers/os/drivers/bus/ |
H A D | SCSI.h | 89 SCSI bus manager can emulate auto-sense by executing a REQUEST SENSE 101 #define SCSI_MAX_SENSE_SIZE 64 // max size of sense data 139 uchar sense[SCSI_MAX_SENSE_SIZE]; // autosense data member in struct:scsi_ccb 182 #define SCSI_AUTOSENSE_FAIL 0x10 /* Autosense: Request sense cmd fail */ 455 // the SCSI bus manager will request sense on
|
/haiku/src/add-ons/kernel/drivers/bus/scsi/ |
H A D | scsi_raw.c | 110 memcpy(cmd->sense_data, request->sense,
|