Lines Matching refs:mfd
47 struct nct38xx_mfd *mfd; member
59 static bool nct38xx_alert_is_active(struct nct38xx_mfd *mfd) in nct38xx_alert_is_active() argument
64 k_sem_take(mfd->lock, K_FOREVER); in nct38xx_alert_is_active()
67 ret = i2c_burst_read_dt(mfd->i2c_dev, NCT38XX_REG_ALERT, (uint8_t *)&alert, in nct38xx_alert_is_active()
72 ret = i2c_burst_read_dt(mfd->i2c_dev, NCT38XX_REG_ALERT_MASK, in nct38xx_alert_is_active()
80 ret = i2c_burst_write_dt(mfd->i2c_dev, NCT38XX_REG_ALERT, in nct38xx_alert_is_active()
85 k_sem_give(mfd->lock); in nct38xx_alert_is_active()
108 struct nct38xx_mfd *mfd = &data->mfd[i]; in nct38xx_alert_worker() local
110 if (nct38xx_alert_is_active(mfd)) { in nct38xx_alert_worker()
131 data->mfd[i].lock = mfd_nct38xx_get_lock_reference(config->nct38xx_dev[i]); in nct38xx_alert_init()
132 data->mfd[i].i2c_dev = mfd_nct38xx_get_i2c_dt_spec(config->nct38xx_dev[i]); in nct38xx_alert_init()
174 .mfd = nct38xx_mfd_##inst, \