Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 3 of 3) sorted by relevance

/hal_microchip-latest/mpfs/mpfs_hal/common/
Datomic.h40 #define atomic_set(ptr, val) (*(volatile typeof(*(ptr)) *)(ptr) = val) argument
41 #define atomic_read(ptr) (*(volatile typeof(*(ptr)) *)(ptr)) argument
44 # define atomic_swap(ptr, swp) __sync_lock_test_and_set(ptr, swp) argument
45 # define atomic_or(ptr, inc) __sync_fetch_and_or(ptr, inc) argument
47 #define atomic_binop(ptr, inc, op) ({ \
49 typeof(*(ptr)) res = atomic_read(ptr); \
50 atomic_set(ptr, op); \
53 #define atomic_or(ptr, inc) atomic_binop(ptr, inc, res | (inc))
54 #define atomic_swap(ptr, swp) atomic_binop(ptr, swp, (swp))
/hal_microchip-latest/mec5/drivers/
Dmec_defs.h78 #define MEC_IS_PTR_ALIGNED16(ptr) ((((uintptr_t)(ptr)) & 0x01U) == 0) argument
82 #define MEC_IS_PTR_ALIGNED32(ptr) ((((uintptr_t)(ptr)) & 0x03U) == 0) argument
86 #define MEC_IS_PTR_ALIGNED64(ptr) ((((uintptr_t)(ptr)) & 0x07U) == 0) argument
90 #define MEC_IS_PTR_ALIGNED128(ptr) ((((uintptr_t)(ptr)) & 0x0fU) == 0) argument
94 #define MEC_IS_PTR_ALIGNED4K(ptr) ((((uintptr_t)(ptr)) & 0xfffU) == 0) argument
101 #define MEC_PTR_ALIGN4(ptr) (((uintptr_t)(ptr) + 4U) & ~0x3u) argument
105 #define MEC_PTR_ALIGN8(ptr) (((uintptr_t)(ptr) + 8U) & ~0x7u) argument
109 #define MEC_PTR_ALIGN16(ptr) (((uintptr_t)(ptr) + 16U) & ~0xFu) argument
113 #define MEC_PTR_ALIGN4K(ptr) (((uintptr_t)(ptr) + 0x1000U) & ~0xFFFu) argument
/hal_microchip-latest/mpfs/mpfs_hal/startup_gcc/
Dnewlib_stubs.c181 int _lseek(int file, int ptr, int dir);
182 int _lseek(int file, int ptr, int dir) in _lseek() argument
185 (void)ptr; in _lseek()
205 int _read(int file, char *ptr, int len);
206 int _read(int file, char *ptr, int len) in _read() argument
209 (void)ptr; in _read()
220 int _write_r( void * reent, int file, char * ptr, int len );
221 int _write_r( void * reent, int file, char * ptr, int len ) in _write_r() argument
225 (void)ptr; in _write_r()
244 MSS_UART_polled_tx(gp_my_uart, (uint8_t *)ptr, len); in _write_r()