/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_nrf.c | 44 #define NRF_PSEL_UART(reg, line) ((NRF_UART_Type *)reg)->PSEL##line argument 47 #define NRF_PSEL_UART(reg, line) ((NRF_UARTE_Type *)reg)->PSEL.line argument 51 #define NRF_PSEL_SPIM(reg, line) ((NRF_SPI_Type *)reg)->PSEL##line argument 54 #define NRF_PSEL_SPIM(reg, line) ((NRF_SPIM_Type *)reg)->PSEL.line argument 60 #define NRF_PSEL_SPIS(reg, line) ((NRF_SPIS_Type *)reg)->PSEL##line argument 62 #define NRF_PSEL_SPIS(reg, line) ((NRF_SPIS_Type *)reg)->PSEL.line argument 68 #define NRF_PSEL_TWIM(reg, line) ((NRF_TWI_Type *)reg)->PSEL##line argument 70 #define NRF_PSEL_TWIM(reg, line) ((NRF_TWI_Type *)reg)->PSEL.line argument 74 #define NRF_PSEL_TWIM(reg, line) ((NRF_TWIM_Type *)reg)->PSEL.line argument 78 #define NRF_PSEL_I2S(reg, line) ((NRF_I2S_Type *)reg)->PSEL.line argument [all …]
|
/Zephyr-latest/soc/nxp/imx/imx8ulp/adsp/include/adsp/ |
D | io.h | 15 static inline uint32_t io_reg_read(uint32_t reg) in io_reg_read() 20 static inline void io_reg_write(uint32_t reg, uint32_t val) in io_reg_write() 25 static inline void io_reg_update_bits(uint32_t reg, uint32_t mask, in io_reg_update_bits() 31 static inline uint16_t io_reg_read16(uint32_t reg) in io_reg_read16() 36 static inline void io_reg_write16(uint32_t reg, uint16_t val) in io_reg_write16()
|
/Zephyr-latest/soc/nxp/imx/imx8x/adsp/include/adsp/ |
D | io.h | 15 static inline uint32_t io_reg_read(uint32_t reg) in io_reg_read() 20 static inline void io_reg_write(uint32_t reg, uint32_t val) in io_reg_write() 25 static inline void io_reg_update_bits(uint32_t reg, uint32_t mask, in io_reg_update_bits() 31 static inline uint16_t io_reg_read16(uint32_t reg) in io_reg_read16() 36 static inline void io_reg_write16(uint32_t reg, uint16_t val) in io_reg_write16()
|
/Zephyr-latest/soc/nxp/imx/imx8/adsp/include/adsp/ |
D | io.h | 15 static inline uint32_t io_reg_read(uint32_t reg) in io_reg_read() 20 static inline void io_reg_write(uint32_t reg, uint32_t val) in io_reg_write() 25 static inline void io_reg_update_bits(uint32_t reg, uint32_t mask, in io_reg_update_bits() 31 static inline uint16_t io_reg_read16(uint32_t reg) in io_reg_read16() 36 static inline void io_reg_write16(uint32_t reg, uint16_t val) in io_reg_write16()
|
/Zephyr-latest/soc/nxp/imx/imx8m/adsp/include/adsp/ |
D | io.h | 15 static inline uint32_t io_reg_read(uint32_t reg) in io_reg_read() 20 static inline void io_reg_write(uint32_t reg, uint32_t val) in io_reg_write() 25 static inline void io_reg_update_bits(uint32_t reg, uint32_t mask, in io_reg_update_bits() 31 static inline uint16_t io_reg_read16(uint32_t reg) in io_reg_read16() 36 static inline void io_reg_write16(uint32_t reg, uint16_t val) in io_reg_write16()
|
/Zephyr-latest/soc/nxp/imxrt/imxrt5xx/f1/include/adsp/ |
D | io.h | 15 static inline uint32_t io_reg_read(uint32_t reg) in io_reg_read() 20 static inline void io_reg_write(uint32_t reg, uint32_t val) in io_reg_write() 25 static inline void io_reg_update_bits(uint32_t reg, uint32_t mask, in io_reg_update_bits() 31 static inline uint16_t io_reg_read16(uint32_t reg) in io_reg_read16() 36 static inline void io_reg_write16(uint32_t reg, uint16_t val) in io_reg_write16()
|
/Zephyr-latest/drivers/dp/ |
D | swdp_ll_pin.h | 42 NRF_GPIO_Type * reg = base; in swdp_ll_pin_input() local 51 NRF_GPIO_Type * reg = base; in swdp_ll_pin_output() local 61 NRF_GPIO_Type * reg = base; in swdp_ll_pin_set() local 70 NRF_GPIO_Type * reg = base; in swdp_ll_pin_clr() local 79 NRF_GPIO_Type * reg = base; in swdp_ll_pin_get() local
|
/Zephyr-latest/drivers/sensor/bosch/bmi160/ |
D | emul_bmi160.h | 27 uint32_t reg) in emul_bmi160_i2c_is_touching_reg() 55 uint32_t reg) in emul_bmi160_i2c_is_reading_reg() 73 uint32_t reg) in emul_bmi160_i2c_is_writing_reg()
|
/Zephyr-latest/drivers/dma/ |
D | dma_gd32.c | 62 uint32_t reg; member 95 gd32_dma_periph_increase_enable(uint32_t reg, dma_channel_enum ch) in gd32_dma_periph_increase_enable() 101 gd32_dma_periph_increase_disable(uint32_t reg, dma_channel_enum ch) in gd32_dma_periph_increase_disable() 107 gd32_dma_transfer_set_memory_to_memory(uint32_t reg, dma_channel_enum ch) in gd32_dma_transfer_set_memory_to_memory() 114 gd32_dma_transfer_set_memory_to_periph(uint32_t reg, dma_channel_enum ch) in gd32_dma_transfer_set_memory_to_periph() 121 gd32_dma_transfer_set_periph_to_memory(uint32_t reg, dma_channel_enum ch) in gd32_dma_transfer_set_periph_to_memory() 128 gd32_dma_memory_increase_enable(uint32_t reg, dma_channel_enum ch) in gd32_dma_memory_increase_enable() 134 gd32_dma_memory_increase_disable(uint32_t reg, dma_channel_enum ch) in gd32_dma_memory_increase_disable() 140 gd32_dma_circulation_enable(uint32_t reg, dma_channel_enum ch) in gd32_dma_circulation_enable() 146 gd32_dma_circulation_disable(uint32_t reg, dma_channel_enum ch) in gd32_dma_circulation_disable() [all …]
|
/Zephyr-latest/include/zephyr/arch/riscv/ |
D | reg.h | 12 #define reg_read(reg) \ argument 19 #define reg_write(reg, val) ({ __asm__("mv " STRINGIFY(reg) ", %0" : : "r"(val)); }) argument
|
/Zephyr-latest/drivers/sensor/st/vl53l1x/ |
D | vl53l1_platform.c | 23 VL53L1_Error VL53L1_WriteMulti(VL53L1_Dev_t *pdev, uint16_t reg, in VL53L1_WriteMulti() 46 VL53L1_Error VL53L1_ReadMulti(VL53L1_Dev_t *pdev, uint16_t reg, in VL53L1_ReadMulti() 65 VL53L1_Error VL53L1_WrByte(VL53L1_Dev_t *pdev, uint16_t reg, uint8_t data) in VL53L1_WrByte() 74 VL53L1_Error VL53L1_WrWord(VL53L1_Dev_t *pdev, uint16_t reg, uint16_t data) in VL53L1_WrWord() 85 VL53L1_Error VL53L1_WrDWord(VL53L1_Dev_t *pdev, uint16_t reg, uint32_t data) in VL53L1_WrDWord() 96 VL53L1_Error VL53L1_RdByte(VL53L1_Dev_t *pdev, uint16_t reg, uint8_t *pdata) in VL53L1_RdByte() 105 VL53L1_Error VL53L1_RdWord(VL53L1_Dev_t *pdev, uint16_t reg, uint16_t *pdata) in VL53L1_RdWord() 115 VL53L1_Error VL53L1_RdDWord(VL53L1_Dev_t *pdev, uint16_t reg, uint32_t *pdata) in VL53L1_RdDWord()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_spi.c | 11 static inline int spi_write_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t data) in spi_write_register() 32 static inline int spi_read_register(const struct spi_dt_spec *bus, uint8_t reg, uint8_t *data, in spi_read_register() 66 int icm42688_spi_read(const struct spi_dt_spec *bus, uint16_t reg, uint8_t *data, size_t len) in icm42688_spi_read() 76 int icm42688_spi_update_register(const struct spi_dt_spec *bus, uint16_t reg, uint8_t mask, in icm42688_spi_update_register() 92 int icm42688_spi_single_write(const struct spi_dt_spec *bus, uint16_t reg, uint8_t data) in icm42688_spi_single_write()
|
/Zephyr-latest/arch/x86/core/ |
D | early_serial.c | 20 #define IN(reg) sys_in8(reg + DT_REG_ADDR(DT_CHOSEN(zephyr_console))) argument 21 #define OUT(reg, val) sys_out8(val, reg + DT_REG_ADDR(DT_CHOSEN(zephyr_console))) argument 28 #define IN(reg) (sys_read32(mmio + (reg) * 4) & 0xff) argument 29 #define OUT(reg, val) sys_write32((val) & 0xff, mmio + (reg) * 4) argument 40 #define IN(reg) sys_read8(BASE + reg) argument 41 #define OUT(reg, val) sys_write8(val, BASE + reg) argument
|
/Zephyr-latest/drivers/sensor/ti/ina23x/ |
D | ina23x_common.c | 11 int ina23x_reg_read_24(const struct i2c_dt_spec *bus, uint8_t reg, uint32_t *val) in ina23x_reg_read_24() 26 int ina23x_reg_read_16(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t *val) in ina23x_reg_read_16() 41 int ina23x_reg_write(const struct i2c_dt_spec *bus, uint8_t reg, uint16_t val) in ina23x_reg_write()
|
/Zephyr-latest/soc/nuvoton/npcx/common/reg/ |
D | reg_access.h | 13 #define IS_BIT_SET(reg, bit) (((reg >> bit) & (0x1)) != 0) argument 20 #define GET_FIELD(reg, field) \ argument 22 #define _GET_FIELD_(reg, f_pos, f_size) (((reg)>>(f_pos)) & ((1<<(f_size))-1)) argument 24 #define SET_FIELD(reg, field, value) \ argument 26 #define _SET_FIELD_(reg, f_pos, f_size, value) \ argument
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | tcpci.c | 212 int tcpci_read_reg8(const struct i2c_dt_spec *i2c, uint8_t reg, uint8_t *value) in tcpci_read_reg8() 231 int tcpci_write_reg8(const struct i2c_dt_spec *i2c, uint8_t reg, uint8_t value) in tcpci_write_reg8() 251 int tcpci_update_reg8(const struct i2c_dt_spec *i2c, uint8_t reg, uint8_t mask, uint8_t value) in tcpci_update_reg8() 269 int tcpci_read_reg16(const struct i2c_dt_spec *i2c, uint8_t reg, uint16_t *value) in tcpci_read_reg16() 289 int tcpci_write_reg16(const struct i2c_dt_spec *i2c, uint8_t reg, uint16_t value) in tcpci_write_reg16() 310 enum tcpc_alert tcpci_alert_reg_to_enum(uint16_t reg) in tcpci_alert_reg_to_enum()
|
/Zephyr-latest/drivers/sensor/ens160/ |
D | ens160_i2c.c | 17 static int ens160_read_reg_i2c(const struct device *dev, uint8_t reg, uint8_t *val) in ens160_read_reg_i2c() 24 static int ens160_read_data_i2c(const struct device *dev, uint8_t reg, uint8_t *data, size_t len) in ens160_read_data_i2c() 31 static int ens160_write_reg_i2c(const struct device *dev, uint8_t reg, uint8_t val) in ens160_write_reg_i2c() 38 static int ens160_write_data_i2c(const struct device *dev, uint8_t reg, uint8_t *data, size_t len) in ens160_write_data_i2c()
|
/Zephyr-latest/tests/drivers/smbus/smbus_emul/src/ |
D | emul.c | 106 static void peripheral_write(uint8_t reg, uint8_t value) in peripheral_write() 120 static void peripheral_read(uint8_t reg, uint8_t *value) in peripheral_read() 227 uint8_t reg = io_area[PCH_SMBUS_HCMD]; in emul_start_smbus_protocol() local 244 uint8_t reg = io_area[PCH_SMBUS_HCMD]; in emul_start_smbus_protocol() local 261 uint8_t reg = io_area[PCH_SMBUS_HCMD]; in emul_start_smbus_protocol() local 323 static const char *pch_get_reg_name(uint8_t reg) in pch_get_reg_name() 369 uint32_t emul_pci_read(unsigned int reg) in emul_pci_read() 375 void emul_pci_write(pcie_bdf_t bdf, unsigned int reg, uint32_t value) in emul_pci_write()
|
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/ |
D | loapic.h | 74 static inline uint64_t x86_read_x2apic(unsigned int reg) in x86_read_x2apic() 85 static inline uint32_t x86_read_xapic(unsigned int reg) in x86_read_xapic() 102 static inline uint32_t x86_read_loapic(unsigned int reg) in x86_read_loapic() 117 static inline void x86_write_x2apic(unsigned int reg, uint64_t val) in x86_write_x2apic() 129 static inline void x86_write_xapic(unsigned int reg, uint32_t val) in x86_write_xapic() 147 static inline void x86_write_loapic(unsigned int reg, uint32_t val) in x86_write_loapic()
|
/Zephyr-latest/tests/drivers/sensor/ina237/src/ |
D | ina237_emul.c | 37 static struct ina237_reg *get_register(struct ina237_emul_data *data, int reg) in get_register() 47 int ina237_mock_set_register(void *data_ptr, int reg, uint32_t value) in ina237_mock_set_register() 59 int ina237_mock_get_register(void *data_ptr, int reg, uint32_t *value_ptr) in ina237_mock_get_register() 95 uint8_t reg = msgs[0].buf[0]; in ina237_emul_transfer_i2c() local 112 uint8_t reg = msgs[0].buf[0]; in ina237_emul_transfer_i2c() local
|
/Zephyr-latest/drivers/sensor/ti/tmp1075/ |
D | tmp1075.h | 28 #define TMP1075_SET_ONE_SHOT_CONVERSION(reg, enable) \ argument 32 #define TMP1075_SET_CONVERSION_RATE(reg, rate) ((reg) |= ((rate) << 13)) argument 35 #define TMP1075_SET_CONSECUTIVE_FAULT_MEASUREMENTS(reg, faults) ((reg) |= ((faults) << 11)) argument 38 #define TMP1075_SET_ALERT_PIN_POLARITY(reg, activeHigh) \ argument 42 #define TMP1075_SET_ALERT_PIN_FUNCTION(reg, interruptMode) \ argument 46 #define TMP1075_SET_SHUTDOWN_MODE(reg, shutdown) ((reg) = ((reg) & ~(1 << 8)) | ((shutdown) << 8)) argument
|
/Zephyr-latest/tests/subsys/modbus/src/ |
D | test_modbus_server.c | 76 static int input_reg_rd(uint16_t addr, uint16_t *reg) in input_reg_rd() 89 static int input_reg_rd_fp(uint16_t addr, float *reg) in input_reg_rd_fp() 102 static int holding_reg_rd(uint16_t addr, uint16_t *reg) in holding_reg_rd() 115 static int holding_reg_wr(uint16_t addr, uint16_t reg) in holding_reg_wr() 128 static int holding_reg_rd_fp(uint16_t addr, float *reg) in holding_reg_rd_fp() 141 static int holding_reg_wr_fp(uint16_t addr, float reg) in holding_reg_wr_fp()
|
/Zephyr-latest/include/zephyr/drivers/ethernet/ |
D | eth_nxp_enet_qos.h | 24 #define _ENET_QOS_REG_FIELD(reg, field) MACRO_MAP_CAT(_PREFIX_UNDERLINE, reg, field, MASK) argument 25 #define _ENET_QOS_REG_MASK(reg, field) CONCAT(ENET_QOS_NAME, _ENET_QOS_REG_FIELD(reg, field)) argument 33 #define ENET_QOS_REG_GET(reg, field, val) FIELD_GET(_ENET_QOS_REG_MASK(reg, field), val) argument 41 #define ENET_QOS_REG_PREP(reg, field, val) FIELD_PREP(_ENET_QOS_REG_MASK(reg, field), val) argument
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_andes_atciic100.c | 45 uint32_t reg = 0; in i2c_atciic100_default_control() local 98 uint32_t reg = 0; in i2c_atciic100_configure() local 205 uint32_t reg = 0; in i2c_atciic100_controller_send() local 315 uint32_t reg = 0; in i2c_atciic100_controller_receive() local 411 uint32_t reg = 0; in i2c_atciic100_target_send() local 433 uint32_t i = 0, write_fifo_count = 0, reg = 0; in i2c_controller_fifo_write() local 467 uint32_t i = 0, read_fifo_count = 0, reg = 0; in i2c_controller_fifo_read() local 515 uint32_t reg_set = 0, reg_ctrl = 0, reg = 0; in i2c_cmpl_handler() local 657 uint32_t reg; in i2c_atciic100_target_register() local 679 uint32_t reg; in i2c_atciic100_target_unregister() local
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_mmio32.c | 52 volatile uint32_t *reg = config->reg; in gpio_mmio32_config() local 82 volatile uint32_t *reg = config->reg; in gpio_mmio32_port_set_masked_raw() local 101 volatile uint32_t *reg = config->reg; in gpio_mmio32_port_set_bits_raw() local 119 volatile uint32_t *reg = config->reg; in gpio_mmio32_port_clear_bits_raw() local 137 volatile uint32_t *reg = config->reg; in gpio_mmio32_port_toggle_bits() local
|