/drivers/power/ |
H A D | max8903_charger.c | 35 bool fault; member in struct:max8903_data 72 if (data->fault) 165 bool fault; local 167 fault = gpio_get_value(pdata->flt) ? false : true; 169 if (fault == data->fault) 172 data->fault = fault; 174 if (fault) 175 dev_err(data->dev, "Charger suffers a fault an [all...] |
H A D | da9030_battery.c | 109 uint8_t fault; member in struct:da9030_charger 227 da903x_read(charger->master, DA9030_FAULT_LOG, &charger->fault); 332 if (charger->fault & DA9030_FAULT_LOG_OVER_TEMP) 334 else if (charger->fault & DA9030_FAULT_LOG_VBAT_OVER)
|
/drivers/hwmon/ |
H A D | ltc4260.c | 99 unsigned int fault; local 102 ret = regmap_read(regmap, LTC4260_FAULT, &fault); 106 fault &= attr->index; 107 if (fault) /* Clear reported faults in chip register */ 110 return snprintf(buf, PAGE_SIZE, "%d\n", !!fault);
|
H A D | ltc4222.c | 114 unsigned int fault; local 117 ret = regmap_read(regmap, attr->nr, &fault); 120 fault &= attr->index; 121 if (fault) /* Clear reported faults in chip register */ 124 return snprintf(buf, PAGE_SIZE, "%d\n", !!fault);
|
H A D | ltc4261.c | 154 u8 fault; local 159 fault = data->regs[LTC4261_FAULT] & attr->index; 160 if (fault) /* Clear reported faults in chip register */ 161 i2c_smbus_write_byte_data(data->client, LTC4261_FAULT, ~fault); 163 return snprintf(buf, PAGE_SIZE, "%d\n", fault ? 1 : 0);
|
H A D | ltc2945.c | 334 unsigned int fault; local 337 ret = regmap_read(regmap, LTC2945_FAULT, &fault); 341 fault &= attr->index; 342 if (fault) /* Clear reported faults in chip register */ 345 return snprintf(buf, PAGE_SIZE, "%d\n", !!fault);
|
H A D | emc2103.c | 220 bool fault = (data->temp[nr].degrees == -128); local 221 return sprintf(buf, "%d\n", fault ? 1 : 0); 418 bool fault = ((data->fan_tach & 0x1fe0) == 0x1fe0); local 419 return sprintf(buf, "%d\n", fault ? 1 : 0);
|
H A D | max16065.c | 99 int fault[2]; member in struct:max16065_data 168 data->fault[i] 183 int val = data->fault[attr2->nr];
|
/drivers/media/i2c/ |
H A D | adp1653.c | 27 * - fault interrupt handling 91 int fault; local 94 fault = i2c_smbus_read_byte_data(client, ADP1653_REG_FAULT); 95 if (IS_ERR_VALUE(fault)) 96 return fault; 98 flash->fault |= fault; 100 if (!flash->fault) 114 return flash->fault; 163 if (flash->fault 211 struct v4l2_ctrl *fault; local [all...] |
H A D | lm3560.c | 39 /* fault mask */ 175 s32 fault = 0; local 181 fault |= V4L2_FLASH_FAULT_SHORT_CIRCUIT; 183 fault |= V4L2_FLASH_FAULT_OVER_TEMPERATURE; 185 fault |= V4L2_FLASH_FAULT_TIMEOUT; 186 ctrl->cur.val = fault; 288 struct v4l2_ctrl *fault; local 329 /* fault */ 330 fault = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_FAULT, 0, 335 if (fault ! [all...] |
H A D | lm3646.c | 208 struct v4l2_ctrl *fault; local 247 /* fault */ 248 fault = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_FAULT, 0, 253 if (fault != NULL) 254 fault->flags |= V4L2_CTRL_FLAG_VOLATILE;
|
/drivers/spi/ |
H A D | spi-tle62x0.c | 105 unsigned long fault = 0; local 118 fault <<= 8; 119 fault |= ((unsigned long)buff[ptr]); 125 bp += sprintf(bp, "%s ", decode_fault(fault >> (ptr * 2)));
|
/drivers/iio/dac/ |
H A D | ad5421.c | 29 /* load dac and fault shared the same register number. Writing to it will cause 30 * a dac load command, reading from it will return the fault status register */ 54 /* These bits will cause the fault pin to go high */ 205 unsigned int fault; local 209 fault = ad5421_read(indio_dev, AD5421_REG_FAULT); 210 if (!fault) 213 /* If we had a fault, this might mean that the DAC has lost its state 221 /* The fault pin stays high as long as a fault condition is present and 222 * it is not possible to mask fault condition [all...] |
/drivers/iommu/ |
H A D | amd_iommu_v2.c | 77 struct fault { struct 518 struct fault *fault = container_of(work, struct fault, work); local 522 write = !!(fault->flags & PPR_FAULT_WRITE); 524 down_read(&fault->state->mm->mmap_sem); 525 npages = get_user_pages(NULL, fault->state->mm, 526 fault->address, 1, write, 0, &page, NULL); 527 up_read(&fault->state->mm->mmap_sem); 531 } else if (fault 568 struct fault *fault; local [all...] |
H A D | dmar.c | 1052 u32 fault; local 1060 fault = readl(iommu->reg + DMAR_FSTS_REG); 1067 if (fault & DMA_FSTS_IQE) { 1087 if (fault & DMA_FSTS_ITE) { 1106 if (fault & DMA_FSTS_ICE) 1486 "fault index %llx\n" 1487 "INTR-REMAP:[fault reason %02d] %s\n", 1493 "fault addr %llx \n" 1494 "DMAR:[fault reason %02d] %s\n", 1512 pr_err("DRHD: handling fault statu [all...] |
H A D | amd_iommu.c | 673 struct amd_iommu_fault fault; local 682 fault.address = raw[1]; 683 fault.pasid = PPR_PASID(raw[0]); 684 fault.device_id = PPR_DEVID(raw[0]); 685 fault.tag = PPR_TAG(raw[0]); 686 fault.flags = PPR_FLAGS(raw[0]); 688 atomic_notifier_call_chain(&ppr_notifier, 0, &fault);
|
/drivers/regulator/ |
H A D | wm8350-regulator.c | 644 u16 stop, u16 fault) 685 (fault << WM8350_DC1_ERRACT_SHIFT)); 643 wm8350_dcdc_set_slot(struct wm8350 *wm8350, int dcdc, u16 start, u16 stop, u16 fault) argument
|
/drivers/gpu/drm/nouveau/core/engine/fifo/ |
H A D | nvc0.c | 46 struct work_struct fault; member in struct:nvc0_fifo_priv 417 struct nvc0_fifo_priv *priv = container_of(work, typeof(*priv), fault); 452 nv_error(priv, "%s engine fault on channel %d, recovering...\n", 461 schedule_work(&priv->fault); 660 nv_error(priv, "%s fault at 0x%010llx [%s] from %s/%s%s%s%s on " 876 INIT_WORK(&priv->fault, nvc0_fifo_recover_work);
|
H A D | nve0.c | 70 struct work_struct fault; member in struct:nve0_fifo_priv 443 struct nve0_fifo_priv *priv = container_of(work, typeof(*priv), fault); 478 nv_error(priv, "%s engine fault on channel %d, recovering...\n", 487 schedule_work(&priv->fault); 775 nv_error(priv, "%s fault at 0x%010llx [%s] from %s/%s%s%s%s on " 998 /* allow mmu fault interrupts, even when we're not using fifo */ 1064 INIT_WORK(&priv->fault, nve0_fifo_recover_work);
|
/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pci.c | 845 struct fm10k_fault *fault) 852 switch (fault->type) { 866 switch (fault->type) { 875 switch (fault->type) { 893 error = "Undocumented fault"; 899 error, fault->address, fault->specinfo, 900 PCI_SLOT(fault->func), PCI_FUNC(fault->func)); 906 struct fm10k_fault fault local 844 fm10k_print_fault(struct fm10k_intfc *interface, int type, struct fm10k_fault *fault) argument [all...] |
H A D | fm10k_pf.c | 1496 * fm10k_get_fault_pf - Record a fault in one of the interface units 1498 * @type: pointer to fault type register offset 1499 * @fault: pointer to memory location to record the fault 1501 * Record the fault register contents to the fault data structure and 1507 struct fm10k_fault *fault) 1511 /* verify the fault register is in range and is aligned */ 1527 fault->address = fm10k_read_reg(hw, type + FM10K_FAULT_ADDR_HI); 1528 fault 1506 fm10k_get_fault_pf(struct fm10k_hw *hw, int type, struct fm10k_fault *fault) argument [all...] |
/drivers/scsi/ |
H A D | eata_generic.h | 147 #define HA_SFAULT 0x20 /* write fault */ 189 __u8 fault:1; /* write fault */ member in struct:reg_bit
|
/drivers/scsi/lpfc/ |
H A D | lpfc_sli4.h | 188 uint8_t fault; member in struct:lpfc_sli4_link
|
/drivers/staging/lustre/lustre/llite/ |
H A D | llite_internal.h | 890 * kernel fault info 894 * fault API used bitflags for return code. 901 } fault; member in struct:vvp_io::__anon6624::vvp_fault_io 902 } fault; member in union:vvp_io::__anon6624 905 * Read-ahead state used by read and page-fault IO contexts.
|