Home
last modified time | relevance | path

Searched refs:src (Results 1 – 6 of 6) sorted by relevance

/hal_telink-3.7.0/tlsr9/ble/common/
Dutility.c36 void swapX(const u8 *src, u8 *dst, int len) in swapX() argument
40 dst[len - 1 - i] = src[i]; in swapX()
43 void swap24(u8 dst[3], const u8 src[3]) in swap24()
45 swapX(src, dst, 3); in swap24()
48 void swap32(u8 dst[4], const u8 src[4]) in swap32()
50 swapX(src, dst, 4); in swap32()
53 void swap48(u8 dst[7], const u8 src[7]) in swap48()
55 swapX(src, dst, 6); in swap48()
58 void swap56(u8 dst[7], const u8 src[7]) in swap56()
60 swapX(src, dst, 7); in swap56()
[all …]
Dutility.h119 void swapX(const u8 *src, u8 *dst, int len);
121 void swap24(u8 dst[3], const u8 src[3]);
122 void swap32(u8 dst[4], const u8 src[4]);
123 void swap48(u8 dst[6], const u8 src[6]);
124 void swap56(u8 dst[7], const u8 src[7]);
126 void swap64(u8 dst[8], const u8 src[8]);
128 void swap128(u8 dst[16], const u8 src[16]);
130 void flip_addr(u8 *dest, u8 *src);
/hal_telink-3.7.0/tlsr9/drivers/B91/
Dplic.h164 static inline void plic_set_pending (irq_source_e src) in plic_set_pending() argument
166 reg_irq_pending(src)=BIT(src%32); in plic_set_pending()
186 static inline void plic_set_priority (irq_source_e src, irq_priority_e priority) in plic_set_priority() argument
188 reg_irq_src_priority(src)=priority; in plic_set_priority()
197 static inline void plic_interrupt_enable(irq_source_e src) in plic_interrupt_enable() argument
199 reg_irq_src(src) |= BIT(src%32); in plic_interrupt_enable()
208 static inline void plic_interrupt_disable(irq_source_e src) in plic_interrupt_disable() argument
210 reg_irq_src(src) &= (~ BIT(src%32)); in plic_interrupt_disable()
218 static inline void plic_interrupt_complete(irq_source_e src) in plic_interrupt_complete() argument
220 reg_irq_done = src; in plic_interrupt_complete()
Dclock.c76 void clock_32k_init(clk_32k_type_e src) in clock_32k_init() argument
80 analog_write_reg8(0x4e, sel_32k|(src<<7)); in clock_32k_init()
81 if(src) in clock_32k_init()
89 g_clk_32k_src = src; in clock_32k_init()
280 sys_clock_src_e src, in clock_init() argument
337 if(PAD_PLL_DIV == src) in clock_init()
342 else if(PAD_PLL == src) in clock_init()
350 write_reg8(0x1401e8, (read_reg8(0x1401e8) & 0x8f) | (src << 4)); in clock_init()
Dclock.h201 sys_clock_src_e src,
212 void clock_32k_init(clk_32k_type_e src);
/hal_telink-3.7.0/tlsr9/ble/vendor/controller/
Db91_bt_init.c134 int src = pm_get_wakeup_src(); in b91_bt_zephyr_wakeup() local
136 if (src & WAKEUP_STATUS_TIMER) { in b91_bt_zephyr_wakeup()
137 src |= STATUS_ENTER_SUSPEND; in b91_bt_zephyr_wakeup()
140 return src; in b91_bt_zephyr_wakeup()