Lines Matching refs:from
253 static uint16_t make_j_16(uint16_t *from, void *to) { in make_j_16() argument
254 uint32_t ui_from = (uint32_t)from; in make_j_16()
261 static void insert_bl_32(uint16_t *from, void *to) { in insert_bl_32() argument
262 uint32_t ui_from = (uint32_t)from; in insert_bl_32()
266 from[0] = (uint16_t)(0xf000 | ((delta >> 11u) & 0x7ffu)); in insert_bl_32()
267 from[1] = (uint16_t)(0xf800 | (delta & 0x7ffu)); in insert_bl_32()
279 static uint16_t make_jal_16(uint16_t *from, void *to) { in make_jal_16() argument
280 uint32_t ui_from = (uint32_t)from; in make_jal_16()
287 static uint16_t make_j_16(uint16_t *from, void *to) { in make_j_16() argument
288 return 0x8000u | make_jal_16(from, to); in make_j_16()
301 static inline uint32_t make_jal_t0_32(uint32_t *from, void *to) { in make_jal_t0_32() argument
303 return 0x000002efu | riscv_encode_imm_j((uintptr_t)to - (uintptr_t)from); in make_jal_t0_32()
323 …c inline int8_t slot_diff(struct irq_handler_chain_slot *to, struct irq_handler_chain_slot *from) { in slot_diff() argument
327 return (int8_t)(to - from); in slot_diff()
338 : "l" (from) in slot_diff()
694 static uint32_t encode_j_instruction(uintptr_t from, uintptr_t to) { in encode_j_instruction() argument
695 intptr_t delta = (intptr_t) (to - from); in encode_j_instruction()