/lk-master/external/lib/lwip/core/ipv6/ |
A D | ip6_addr.c | 41 return((addr1->addr[0] & mask->addr[0]) == (addr2->addr[0] & mask->addr[0]) && in ip_addr_netcmp() 42 (addr1->addr[1] & mask->addr[1]) == (addr2->addr[1] & mask->addr[1]) && in ip_addr_netcmp() 43 (addr1->addr[2] & mask->addr[2]) == (addr2->addr[2] & mask->addr[2]) && in ip_addr_netcmp() 44 (addr1->addr[3] & mask->addr[3]) == (addr2->addr[3] & mask->addr[3])); in ip_addr_netcmp() 51 return(addr1->addr[0] == addr2->addr[0] && in ip_addr_cmp() 52 addr1->addr[1] == addr2->addr[1] && in ip_addr_cmp() 53 addr1->addr[2] == addr2->addr[2] && in ip_addr_cmp() 54 addr1->addr[3] == addr2->addr[3]); in ip_addr_cmp() 68 ip_addr_isany(struct ip_addr *addr) in ip_addr_isany() argument 70 if (addr == NULL) return 1; in ip_addr_isany() [all …]
|
A D | ip6.c | 371 (ntohl(iphdr->src.addr[0]) >> 16) & 0xffff, in ip_debug_print() 372 ntohl(iphdr->src.addr[0]) & 0xffff)); in ip_debug_print() 374 (ntohl(iphdr->src.addr[1]) >> 16) & 0xffff, in ip_debug_print() 375 ntohl(iphdr->src.addr[1]) & 0xffff)); in ip_debug_print() 377 (ntohl(iphdr->src.addr[2]) >> 16) & 0xffff, in ip_debug_print() 378 ntohl(iphdr->src.addr[2]) & 0xffff)); in ip_debug_print() 381 ntohl(iphdr->src.addr[3]) & 0xffff)); in ip_debug_print() 385 ntohl(iphdr->dest.addr[0]) & 0xffff)); in ip_debug_print() 388 ntohl(iphdr->dest.addr[1]) & 0xffff)); in ip_debug_print() 391 ntohl(iphdr->dest.addr[2]) & 0xffff)); in ip_debug_print() [all …]
|
/lk-master/external/platform/nrfx/drivers/src/ |
A D | nrfx_nvmc.c | 148 return !(addr % flash_page_size_get()); in is_page_aligned_check() 153 return ((addr & 0x1u) == 0u); in is_halfword_aligned() 246 *(volatile uint32_t *)addr = value; in nvmc_word_write() 262 if (!is_page_aligned_check(addr)) in nrfx_nvmc_page_erase() 304 if (!is_page_aligned_check(addr)) in nrfx_nvmc_page_partial_erase_init() 310 m_partial_erase_page_addr = addr; in nrfx_nvmc_page_partial_erase_init() 407 nvmc_word_write(addr, value); in nrfx_nvmc_word_write() 432 addr += leading_bytes; in nrfx_nvmc_bytes_write() 449 nvmc_word_write(addr, word); in nrfx_nvmc_bytes_write() 451 addr += NVMC_BYTES_IN_WORD; in nrfx_nvmc_bytes_write() [all …]
|
/lk-master/top/include/lk/ |
A D | reg.h | 13 #define REG64(addr) ((volatile uint64_t *)(uintptr_t)(addr)) argument 14 #define REG32(addr) ((volatile uint32_t *)(uintptr_t)(addr)) argument 15 #define REG16(addr) ((volatile uint16_t *)(uintptr_t)(addr)) argument 16 #define REG8(addr) ((volatile uint8_t *)(uintptr_t)(addr)) argument 18 #define RMWREG64(addr, startbit, width, val) *REG64(addr) = (*REG64(addr) & ~(((1<<(width)) - 1) <<… argument 19 #define RMWREG32(addr, startbit, width, val) *REG32(addr) = (*REG32(addr) & ~(((1<<(width)) - 1) <<… argument 20 #define RMWREG16(addr, startbit, width, val) *REG16(addr) = (*REG16(addr) & ~(((1<<(width)) - 1) <<… argument 21 #define RMWREG8(addr, startbit, width, val) *REG8(addr) = (*REG8(addr) & ~(((1<<(width)) - 1) << (s… argument
|
/lk-master/external/lib/lwip/include/ipv4/lwip/ |
A D | ip_addr.h | 45 u32_t addr; member 55 PACK_STRUCT_FIELD(u32_t addr); 162 #define ip_addr_copy(dest, src) ((dest).addr = (src).addr) 164 #define ip_addr_set(dest, src) ((dest)->addr = \ 166 (src)->addr)) 175 #define ip_addr_set_hton(dest, src) ((dest)->addr = \ 177 htonl((src)->addr))) 184 …ne ip_addr_get_network(target, host, netmask) ((target)->addr = ((host)->addr) & ((netmask)->addr)) 198 #define ip_addr_cmp(addr1, addr2) ((addr1)->addr == (addr2)->addr) 235 int ipaddr_aton(const char *cp, ip_addr_t *addr); [all …]
|
/lk-master/external/platform/pico/rp2_common/hardware_base/include/hardware/ |
A D | address_mapped.h | 68 #define hw_set_alias_untyped(addr) ((void *)(REG_ALIAS_SET_BITS | (uintptr_t)(addr))) argument 69 #define hw_clear_alias_untyped(addr) ((void *)(REG_ALIAS_CLR_BITS | (uintptr_t)(addr))) argument 70 #define hw_xor_alias_untyped(addr) ((void *)(REG_ALIAS_XOR_BITS | (uintptr_t)(addr))) argument 83 inline static void hw_set_bits(io_rw_32 *addr, uint32_t mask) { in hw_set_bits() argument 84 *(io_rw_32 *) hw_set_alias_untyped((volatile void *) addr) = mask; in hw_set_bits() 93 inline static void hw_clear_bits(io_rw_32 *addr, uint32_t mask) { in hw_clear_bits() argument 94 *(io_rw_32 *) hw_clear_alias_untyped((volatile void *) addr) = mask; in hw_clear_bits() 103 inline static void hw_xor_bits(io_rw_32 *addr, uint32_t mask) { in hw_xor_bits() argument 104 *(io_rw_32 *) hw_xor_alias_untyped((volatile void *) addr) = mask; in hw_xor_bits() 119 inline static void hw_write_masked(io_rw_32 *addr, uint32_t values, uint32_t write_mask) { in hw_write_masked() argument [all …]
|
/lk-master/platform/mediatek/mt6735/include/platform/ |
A D | mt_typedefs.h | 131 #define DRV_Reg8(addr) INREG8(addr) argument 132 #define DRV_WriteReg8(addr, data) OUTREG8(addr, data) argument 133 #define DRV_SetReg8(addr, data) SETREG8(addr, data) argument 134 #define DRV_ClrReg8(addr, data) CLRREG8(addr, data) argument 136 #define DRV_Reg16(addr) INREG16(addr) argument 137 #define DRV_WriteReg16(addr, data) OUTREG16(addr, data) argument 138 #define DRV_SetReg16(addr, data) SETREG16(addr, data) argument 139 #define DRV_ClrReg16(addr, data) CLRREG16(addr, data) argument 141 #define DRV_Reg32(addr) INREG32(addr) argument 142 #define DRV_WriteReg32(addr, data) OUTREG32(addr, data) argument [all …]
|
/lk-master/platform/mediatek/mt6797/include/platform/ |
A D | mt_typedefs.h | 132 #define DRV_Reg8(addr) INREG8(addr) argument 133 #define DRV_WriteReg8(addr, data) OUTREG8(addr, data) argument 134 #define DRV_SetReg8(addr, data) SETREG8(addr, data) argument 135 #define DRV_ClrReg8(addr, data) CLRREG8(addr, data) argument 137 #define DRV_Reg16(addr) INREG16(addr) argument 138 #define DRV_WriteReg16(addr, data) OUTREG16(addr, data) argument 139 #define DRV_SetReg16(addr, data) SETREG16(addr, data) argument 140 #define DRV_ClrReg16(addr, data) CLRREG16(addr, data) argument 142 #define DRV_Reg32(addr) INREG32(addr) argument 143 #define DRV_WriteReg32(addr, data) OUTREG32(addr, data) argument [all …]
|
/lk-master/external/lib/lwip/include/ipv6/lwip/ |
A D | ip_addr.h | 48 PACK_STRUCT_FIELD(u32_t addr[4]); 72 … (ipaddr)->addr[1] = htonl(((c & 0xffff) << 16) | (d & 0xffff)); \ 80 u8_t ip_addr_isany(struct ip_addr *addr); 84 (ntohl(ipaddr->addr[0]) >> 16) & 0xffff, \ 85 ntohl(ipaddr->addr[0]) & 0xffff, \ 86 (ntohl(ipaddr->addr[1]) >> 16) & 0xffff, \ 87 ntohl(ipaddr->addr[1]) & 0xffff, \ 88 (ntohl(ipaddr->addr[2]) >> 16) & 0xffff, \ 89 ntohl(ipaddr->addr[2]) & 0xffff, \ 90 (ntohl(ipaddr->addr[3]) >> 16) & 0xffff, \ [all …]
|
/lk-master/external/platform/cc13xx/cc13xxware/driverlib/ |
A D | rf_mailbox.h | 274 #define ADI_VAL_MASK(addr, mask, value) \ argument 278 #define HW_REG_OVERRIDE(addr, val) ((((uintptr_t) (addr)) & 0xFFFC) | ((uint32_t)(val) << 16)) argument 281 (((addr) & 0x3F) << 24) | (((adiNo) ? 1U : 0) << 31)) 285 (((addr) & 0x3F) << 24) | (((adiNo) ? 1U : 0) << 31)) 287 #define ADI_HALFREG_OVERRIDE(adiNo, addr, mask, val) (2 | (ADI_VAL_MASK(addr, mask, val) << 16) | \ argument 292 (ADI_VAL_MASK(addr, mask, val) << 16) | (((addr) & 0x3F) << 24) | (1U << 30) | (((adiNo) ? 1U : 0) … 305 #define HW16_ARRAY_OVERRIDE(addr, length) (1 | (((uintptr_t) (addr)) & 0xFFFC) | ((uint32_t)(length… argument 306 #define HW32_ARRAY_OVERRIDE(addr, length) (1 | (((uintptr_t) (addr)) & 0xFFFC) | \ argument 308 #define ADI_ARRAY_OVERRIDE(adiNo, addr, bHalfSize, length) (1 | ((((addr) & 0x3F) << 2)) | \ argument 330 #define ADI_ADDR_VAL(addr, value) ((((addr) & 0x7F) << 8) | ((value) & 0xFF)) argument [all …]
|
/lk-master/tools/ |
A D | network.c | 19 in_addr_t addr = 0; in lookup_hostname() local 39 addr = sa->sin_addr.s_addr; in lookup_hostname() 45 return addr; in lookup_hostname() 62 sa.sin_addr.s_addr = addr; in inet_listen() 76 if (addr == 0xFFFFFFFF) { in inet_connect() 83 sa.sin_addr.s_addr = addr; in inet_connect() 95 int udp_connect(in_addr_t addr, unsigned port) { in udp_connect() argument 96 return inet_connect(addr, SOCK_DGRAM, port); in udp_connect() 99 int tcp_listen(in_addr_t addr, unsigned port) { in tcp_listen() argument 103 int tcp_connect(in_addr_t addr, unsigned port) { in tcp_connect() argument [all …]
|
/lk-master/external/arch/arm/arm-m/CMSIS/Include/ |
A D | cmsis_compiler.h | 106 …#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void*)(addr))->v… argument 110 …#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr… argument 114 …#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->… argument 118 …#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr… argument 178 …#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->… argument 182 …#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr… argument 186 …#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->… argument 190 …#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr… argument 249 …#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->… argument 253 …#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr… argument [all …]
|
/lk-master/arch/or1k/ |
A D | cache-ops.c | 76 addr_t addr; in arch_clean_cache_range() local 79 for (addr = start; addr < start + len; addr += block_size) in arch_clean_cache_range() 80 mtspr(OR1K_SPR_DCACHE_DCBFR_ADDR, addr); in arch_clean_cache_range() 85 addr_t addr; in arch_invalidate_cache_range() local 88 for (addr = start; addr < start + len; addr += block_size) in arch_invalidate_cache_range() 89 mtspr(OR1K_SPR_DCACHE_DCBIR_ADDR, addr); in arch_invalidate_cache_range() 100 addr_t addr; in arch_sync_cache_range() local 104 for (addr = start; addr < start + len; addr += block_size) in arch_sync_cache_range() 105 mtspr(OR1K_SPR_ICACHE_ICBIR_ADDR, addr); in arch_sync_cache_range()
|
A D | faults.c | 48 void or1k_busfault_handler(struct or1k_iframe *frame, uint32_t addr) { in or1k_busfault_handler() argument 49 dprintf(CRITICAL, "unhandled busfault (EEAR: 0x%08x)", addr); in or1k_busfault_handler() 53 void or1k_data_pagefault_handler(struct or1k_iframe *frame, uint32_t addr) { in or1k_data_pagefault_handler() argument 54 dprintf(CRITICAL, "unhandled data pagefault (EEAR: 0x%08x)", addr); in or1k_data_pagefault_handler() 58 void or1k_instruction_pagefault_handler(struct or1k_iframe *frame, uint32_t addr) { in or1k_instruction_pagefault_handler() argument 59 dprintf(CRITICAL, "unhandled instruction pagefault (EEAR: 0x%08x)", addr); in or1k_instruction_pagefault_handler() 63 void or1k_alignment_handler(struct or1k_iframe *frame, uint32_t addr) { in or1k_alignment_handler() argument 64 dprintf(CRITICAL, "unhandled unaligned access (EEAR: 0x%08x)", addr); in or1k_alignment_handler() 68 void or1k_illegal_instruction_handler(struct or1k_iframe *frame, uint32_t addr) { in or1k_illegal_instruction_handler() argument 69 dprintf(CRITICAL, "unhandled illegal instruction (EEAR: 0x%08x)", addr); in or1k_illegal_instruction_handler()
|
/lk-master/external/platform/pico/rp2_common/hardware_i2c/ |
A D | i2c.c | 30 static inline bool i2c_reserved_addr(uint8_t addr) { in i2c_reserved_addr() argument 31 return (addr & 0x78) == 0 || (addr & 0x78) == 0x78; in i2c_reserved_addr() 93 invalid_params_if(I2C, addr >= 0x80); // 7-bit addresses in i2c_set_slave_mode() 94 invalid_params_if(I2C, i2c_reserved_addr(addr)); in i2c_set_slave_mode() 101 i2c->hw->sar = addr; in i2c_set_slave_mode() 113 invalid_params_if(I2C, addr >= 0x80); // 7-bit addresses in i2c_write_blocking_internal() 114 invalid_params_if(I2C, i2c_reserved_addr(addr)); in i2c_write_blocking_internal() 120 i2c->hw->tar = addr; in i2c_write_blocking_internal() 203 invalid_params_if(I2C, addr >= 0x80); // 7-bit addresses in i2c_read_blocking_internal() 204 invalid_params_if(I2C, i2c_reserved_addr(addr)); in i2c_read_blocking_internal() [all …]
|
/lk-master/lib/minip/ |
A D | arp.c | 28 uint32_t addr; member 46 void arp_cache_update(uint32_t addr, const uint8_t mac[6]) { in arp_cache_update() argument 51 ip.u = addr; in arp_cache_update() 62 if (arp->addr == addr) { in arp_cache_update() 63 arp->addr = addr; in arp_cache_update() 79 arp->addr = addr; in arp_cache_update() 90 uint8_t *arp_cache_lookup(uint32_t addr) { in arp_cache_lookup() argument 98 if (arp->addr == addr) { in arp_cache_lookup() 116 ip.u = arp->addr; in arp_cache_dump() 126 int arp_send_request(uint32_t addr) { in arp_send_request() argument [all …]
|
/lk-master/dev/include/dev/class/ |
A D | i2c.h | 17 status_t (*write)(struct device *dev, uint8_t addr, const void *buf, size_t len); 18 status_t (*read)(struct device *dev, uint8_t addr, void *buf, size_t len); 20 status_t (*write_reg)(struct device *dev, uint8_t addr, uint8_t reg, uint8_t value); 21 status_t (*read_reg)(struct device *dev, uint8_t addr, uint8_t reg, void *value); 26 status_t class_i2c_write(struct device *dev, uint8_t addr, const void *buf, size_t len); 27 status_t class_i2c_read(struct device *dev, uint8_t addr, void *buf, size_t len); 28 status_t class_i2c_write_reg(struct device *dev, uint8_t addr, uint8_t reg, uint8_t value); 29 status_t class_i2c_read_reg(struct device *dev, uint8_t addr, uint8_t reg, void *value);
|
/lk-master/external/lib/lwip/core/ipv4/ |
A D | ip_addr.c | 55 ip4_addr_isbroadcast(u32_t addr, const struct netif *netif) in ip4_addr_isbroadcast() argument 58 ip4_addr_set_u32(&ipaddr, addr); in ip4_addr_isbroadcast() 61 if ((~addr == IPADDR_ANY) || in ip4_addr_isbroadcast() 62 (addr == IPADDR_ANY)) { in ip4_addr_isbroadcast() 70 } else if (addr == ip4_addr_get_u32(&netif->ip_addr)) { in ip4_addr_isbroadcast() 152 ipaddr_aton(const char *cp, ip_addr_t *addr) in ipaddr_aton() argument 246 if (addr) { in ipaddr_aton() 247 ip4_addr_set_u32(addr, htonl(val)); in ipaddr_aton() 261 ipaddr_ntoa(const ip_addr_t *addr) in ipaddr_ntoa() argument 264 return ipaddr_ntoa_r(addr, str, 16); in ipaddr_ntoa() [all …]
|
A D | inet_chksum.c | 277 u32_t addr; in inet_chksum_pseudo() local 302 addr = ip4_addr_get_u32(src); in inet_chksum_pseudo() 303 acc += (addr & 0xffffUL); in inet_chksum_pseudo() 304 acc += ((addr >> 16) & 0xffffUL); in inet_chksum_pseudo() 305 addr = ip4_addr_get_u32(dest); in inet_chksum_pseudo() 306 acc += (addr & 0xffffUL); in inet_chksum_pseudo() 337 u32_t addr; in inet_chksum_pseudo_partial() local 368 addr = ip4_addr_get_u32(src); in inet_chksum_pseudo_partial() 369 acc += (addr & 0xffffUL); in inet_chksum_pseudo_partial() 371 addr = ip4_addr_get_u32(dest); in inet_chksum_pseudo_partial() [all …]
|
/lk-master/app/lpcboot/ |
A D | lpcboot.c | 30 void spifi_sector_erase(u32 addr); 31 int spifi_verify_erased(u32 addr, u32 count); 32 int spifi_verify_page(u32 addr, u32 *ptr); 158 int erase_page(u32 addr) { in erase_page() argument 159 spifi_sector_erase(addr); in erase_page() 163 int write_page(u32 addr, void *ptr) { in write_page() argument 169 addr += 256; in write_page() 179 u32 addr, xfer; in handle() local 197 addr = ROM_BASE; in handle() 201 addr = BOOT_BASE; in handle() [all …]
|
A D | lpc43xx-spifi.c | 39 void spifi_page_program(u32 addr, u32 *ptr, u32 count) { in spifi_page_program() argument 41 writel(addr, SPIFI_ADDR); in spifi_page_program() 50 void spifi_sector_erase(u32 addr) { in spifi_sector_erase() argument 52 writel(addr, SPIFI_ADDR); in spifi_sector_erase() 58 int spifi_verify_erased(u32 addr, u32 count) { in spifi_verify_erased() argument 60 writel(addr, SPIFI_ADDR); in spifi_verify_erased() 70 int spifi_verify_page(u32 addr, u32 *ptr) { in spifi_verify_page() argument 73 writel(addr, SPIFI_ADDR); in spifi_verify_page()
|
/lk-master/dev/class/ |
A D | i2c_api.c | 12 status_t class_i2c_write(struct device *dev, uint8_t addr, const void *buf, size_t len) { in class_i2c_write() argument 18 return ops->write(dev, addr, buf, len); in class_i2c_write() 23 status_t class_i2c_read(struct device *dev, uint8_t addr, void *buf, size_t len) { in class_i2c_read() argument 29 return ops->read(dev, addr, buf, len); in class_i2c_read() 34 status_t class_i2c_write_reg(struct device *dev, uint8_t addr, uint8_t reg, uint8_t value) { in class_i2c_write_reg() argument 40 return ops->write_reg(dev, addr, reg, value); in class_i2c_write_reg() 45 status_t class_i2c_read_reg(struct device *dev, uint8_t addr, uint8_t reg, void *value) { in class_i2c_read_reg() argument 51 return ops->read_reg(dev, addr, reg, value); in class_i2c_read_reg()
|
/lk-master/external/platform/pico/rp2_common/hardware_i2c/include/hardware/ |
A D | i2c.h | 115 void i2c_set_slave_mode(i2c_inst_t *i2c, bool slave, uint8_t addr); 156 int i2c_write_blocking_until(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool no… 170 int i2c_read_blocking_until(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop, a… 187 static inline int i2c_write_timeout_us(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t le… in i2c_write_timeout_us() argument 189 return i2c_write_blocking_until(i2c, addr, src, len, nostop, t); in i2c_write_timeout_us() 192 int i2c_write_timeout_per_char_us(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bo… 206 static inline int i2c_read_timeout_us(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool… in i2c_read_timeout_us() argument 208 return i2c_read_blocking_until(i2c, addr, dst, len, nostop, t); in i2c_read_timeout_us() 211 int i2c_read_timeout_per_char_us(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nost… 224 int i2c_write_blocking(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop); [all …]
|
/lk-master/external/platform/lpc15xx/lpcopen/lpc_chip_15xx/inc/ |
A D | core_cmInstr.h | 503 __attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr) in __LDREXB() argument 508 __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXB() 513 __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXB() 526 __attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr) in __LDREXH() argument 531 __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXH() 536 __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXH() 549 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr) in __LDREXW() argument 553 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXW() 571 __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); in __STREXB() 589 __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); in __STREXH() [all …]
|
/lk-master/platform/zynq/ |
A D | spiflash.c | 63 static uint32_t qspi_fix_addr(uint32_t addr) { in qspi_fix_addr() argument 66 return ((addr & 0xff) << 24) | ((addr&0xff00) << 8) | ((addr>>8) & 0xff00); in qspi_fix_addr() 101 LTRACEF("addr 0x%x\n", addr); in qspi_erase_sector() 105 if (addr < PARAMETER_AREA_SIZE) { in qspi_erase_sector() 108 if (!IS_ALIGNED(addr, SECTOR_ERASE_SIZE)) in qspi_erase_sector() 124 qspi_wr(qspi, qspi_fix_addr(addr) | cmd, 3, 0, 0); in qspi_erase_sector() 132 TRACEF("failed @ 0x%x\n", addr); in qspi_erase_sector() 143 LTRACEF("addr 0x%x, data %p\n", addr, data); in qspi_write_page() 147 DEBUG_ASSERT(IS_ALIGNED(addr, PAGE_PROGRAM_SIZE)); in qspi_write_page() 149 if (!IS_ALIGNED(addr, PAGE_PROGRAM_SIZE)) in qspi_write_page() [all …]
|