Searched refs:reg_read (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.7.0/drivers/ethernet/phy/ |
D | phy_mii.c | 47 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/ |
D | ina3221.c | 23 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, ®_data); in ina3221_init() 82 ret = reg_read(dev, INA3221_CHIP_ID, ®_data); in ina3221_init() 92 ret = reg_read(dev, INA3221_CONFIG, ®_data); in ina3221_init() 121 ret = reg_read(dev, INA3221_CONFIG, ®_data); in start_measurement() 141 ret = reg_read(dev, INA3221_MASK_ENABLE, ®_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/ |
D | emul_bmi160.c | 119 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/ |
D | gpio_renesas_ra.c | 111 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/ |
D | spi_dw.h | 96 static uint32_t reg_read(uint8_t size, mm_reg_t addr, uint32_t off) in reg_read() function
|
D | spi_dw.c | 653 (.read_func = reg_read, \
|