Home
last modified time | relevance | path

Searched refs:alarm_mask (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/drivers/iio/adc/
Dxilinx-xadc-events.c119 return (bool)(xadc->alarm_mask & xadc_get_alarm_mask(chan)); in xadc_read_event_config()
134 xadc->alarm_mask |= alarm; in xadc_write_event_config()
136 xadc->alarm_mask &= ~alarm; in xadc_write_event_config()
138 xadc->ops->update_alarm(xadc, xadc->alarm_mask); in xadc_write_event_config()
146 cfg &= ~((xadc->alarm_mask & 0xf0) << 4); /* bram, pint, paux, ddr */ in xadc_write_event_config()
147 cfg &= ~((xadc->alarm_mask & 0x08) >> 3); /* ot */ in xadc_write_event_config()
148 cfg &= ~((xadc->alarm_mask & 0x07) << 1); /* temp, vccint, vccaux */ in xadc_write_event_config()
Dxilinx-ams.c285 unsigned int alarm_mask; member
349 static void ams_update_ps_alarm(struct ams *ams, unsigned long alarm_mask) in ams_update_ps_alarm() argument
354 val = FIELD_GET(AMS_ISR0_ALARM_2_TO_0_MASK, alarm_mask); in ams_update_ps_alarm()
357 val = FIELD_GET(AMS_ISR0_ALARM_6_TO_3_MASK, alarm_mask); in ams_update_ps_alarm()
362 val = FIELD_GET(AMS_ISR0_ALARM_12_TO_7_MASK, alarm_mask); in ams_update_ps_alarm()
367 static void ams_update_pl_alarm(struct ams *ams, unsigned long alarm_mask) in ams_update_pl_alarm() argument
373 pl_alarm_mask = FIELD_GET(AMS_PL_ALARM_MASK, alarm_mask); in ams_update_pl_alarm()
388 static void ams_update_alarm(struct ams *ams, unsigned long alarm_mask) in ams_update_alarm() argument
393 ams_update_ps_alarm(ams, alarm_mask); in ams_update_alarm()
396 ams_update_pl_alarm(ams, alarm_mask); in ams_update_alarm()
[all …]
Dxilinx-xadc.h52 unsigned int alarm_mask; member
/linux-6.6.21/drivers/hwmon/
Dgl520sm.c85 u8 alarm_mask; member
154 data->alarms &= data->alarm_mask; in gl520_update_device()
404 data->alarm_mask &= (n == 0) ? ~0x20 : ~0x40; in fan_min_store()
406 data->alarm_mask |= (n == 0) ? 0x20 : 0x40; in fan_min_store()
407 data->beep_mask &= data->alarm_mask; in fan_min_store()
638 r &= data->alarm_mask; in beep_mask_store()
827 data->alarm_mask = 0xff; in gl520_init_client()
849 data->alarm_mask &= ~0x20; in gl520_init_client()
851 data->alarm_mask &= ~0x40; in gl520_init_client()
853 data->beep_mask &= data->alarm_mask; in gl520_init_client()
Dgl518sm.c100 #define BEEP_MASK_TO_REG(val) ((val) & 0x7f & data->alarm_mask)
124 u8 alarm_mask; member
197 data->alarms &= data->alarm_mask; in gl518_update_device()
364 data->alarm_mask &= ~(0x20 << nr); in fan_min_store()
366 data->alarm_mask |= (0x20 << nr); in fan_min_store()
367 data->beep_mask &= data->alarm_mask; in fan_min_store()
631 data->alarm_mask = 0xff; in gl518_probe()
Dadm1026.c282 long alarm_mask; /* Register encoding, combined */ member
425 data->alarm_mask = alarms; in adm1026_update_device()
1158 return sprintf(buf, "%ld\n", data->alarm_mask); in alarm_mask_show()
1175 data->alarm_mask = val & 0x7fffffff; in alarm_mask_store()
1176 mask = data->alarm_mask in alarm_mask_store()
1193 static DEVICE_ATTR_RW(alarm_mask);
1255 mask = ((mask >> 1) & 0x80) | (data->alarm_mask >> 24 & 0x7f); in gpio_mask_store()
Dadt7470.c1036 static DEVICE_ATTR_RW(alarm_mask);
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Dfalcon_boards.c561 unsigned alarm_mask = in sfe4002_check_hw() local
565 return ef4_check_lm87(efx, alarm_mask); in sfe4002_check_hw()
694 unsigned alarm_mask = in sfe4003_check_hw() local
698 return ef4_check_lm87(efx, alarm_mask); in sfe4003_check_hw()