Lines Matching defs:ic
416 struct arm_act_context *ic;
418 ic = (struct arm_act_context *)kalloc(sizeof(struct arm_act_context));
420 if (ic == (struct arm_act_context *)NULL)
424 if (machine_thread_get_state(thr_act, ARM_THREAD_STATE, (thread_state_t) &ic->ss, &val) != KERN_SUCCESS) {
425 kfree(ic, sizeof(struct arm_act_context));
430 if (machine_thread_get_state(thr_act, ARM_THREAD_STATE, (thread_state_t) &ic->fs, &val) != KERN_SUCCESS) {
431 kfree(ic, sizeof(struct arm_act_context));
435 return (ic);
448 struct arm_act_context *ic;
453 ic = (struct arm_act_context *)ctx;
455 if (machine_thread_set_state(thr_act, ARM_THREAD_STATE, (thread_state_t) &ic->ss, ARM_THREAD_STATE_COUNT) == KERN_SUCCESS)
456 (void)machine_thread_set_state(thr_act, ARM_VFP_STATE, (thread_state_t) &ic->fs, ARM_VFP_STATE_COUNT);
458 kfree(ic, sizeof(struct arm_act_context));