/Zephyr-Core-3.7.0/soc/litex/litex_vexriscv/ |
D | soc.h | 16 static inline unsigned char litex_read8(unsigned long addr) in litex_read8() argument 19 return sys_read8(addr); in litex_read8() 25 static inline unsigned short litex_read16(unsigned long addr) in litex_read16() argument 28 return (sys_read8(addr) << 8) in litex_read16() 29 | sys_read8(addr + 0x4); in litex_read16() 31 return sys_read16(addr); in litex_read16() 37 static inline unsigned int litex_read32(unsigned long addr) in litex_read32() argument 40 return (sys_read8(addr) << 24) in litex_read32() 41 | (sys_read8(addr + 0x4) << 16) in litex_read32() 42 | (sys_read8(addr + 0x8) << 8) in litex_read32() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/common/ |
D | sys_bitops.h | 24 static ALWAYS_INLINE void sys_set_bit(mem_addr_t addr, unsigned int bit) in sys_set_bit() argument 26 uint32_t temp = *(volatile uint32_t *)addr; in sys_set_bit() 28 *(volatile uint32_t *)addr = temp | (1 << bit); in sys_set_bit() 31 static ALWAYS_INLINE void sys_clear_bit(mem_addr_t addr, unsigned int bit) in sys_clear_bit() argument 33 uint32_t temp = *(volatile uint32_t *)addr; in sys_clear_bit() 35 *(volatile uint32_t *)addr = temp & ~(1 << bit); in sys_clear_bit() 38 static ALWAYS_INLINE int sys_test_bit(mem_addr_t addr, unsigned int bit) in sys_test_bit() argument 40 uint32_t temp = *(volatile uint32_t *)addr; in sys_test_bit() 45 static ALWAYS_INLINE void sys_set_bits(mem_addr_t addr, unsigned int mask) in sys_set_bits() argument 47 uint32_t temp = *(volatile uint32_t *)addr; in sys_set_bits() [all …]
|
D | sys_io.h | 23 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() argument 25 return *(volatile uint8_t *)addr; in sys_read8() 28 static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr) in sys_write8() argument 30 *(volatile uint8_t *)addr = data; in sys_write8() 33 static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr) in sys_read16() argument 35 return *(volatile uint16_t *)addr; in sys_read16() 38 static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr) in sys_write16() argument 40 *(volatile uint16_t *)addr = data; in sys_write16() 43 static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr) in sys_read32() argument 45 return *(volatile uint32_t *)addr; in sys_read32() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/riscv/ |
D | sys_io.h | 28 extern uint8_t z_soc_sys_read8(mem_addr_t addr); 29 extern void z_soc_sys_write8(uint8_t data, mem_addr_t addr); 30 extern uint16_t z_soc_sys_read16(mem_addr_t addr); 31 extern void z_soc_sys_write16(uint16_t data, mem_addr_t addr); 32 extern uint32_t z_soc_sys_read32(mem_addr_t addr); 33 extern void z_soc_sys_write32(uint32_t data, mem_addr_t addr); 34 extern uint64_t z_soc_sys_read64(mem_addr_t addr); 35 extern void z_soc_sys_write64(uint64_t data, mem_addr_t addr); 37 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() argument 39 return z_soc_sys_read8(addr); in sys_read8() [all …]
|
/Zephyr-Core-3.7.0/arch/arm/core/cortex_m/cmse/ |
D | arm_core_cmse.c | 10 int arm_cmse_mpu_region_get(uint32_t addr) in arm_cmse_mpu_region_get() argument 12 cmse_address_info_t addr_info = cmse_TT((void *)addr); in arm_cmse_mpu_region_get() 21 static int arm_cmse_addr_read_write_ok(uint32_t addr, int force_npriv, int rw) in arm_cmse_addr_read_write_ok() argument 25 addr_info = cmse_TTT((void *)addr); in arm_cmse_addr_read_write_ok() 27 addr_info = cmse_TT((void *)addr); in arm_cmse_addr_read_write_ok() 33 int arm_cmse_addr_read_ok(uint32_t addr, int force_npriv) in arm_cmse_addr_read_ok() argument 35 return arm_cmse_addr_read_write_ok(addr, force_npriv, 0); in arm_cmse_addr_read_ok() 38 int arm_cmse_addr_readwrite_ok(uint32_t addr, int force_npriv) in arm_cmse_addr_readwrite_ok() argument 40 return arm_cmse_addr_read_write_ok(addr, force_npriv, 1); in arm_cmse_addr_readwrite_ok() 43 static int arm_cmse_addr_range_read_write_ok(uint32_t addr, uint32_t size, in arm_cmse_addr_range_read_write_ok() argument [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/net/ |
D | net_ip.h | 655 static inline bool net_ipv6_is_addr_loopback(struct in6_addr *addr) in net_ipv6_is_addr_loopback() argument 657 return UNALIGNED_GET(&addr->s6_addr32[0]) == 0 && in net_ipv6_is_addr_loopback() 658 UNALIGNED_GET(&addr->s6_addr32[1]) == 0 && in net_ipv6_is_addr_loopback() 659 UNALIGNED_GET(&addr->s6_addr32[2]) == 0 && in net_ipv6_is_addr_loopback() 660 ntohl(UNALIGNED_GET(&addr->s6_addr32[3])) == 1; in net_ipv6_is_addr_loopback() 670 static inline bool net_ipv6_is_addr_mcast(const struct in6_addr *addr) in net_ipv6_is_addr_mcast() argument 672 return addr->s6_addr[0] == 0xFF; in net_ipv6_is_addr_mcast() 678 extern struct net_if_addr *net_if_ipv6_addr_lookup(const struct in6_addr *addr, 688 static inline bool net_ipv6_is_my_addr(struct in6_addr *addr) in net_ipv6_is_my_addr() argument 690 return net_if_ipv6_addr_lookup(addr, NULL) != NULL; in net_ipv6_is_my_addr() [all …]
|
D | ethernet.h | 54 uint8_t addr[NET_ETH_ADDR_LEN]; /**< Buffer storing the address */ member 744 static inline bool net_eth_is_addr_broadcast(struct net_eth_addr *addr) in net_eth_is_addr_broadcast() argument 746 if (addr->addr[0] == 0xff && in net_eth_is_addr_broadcast() 747 addr->addr[1] == 0xff && in net_eth_is_addr_broadcast() 748 addr->addr[2] == 0xff && in net_eth_is_addr_broadcast() 749 addr->addr[3] == 0xff && in net_eth_is_addr_broadcast() 750 addr->addr[4] == 0xff && in net_eth_is_addr_broadcast() 751 addr->addr[5] == 0xff) { in net_eth_is_addr_broadcast() 765 static inline bool net_eth_is_addr_all_zeroes(struct net_eth_addr *addr) in net_eth_is_addr_all_zeroes() argument 767 if (addr->addr[0] == 0x00 && in net_eth_is_addr_all_zeroes() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/modbus/src/ |
D | test_modbus_server.c | 24 static int coil_rd(uint16_t addr, bool *state) in coil_rd() argument 26 if (addr >= (sizeof(coils) * 8)) { in coil_rd() 30 if (coils & BIT(addr)) { in coil_rd() 36 LOG_DBG("Coil read, addr %u, %d", addr, (int)*state); in coil_rd() 41 static int coil_wr(uint16_t addr, bool state) in coil_wr() argument 43 if (addr >= (sizeof(coils) * 8)) { in coil_wr() 48 coils |= BIT(addr); in coil_wr() 50 coils &= ~BIT(addr); in coil_wr() 53 LOG_DBG("Coil write, addr %u, %d", addr, (int)state); in coil_wr() 58 static int discrete_input_rd(uint16_t addr, bool *state) in discrete_input_rd() argument [all …]
|
/Zephyr-Core-3.7.0/subsys/bluetooth/host/ |
D | addr.c | 19 static inline int create_random_addr(bt_addr_le_t *addr) in create_random_addr() argument 21 addr->type = BT_ADDR_LE_RANDOM; in create_random_addr() 23 return bt_rand(addr->a.val, 6); in create_random_addr() 26 int bt_addr_le_create_nrpa(bt_addr_le_t *addr) in bt_addr_le_create_nrpa() argument 30 err = create_random_addr(addr); in bt_addr_le_create_nrpa() 35 BT_ADDR_SET_NRPA(&addr->a); in bt_addr_le_create_nrpa() 40 int bt_addr_le_create_static(bt_addr_le_t *addr) in bt_addr_le_create_static() argument 44 err = create_random_addr(addr); in bt_addr_le_create_static() 49 BT_ADDR_SET_STATIC(&addr->a); in bt_addr_le_create_static() 54 int bt_addr_from_str(const char *str, bt_addr_t *addr) in bt_addr_from_str() argument [all …]
|
/Zephyr-Core-3.7.0/samples/bluetooth/peripheral_hids/src/ |
D | main.c | 40 char addr[BT_ADDR_LE_STR_LEN]; in connected() local 42 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in connected() 45 printk("Failed to connect to %s, err 0x%02x %s\n", addr, in connected() 50 printk("Connected %s\n", addr); in connected() 59 char addr[BT_ADDR_LE_STR_LEN]; in disconnected() local 61 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in disconnected() 63 printk("Disconnected from %s, reason 0x%02x %s\n", addr, in disconnected() 70 char addr[BT_ADDR_LE_STR_LEN]; in security_changed() local 72 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in security_changed() 75 printk("Security changed: %s level %u\n", addr, level); in security_changed() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/arm64/ |
D | sys_io.h | 37 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() argument 41 __asm__ volatile("ldrb %w0, [%1]" : "=r" (val) : "r" (addr)); in sys_read8() 47 static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr) in sys_write8() argument 50 __asm__ volatile("strb %w0, [%1]" : : "r" (data), "r" (addr)); in sys_write8() 53 static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr) in sys_read16() argument 57 __asm__ volatile("ldrh %w0, [%1]" : "=r" (val) : "r" (addr)); in sys_read16() 63 static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr) in sys_write16() argument 66 __asm__ volatile("strh %w0, [%1]" : : "r" (data), "r" (addr)); in sys_write16() 69 static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr) in sys_read32() argument 73 __asm__ volatile("ldr %w0, [%1]" : "=r" (val) : "r" (addr)); in sys_read32() [all …]
|
/Zephyr-Core-3.7.0/arch/arm/core/cortex_a_r/ |
D | cache.c | 99 uintptr_t addr = (uintptr_t)start_addr; in arch_dcache_flush_range() local 100 uintptr_t end_addr = addr + size; in arch_dcache_flush_range() 104 addr &= ~(line_size - 1); in arch_dcache_flush_range() 106 while (addr < end_addr) { in arch_dcache_flush_range() 107 L1C_CleanDCacheMVA((void *)addr); in arch_dcache_flush_range() 108 addr += line_size; in arch_dcache_flush_range() 117 uintptr_t addr = (uintptr_t)start_addr; in arch_dcache_invd_range() local 118 uintptr_t end_addr = addr + size; in arch_dcache_invd_range() 131 if (addr & (line_size - 1)) { in arch_dcache_invd_range() 132 addr &= ~(line_size - 1); in arch_dcache_invd_range() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/nios2/ |
D | asm_inline_gcc.h | 24 static ALWAYS_INLINE void sys_write32(uint32_t data, mm_reg_t addr) in sys_write32() argument 26 __builtin_stwio((void *)addr, data); in sys_write32() 29 static ALWAYS_INLINE uint32_t sys_read32(mm_reg_t addr) in sys_read32() argument 31 return __builtin_ldwio((void *)addr); in sys_read32() 34 static ALWAYS_INLINE void sys_write8(uint8_t data, mm_reg_t addr) in sys_write8() argument 36 sys_write32(data, addr); in sys_write8() 39 static ALWAYS_INLINE uint8_t sys_read8(mm_reg_t addr) in sys_read8() argument 41 return __builtin_ldbuio((void *)addr); in sys_read8() 44 static ALWAYS_INLINE void sys_write16(uint16_t data, mm_reg_t addr) in sys_write16() argument 46 sys_write32(data, addr); in sys_write16() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/bluetooth/ |
D | addr.h | 158 int bt_addr_le_create_nrpa(bt_addr_le_t *addr); 161 int bt_addr_le_create_static(bt_addr_le_t *addr); 170 static inline bool bt_addr_le_is_rpa(const bt_addr_le_t *addr) in bt_addr_le_is_rpa() argument 172 if (addr->type != BT_ADDR_LE_RANDOM) { in bt_addr_le_is_rpa() 176 return BT_ADDR_IS_RPA(&addr->a); in bt_addr_le_is_rpa() 188 static inline bool bt_addr_le_is_identity(const bt_addr_le_t *addr) in bt_addr_le_is_identity() argument 190 if (addr->type == BT_ADDR_LE_PUBLIC) { in bt_addr_le_is_identity() 194 return BT_ADDR_IS_STATIC(&addr->a); in bt_addr_le_is_identity() 225 static inline int bt_addr_to_str(const bt_addr_t *addr, char *str, size_t len) in bt_addr_to_str() argument 228 addr->val[5], addr->val[4], addr->val[3], in bt_addr_to_str() [all …]
|
/Zephyr-Core-3.7.0/tests/drivers/smbus/smbus_api/src/ |
D | test_smbus_qemu.c | 46 for (uint16_t addr = 0; addr < QEMU_SMBUS_EEPROM_SIZE; addr++) { in ZTEST_USER() local 48 uint8_t send_byte = (uint8_t)addr; in ZTEST_USER() 51 ret = smbus_byte_data_write(dev, QEMU_SMBUS_EEPROM_ADDR, addr, in ZTEST_USER() 55 ret = smbus_byte_data_read(dev, QEMU_SMBUS_EEPROM_ADDR, addr, in ZTEST_USER() 63 for (uint16_t addr = 0; addr < QEMU_SMBUS_EEPROM_SIZE; addr += 2) { in ZTEST_USER() local 64 uint16_t send_word = addr; in ZTEST_USER() 67 ret = smbus_word_data_write(dev, QEMU_SMBUS_EEPROM_ADDR, addr, in ZTEST_USER() 71 ret = smbus_word_data_read(dev, QEMU_SMBUS_EEPROM_ADDR, addr, in ZTEST_USER() 79 for (uint16_t addr = 0; addr < QEMU_SMBUS_EEPROM_SIZE; addr++) { in ZTEST_USER() local 81 uint8_t send_byte = (uint8_t)addr; in ZTEST_USER() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/arm/cortex_a_r/ |
D | sys_io.h | 27 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() argument 31 __asm__ volatile("ldrb %0, [%1]" : "=r" (val) : "r" (addr)); in sys_read8() 37 static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr) in sys_write8() argument 40 __asm__ volatile("strb %0, [%1]" : : "r" (data), "r" (addr)); in sys_write8() 43 static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr) in sys_read16() argument 47 __asm__ volatile("ldrh %0, [%1]" : "=r" (val) : "r" (addr)); in sys_read16() 53 static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr) in sys_write16() argument 56 __asm__ volatile("strh %0, [%1]" : : "r" (data), "r" (addr)); in sys_write16() 59 static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr) in sys_read32() argument 63 __asm__ volatile("ldr %0, [%1]" : "=r" (val) : "r" (addr)); in sys_read32() [all …]
|
/Zephyr-Core-3.7.0/samples/bluetooth/central_multilink/src/ |
D | central_multilink.c | 38 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 69 bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); in device_found() 82 err = bt_conn_le_create(addr, &create_param, &conn_param, in device_found() 143 char addr[BT_ADDR_LE_STR_LEN]; in connected() local 145 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in connected() 148 printk("Failed to connect to %s (%u)\n", addr, reason); in connected() 164 printk("Connected (%u): %s\n", conn_count, addr); in connected() 181 char addr[BT_ADDR_LE_STR_LEN]; in disconnected() local 183 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in disconnected() 185 printk("Disconnected: %s, reason 0x%02x %s\n", addr, reason, bt_hci_err_to_str(reason)); in disconnected() [all …]
|
/Zephyr-Core-3.7.0/samples/bluetooth/peripheral_sc_only/src/ |
D | main.c | 33 char addr[BT_ADDR_LE_STR_LEN]; in connected() local 35 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in connected() 38 printk("Failed to connect to %s %u %s\n", addr, err, bt_hci_err_to_str(err)); in connected() 42 printk("Connected %s\n", addr); in connected() 51 char addr[BT_ADDR_LE_STR_LEN]; in disconnected() local 53 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in disconnected() 55 printk("Disconnected from %s, reason 0x%02x %s\n", addr, in disconnected() 74 char addr[BT_ADDR_LE_STR_LEN]; in security_changed() local 76 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in security_changed() 79 printk("Security changed: %s level %u\n", addr, level); in security_changed() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/ |
D | cache.h | 106 int arch_dcache_flush_range(void *addr, size_t size); 108 #define cache_data_flush_range(addr, size) arch_dcache_flush_range(addr, size) argument 130 int arch_dcache_invd_range(void *addr, size_t size); 132 #define cache_data_invd_range(addr, size) arch_dcache_invd_range(addr, size) argument 155 int arch_dcache_flush_and_invd_range(void *addr, size_t size); 157 #define cache_data_flush_and_invd_range(addr, size) \ argument 158 arch_dcache_flush_and_invd_range(addr, size) 261 int arch_icache_flush_range(void *addr, size_t size); 263 #define cache_instr_flush_range(addr, size) arch_icache_flush_range(addr, size) argument 285 int arch_icache_invd_range(void *addr, size_t size); [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/ |
D | socket_helpers.h | 19 static inline int prepare_listen_sock_udp_v4(struct sockaddr_in *addr) in prepare_listen_sock_udp_v4() argument 23 zassert_not_null(addr, "null sockaddr"); in prepare_listen_sock_udp_v4() 30 zassert_equal(addr->sin_family, AF_INET, "Invalid family"); in prepare_listen_sock_udp_v4() 32 ret = zsock_bind(sock, (struct sockaddr *)addr, sizeof(*addr)); in prepare_listen_sock_udp_v4() 38 static inline int prepare_listen_sock_udp_v6(struct sockaddr_in6 *addr) in prepare_listen_sock_udp_v6() argument 42 zassert_not_null(addr, "null sockaddr"); in prepare_listen_sock_udp_v6() 49 zassert_equal(addr->sin6_family, AF_INET6, "Invalid family"); in prepare_listen_sock_udp_v6() 51 ret = zsock_bind(sock, (struct sockaddr *)addr, sizeof(*addr)); in prepare_listen_sock_udp_v6() 57 static inline void prepare_sock_udp_v4(const char *addr, uint16_t port, in prepare_sock_udp_v4() argument 62 zassert_not_null(addr, "null addr"); in prepare_sock_udp_v4() [all …]
|
/Zephyr-Core-3.7.0/samples/bluetooth/peripheral_identity/src/ |
D | peripheral_identity.c | 80 char addr[BT_ADDR_LE_STR_LEN]; in connected() local 92 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in connected() 94 printk("Connected (%u): %s\n", conn_count, addr); in connected() 99 char addr[BT_ADDR_LE_STR_LEN]; in disconnected() local 101 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in disconnected() 103 printk("Disconnected %s, reason %s(0x%02x)\n", addr, bt_hci_err_to_str(reason), reason); in disconnected() 114 char addr[BT_ADDR_LE_STR_LEN]; in le_param_req() local 116 bt_addr_le_to_str(bt_conn_get_dst(conn), addr, sizeof(addr)); in le_param_req() 119 addr, param->interval_min, param->interval_max, param->latency, in le_param_req() 128 char addr[BT_ADDR_LE_STR_LEN]; in le_param_updated() local [all …]
|
/Zephyr-Core-3.7.0/drivers/cache/ |
D | cache_handlers.c | 10 static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size) in z_vrfy_sys_cache_data_flush_range() argument 12 K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size)); in z_vrfy_sys_cache_data_flush_range() 14 return z_impl_sys_cache_data_flush_range(addr, size); in z_vrfy_sys_cache_data_flush_range() 18 static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size) in z_vrfy_sys_cache_data_invd_range() argument 20 K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size)); in z_vrfy_sys_cache_data_invd_range() 22 return z_impl_sys_cache_data_invd_range(addr, size); in z_vrfy_sys_cache_data_invd_range() 26 static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t size) in z_vrfy_sys_cache_data_flush_and_invd_range() argument 28 K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size)); in z_vrfy_sys_cache_data_flush_and_invd_range() 30 return z_impl_sys_cache_data_flush_and_invd_range(addr, size); in z_vrfy_sys_cache_data_flush_and_invd_range()
|
/Zephyr-Core-3.7.0/samples/subsys/modbus/rtu_server/src/ |
D | main.c | 26 static int coil_rd(uint16_t addr, bool *state) in coil_rd() argument 28 if (addr >= ARRAY_SIZE(led_dev)) { in coil_rd() 32 if (coils_state & BIT(addr)) { in coil_rd() 38 LOG_INF("Coil read, addr %u, %d", addr, (int)*state); in coil_rd() 43 static int coil_wr(uint16_t addr, bool state) in coil_wr() argument 47 if (addr >= ARRAY_SIZE(led_dev)) { in coil_wr() 53 coils_state |= BIT(addr); in coil_wr() 56 coils_state &= ~BIT(addr); in coil_wr() 60 gpio_pin_set(led_dev[addr].port, led_dev[addr].pin, (int)on); in coil_wr() 62 LOG_INF("Coil write, addr %u, %d", addr, (int)state); in coil_wr() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/arc/ |
D | sys-io-common.h | 23 static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr) in sys_read8() argument 28 value = *(volatile uint8_t *)addr; in sys_read8() 34 static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr) in sys_write8() argument 37 *(volatile uint8_t *)addr = data; in sys_write8() 41 static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr) in sys_read16() argument 46 value = *(volatile uint16_t *)addr; in sys_read16() 52 static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr) in sys_write16() argument 55 *(volatile uint16_t *)addr = data; in sys_write16() 59 static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr) in sys_read32() argument 64 value = *(volatile uint32_t *)addr; in sys_read32() [all …]
|
/Zephyr-Core-3.7.0/drivers/flash/ |
D | soc_flash_nrf.c | 50 static int write_synchronously(off_t addr, const void *data, size_t len); 53 static int erase_synchronously(uint32_t addr, uint32_t size); 89 static int write(off_t addr, const void *data, size_t len); 90 static int erase(uint32_t addr, uint32_t size); 97 static inline bool is_within_bounds(off_t addr, size_t len, off_t boundary_start, in is_within_bounds() argument 100 return (addr >= boundary_start && in is_within_bounds() 101 (addr < (boundary_start + boundary_size)) && in is_within_bounds() 102 (len <= (boundary_start + boundary_size - addr))); in is_within_bounds() 105 static inline bool is_regular_addr_valid(off_t addr, size_t len) in is_regular_addr_valid() argument 107 return is_within_bounds(addr, len, 0, nrfx_nvmc_flash_size_get()); in is_regular_addr_valid() [all …]
|