Home
last modified time | relevance | path

Searched refs:reg_read (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.7.0/drivers/ethernet/phy/
Dphy_mii.c47 static inline int reg_read(const struct device *dev, uint16_t reg_addr, in reg_read() function
76 if (reg_read(dev, MII_BMSR, &bmsr_reg) < 0) { in is_gigabit_supported()
81 if (reg_read(dev, MII_ESTAT, &estat_reg) < 0) { in is_gigabit_supported()
115 if (reg_read(dev, MII_BMCR, &value) < 0) { in reset()
127 if (reg_read(dev, MII_PHYID1R, &value) < 0) { in get_id()
133 if (reg_read(dev, MII_PHYID2R, &value) < 0) { in get_id()
156 if (reg_read(dev, MII_BMSR, &bmsr_reg) < 0) { in update_link_state()
181 if (reg_read(dev, MII_ANAR, &anar_reg) < 0) { in update_link_state()
186 if (reg_read(dev, MII_BMCR, &bmcr_reg) < 0) { in update_link_state()
207 if (reg_read(dev, MII_BMSR, &bmsr_reg) < 0) { in update_link_state()
[all …]
/Zephyr-Core-3.7.0/drivers/sensor/ti/ina3221/
Dina3221.c23 static int reg_read(const struct device *dev, uint8_t reg_addr, uint16_t *reg_data) in reg_read() function
73 ret = reg_read(dev, INA3221_MANUF_ID, &reg_data); in ina3221_init()
82 ret = reg_read(dev, INA3221_CHIP_ID, &reg_data); in ina3221_init()
92 ret = reg_read(dev, INA3221_CONFIG, &reg_data); in ina3221_init()
121 ret = reg_read(dev, INA3221_CONFIG, &reg_data); in start_measurement()
141 ret = reg_read(dev, INA3221_MASK_ENABLE, &reg_data); in measurement_ready()
204 ret = reg_read(dev, INA3221_BUS_V1 + 2 * i, &(data->v_bus[i])); in ina3221_sample_fetch()
212 ret = reg_read(dev, INA3221_SHUNT_V1 + 2 * i, &(data->v_shunt[i])); in ina3221_sample_fetch()
/Zephyr-Core-3.7.0/drivers/sensor/bosch/bmi160/
Demul_bmi160.c119 static int reg_read(const struct emul *target, int regn) in reg_read() function
201 val = reg_read(target, regn); in bmi160_emul_io_spi()
211 ((uint8_t *)rxd->buf)[i] = reg_read(target, regn + i); in bmi160_emul_io_spi()
250 msgs->buf[i] = reg_read(target, data->cur_reg + i); in bmi160_emul_transfer_i2c()
/Zephyr-Core-3.7.0/drivers/gpio/
Dgpio_renesas_ra.c111 static inline uint32_t reg_read(const struct device *dev, size_t offset) in reg_read() function
127 return reg_read(dev, PCNTR2_OFFSET) & UINT16_MAX; in port_read()
/Zephyr-Core-3.7.0/drivers/spi/
Dspi_dw.h96 static uint32_t reg_read(uint8_t size, mm_reg_t addr, uint32_t off) in reg_read() function
Dspi_dw.c653 (.read_func = reg_read, \