Home
last modified time | relevance | path

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

12345678910>>...16

/linux/drivers/s390/block/
H A Ddasd_3990_erp.c298 dasd_3990_erp_action_4(struct dasd_ccw_req * erp, char *sense) in dasd_3990_erp_action_4() argument
315 if (sense && (sense[25] == 0x1D)) { /* state change pending */ in dasd_3990_erp_action_4()
324 } else if (sense && (sense[25] == 0x1E)) { /* busy */ in dasd_3990_erp_action_4()
391 dasd_3990_handle_env_data(struct dasd_ccw_req * erp, char *sense) in dasd_3990_handle_env_data() argument
395 char msg_format = (sense[7] & 0xF0); in dasd_3990_handle_env_data()
396 char msg_no = (sense[7] & 0x0F); in dasd_3990_handle_env_data()
401 if (sense[1] & 0x10) { /* check message to operator bit */ in dasd_3990_handle_env_data()
445 "... %02x\n", sense[8]); in dasd_3990_handle_env_data()
466 sense[8]); in dasd_3990_handle_env_data()
488 "device = %02x\n", sense[4]); in dasd_3990_handle_env_data()
[all …]
/linux/drivers/s390/char/
H A Dtape_3590.c669 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 …]
H A Dtape_34xx.c59 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 …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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 …]
/linux/drivers/scsi/
H A Dscsi_lib_test.c20 .sense = DATA_PROTECT, in scsi_lib_test_multiple_sense()
26 .sense = UNIT_ATTENTION, in scsi_lib_test_multiple_sense()
33 .sense = NOT_READY, in scsi_lib_test_multiple_sense()
40 .sense = ABORTED_COMMAND, in scsi_lib_test_multiple_sense()
47 .sense = HARDWARE_ERROR, in scsi_lib_test_multiple_sense()
53 .sense = ILLEGAL_REQUEST, in scsi_lib_test_multiple_sense()
64 u8 sense[SCSI_SENSE_BUFFERSIZE] = {}; in scsi_lib_test_multiple_sense() local
66 .sense_buffer = sense, in scsi_lib_test_multiple_sense()
120 u8 sense[SCSI_SENSE_BUFFERSIZE] = {}; in scsi_lib_test_any_sense() local
122 .sense_buffer = sense, in scsi_lib_test_any_sense()
[all …]
H A Daha1740.c123 static int aha1740_makecode(unchar *sense, unchar *status) in aha1740_makecode() argument
147 sense[0], sense[1], sense[2], sense[3]); in aha1740_makecode()
276 ecbptr->sense, in aha1740_intr_handle()
277 sizeof(ecbptr->sense), in aha1740_intr_handle()
279 errstatus = aha1740_makecode(ecbptr->sense,ecbptr->status); in aha1740_intr_handle()
435 host->ecb[ecbno].sense); in aha1740_queuecommand_lck()
/linux/include/scsi/
H A Dscsi.h128 #define sense_class(sense) (((sense) >> 4) & 0x7) argument
129 #define sense_error(sense) ((sense) & 0xf) argument
130 #define sense_valid(sense) ((sense) & 0x80) argument
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A 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()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A 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()
/linux/drivers/irqchip/
H A Dirq-renesas-rza1.c31 #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()
H A Dirq-aspeed-vic.c60 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()
H A Dirq-renesas-rzg2l.c52 #define IITSR_IITSEL(n, sense) ((sense) << ((n) * 2)) argument
291 u16 sense, tmp; in rzg2l_irq_set_type() local
295 sense = IITSR_IITSEL_LEVEL_LOW; in rzg2l_irq_set_type()
299 sense = IITSR_IITSEL_EDGE_FALLING; in rzg2l_irq_set_type()
304 sense = IITSR_IITSEL_EDGE_RISING; in rzg2l_irq_set_type()
309 sense = IITSR_IITSEL_EDGE_BOTH; in rzg2l_irq_set_type()
320 tmp |= IITSR_IITSEL(iitseln, sense); in rzg2l_irq_set_type()
351 u8 index, sense; in rzg2l_tint_set_edge() local
356 sense = TITSR_TITSEL_EDGE_RISING; in rzg2l_tint_set_edge()
360 sense = TITSR_TITSEL_EDGE_FALLING; in rzg2l_tint_set_edge()
[all …]
/linux/drivers/video/fbdev/
H A Dvalkyriefb.c87 int sense; member
268 p->sense = read_valkyrie_sense(p); in valkyrie_choose_mode()
269 printk(KERN_INFO "Monitor sense value = 0x%x\n", p->sense); in valkyrie_choose_mode()
278 default_vmode = mac_map_monitor_sense(p->sense); in valkyrie_choose_mode()
401 int sense, in; in read_valkyrie_sense() local
405 sense = ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x70) << 4; in read_valkyrie_sense()
409 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x30); in read_valkyrie_sense()
412 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x40) >> 3; in read_valkyrie_sense()
413 sense |= (in & 0x10) >> 2; in read_valkyrie_sense()
416 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x60) >> 5; in read_valkyrie_sense()
[all …]
H A Dplatinumfb.c341 int sense, rc; in platinum_init_fb() local
343 sense = read_platinum_sense(pinfo); in platinum_init_fb()
344 printk(KERN_INFO "platinumfb: Monitor sense value = 0x%x, ", sense); in platinum_init_fb()
350 default_vmode = mac_map_monitor_sense(sense); in platinum_init_fb()
409 int sense; in read_platinum_sense() local
413 sense = (~in_be32(&platinum_regs->reg[23].r) & 7) << 8; in read_platinum_sense()
418 sense |= (~in_be32(&platinum_regs->reg[23].r) & 3) << 4; in read_platinum_sense()
421 sense |= (~in_be32(&platinum_regs->reg[23].r) & 4) << 1; in read_platinum_sense()
422 sense |= (~in_be32(&platinum_regs->reg[23].r) & 1) << 2; in read_platinum_sense()
425 sense |= (~in_be32(&platinum_regs->reg[23].r) & 6) >> 1; in read_platinum_sense()
[all …]
H A 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()
/linux/Documentation/hwmon/
H A Dltc2990.rst55 curr1_input Current in mA across V1-V2 assuming a 1mOhm sense resistor
56 curr2_input Current in mA across V3-V4 assuming a 1mOhm sense resistor
61 sense resistor. Divide the reported value by the actual sense resistor value
H A Dltc4260.rst50 Current Sense register. The reported value assumes that a 1 mOhm sense resistor
51 is installed. If a different sense resistor is installed, calculate the real
52 current by dividing the reported value by the sense resistor value in mOhm.
/linux/drivers/gpio/
H A Dgpio-idt3243x.c52 unsigned int sense = flow_type & IRQ_TYPE_SENSE_MASK; in idt_gpio_irq_set_type() local
57 if (sense == IRQ_TYPE_NONE || (sense & IRQ_TYPE_EDGE_BOTH)) in idt_gpio_irq_set_type()
63 if (sense & IRQ_TYPE_LEVEL_HIGH) in idt_gpio_irq_set_type()
65 else if (sense & IRQ_TYPE_LEVEL_LOW) in idt_gpio_irq_set_type()
/linux/drivers/s390/scsi/
H A Dzfcp_fc.h276 char *sense; in zfcp_fc_eval_fcp_rsp() local
295 sense = (char *) &fcp_rsp[1]; in zfcp_fc_eval_fcp_rsp()
297 sense += be32_to_cpu(fcp_rsp->ext.fr_rsp_len); in zfcp_fc_eval_fcp_rsp()
300 memcpy(scsi->sense_buffer, sense, sense_len); in zfcp_fc_eval_fcp_rsp()
/linux/drivers/cdrom/
H A Dgdrom.c368 char sense = __raw_readb(GDROM_ERROR_REG); in gdrom_drivestatus() local
369 sense &= 0xF0; in gdrom_drivestatus()
370 if (sense == 0) in gdrom_drivestatus()
372 if (sense == 0x20) in gdrom_drivestatus()
414 short sense[5]; in gdrom_getsense() local
436 insw(GDROM_DATA_REG, &sense, sense_command->buflen/2); in gdrom_getsense()
437 if (sense[1] & 40) { in gdrom_getsense()
441 sense_key = sense[1] & 0x0F; in gdrom_getsense()
447 memcpy(bufstring, &sense[4], 2); in gdrom_getsense()
/linux/drivers/sh/intc/
H A 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()
286 d->sense = kcalloc(hw->nr_vectors, sizeof(*d->sense), in register_intc_controller()
288 if (!d->sense) in register_intc_controller()
294 sort(d->sense, hw->nr_sense_regs, sizeof(*d->sense), in register_intc_controller()
/linux/drivers/iio/afe/
H A Diio-rescale.c325 u32 sense; in rescale_current_sense_amplifier_props() local
332 &sense); in rescale_current_sense_amplifier_props()
346 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props()
348 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props()
454 s32 sense = 1; in rescale_temp_transducer_props() local
459 device_property_read_u32(dev, "sense-resistor-ohms", &sense); in rescale_temp_transducer_props()
467 rescale->denominator = alpha * sense; in rescale_temp_transducer_props()
H A DKconfig13 that handles voltage dividers, current sense shunts and
14 current sense amplifiers.
/linux/arch/mips/bcm63xx/
H A Dirq.c282 int levelsense, sense, bothedge; in bcm63xx_external_irq_set_type() local
290 levelsense = sense = bothedge = 0; in bcm63xx_external_irq_set_type()
297 sense = 1; in bcm63xx_external_irq_set_type()
305 sense = 1; in bcm63xx_external_irq_set_type()
328 if (sense) in bcm63xx_external_irq_set_type()
349 if (sense) in bcm63xx_external_irq_set_type()
/linux/arch/powerpc/platforms/cell/
H A Dspider-pic.c106 unsigned int sense = type & IRQ_TYPE_SENSE_MASK; in spider_set_irq_type() local
114 if (sense != IRQ_TYPE_NONE && sense != IRQ_TYPE_LEVEL_HIGH && in spider_set_irq_type()
119 switch(sense) { in spider_set_irq_type()

12345678910>>...16