Lines Matching refs:cntr_ptr
3887 OSEK_COUNTER *cntr_ptr; in CreateCounter() local
3911 cntr_ptr = (OSEK_COUNTER *)cntr_id; in CreateCounter()
3923 cntr_ptr->maxallowedvalue = max_allowed_value; in CreateCounter()
3934 cntr_ptr->mincycle = min_cycle; in CreateCounter()
3945 cntr_ptr->ticksperbase = ticks_per_base; in CreateCounter()
3950 cntr_ptr->counter_value = start_value; in CreateCounter()
3954 cntr_ptr->counter_value = 0u; in CreateCounter()
3958 cntr_ptr->osek_counter_id = OSEK_COUNTER_ID; in CreateCounter()
3964 cntr_ptr-> alarm_list[ index ] = 0u; in CreateCounter()
3967 cntr_ptr->cntr_in_use = TX_TRUE; in CreateCounter()
3969 cntr_ptr->name = name; in CreateCounter()
3972 return ((CounterType) cntr_ptr); in CreateCounter()
4022 OSEK_COUNTER *cntr_ptr; in IncrCounter() local
4035 cntr_ptr = (OSEK_COUNTER *)cntr; in IncrCounter()
4038 if ((cntr_ptr == TX_NULL) && (cntr_ptr->osek_counter_id != OSEK_COUNTER_ID)) in IncrCounter()
4047 if (cntr_ptr->cntr_in_use == TX_FALSE) in IncrCounter()
4054 if (cntr_ptr->ticksperbase == 0u) in IncrCounter()
4063 cntr_ptr->sub_count++; in IncrCounter()
4064 if (cntr_ptr->sub_count < cntr_ptr->ticksperbase) in IncrCounter()
4074 cntr_ptr->sub_count = 0u; in IncrCounter()
4077 if ( cntr_ptr->counter_value >= cntr_ptr->maxallowedvalue) in IncrCounter()
4079 cntr_ptr->counter_value = 0u; in IncrCounter()
4083 (cntr_ptr->counter_value)++; in IncrCounter()
4087 if ( cntr_ptr->counter_value == 0u) in IncrCounter()
4092 alarmid = cntr_ptr->alarm_list[index]; in IncrCounter()
4128 alarmid = cntr_ptr->alarm_list[index]; in IncrCounter()
4153 if (cntr_ptr->counter_value < this_alarm->expiration_count) in IncrCounter()
4166 if (cntr_ptr->counter_value < this_alarm->expiration_count) in IncrCounter()
4172 if (cntr_ptr->counter_value == this_alarm->expiration_count) in IncrCounter()
4418 OSEK_COUNTER *cntr_ptr; in DefineSystemCounter() local
4435 cntr_ptr = (OSEK_COUNTER *)cntr; in DefineSystemCounter()
4438 if ((cntr_ptr == TX_NULL) && (cntr_ptr->osek_counter_id != OSEK_COUNTER_ID)) in DefineSystemCounter()
4446 if (cntr_ptr->cntr_in_use == TX_FALSE) in DefineSystemCounter()
4476 cntr_ptr->system_timer = TX_TRUE; in DefineSystemCounter()
4533 OSEK_COUNTER *cntr_ptr; in CreateAlarm() local
4551 cntr_ptr = (OSEK_COUNTER*)cntr; in CreateAlarm()
4552 …if ((cntr_ptr == TX_NULL) || (cntr_ptr->osek_counter_id != OSEK_COUNTER_ID)|| (cntr_ptr->cntr_in_u… in CreateAlarm()
4559 if (cntr_ptr->cntr_in_use != TX_TRUE) in CreateAlarm()
4672 if (cntr_ptr->alarm_list[index] == 0u) in CreateAlarm()
4675 cntr_ptr->alarm_list[index] = alarm_id; in CreateAlarm()
4693 this_alarm->cntr = cntr_ptr; in CreateAlarm()
4697 this_alarm->max_allowed_value = cntr_ptr->maxallowedvalue; in CreateAlarm()
4698 this_alarm->min_cyc = cntr_ptr->mincycle; in CreateAlarm()
4699 this_alarm->ticks_per_base = cntr_ptr->ticksperbase; in CreateAlarm()
4756 status = GetCounterValue(cntr_ptr, ¤t_value); in CreateAlarm()