Home
last modified time | relevance | path

Searched refs:sense (Results 1 – 25 of 136) sorted by relevance

123456

/drivers/ide/
Dide-cd_verbose.c18 struct request_sense *sense) in ide_cd_log_error() argument
22 if (sense->sense_key == UNIT_ATTENTION || in ide_cd_log_error()
23 (sense->sense_key == NOT_READY && (sense->asc == 4 || in ide_cd_log_error()
24 sense->asc == 0x3a))) in ide_cd_log_error()
29 name, sense->error_code, sense->sense_key, in ide_cd_log_error()
30 sense->asc, sense->ascq); in ide_cd_log_error()
254 struct request_sense *sense) in ide_cd_log_error() argument
261 if (sense->error_code == 0x70) in ide_cd_log_error()
263 else if (sense->error_code == 0x71) in ide_cd_log_error()
265 else if (sense->error_code == 0x7f) in ide_cd_log_error()
[all …]
Dide-cd_ioctl.c45 struct request_sense sense; in ide_cdrom_drive_status() local
51 stat = cdrom_check_status(drive, &sense); in ide_cdrom_drive_status()
52 if (!stat || sense.sense_key == UNIT_ATTENTION) in ide_cdrom_drive_status()
64 if (sense.sense_key == NOT_READY && sense.asc == 0x04 in ide_cdrom_drive_status()
65 && sense.ascq == 0x04) in ide_cdrom_drive_status()
73 if (sense.sense_key == NOT_READY) { in ide_cdrom_drive_status()
74 if (sense.asc == 0x3a && sense.ascq == 1) in ide_cdrom_drive_status()
108 struct request_sense *sense) in cdrom_eject() argument
131 return ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, sense, 0, 0); in cdrom_eject()
137 struct request_sense *sense) in ide_cd_lockdoor() argument
[all …]
Dide-cd.c98 struct request_sense *sense = &drive->sense_data; in cdrom_log_sense() local
101 if (!sense || !rq || (rq->cmd_flags & REQ_QUIET)) in cdrom_log_sense()
104 ide_debug_log(IDE_DBG_SENSE, "sense_key: 0x%x", sense->sense_key); in cdrom_log_sense()
106 switch (sense->sense_key) { in cdrom_log_sense()
115 if (sense->asc == 0x3a || sense->asc == 0x04) in cdrom_log_sense()
124 if (rq->cmd[0] == GPCMD_START_STOP_UNIT && sense->asc == 0x24) in cdrom_log_sense()
146 struct request_sense *sense = &drive->sense_data; in cdrom_analyze_sense_data() local
152 sense->error_code, sense->sense_key); in cdrom_analyze_sense_data()
167 if (sense->sense_key == 0x05 && sense->asc == 0x24) in cdrom_analyze_sense_data()
171 if (sense->error_code == 0x70) { in cdrom_analyze_sense_data()
[all …]
/drivers/s390/block/
Ddasd_3990_erp.c301 dasd_3990_erp_action_4(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_action_4() argument
318 if (sense && (sense[25] == 0x1D)) { /* state change pending */ in dasd_3990_erp_action_4()
327 } else if (sense && (sense[25] == 0x1E)) { /* busy */ in dasd_3990_erp_action_4()
394 dasd_3990_handle_env_data(struct dasd_ccw_req * erp, char *sense) in dasd_3990_handle_env_data() argument
398 char msg_format = (sense[7] & 0xF0); in dasd_3990_handle_env_data()
399 char msg_no = (sense[7] & 0x0F); in dasd_3990_handle_env_data()
405 if (sense[1] & 0x10) { /* check message to operator bit */ in dasd_3990_handle_env_data()
449 "... %02x\n", sense[8]); in dasd_3990_handle_env_data()
470 sense[8]); in dasd_3990_handle_env_data()
492 "device = %02x\n", sense[4]); in dasd_3990_handle_env_data()
[all …]
/drivers/s390/char/
Dtape_3590.c668 struct tape_3590_med_sense *sense) in tape_3590_med_state_set() argument
674 DBF_EVENT(6, "medium state: %x:%x\n", sense->macst, sense->masst); in tape_3590_med_state_set()
675 switch (sense->macst) { in tape_3590_med_state_set()
691 if (sense->flags & MSENSE_CRYPT_MASK) { in tape_3590_med_state_set()
692 DBF_EVENT(6, "Medium is encrypted (%04x)\n", sense->flags); in tape_3590_med_state_set()
695 DBF_EVENT(6, "Medium is not encrypted %04x\n", sense->flags); in tape_3590_med_state_set()
825 struct tape_3590_sense *sense; in tape_3590_erp_basic() local
827 sense = (struct tape_3590_sense *) irb->ecw; in tape_3590_erp_basic()
829 switch (sense->bra) { in tape_3590_erp_basic()
957 struct tape_3590_sense *sense; in tape_3590_print_mim_msg_f0() local
[all …]
Dtape_34xx.c58 unsigned char *sense; in __tape_34xx_medium_sense() local
61 sense = request->cpdata; in __tape_34xx_medium_sense()
69 if (sense[0] & SENSE_INTERVENTION_REQUIRED) in __tape_34xx_medium_sense()
74 if (sense[1] & SENSE_WRITE_PROTECT) in __tape_34xx_medium_sense()
320 __u8* sense; in tape_34xx_unit_check() local
323 sense = irb->ecw; in tape_34xx_unit_check()
326 sense[0] & SENSE_COMMAND_REJECT && in tape_34xx_unit_check()
327 sense[1] & SENSE_WRITE_PROTECT in tape_34xx_unit_check()
354 sense[0] == SENSE_DATA_CHECK || in tape_34xx_unit_check()
355 sense[0] == SENSE_EQUIPMENT_CHECK || in tape_34xx_unit_check()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dsense.c68 struct mlx4_sense *sense = &mlx4_priv(dev)->sense; in mlx4_do_sense_ports() local
74 if (sense->do_sense_port[i] && sense->sense_allowed[i] && in mlx4_do_sense_ports()
94 struct mlx4_sense *sense = container_of(delay, struct mlx4_sense, in mlx4_sense_port() local
96 struct mlx4_dev *dev = sense->dev; in mlx4_sense_port()
111 queue_delayed_work(mlx4_wq , &sense->sense_poll, in mlx4_sense_port()
118 struct mlx4_sense *sense = &priv->sense; in mlx4_start_sense() local
123 queue_delayed_work(mlx4_wq , &sense->sense_poll, in mlx4_start_sense()
129 cancel_delayed_work_sync(&mlx4_priv(dev)->sense.sense_poll); in mlx4_stop_sense()
135 struct mlx4_sense *sense = &priv->sense; in mlx4_sense_init() local
138 sense->dev = dev; in mlx4_sense_init()
[all …]
/drivers/scsi/device_handler/
Dscsi_dh_hp_sw.c41 unsigned char sense[SCSI_SENSE_BUFFERSIZE]; member
59 static int tur_done(struct scsi_device *sdev, unsigned char *sense) in tur_done() argument
64 ret = scsi_normalize_sense(sense, SCSI_SENSE_BUFFERSIZE, &sshdr); in tur_done()
122 req->sense = h->sense; in hp_sw_tur()
123 memset(req->sense, 0, SCSI_SENSE_BUFFERSIZE); in hp_sw_tur()
129 ret = tur_done(sdev, h->sense); in hp_sw_tur()
159 static int start_done(struct scsi_device *sdev, unsigned char *sense) in start_done() argument
164 rc = scsi_normalize_sense(sense, SCSI_SENSE_BUFFERSIZE, &sshdr); in start_done()
210 err = start_done(h->sdev, h->sense); in start_stop_endio()
253 req->sense = h->sense; in hp_sw_start_stop()
[all …]
Dscsi_dh_emc.c94 unsigned char sense[SCSI_SENSE_BUFFERSIZE]; member
119 static int trespass_endio(struct scsi_device *sdev, char *sense) in trespass_endio() argument
124 if (!scsi_normalize_sense(sense, SCSI_SENSE_BUFFERSIZE, &sshdr)) { in trespass_endio()
327 rq->sense = csdev->sense; in send_inquiry_cmd()
328 memset(rq->sense, 0, SCSI_SENSE_BUFFERSIZE); in send_inquiry_cmd()
380 rq->sense = csdev->sense; in send_trespass_cmd()
381 memset(rq->sense, 0, SCSI_SENSE_BUFFERSIZE); in send_trespass_cmd()
387 err = trespass_endio(sdev, csdev->sense); in send_trespass_cmd()
471 if (scsi_normalize_sense(csdev->sense, SCSI_SENSE_BUFFERSIZE, in clariion_std_inquiry()
510 err = scsi_normalize_sense(csdev->sense, SCSI_SENSE_BUFFERSIZE, in clariion_send_inquiry()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Di2c.c96 info->sense = DCB_I2C_UNUSED; in dcb_i2c_parse()
103 info->sense = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse()
148 info->sense = nvbios_rd08(bios, ent + 5); in dcb_i2c_parse()
149 if (!info->sense) info->sense = 0x3e; in dcb_i2c_parse()
154 info->sense = nvbios_rd08(bios, ent + 7); in dcb_i2c_parse()
155 if (!info->sense) info->sense = 0x36; in dcb_i2c_parse()
/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dbusnv04.c32 u8 sense; member
62 return !!(nvkm_rdvgac(device, 0, bus->sense) & 0x04); in nv04_i2c_bus_sense_scl()
70 return !!(nvkm_rdvgac(device, 0, bus->sense) & 0x08); in nv04_i2c_bus_sense_sda()
83 nv04_i2c_bus_new(struct nvkm_i2c_pad *pad, int id, u8 drive, u8 sense, in nv04_i2c_bus_new() argument
94 bus->sense = sense; in nv04_i2c_bus_new()
/drivers/staging/media/lirc/
Dlirc_serial.c112 static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */ variable
566 && sense != -1) { in lirc_irq_handler()
598 dcd, sense, ktime_to_us(kt), in lirc_irq_handler()
606 if (!(dcd^sense)) { in lirc_irq_handler()
609 dcd, sense, ktime_to_us(kt), in lirc_irq_handler()
615 sense = sense ? 0 : 1; in lirc_irq_handler()
619 frbwrite(dcd^sense ? data : (data|PULSE_BIT)); in lirc_irq_handler()
744 if (sense == -1) { in lirc_serial_probe()
761 sense = nlow >= nhigh ? 1 : 0; in lirc_serial_probe()
763 sense ? "low" : "high"); in lirc_serial_probe()
[all …]
/drivers/scsi/
Dsr_ioctl.c190 struct request_sense *sense = cgc->sense; in sr_do_ioctl() local
194 if (!sense) { in sr_do_ioctl()
195 sense = kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL); in sr_do_ioctl()
196 if (!sense) { in sr_do_ioctl()
208 memset(sense, 0, sizeof(*sense)); in sr_do_ioctl()
210 cgc->buffer, cgc->buflen, (char *)sense, in sr_do_ioctl()
213 scsi_normalize_sense((char *)sense, sizeof(*sense), &sshdr); in sr_do_ioctl()
264 if (!cgc->sense) in sr_do_ioctl()
265 kfree(sense); in sr_do_ioctl()
Dosst.c206 const u8 *sense = SRpnt->sense; in osst_analyze_sense() local
208 s->have_sense = scsi_normalize_sense(SRpnt->sense, in osst_analyze_sense()
215 scsi_get_sense_info_fld(sense, SCSI_SENSE_BUFFERSIZE, &s->uremainder64); in osst_analyze_sense()
216 switch (sense[0] & 0x7f) { in osst_analyze_sense()
221 s->flags = sense[2] & 0xe0; in osst_analyze_sense()
227 ucp = scsi_sense_desc_find(sense, SCSI_SENSE_BUFFERSIZE, 4); in osst_analyze_sense()
239 u8 * sense = SRpnt->sense, scode; in osst_chk_result() local
262 name, scode, sense[12], sense[13]); in osst_chk_result()
265 SRpnt->sense, SCSI_SENSE_BUFFERSIZE); in osst_chk_result()
280 SRpnt->sense, SCSI_SENSE_BUFFERSIZE); in osst_chk_result()
[all …]
Daha1740.c119 static int aha1740_makecode(unchar *sense, unchar *status) in aha1740_makecode() argument
143 sense[0], sense[1], sense[2], sense[3]); in aha1740_makecode()
269 memcpy(SCtmp->sense_buffer, ecbptr->sense, in aha1740_intr_handle()
271 errstatus = aha1740_makecode(ecbptr->sense,ecbptr->status); in aha1740_intr_handle()
426 host->ecb[ecbno].sense); in aha1740_queuecommand_lck()
/drivers/video/fbdev/
Dvalkyriefb.c97 int sense; member
284 p->sense = read_valkyrie_sense(p); in valkyrie_choose_mode()
285 printk(KERN_INFO "Monitor sense value = 0x%x\n", p->sense); in valkyrie_choose_mode()
298 default_vmode = mac_map_monitor_sense(p->sense); in valkyrie_choose_mode()
418 int sense, in; in read_valkyrie_sense() local
422 sense = ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x70) << 4; in read_valkyrie_sense()
426 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x30); in read_valkyrie_sense()
429 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x40) >> 3; in read_valkyrie_sense()
430 sense |= (in & 0x10) >> 2; in read_valkyrie_sense()
433 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x60) >> 5; in read_valkyrie_sense()
[all …]
Dplatinumfb.c346 int sense, rc; in platinum_init_fb() local
348 sense = read_platinum_sense(pinfo); in platinum_init_fb()
349 printk(KERN_INFO "platinumfb: Monitor sense value = 0x%x, ", sense); in platinum_init_fb()
359 default_vmode = mac_map_monitor_sense(sense); in platinum_init_fb()
419 int sense; in read_platinum_sense() local
423 sense = (~in_be32(&platinum_regs->reg[23].r) & 7) << 8; in read_platinum_sense()
428 sense |= (~in_be32(&platinum_regs->reg[23].r) & 3) << 4; in read_platinum_sense()
431 sense |= (~in_be32(&platinum_regs->reg[23].r) & 4) << 1; in read_platinum_sense()
432 sense |= (~in_be32(&platinum_regs->reg[23].r) & 1) << 2; in read_platinum_sense()
435 sense |= (~in_be32(&platinum_regs->reg[23].r) & 6) >> 1; in read_platinum_sense()
[all …]
Dmacmodes.c182 int sense; member
367 int mac_map_monitor_sense(int sense) in mac_map_monitor_sense() argument
371 for (map = mac_monitors; map->sense != -1; map++) in mac_map_monitor_sense()
372 if (map->sense == sense) in mac_map_monitor_sense()
/drivers/irqchip/
Dirq-aspeed-vic.c70 u32 sense; in vic_init_hw() local
88 sense = readl(vic->base + AVIC_INT_SENSE); in vic_init_hw()
89 vic->edge_sources[0] = ~sense; in vic_init_hw()
90 sense = readl(vic->base + AVIC_INT_SENSE + 4); in vic_init_hw()
91 vic->edge_sources[1] = ~sense; in vic_init_hw()
/drivers/scsi/osd/
DKconfig31 int "(0-2) When sense is returned, DEBUG print all sense descriptors"
36 sense-buffer is retrieved, turning this on will dump a full
37 sense-decoding message. Setting to 2 will also print recoverable
/drivers/s390/scsi/
Dzfcp_fc.h247 char *sense; in zfcp_fc_eval_fcp_rsp() local
267 sense = (char *) &fcp_rsp[1]; in zfcp_fc_eval_fcp_rsp()
269 sense += fcp_rsp->ext.fr_rsp_len; in zfcp_fc_eval_fcp_rsp()
272 memcpy(scsi->sense_buffer, sense, sense_len); in zfcp_fc_eval_fcp_rsp()
/drivers/cdrom/
Dgdrom.c388 char sense = __raw_readb(GDROM_ERROR_REG); in gdrom_drivestatus() local
389 sense &= 0xF0; in gdrom_drivestatus()
390 if (sense == 0) in gdrom_drivestatus()
392 if (sense == 0x20) in gdrom_drivestatus()
434 short sense[5]; in gdrom_getsense() local
456 insw(GDROM_DATA_REG, &sense, sense_command->buflen/2); in gdrom_getsense()
457 if (sense[1] & 40) { in gdrom_getsense()
461 sense_key = sense[1] & 0x0F; in gdrom_getsense()
467 memcpy(bufstring, &sense[4], 2); in gdrom_getsense()
/drivers/sh/intc/
Dcore.c150 (d->sense + d->nr_sense)->irq = irq; in intc_register_irq()
151 (d->sense + d->nr_sense)->handle = data[0]; in intc_register_irq()
272 d->sense = kzalloc(hw->nr_vectors * sizeof(*d->sense), in register_intc_controller()
274 if (!d->sense) in register_intc_controller()
280 sort(d->sense, hw->nr_sense_regs, sizeof(*d->sense), in register_intc_controller()
/drivers/block/
Dpktcdvd.c752 struct request_sense *sense = cgc->sense; in pkt_dump_sense() local
754 if (sense) in pkt_dump_sense()
757 sense->sense_key, sense->asc, sense->ascq, in pkt_dump_sense()
758 sense_key_string(sense->sense_key)); in pkt_dump_sense()
791 struct request_sense sense; in pkt_set_speed() local
795 cgc.sense = &sense; in pkt_set_speed()
1684 struct request_sense sense; in pkt_set_write_settings() local
1695 cgc.sense = &sense; in pkt_set_write_settings()
1710 cgc.sense = &sense; in pkt_set_write_settings()
1944 struct request_sense sense; in pkt_write_caching() local
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
Ddac.c66 static int sample_load_twice(struct drm_device *dev, bool sense[2]) in sample_load_twice()
124 sense[i] = false; in sample_load_twice()
126 sense[i] = sense_a; in sample_load_twice()
143 bool sense = true; in nv04_dac_detect() local
205 sense = false; in nv04_dac_detect()
207 sense = sense_pair[0]; in nv04_dac_detect()
213 } while (++blue < 0x18 && sense); in nv04_dac_detect()

123456