Home
last modified time | relevance | path

Searched refs:reg_addr (Results 1 – 25 of 135) sorted by relevance

123456

/Zephyr-latest/drivers/audio/
Dtlv320dac310x.h18 #define SOFT_RESET_ADDR (struct reg_addr){0, 1}
21 #define NDAC_DIV_ADDR (struct reg_addr){0, 11}
27 #define MDAC_DIV_ADDR (struct reg_addr){0, 12}
35 #define OSR_MSB_ADDR (struct reg_addr){0, 13}
38 #define OSR_LSB_ADDR (struct reg_addr){0, 14}
44 #define IF_CTRL1_ADDR (struct reg_addr){0, 27}
60 #define BCLK_DIV_ADDR (struct reg_addr){0, 30}
66 #define OVF_FLAG_ADDR (struct reg_addr){0, 39}
68 #define PROC_BLK_SEL_ADDR (struct reg_addr){0, 60}
72 #define DATA_PATH_SETUP_ADDR (struct reg_addr){0, 63}
[all …]
/Zephyr-latest/drivers/sensor/st/stmemsc/
Dstmemsc_i2c.c16 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i2c_read() argument
18 return i2c_burst_read_dt(stmemsc, reg_addr, value, len); in stmemsc_i2c_read()
22 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i2c_write() argument
24 return i2c_burst_write_dt(stmemsc, reg_addr, value, len); in stmemsc_i2c_write()
28 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i2c_read_incr() argument
30 reg_addr |= STMEMSC_I2C_ADDR_AUTO_INCR; in stmemsc_i2c_read_incr()
31 return stmemsc_i2c_read(stmemsc, reg_addr, value, len); in stmemsc_i2c_read_incr()
35 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i2c_write_incr() argument
37 reg_addr |= STMEMSC_I2C_ADDR_AUTO_INCR; in stmemsc_i2c_write_incr()
38 return stmemsc_i2c_write(stmemsc, reg_addr, value, len); in stmemsc_i2c_write_incr()
Dstmemsc_spi.c21 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_spi_read() argument
23 uint8_t buffer_tx[2] = { reg_addr | SPI_READ, 0 }; in stmemsc_spi_read()
46 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_spi_write() argument
48 uint8_t buffer_tx[1] = { reg_addr & ~SPI_READ }; in stmemsc_spi_write()
64 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_spi_read_incr() argument
66 reg_addr |= STMEMSC_SPI_ADDR_AUTO_INCR; in stmemsc_spi_read_incr()
67 return stmemsc_spi_read(stmemsc, reg_addr, value, len); in stmemsc_spi_read_incr()
71 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_spi_write_incr() argument
73 reg_addr |= STMEMSC_SPI_ADDR_AUTO_INCR; in stmemsc_spi_write_incr()
74 return stmemsc_spi_write(stmemsc, reg_addr, value, len); in stmemsc_spi_write_incr()
Dstmemsc.h34 uint8_t reg_addr, uint8_t *value, uint8_t len);
36 uint8_t reg_addr, uint8_t *value, uint8_t len);
52 uint8_t reg_addr, uint8_t *value, uint8_t len);
54 uint8_t reg_addr, uint8_t *value, uint8_t len);
84 uint8_t reg_addr, uint8_t *value, uint8_t len);
86 uint8_t reg_addr, uint8_t *value, uint8_t len);
103 uint8_t reg_addr, uint8_t *value, uint8_t len);
105 uint8_t reg_addr, uint8_t *value, uint8_t len);
121 uint8_t reg_addr, uint8_t *value, uint8_t len);
123 uint8_t reg_addr, uint8_t *value, uint8_t len);
Dstmemsc_i3c.c13 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i3c_read() argument
17 return i3c_burst_read(target, reg_addr, value, len); in stmemsc_i3c_read()
21 uint8_t reg_addr, uint8_t *value, uint8_t len) in stmemsc_i3c_write() argument
25 return i3c_burst_write(target, reg_addr, value, len); in stmemsc_i3c_write()
/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh_spi.c26 static int lis2dh_raw_read(const struct device *dev, uint8_t reg_addr, in lis2dh_raw_read() argument
30 uint8_t buffer_tx[2] = { reg_addr | LIS2DH_SPI_READ_BIT, 0 }; in lis2dh_raw_read()
70 static int lis2dh_raw_write(const struct device *dev, uint8_t reg_addr, in lis2dh_raw_write() argument
74 uint8_t buffer_tx[1] = { reg_addr & ~LIS2DH_SPI_READ_BIT }; in lis2dh_raw_write()
106 static int lis2dh_spi_read_data(const struct device *dev, uint8_t reg_addr, in lis2dh_spi_read_data() argument
109 return lis2dh_raw_read(dev, reg_addr, value, len); in lis2dh_spi_read_data()
112 static int lis2dh_spi_write_data(const struct device *dev, uint8_t reg_addr, in lis2dh_spi_write_data() argument
115 return lis2dh_raw_write(dev, reg_addr, value, len); in lis2dh_spi_write_data()
118 static int lis2dh_spi_read_reg(const struct device *dev, uint8_t reg_addr, in lis2dh_spi_read_reg() argument
121 return lis2dh_raw_read(dev, reg_addr, value, 1); in lis2dh_spi_read_reg()
[all …]
Dlis2dh_i2c.c23 static int lis2dh_i2c_read_data(const struct device *dev, uint8_t reg_addr, in lis2dh_i2c_read_data() argument
28 return i2c_burst_read_dt(&cfg->bus_cfg.i2c, reg_addr | LIS2DH_AUTOINCREMENT_ADDR, value, in lis2dh_i2c_read_data()
32 static int lis2dh_i2c_write_data(const struct device *dev, uint8_t reg_addr, in lis2dh_i2c_write_data() argument
37 return i2c_burst_write_dt(&cfg->bus_cfg.i2c, reg_addr | LIS2DH_AUTOINCREMENT_ADDR, value, in lis2dh_i2c_write_data()
41 static int lis2dh_i2c_read_reg(const struct device *dev, uint8_t reg_addr, in lis2dh_i2c_read_reg() argument
46 return i2c_reg_read_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in lis2dh_i2c_read_reg()
49 static int lis2dh_i2c_write_reg(const struct device *dev, uint8_t reg_addr, in lis2dh_i2c_write_reg() argument
54 return i2c_reg_write_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in lis2dh_i2c_write_reg()
57 static int lis2dh_i2c_update_reg(const struct device *dev, uint8_t reg_addr, in lis2dh_i2c_update_reg() argument
62 return i2c_reg_update_byte_dt(&cfg->bus_cfg.i2c, reg_addr, mask, value); in lis2dh_i2c_update_reg()
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl_spi.c23 static int lsm6dsl_raw_read(const struct device *dev, uint8_t reg_addr, in lsm6dsl_raw_read() argument
27 uint8_t buffer_tx[2] = { reg_addr | LSM6DSL_SPI_READ, 0 }; in lsm6dsl_raw_read()
63 static int lsm6dsl_raw_write(const struct device *dev, uint8_t reg_addr, in lsm6dsl_raw_write() argument
67 uint8_t buffer_tx[1] = { reg_addr & ~LSM6DSL_SPI_READ }; in lsm6dsl_raw_write()
95 static int lsm6dsl_spi_read_data(const struct device *dev, uint8_t reg_addr, in lsm6dsl_spi_read_data() argument
98 return lsm6dsl_raw_read(dev, reg_addr, value, len); in lsm6dsl_spi_read_data()
101 static int lsm6dsl_spi_write_data(const struct device *dev, uint8_t reg_addr, in lsm6dsl_spi_write_data() argument
104 return lsm6dsl_raw_write(dev, reg_addr, value, len); in lsm6dsl_spi_write_data()
107 static int lsm6dsl_spi_read_reg(const struct device *dev, uint8_t reg_addr, in lsm6dsl_spi_read_reg() argument
110 return lsm6dsl_raw_read(dev, reg_addr, value, 1); in lsm6dsl_spi_read_reg()
[all …]
Dlsm6dsl_i2c.c21 static int lsm6dsl_i2c_read_data(const struct device *dev, uint8_t reg_addr, in lsm6dsl_i2c_read_data() argument
26 return i2c_burst_read_dt(&cfg->bus_cfg.i2c, reg_addr, value, len); in lsm6dsl_i2c_read_data()
29 static int lsm6dsl_i2c_write_data(const struct device *dev, uint8_t reg_addr, in lsm6dsl_i2c_write_data() argument
34 return i2c_burst_write_dt(&cfg->bus_cfg.i2c, reg_addr, value, len); in lsm6dsl_i2c_write_data()
37 static int lsm6dsl_i2c_read_reg(const struct device *dev, uint8_t reg_addr, in lsm6dsl_i2c_read_reg() argument
42 return i2c_reg_read_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in lsm6dsl_i2c_read_reg()
45 static int lsm6dsl_i2c_update_reg(const struct device *dev, uint8_t reg_addr, in lsm6dsl_i2c_update_reg() argument
50 return i2c_reg_update_byte_dt(&cfg->bus_cfg.i2c, reg_addr, mask, value); in lsm6dsl_i2c_update_reg()
/Zephyr-latest/drivers/sensor/bosch/bma4xx/
Dbma4xx_i2c.c19 static int bma4xx_i2c_read_data(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_read_data() argument
24 return i2c_burst_read_dt(&cfg->bus_cfg.i2c, reg_addr, value, in bma4xx_i2c_read_data()
28 static int bma4xx_i2c_write_data(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_write_data() argument
33 return i2c_burst_write_dt(&cfg->bus_cfg.i2c, reg_addr, value, in bma4xx_i2c_write_data()
37 static int bma4xx_i2c_read_reg(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_read_reg() argument
42 return i2c_reg_read_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in bma4xx_i2c_read_reg()
45 static int bma4xx_i2c_write_reg(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_write_reg() argument
50 return i2c_reg_write_byte_dt(&cfg->bus_cfg.i2c, reg_addr, value); in bma4xx_i2c_write_reg()
53 static int bma4xx_i2c_update_reg(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_update_reg() argument
58 return i2c_reg_update_byte_dt(&cfg->bus_cfg.i2c, reg_addr, mask, value); in bma4xx_i2c_update_reg()
Dbma4xx_spi.c19 static int bma4xx_spi_read_data(const struct device *dev, uint8_t reg_addr, in bma4xx_spi_read_data() argument
25 static int bma4xx_spi_write_data(const struct device *dev, uint8_t reg_addr, in bma4xx_spi_write_data() argument
31 static int bma4xx_spi_read_reg(const struct device *dev, uint8_t reg_addr, in bma4xx_spi_read_reg() argument
37 static int bma4xx_spi_write_reg(const struct device *dev, uint8_t reg_addr, in bma4xx_spi_write_reg() argument
43 static int bma4xx_spi_update_reg(const struct device *dev, uint8_t reg_addr, in bma4xx_spi_update_reg() argument
/Zephyr-latest/drivers/sensor/adi/adxl367/
Dadxl367_i2c.c39 static int adxl367_i2c_reg_read(const struct device *dev, uint8_t reg_addr, in adxl367_i2c_reg_read() argument
42 return adxl367_bus_access(dev, ADXL367_REG_READ(reg_addr), reg_data, 1); in adxl367_i2c_reg_read()
46 uint8_t reg_addr, in adxl367_i2c_reg_read_multiple() argument
50 return adxl367_bus_access(dev, ADXL367_REG_READ(reg_addr), in adxl367_i2c_reg_read_multiple()
55 uint8_t reg_addr, in adxl367_i2c_reg_write() argument
58 return adxl367_bus_access(dev, ADXL367_REG_WRITE(reg_addr), in adxl367_i2c_reg_write()
64 uint8_t reg_addr, in adxl367_i2c_reg_write_mask() argument
71 ret = adxl367_i2c_reg_read(dev, reg_addr, &tmp); in adxl367_i2c_reg_write_mask()
79 return adxl367_i2c_reg_write(dev, reg_addr, tmp); in adxl367_i2c_reg_write_mask()
Dadxl367_spi.c65 static int adxl367_spi_reg_read(const struct device *dev, uint8_t reg_addr, in adxl367_spi_reg_read() argument
68 return adxl367_bus_access(dev, ADXL367_REG_READ(reg_addr), reg_data, 1); in adxl367_spi_reg_read()
72 uint8_t reg_addr, in adxl367_spi_reg_read_multiple() argument
76 return adxl367_bus_access(dev, ADXL367_REG_READ(reg_addr), in adxl367_spi_reg_read_multiple()
81 uint8_t reg_addr, in adxl367_spi_reg_write() argument
84 return adxl367_bus_access(dev, ADXL367_REG_WRITE(reg_addr), in adxl367_spi_reg_write()
89 uint8_t reg_addr, in adxl367_spi_reg_write_mask() argument
96 ret = adxl367_spi_reg_read(dev, reg_addr, &tmp); in adxl367_spi_reg_write_mask()
104 return adxl367_spi_reg_write(dev, reg_addr, tmp); in adxl367_spi_reg_write_mask()
/Zephyr-latest/drivers/sensor/adi/adxl372/
Dadxl372_i2c.c41 static int adxl372_i2c_reg_read(const struct device *dev, uint8_t reg_addr, in adxl372_i2c_reg_read() argument
44 return adxl372_bus_access(dev, ADXL372_REG_READ(reg_addr), reg_data, 1); in adxl372_i2c_reg_read()
48 uint8_t reg_addr, in adxl372_i2c_reg_read_multiple() argument
52 return adxl372_bus_access(dev, ADXL372_REG_READ(reg_addr), in adxl372_i2c_reg_read_multiple()
57 uint8_t reg_addr, in adxl372_i2c_reg_write() argument
60 return adxl372_bus_access(dev, ADXL372_REG_WRITE(reg_addr), in adxl372_i2c_reg_write()
66 uint8_t reg_addr, in adxl372_i2c_reg_write_mask() argument
73 ret = adxl372_i2c_reg_read(dev, reg_addr, &tmp); in adxl372_i2c_reg_write_mask()
81 return adxl372_i2c_reg_write(dev, reg_addr, tmp); in adxl372_i2c_reg_write_mask()
Dadxl372_spi.c56 static int adxl372_spi_reg_read(const struct device *dev, uint8_t reg_addr, in adxl372_spi_reg_read() argument
59 return adxl372_bus_access(dev, ADXL372_REG_READ(reg_addr), reg_data, 1); in adxl372_spi_reg_read()
63 uint8_t reg_addr, in adxl372_spi_reg_read_multiple() argument
67 return adxl372_bus_access(dev, ADXL372_REG_READ(reg_addr), in adxl372_spi_reg_read_multiple()
72 uint8_t reg_addr, in adxl372_spi_reg_write() argument
75 return adxl372_bus_access(dev, ADXL372_REG_WRITE(reg_addr), in adxl372_spi_reg_write()
80 uint8_t reg_addr, in adxl372_spi_reg_write_mask() argument
87 ret = adxl372_spi_reg_read(dev, reg_addr, &tmp); in adxl372_spi_reg_write_mask()
95 return adxl372_spi_reg_write(dev, reg_addr, tmp); in adxl372_spi_reg_write_mask()
/Zephyr-latest/drivers/mdio/
Dmdio_shell.c62 uint16_t reg_addr; in cmd_mdio_scan() local
72 reg_addr = strtol(argv[1], NULL, 16); in cmd_mdio_scan()
74 reg_addr = 0; in cmd_mdio_scan()
79 reg_addr); in cmd_mdio_scan()
86 if (mdio_read(dev, i, reg_addr, &data) >= 0 && in cmd_mdio_scan()
105 uint16_t reg_addr; in cmd_mdio_write() local
116 reg_addr = strtol(argv[2], NULL, 16); in cmd_mdio_write()
121 if (mdio_write(dev, port_addr, reg_addr, data) < 0) { in cmd_mdio_write()
138 uint16_t reg_addr; in cmd_mdio_read() local
149 reg_addr = strtol(argv[2], NULL, 16); in cmd_mdio_read()
[all …]
Dmdio_dwcxgmac.c61 mem_addr_t reg_addr = (mem_addr_t)(ioaddr + XGMAC_DMA_BASE_ADDR_OFFSET + DMA_MODE_OFST); in dwxgmac_software_reset() local
63 sys_write32(DMA_MODE_SWR_SET(1u), reg_addr); in dwxgmac_software_reset()
65 ret = WAIT_FOR(!(sys_read32(reg_addr) & DMA_MODE_SWR_SET_MSK), delay_us, k_msleep(1)); in dwxgmac_software_reset()
73 static inline int mdio_busy_wait(uint32_t reg_addr, uint32_t bit_msk) in mdio_busy_wait() argument
78 ret = WAIT_FOR(!(sys_read32(reg_addr) & bit_msk), delay_us, k_msleep(1)); in mdio_busy_wait()
94 uint32_t reg_addr; in mdio_transfer() local
107 reg_addr = ioaddr + CORE_MDIO_CLAUSE_22_PORT_OFST; in mdio_transfer()
108 reg_data = sys_read32(reg_addr); in mdio_transfer()
110 sys_write32(reg_data, reg_addr); in mdio_transfer()
112 reg_addr = ioaddr + CORE_MDIO_SINGLE_COMMAND_ADDRESS_OFST; in mdio_transfer()
[all …]
/Zephyr-latest/drivers/can/
Dcan_rcar.c170 uint32_t reg_addr; member
202 return sys_read16(config->reg_addr + offs); in can_rcar_read16()
208 sys_write16(value, config->reg_addr + offs); in can_rcar_write16()
230 err_cnt->tx_err_cnt = sys_read8(config->reg_addr + RCAR_CAN_TECR); in can_rcar_get_error_count()
231 err_cnt->rx_err_cnt = sys_read8(config->reg_addr + RCAR_CAN_RECR); in can_rcar_get_error_count()
262 eifr = sys_read8(config->reg_addr + RCAR_CAN_EIFR); in can_rcar_error()
266 ecsr = sys_read8(config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
270 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
275 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
280 config->reg_addr + RCAR_CAN_ECSR); in can_rcar_error()
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_intel_adsp.h91 const uint32_t reg_addr = base + DSPCxWDTCS + DSPBRx_OFFSET(core); in intel_adsp_wdt_pause() local
94 control = sys_read32(reg_addr); in intel_adsp_wdt_pause()
97 sys_write32(control, reg_addr); in intel_adsp_wdt_pause()
110 const uint32_t reg_addr = base + DSPCxWDTCS + DSPBRx_OFFSET(core); in intel_adsp_wdt_resume() local
113 control = sys_read32(reg_addr); in intel_adsp_wdt_resume()
116 sys_write32(control, reg_addr); in intel_adsp_wdt_resume()
/Zephyr-latest/drivers/ethernet/
Deth_dwmac_stm32h7x.c50 uint32_t reg_addr, reg_val; in dwmac_bus_init() local
75 reg_addr = DT_REG_ADDR(DT_INST(0, st_stm32h7_rcc)) + 0xf4; in dwmac_bus_init()
76 reg_val = sys_read32(reg_addr); in dwmac_bus_init()
77 sys_write32(reg_val | BIT(1), reg_addr); in dwmac_bus_init()
80 reg_addr = 0x58000404; /* no DT node? */ in dwmac_bus_init()
81 reg_val = sys_read32(reg_addr); in dwmac_bus_init()
82 sys_write32(reg_val | 0x03800000, reg_addr); in dwmac_bus_init()
/Zephyr-latest/drivers/input/
Dinput_gt911.c107 uint16_t reg_addr; in gt911_process() local
119 reg_addr = REG_STATUS; in gt911_process()
120 r = gt911_i2c_write_read(dev, &reg_addr, sizeof(reg_addr), &status, sizeof(status)); in gt911_process()
147 reg_addr = REG_POINT_ADDR(i); in gt911_process()
148 r = gt911_i2c_write_read(dev, &reg_addr, sizeof(reg_addr), &point_reg[i], in gt911_process()
323 uint16_t reg_addr = DEVICE_ID; in gt911_init() local
334 r = gt911_i2c_write_read(dev, &reg_addr, sizeof(reg_addr), &reg_id, sizeof(reg_id)); in gt911_init()
338 r = gt911_i2c_write_read(dev, &reg_addr, sizeof(reg_addr), &reg_id, in gt911_init()
345 r = gt911_i2c_write_read(dev, &reg_addr, sizeof(reg_addr), &reg_id, sizeof(reg_id)); in gt911_init()
360 reg_addr = REG_GT911_CONFIG; in gt911_init()
[all …]
/Zephyr-latest/drivers/ethernet/dwc_xgmac/
Deth_dwc_xgmac.c154 mem_addr_t reg_addr = in dwxgmac_dma_init() local
174 sys_write32(reg_val, reg_addr); in dwxgmac_dma_init()
177 reg_addr = ioaddr + XGMAC_DMA_BASE_ADDR_OFFSET + DMA_TX_EDMA_CONTROL_OFST; in dwxgmac_dma_init()
181 sys_write32(reg_val, reg_addr); in dwxgmac_dma_init()
184 reg_addr = ioaddr + XGMAC_DMA_BASE_ADDR_OFFSET + DMA_RX_EDMA_CONTROL_OFST; in dwxgmac_dma_init()
188 sys_write32(reg_val, reg_addr); in dwxgmac_dma_init()
204 mem_addr_t reg_addr; in dwxgmac_dma_chnl_init() local
214 reg_addr = (ioaddr + XGMAC_DMA_CHNLx_BASE_ADDR_OFFSET(dma_chnl) + in dwxgmac_dma_chnl_init()
219 sys_write32(reg_val, reg_addr); in dwxgmac_dma_chnl_init()
225 reg_addr = (ioaddr + XGMAC_DMA_CHNLx_BASE_ADDR_OFFSET(dma_chnl) + in dwxgmac_dma_chnl_init()
[all …]
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_emul.c28 void icm42688_emul_set_reg(const struct emul *target, uint8_t reg_addr, const uint8_t *val, in icm42688_emul_set_reg() argument
33 __ASSERT_NO_MSG(reg_addr + count < NUM_REGS); in icm42688_emul_set_reg()
34 memcpy(data->reg + reg_addr, val, count); in icm42688_emul_set_reg()
37 void icm42688_emul_get_reg(const struct emul *target, uint8_t reg_addr, uint8_t *val, size_t count) in icm42688_emul_get_reg() argument
41 __ASSERT_NO_MSG(reg_addr + count < NUM_REGS); in icm42688_emul_get_reg()
42 memcpy(val, data->reg + reg_addr, count); in icm42688_emul_get_reg()
341 uint8_t reg_addr; in icm42688_emul_backend_set_channel() local
348 reg_addr = REG_TEMP_DATA1; in icm42688_emul_backend_set_channel()
356 reg_addr = REG_ACCEL_DATA_X1; in icm42688_emul_backend_set_channel()
359 reg_addr = REG_ACCEL_DATA_Y1; in icm42688_emul_backend_set_channel()
[all …]
/Zephyr-latest/drivers/sensor/st/stts751/
Dstts751_i2c.c23 static int stts751_i2c_read(const struct device *dev, uint8_t reg_addr, uint8_t *value, in stts751_i2c_read() argument
28 return i2c_burst_read_dt(&cfg->i2c, reg_addr, value, len); in stts751_i2c_read()
31 static int stts751_i2c_write(const struct device *dev, uint8_t reg_addr, uint8_t *value, in stts751_i2c_write() argument
36 return i2c_burst_write_dt(&cfg->i2c, reg_addr, value, len); in stts751_i2c_write()
/Zephyr-latest/include/zephyr/net/
Dphy.h119 int (*read)(const struct device *dev, uint16_t reg_addr,
123 int (*write)(const struct device *dev, uint16_t reg_addr,
209 static inline int phy_read(const struct device *dev, uint16_t reg_addr, in phy_read() argument
215 return api->read(dev, reg_addr, value); in phy_read()
230 static inline int phy_write(const struct device *dev, uint16_t reg_addr, in phy_write() argument
236 return api->write(dev, reg_addr, value); in phy_write()

123456