Lines Matching refs:result
162 int result; in test_fwk_interrupt_before_init() local
166 result = fwk_interrupt_is_enabled(interrupt, &state); in test_fwk_interrupt_before_init()
167 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
169 result = fwk_interrupt_enable(interrupt); in test_fwk_interrupt_before_init()
170 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
172 result = fwk_interrupt_disable(interrupt); in test_fwk_interrupt_before_init()
173 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
175 result = fwk_interrupt_is_pending(interrupt, &state); in test_fwk_interrupt_before_init()
176 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
178 result = fwk_interrupt_set_pending(interrupt); in test_fwk_interrupt_before_init()
179 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
181 result = fwk_interrupt_clear_pending(interrupt); in test_fwk_interrupt_before_init()
182 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
184 result = fwk_interrupt_set_isr(interrupt, fake_isr); in test_fwk_interrupt_before_init()
185 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
187 result = fwk_interrupt_set_isr_param(interrupt, fake_isr_param, 0); in test_fwk_interrupt_before_init()
188 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
190 result = fwk_interrupt_set_isr_fault(fake_isr); in test_fwk_interrupt_before_init()
191 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
193 result = fwk_interrupt_get_current(&interrupt); in test_fwk_interrupt_before_init()
194 assert(result == FWK_E_INIT); in test_fwk_interrupt_before_init()
202 int result; in test_fwk_interrupt_init() local
204 result = fwk_interrupt_init(NULL); in test_fwk_interrupt_init()
205 assert(result == FWK_E_PARAM); in test_fwk_interrupt_init()
208 result = fwk_interrupt_init(&driver_invalid); in test_fwk_interrupt_init()
209 assert(result == FWK_E_PARAM); in test_fwk_interrupt_init()
211 result = fwk_interrupt_init(&driver); in test_fwk_interrupt_init()
212 assert(result == FWK_SUCCESS); in test_fwk_interrupt_init()
229 int result; in test_fwk_interrupt_is_enabled() local
231 result = fwk_interrupt_is_enabled(INTERRUPT_ID, NULL); in test_fwk_interrupt_is_enabled()
232 assert(result == FWK_E_PARAM); in test_fwk_interrupt_is_enabled()
235 result = fwk_interrupt_is_enabled(INTERRUPT_ID, &state); in test_fwk_interrupt_is_enabled()
236 assert(result == FWK_SUCCESS); in test_fwk_interrupt_is_enabled()
241 int result; in test_fwk_interrupt_enable() local
244 result = fwk_interrupt_enable(INTERRUPT_ID); in test_fwk_interrupt_enable()
245 assert(result == FWK_SUCCESS); in test_fwk_interrupt_enable()
250 int result; in test_fwk_interrupt_disable() local
253 result = fwk_interrupt_disable(INTERRUPT_ID); in test_fwk_interrupt_disable()
254 assert(result == FWK_SUCCESS); in test_fwk_interrupt_disable()
259 int result; in test_fwk_interrupt_is_pending() local
262 result = fwk_interrupt_is_pending(INTERRUPT_ID, NULL); in test_fwk_interrupt_is_pending()
263 assert(result == FWK_E_PARAM); in test_fwk_interrupt_is_pending()
266 result = fwk_interrupt_is_pending(INTERRUPT_ID, &state); in test_fwk_interrupt_is_pending()
267 assert(result == FWK_SUCCESS); in test_fwk_interrupt_is_pending()
272 int result; in test_fwk_interrupt_set_pending() local
275 result = fwk_interrupt_set_pending(INTERRUPT_ID); in test_fwk_interrupt_set_pending()
276 assert(result == FWK_SUCCESS); in test_fwk_interrupt_set_pending()
281 int result; in test_fwk_interrupt_clear_pending() local
284 result = fwk_interrupt_clear_pending(INTERRUPT_ID); in test_fwk_interrupt_clear_pending()
285 assert(result == FWK_SUCCESS); in test_fwk_interrupt_clear_pending()
290 int result; in test_fwk_interrupt_set_isr() local
292 result = fwk_interrupt_set_isr(INTERRUPT_ID, NULL); in test_fwk_interrupt_set_isr()
293 assert(result == FWK_E_PARAM); in test_fwk_interrupt_set_isr()
296 result = fwk_interrupt_set_isr(INTERRUPT_ID, fake_isr); in test_fwk_interrupt_set_isr()
297 assert(result == FWK_SUCCESS); in test_fwk_interrupt_set_isr()
301 result = fwk_interrupt_set_isr(FWK_INTERRUPT_NMI, fake_isr); in test_fwk_interrupt_set_isr()
302 assert(result == FWK_SUCCESS); in test_fwk_interrupt_set_isr()
307 int result; in test_fwk_interrupt_set_isr_param() local
309 result = fwk_interrupt_set_isr_param(INTERRUPT_ID, NULL, 0); in test_fwk_interrupt_set_isr_param()
310 assert(result == FWK_E_PARAM); in test_fwk_interrupt_set_isr_param()
313 result = fwk_interrupt_set_isr_param(INTERRUPT_ID, fake_isr_param, 0); in test_fwk_interrupt_set_isr_param()
314 assert(result == FWK_SUCCESS); in test_fwk_interrupt_set_isr_param()
318 result = fwk_interrupt_set_isr_param(FWK_INTERRUPT_NMI, fake_isr_param, 0); in test_fwk_interrupt_set_isr_param()
319 assert(result == FWK_SUCCESS); in test_fwk_interrupt_set_isr_param()
324 int result; in test_fwk_interrupt_set_isr_fault() local
326 result = fwk_interrupt_set_isr_fault(NULL); in test_fwk_interrupt_set_isr_fault()
327 assert(result == FWK_E_PARAM); in test_fwk_interrupt_set_isr_fault()
330 result = fwk_interrupt_set_isr_fault(fake_isr); in test_fwk_interrupt_set_isr_fault()
331 assert(result == FWK_SUCCESS); in test_fwk_interrupt_set_isr_fault()
336 int result; in test_fwk_interrupt_get_current() local
339 result = fwk_interrupt_get_current(NULL); in test_fwk_interrupt_get_current()
340 assert(result == FWK_E_PARAM); in test_fwk_interrupt_get_current()
343 result = fwk_interrupt_get_current(&interrupt); in test_fwk_interrupt_get_current()
344 assert(result == FWK_SUCCESS); in test_fwk_interrupt_get_current()