Searched refs:mfd_dev (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/drivers/dac/ |
D | dac_ad559x.c | 23 const struct device *mfd_dev; member 54 return mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_LDAC_EN, data->dac_conf); in dac_ad559x_channel_setup() 72 if (mfd_ad559x_has_pointer_byte_map(config->mfd_dev)) { in dac_ad559x_write_value() 73 return mfd_ad559x_write_reg(config->mfd_dev, AD559X_DAC_WR_POINTER | channel, in dac_ad559x_write_value() 79 return mfd_ad559x_write_raw(config->mfd_dev, (uint8_t *)&msg, sizeof(msg)); in dac_ad559x_write_value() 94 if (!device_is_ready(config->mfd_dev)) { in dac_ad559x_init() 98 ret = mfd_ad559x_read_reg(config->mfd_dev, AD559X_REG_GEN_CTRL, 0, ®_val); in dac_ad559x_init() 109 ret = mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_GEN_CTRL, reg_val); in dac_ad559x_init() 114 ret = mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_PD_REF_CTRL, AD559X_EN_REF); in dac_ad559x_init() 124 .mfd_dev = DEVICE_DT_GET(DT_INST_PARENT(inst)), \
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_ad559x.c | 20 const struct device *mfd_dev; member 43 if (mfd_ad559x_has_pointer_byte_map(config->mfd_dev)) { in gpio_ad559x_port_get_raw() 44 ret = mfd_ad559x_read_reg(config->mfd_dev, AD559X_GPIO_RD_POINTER, 0, &data); in gpio_ad559x_port_get_raw() 48 ret = mfd_ad559x_read_reg(config->mfd_dev, AD559X_REG_GPIO_INPUT_EN, in gpio_ad559x_port_get_raw() 73 return mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_GPIO_SET, data->gpio_val); in gpio_ad559x_port_set_bits_raw() 88 return mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_GPIO_SET, data->gpio_val); in gpio_ad559x_port_clear_bits_raw() 126 ret = mfd_ad559x_write_reg(config->mfd_dev, in gpio_ad559x_configure() 132 ret = mfd_ad559x_write_reg(config->mfd_dev, in gpio_ad559x_configure() 141 ret = mfd_ad559x_write_reg(config->mfd_dev, in gpio_ad559x_configure() 151 ret = mfd_ad559x_write_reg(config->mfd_dev, in gpio_ad559x_configure() [all …]
|
D | gpio_adp5585.c | 54 const struct device *mfd_dev; member 72 (struct mfd_adp5585_config *)(cfg->mfd_dev->config); in gpio_adp5585_config() 73 struct mfd_adp5585_data *parent_data = (struct mfd_adp5585_data *)(cfg->mfd_dev->data); in gpio_adp5585_config() 182 (struct mfd_adp5585_config *)(cfg->mfd_dev->config); in gpio_adp5585_port_read() 183 struct mfd_adp5585_data *parent_data = (struct mfd_adp5585_data *)(cfg->mfd_dev->data); in gpio_adp5585_port_read() 220 (struct mfd_adp5585_config *)(cfg->mfd_dev->config); in gpio_adp5585_port_write() 221 struct mfd_adp5585_data *parent_data = (struct mfd_adp5585_data *)(cfg->mfd_dev->data); in gpio_adp5585_port_write() 282 (struct mfd_adp5585_config *)(cfg->mfd_dev->config); in gpio_adp5585_pin_interrupt_configure() 283 struct mfd_adp5585_data *parent_data = (struct mfd_adp5585_data *)(cfg->mfd_dev->data); in gpio_adp5585_pin_interrupt_configure() 350 (struct mfd_adp5585_config *)(cfg->mfd_dev->config); in gpio_adp5585_irq_handler() [all …]
|
D | gpio_aw9523b.c | 34 const struct device *mfd_dev; member 96 k_sem_take(aw9523b_get_lock(config->mfd_dev), K_FOREVER); in gpio_aw9523b_pin_configure() 134 k_sem_give(aw9523b_get_lock(config->mfd_dev)); in gpio_aw9523b_pin_configure() 164 k_sem_take(aw9523b_get_lock(config->mfd_dev), K_FOREVER); in gpio_aw9523b_port_read_write_toggle() 204 k_sem_give(aw9523b_get_lock(config->mfd_dev)); in gpio_aw9523b_port_read_write_toggle() 304 k_sem_take(aw9523b_get_lock(config->mfd_dev), K_FOREVER); in gpio_aw9523b_pin_interrupt_configure() 327 k_sem_give(aw9523b_get_lock(config->mfd_dev)); in gpio_aw9523b_pin_interrupt_configure() 339 k_sem_take(aw9523b_get_lock(config->mfd_dev), K_FOREVER); in gpio_aw9523b_manage_callback() 346 k_sem_give(aw9523b_get_lock(config->mfd_dev)); in gpio_aw9523b_manage_callback() 454 k_sem_init(aw9523b_get_lock(config->mfd_dev), 1, 1); in gpio_aw9523b_init() [all …]
|
/Zephyr-latest/drivers/adc/ |
D | adc_ad559x.c | 31 const struct device *mfd_dev; member 61 return mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_ADC_CONFIG, data->adc_conf); in adc_ad559x_channel_setup() 115 ret = mfd_ad559x_write_reg(config->mfd_dev, AD559X_REG_SEQ_ADC, BIT(channel)); in adc_ad559x_read_channel() 120 if (mfd_ad559x_has_pointer_byte_map(config->mfd_dev)) { in adc_ad559x_read_channel() 123 ret = mfd_ad559x_write_raw(config->mfd_dev, (uint8_t *)&val, in adc_ad559x_read_channel() 130 ret = mfd_ad559x_read_raw(config->mfd_dev, (uint8_t *)&val, sizeof(val)); in adc_ad559x_read_channel() 140 (void)mfd_ad559x_read_raw(config->mfd_dev, (uint8_t *)&val, sizeof(val)); in adc_ad559x_read_channel() 142 ret = mfd_ad559x_read_raw(config->mfd_dev, (uint8_t *)&val, sizeof(val)); in adc_ad559x_read_channel() 246 if (!device_is_ready(config->mfd_dev)) { in adc_ad559x_init() 250 ret = mfd_ad559x_read_reg(config->mfd_dev, AD559X_REG_GEN_CTRL, 0, ®_val); in adc_ad559x_init() [all …]
|