Home
last modified time | relevance | path

Searched refs:hwiPrio (Results 1 – 25 of 88) sorted by relevance

1234

/kernel/liteos_m/testsuites/sample/kernel/hwi/
Dit_los_hwi_003.c45 HWI_PRIOR_T hwiPrio = 1; in Testcase() local
51 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
54 hwiPrio = 2; // 2, set new hwi priority in Testcase()
55 ret = LOS_HwiCreate(HWI_NUM_TEST3, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
58 hwiPrio = 6; // 6, set new hwi priority in Testcase()
59 ret = LOS_HwiCreate(HWI_NUM_TEST1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
62 hwiPrio = 7; // 7, set new hwi priority in Testcase()
63 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_013.c65 HWI_PRIOR_T hwiPrio = 3; in Testcase() local
67 HWI_PRIOR_T hwiPrio = 1; in Testcase() local
77 ret = LOS_HwiCreate(HWI_NUM_TEST1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
80 hwiPrio = 2; // set new hwi priority is 2 in Testcase()
81 ret = LOS_HwiCreate(HWI_NUM_TEST2, hwiPrio, mode, (HWI_PROC_FUNC)HwiF02, &irqParam); in Testcase()
85 hwiPrio = 1; in Testcase()
87 hwiPrio = 3; // set new hwi priority is 3 in Testcase()
89 ret = LOS_HwiCreate(HWI_NUM_TEST3, hwiPrio, mode, (HWI_PROC_FUNC)HwiF03, &irqParam); in Testcase()
Dit_los_hwi_011.c80 HWI_PRIOR_T hwiPrio = 3; in Testcase() local
88 ret = LOS_HwiCreate(HWI_NUM_TEST3, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
91 hwiPrio = 2; // 2, set new hwi priority in Testcase()
92 ret = LOS_HwiCreate(HWI_NUM_TEST2, hwiPrio, mode, (HWI_PROC_FUNC)HwiF02, &irqParam); in Testcase()
95 hwiPrio = 1; in Testcase()
96 ret = LOS_HwiCreate(HWI_NUM_TEST1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF03, &irqParam); in Testcase()
Dit_los_hwi_012.c80 HWI_PRIOR_T hwiPrio = 1; in Testcase() local
88 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
91 hwiPrio = 2; // set new hwi priority is 2 in Testcase()
92 ret = LOS_HwiCreate(HWI_NUM_TEST3, hwiPrio, mode, (HWI_PROC_FUNC)HwiF02, &irqParam); in Testcase()
95 hwiPrio = 3; // set new hwi priority is 3 in Testcase()
96 ret = LOS_HwiCreate(HWI_NUM_TEST1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF03, &irqParam); in Testcase()
Dit_los_hwi_005.c50 HWI_PRIOR_T hwiPrio = 3; in Testcase() local
56 ret = LOS_HwiCreate(HWI_NUM_TEST2, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
59 ret = LOS_HwiCreate(HWI_NUM_INT1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
62 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
65 ret = LOS_HwiCreate(HWI_NUM_TEST1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_008.c44 HWI_PRIOR_T hwiPrio = 3; in Testcase() local
50 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
53 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
56 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_009.c67 HWI_PRIOR_T hwiPrio = 1; in Testcase() local
75 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
78 ret = LOS_HwiCreate(HWI_NUM_TEST3, hwiPrio, mode, (HWI_PROC_FUNC)HwiF02, &irqParam); in Testcase()
81 ret = LOS_HwiCreate(HWI_NUM_TEST1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF03, &irqParam); in Testcase()
Dit_los_hwi_029.c75 HWI_PRIOR_T hwiPrio = 2; in Testcase() local
83 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
86 ret = LOS_HwiCreate(HWI_NUM_TEST3, hwiPrio, mode, (HWI_PROC_FUNC)HwiF02, &irqParam); in Testcase()
89 ret = LOS_HwiCreate(HWI_NUM_TEST1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF03, &irqParam); in Testcase()
Dit_los_hwi_014.c64 HWI_PRIOR_T hwiPrio = 1; in Testcase() local
73 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
76 ret = LOS_HwiCreate(HWI_NUM_TEST3, hwiPrio, mode, (HWI_PROC_FUNC)HwiF02, &irqParam); in Testcase()
79 ret = LOS_HwiCreate(HWI_NUM_TEST1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF03, &irqParam); in Testcase()
Dit_los_hwi_017.c45 HWI_PRIOR_T hwiPrio = 1; in TaskF01() local
56 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF02, &irqParam); in TaskF01()
89 HWI_PRIOR_T hwiPrio = OS_HWI_PRIO_LOWEST; in Testcase() local
97 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_028.c59 HWI_PRIOR_T hwiPrio = OS_HWI_PRIO_LOWEST; in Testcase() local
71 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
74 ret = LOS_HwiCreate(HWI_NUM_TEST3, hwiPrio, mode, (HWI_PROC_FUNC)HwiF02, &irqParam); in Testcase()
77 ret = LOS_HwiCreate(HWI_NUM_TEST1, hwiPrio, mode, (HWI_PROC_FUNC)HwiF03, &irqParam); in Testcase()
Dit_los_hwi_027.c46 HWI_PRIOR_T hwiPrio = OS_HWI_PRIO_LOWEST; in Testcase() local
53 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
57 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_032.c64 HWI_PRIOR_T hwiPrio = OS_HWI_PRIO_LOWEST; in Testcase() local
74 … ret = LOS_HwiCreate(HWI_NUM_INT0 + g_uwIndex, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
83 … ret = LOS_HwiCreate(HWI_NUM_INT0 + g_uwIndex, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_040.c87 HWI_PRIOR_T hwiPrio = 2; // 2, Set hwi priority. in Testcase() local
103 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
114 hwiPrio = 3; // 3, Set hwi priority. in Testcase()
115 ret = LOS_HwiSetPriority(OS_HWI_MAX_NUM + 1, hwiPrio); in Testcase()
Dit_los_hwi_002.c39 HWI_PRIOR_T hwiPrio = 3; in Testcase() local
45 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, NULL, &irqParam); in Testcase()
Dit_los_hwi_006.c45 HWI_PRIOR_T hwiPrio = 3; in Testcase() local
51 ret = LOS_HwiCreate(hwiNum, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_004.c44 HWI_PRIOR_T hwiPrio = OS_HWI_PRIO_LOWEST; in Testcase() local
50 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_001.c44 HWI_PRIOR_T hwiPrio = 3; in Testcase() local
50 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_031.c49 HWI_PRIOR_T hwiPrio = 3; in Testcase() local
58 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_007.c45 HWI_PRIOR_T hwiPrio = 3; in Testcase() local
54 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
Dit_los_hwi_039.c43 HWI_PRIOR_T hwiPrio = 2; in Testcase() local
50 ret = LOS_HwiCreate(HWI_NUM_TEST, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
/kernel/uniproton/src/core/kernel/irq/
Dprt_irq_internal.h164 OS_SEC_ALW_INLINE INLINE void OsHwiAttrSet(U32 irqNum, HwiPrior hwiPrio, HwiMode mode) in OsHwiAttrSet() argument
170 form->prior = hwiPrio; in OsHwiAttrSet()
173 (void)hwiPrio; in OsHwiAttrSet()
207 OS_SEC_ALW_INLINE INLINE bool OsHwiPrioCheck(HwiPrior hwiPrio) in OsHwiPrioCheck() argument
210 return (bool)OS_HWI_PRIO_CHECK(hwiPrio); in OsHwiPrioCheck()
212 (void)hwiPrio; in OsHwiPrioCheck()
218 OS_SEC_ALW_INLINE INLINE bool OsHwiPrioConflictCheck(U32 irqNum, HwiPrior hwiPrio) in OsHwiPrioConflictCheck() argument
222 return (hwiPrio != OsHwiPriorityGet(OS_IRQ2HWI(irqNum))); in OsHwiPrioConflictCheck()
225 (void)hwiPrio; in OsHwiPrioConflictCheck()
Dprt_irq.c153 static OS_SEC_L4_TEXT U32 OsHwiSetAttrParaCheck(HwiHandle hwiNum, HwiPrior hwiPrio, HwiMode mode) in OsHwiSetAttrParaCheck() argument
159 if (OsHwiPrioCheck(hwiPrio)) { in OsHwiSetAttrParaCheck()
169 static OS_SEC_L4_TEXT U32 OsHwiSetAttrConflictErrCheck(U32 irqNum, U32 hwiPrio, HwiMode mode) in OsHwiSetAttrConflictErrCheck() argument
181 if (OsHwiPrioConflictCheck(irqNum, (U16)hwiPrio)) { in OsHwiSetAttrConflictErrCheck()
190 OS_SEC_L4_TEXT U32 PRT_HwiSetAttr(HwiHandle hwiNum, HwiPrior hwiPrio, HwiMode mode) in PRT_HwiSetAttr() argument
196 ret = OsHwiSetAttrParaCheck(hwiNum, hwiPrio, mode); in PRT_HwiSetAttr()
206 ret = OsHwiSetAttrConflictErrCheck(irqNum, hwiPrio, mode); in PRT_HwiSetAttr()
214 OsHwiPrioritySet(hwiNum, hwiPrio); in PRT_HwiSetAttr()
217 OsHwiAttrSet(irqNum, hwiPrio, mode); in PRT_HwiSetAttr()
/kernel/uniproton/src/arch/cpu/armv7-m/common/
Dos_cpu_armv7_m_external.h35 #define OS_HWI_SET_HOOK_ATTR(hwiNum, hwiPrio, hook) argument
37 #define OS_HWI_PRIO_CHECK(hwiPrio) ((hwiPrio) >= OS_HWI_MAX_PRI) argument
42 #define OS_HWI_GET_HWI_PRIO(hwiPrio) (((hwiPrio) << OS_HWI_PRI_INVALID_BYTE) | OS_HWI_PRI_SHIELD_HI… argument
43 #define OS_HWI_GET_USER_PRIO(hwiPrio) (((hwiPrio) & (~OS_HWI_PRI_SHIELD_HIGH)) >> OS_HWI_PRI_INVALI… argument
/kernel/liteos_m/arch/risc-v/nuclei/gcc/
Dlos_interrupt.c74 ECLIC_SetPriorityIRQ(hwiNum, (hwiPrio & 0xffff)); in HwiSetPriority()
99 HWI_PRIOR_T hwiPrio, in ArchHwiCreate() argument
123 ECLIC_SetLevelIRQ(hwiNum, (hwiPrio >> 16)); in ArchHwiCreate()
126 ECLIC_SetPriorityIRQ(hwiNum, (hwiPrio & 0xffff)); in ArchHwiCreate()

1234