Searched defs:fault (Results 1 - 24 of 24) sorted by relevance

/drivers/power/
H A Dmax8903_charger.c35 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 Dda9030_battery.c109 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 Dltc4260.c99 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 Dltc4222.c114 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 Dltc4261.c154 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 Dltc2945.c334 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 Demc2103.c220 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 Dmax16065.c99 int fault[2]; member in struct:max16065_data
168 data->fault[i]
183 int val = data->fault[attr2->nr];
/drivers/media/i2c/
H A Dadp1653.c27 * - 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 Dlm3560.c39 /* 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 Dlm3646.c208 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 Dspi-tle62x0.c105 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 Dad5421.c29 /* 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 Damd_iommu_v2.c77 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 Ddmar.c1052 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 Damd_iommu.c673 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 Dwm8350-regulator.c644 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 Dnvc0.c46 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 Dnve0.c70 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 Dfm10k_pci.c845 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 Dfm10k_pf.c1496 * 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 Deata_generic.h147 #define HA_SFAULT 0x20 /* write fault */
189 __u8 fault:1; /* write fault */ member in struct:reg_bit
/drivers/scsi/lpfc/
H A Dlpfc_sli4.h188 uint8_t fault; member in struct:lpfc_sli4_link
/drivers/staging/lustre/lustre/llite/
H A Dllite_internal.h890 * 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.

Completed in 520 milliseconds