Lines Matching refs:osek_alarm

4892     OSEK_ALARM          *osek_alarm;  in SetAbsAlarm()  local
4901 osek_alarm = (OSEK_ALARM *) AlarmID; in SetAbsAlarm()
4904 if((osek_alarm == 0u) || (osek_alarm->osek_alarm_id != OSEK_ALARM_ID)) in SetAbsAlarm()
4915 if (osek_alarm->armed == TX_TRUE) in SetAbsAlarm()
4925 if ((start == 0u) || ( start > osek_alarm->max_allowed_value)) in SetAbsAlarm()
4939 if ((cycle < osek_alarm->min_cyc) || ( cycle > osek_alarm->max_allowed_value)) in SetAbsAlarm()
4951 osek_alarm->cycle = cycle; in SetAbsAlarm()
4952 osek_alarm->expiration_count = start; /* Load the counter with its expiration count. */ in SetAbsAlarm()
4955 osek_alarm->rel_abs_mode = ABSOLUTE_ALARM; in SetAbsAlarm()
4958 osek_alarm->armed = TX_TRUE; in SetAbsAlarm()
4959 osek_alarm->occupied = TX_TRUE; in SetAbsAlarm()
4960 osek_alarm->counter_rollback = TX_FALSE; in SetAbsAlarm()
5015 OSEK_ALARM *osek_alarm; in SetRelAlarm() local
5027 osek_alarm = (OSEK_ALARM *)AlarmID; in SetRelAlarm()
5030 if((osek_alarm == TX_NULL) || (osek_alarm->osek_alarm_id != OSEK_ALARM_ID)) in SetRelAlarm()
5041 if (osek_alarm->armed == TX_TRUE) in SetRelAlarm()
5051 if ((increment == 0u) || (increment > osek_alarm->max_allowed_value)) in SetRelAlarm()
5064 if ((cycle < osek_alarm->min_cyc) || (cycle > osek_alarm->max_allowed_value)) in SetRelAlarm()
5076 osek_alarm->cycle = cycle; in SetRelAlarm()
5077 counter_ptr = osek_alarm->cntr; in SetRelAlarm()
5086osek_alarm->expiration_count = current_value + increment; /* Load the counter with its expiration … in SetRelAlarm()
5089 osek_alarm->rel_abs_mode = RELATIVE_ALARM; in SetRelAlarm()
5090 osek_alarm->counter_rollback = TX_FALSE; in SetRelAlarm()
5093 osek_alarm->armed = TX_TRUE; in SetRelAlarm()
5094 osek_alarm->occupied = TX_TRUE; in SetRelAlarm()
5145 OSEK_ALARM *osek_alarm; in CancelAlarm() local
5151 osek_alarm = (OSEK_ALARM *) AlarmID; in CancelAlarm()
5152 if((osek_alarm == TX_NULL) || (osek_alarm->osek_alarm_id != OSEK_ALARM_ID)) in CancelAlarm()
5163 if ((osek_alarm->armed == TX_FALSE) || (osek_alarm->occupied == TX_FALSE)) in CancelAlarm()
5173 osek_alarm->armed = TX_FALSE; in CancelAlarm()
5224 OSEK_ALARM *osek_alarm; in GetAlarm() local
5234 osek_alarm = (OSEK_ALARM *) AlarmID; in GetAlarm()
5235 if((osek_alarm == TX_NULL) || (osek_alarm->osek_alarm_id != OSEK_ALARM_ID)) in GetAlarm()
5245 if ((osek_alarm->armed == FALSE) || (osek_alarm->occupied == TX_FALSE)) in GetAlarm()
5254 counter_ptr = osek_alarm->cntr; in GetAlarm()
5265 if (osek_alarm->expiration_count < current_ticks) in GetAlarm()
5269 *tick_ptr = (osek_alarm->max_allowed_value - current_ticks + osek_alarm->expiration_count); in GetAlarm()
5274 *tick_ptr = (osek_alarm->max_allowed_value - current_ticks); in GetAlarm()