/drivers/ide/ |
D | ide-cd_verbose.c | 19 struct request_sense *sense) in ide_cd_log_error() argument 23 if (sense->sense_key == UNIT_ATTENTION || in ide_cd_log_error() 24 (sense->sense_key == NOT_READY && (sense->asc == 4 || in ide_cd_log_error() 25 sense->asc == 0x3a))) in ide_cd_log_error() 30 name, sense->error_code, sense->sense_key, in ide_cd_log_error() 31 sense->asc, sense->ascq); in ide_cd_log_error() 255 struct request_sense *sense) in ide_cd_log_error() argument 262 if (sense->error_code == 0x70) in ide_cd_log_error() 264 else if (sense->error_code == 0x71) in ide_cd_log_error() 266 else if (sense->error_code == 0x7f) in ide_cd_log_error() [all …]
|
D | ide-cd.c | 100 struct request_sense *sense = &drive->sense_data; in cdrom_log_sense() local 103 if (!sense || !rq || (rq->rq_flags & RQF_QUIET)) in cdrom_log_sense() 106 ide_debug_log(IDE_DBG_SENSE, "sense_key: 0x%x", sense->sense_key); in cdrom_log_sense() 108 switch (sense->sense_key) { in cdrom_log_sense() 117 if (sense->asc == 0x3a || sense->asc == 0x04) in cdrom_log_sense() 126 if (scsi_req(rq)->cmd[0] == GPCMD_START_STOP_UNIT && sense->asc == 0x24) in cdrom_log_sense() 148 struct request_sense *sense = &drive->sense_data; in cdrom_analyze_sense_data() local 154 sense->error_code, sense->sense_key); in cdrom_analyze_sense_data() 169 if (sense->sense_key == 0x05 && sense->asc == 0x24) in cdrom_analyze_sense_data() 173 if (sense->error_code == 0x70) { in cdrom_analyze_sense_data() [all …]
|
/drivers/s390/block/ |
D | dasd_3990_erp.c | 302 dasd_3990_erp_action_4(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_action_4() argument 319 if (sense && (sense[25] == 0x1D)) { /* state change pending */ in dasd_3990_erp_action_4() 328 } else if (sense && (sense[25] == 0x1E)) { /* busy */ in dasd_3990_erp_action_4() 395 dasd_3990_handle_env_data(struct dasd_ccw_req * erp, char *sense) in dasd_3990_handle_env_data() argument 399 char msg_format = (sense[7] & 0xF0); in dasd_3990_handle_env_data() 400 char msg_no = (sense[7] & 0x0F); in dasd_3990_handle_env_data() 406 if (sense[1] & 0x10) { /* check message to operator bit */ in dasd_3990_handle_env_data() 450 "... %02x\n", sense[8]); in dasd_3990_handle_env_data() 471 sense[8]); in dasd_3990_handle_env_data() 493 "device = %02x\n", sense[4]); in dasd_3990_handle_env_data() [all …]
|
D | dasd_eckd.c | 218 u8 *sense = NULL; in dasd_eckd_track_from_irb() local 222 sense = dasd_get_sense(irb); in dasd_eckd_track_from_irb() 223 if (!sense) { in dasd_eckd_track_from_irb() 228 if (!(sense[27] & DASD_SENSE_BIT_2)) { in dasd_eckd_track_from_irb() 234 if (sense[27] & DASD_SENSE_BIT_3) { in dasd_eckd_track_from_irb() 236 cyl = sense[30] << 20; in dasd_eckd_track_from_irb() 237 cyl |= (sense[31] & 0xF0) << 12; in dasd_eckd_track_from_irb() 238 cyl |= sense[28] << 8; in dasd_eckd_track_from_irb() 239 cyl |= sense[29]; in dasd_eckd_track_from_irb() 241 cyl = sense[29] << 8; in dasd_eckd_track_from_irb() [all …]
|
/drivers/s390/char/ |
D | tape_3590.c | 669 struct tape_3590_med_sense *sense) in tape_3590_med_state_set() argument 675 DBF_EVENT(6, "medium state: %x:%x\n", sense->macst, sense->masst); in tape_3590_med_state_set() 676 switch (sense->macst) { in tape_3590_med_state_set() 692 if (sense->flags & MSENSE_CRYPT_MASK) { in tape_3590_med_state_set() 693 DBF_EVENT(6, "Medium is encrypted (%04x)\n", sense->flags); in tape_3590_med_state_set() 696 DBF_EVENT(6, "Medium is not encrypted %04x\n", sense->flags); in tape_3590_med_state_set() 826 struct tape_3590_sense *sense; in tape_3590_erp_basic() local 828 sense = (struct tape_3590_sense *) irb->ecw; in tape_3590_erp_basic() 830 switch (sense->bra) { in tape_3590_erp_basic() 958 struct tape_3590_sense *sense; in tape_3590_print_mim_msg_f0() local [all …]
|
D | tape_34xx.c | 59 unsigned char *sense; in __tape_34xx_medium_sense() local 62 sense = request->cpdata; in __tape_34xx_medium_sense() 70 if (sense[0] & SENSE_INTERVENTION_REQUIRED) in __tape_34xx_medium_sense() 75 if (sense[1] & SENSE_WRITE_PROTECT) in __tape_34xx_medium_sense() 321 __u8* sense; in tape_34xx_unit_check() local 324 sense = irb->ecw; in tape_34xx_unit_check() 327 sense[0] & SENSE_COMMAND_REJECT && in tape_34xx_unit_check() 328 sense[1] & SENSE_WRITE_PROTECT in tape_34xx_unit_check() 355 sense[0] == SENSE_DATA_CHECK || in tape_34xx_unit_check() 356 sense[0] == SENSE_EQUIPMENT_CHECK || in tape_34xx_unit_check() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | sense.c | 68 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/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | i2c.c | 96 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/ |
D | busnv04.c | 32 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/media/rc/ |
D | serial_ir.c | 55 static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */ variable 342 sense != -1) { in serial_ir_irq_handler() 358 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler() 366 if (!(dcd ^ sense)) { in serial_ir_irq_handler() 370 dcd, sense, ktime_to_ns(kt), in serial_ir_irq_handler() 376 sense = sense ? 0 : 1; in serial_ir_irq_handler() 381 frbwrite(data, !(dcd ^ sense)); in serial_ir_irq_handler() 571 if (sense == -1) { in serial_ir_probe() 588 sense = nlow >= nhigh ? 1 : 0; in serial_ir_probe() 590 sense ? "low" : "high"); in serial_ir_probe() [all …]
|
/drivers/irqchip/ |
D | irq-renesas-rza1.c | 31 #define ICR1_IRQS(n, sense) ((sense) << ((n) * 2)) /* IRQ Sense Select */ argument 72 u16 sense, tmp; in rza1_irqc_set_type() local 76 sense = ICR1_IRQS_LEVEL_LOW; in rza1_irqc_set_type() 80 sense = ICR1_IRQS_EDGE_FALLING; in rza1_irqc_set_type() 84 sense = ICR1_IRQS_EDGE_RISING; in rza1_irqc_set_type() 88 sense = ICR1_IRQS_EDGE_BOTH; in rza1_irqc_set_type() 97 tmp |= ICR1_IRQS(hw_irq, sense); in rza1_irqc_set_type()
|
D | irq-aspeed-vic.c | 60 u32 sense; in vic_init_hw() local 78 sense = readl(vic->base + AVIC_INT_SENSE); in vic_init_hw() 79 vic->edge_sources[0] = ~sense; in vic_init_hw() 80 sense = readl(vic->base + AVIC_INT_SENSE + 4); in vic_init_hw() 81 vic->edge_sources[1] = ~sense; in vic_init_hw()
|
/drivers/video/fbdev/ |
D | valkyriefb.c | 88 int sense; member 275 p->sense = read_valkyrie_sense(p); in valkyrie_choose_mode() 276 printk(KERN_INFO "Monitor sense value = 0x%x\n", p->sense); in valkyrie_choose_mode() 285 default_vmode = mac_map_monitor_sense(p->sense); in valkyrie_choose_mode() 408 int sense, in; in read_valkyrie_sense() local 412 sense = ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x70) << 4; in read_valkyrie_sense() 416 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x30); in read_valkyrie_sense() 419 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x40) >> 3; in read_valkyrie_sense() 420 sense |= (in & 0x10) >> 2; in read_valkyrie_sense() 423 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x60) >> 5; in read_valkyrie_sense() [all …]
|
D | platinumfb.c | 344 int sense, rc; in platinum_init_fb() local 346 sense = read_platinum_sense(pinfo); in platinum_init_fb() 347 printk(KERN_INFO "platinumfb: Monitor sense value = 0x%x, ", sense); in platinum_init_fb() 353 default_vmode = mac_map_monitor_sense(sense); in platinum_init_fb() 412 int sense; in read_platinum_sense() local 416 sense = (~in_be32(&platinum_regs->reg[23].r) & 7) << 8; in read_platinum_sense() 421 sense |= (~in_be32(&platinum_regs->reg[23].r) & 3) << 4; in read_platinum_sense() 424 sense |= (~in_be32(&platinum_regs->reg[23].r) & 4) << 1; in read_platinum_sense() 425 sense |= (~in_be32(&platinum_regs->reg[23].r) & 1) << 2; in read_platinum_sense() 428 sense |= (~in_be32(&platinum_regs->reg[23].r) & 6) >> 1; in read_platinum_sense() [all …]
|
D | macmodes.c | 182 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()
|
D | controlfb.c | 358 int sense; in read_control_sense() local 364 sense = (in_le32(CNTRL_REG(p,mon_sense)) & 0x1c0) << 2; in read_control_sense() 369 sense |= (in_le32(CNTRL_REG(p,mon_sense)) & 0xc0) >> 2; in read_control_sense() 372 sense |= ((in_le32(CNTRL_REG(p,mon_sense)) & 0x100) >> 5) in read_control_sense() 376 sense |= (in_le32(CNTRL_REG(p,mon_sense)) & 0x180) >> 7; in read_control_sense() 380 return sense; in read_control_sense() 850 int full, sense, vmode, cmode, vyres; in init_control() local 870 sense = read_control_sense(p); in init_control() 871 printk(KERN_CONT "Monitor sense value = 0x%x, ", sense); in init_control() 872 vmode = mac_map_monitor_sense(sense); in init_control()
|
/drivers/s390/scsi/ |
D | zfcp_fc.h | 276 char *sense; in zfcp_fc_eval_fcp_rsp() local 296 sense = (char *) &fcp_rsp[1]; in zfcp_fc_eval_fcp_rsp() 298 sense += be32_to_cpu(fcp_rsp->ext.fr_rsp_len); in zfcp_fc_eval_fcp_rsp() 301 memcpy(scsi->sense_buffer, sense, sense_len); in zfcp_fc_eval_fcp_rsp()
|
/drivers/cdrom/ |
D | gdrom.c | 369 char sense = __raw_readb(GDROM_ERROR_REG); in gdrom_drivestatus() local 370 sense &= 0xF0; in gdrom_drivestatus() 371 if (sense == 0) in gdrom_drivestatus() 373 if (sense == 0x20) in gdrom_drivestatus() 415 short sense[5]; in gdrom_getsense() local 437 insw(GDROM_DATA_REG, &sense, sense_command->buflen/2); in gdrom_getsense() 438 if (sense[1] & 40) { in gdrom_getsense() 442 sense_key = sense[1] & 0x0F; in gdrom_getsense() 448 memcpy(bufstring, &sense[4], 2); in gdrom_getsense()
|
/drivers/scsi/ |
D | aha1740.c | 119 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() 427 host->ecb[ecbno].sense); in aha1740_queuecommand_lck()
|
/drivers/sh/intc/ |
D | core.c | 150 (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 = kcalloc(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/gpu/drm/nouveau/dispnv04/ |
D | dac.c | 66 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()
|
/drivers/iio/afe/ |
D | Kconfig | 14 that handles voltage dividers, current sense shunts and 15 current sense amplifiers.
|
D | iio-rescale.c | 151 u32 sense; in rescale_current_sense_amplifier_props() local 158 &sense); in rescale_current_sense_amplifier_props() 172 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props() 174 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props()
|
/drivers/gpu/drm/radeon/ |
D | radeon_asic.c | 243 .sense = &r100_hpd_sense, 311 .sense = &r100_hpd_sense, 407 .sense = &r100_hpd_sense, 475 .sense = &r100_hpd_sense, 543 .sense = &r100_hpd_sense, 611 .sense = &r100_hpd_sense, 679 .sense = &rs600_hpd_sense, 747 .sense = &rs600_hpd_sense, 815 .sense = &rs600_hpd_sense, 883 .sense = &rs600_hpd_sense, [all …]
|
/drivers/target/sbp/ |
D | sbp_target.c | 1361 u8 *sense = req->sense_buf; in sbp_sense_mangle() local 1366 switch (sense[0] & 0x7f) { /* sfmt */ in sbp_sense_mangle() 1381 sense[0]); in sbp_sense_mangle() 1392 (sense[0] & 0x80) | /* valid */ in sbp_sense_mangle() 1393 ((sense[2] & 0xe0) >> 1) | /* mark, eom, ili */ in sbp_sense_mangle() 1394 (sense[2] & 0x0f); /* sense_key */ in sbp_sense_mangle() 1399 status[4] = sense[3]; in sbp_sense_mangle() 1400 status[5] = sense[4]; in sbp_sense_mangle() 1401 status[6] = sense[5]; in sbp_sense_mangle() 1402 status[7] = sense[6]; in sbp_sense_mangle() [all …]
|