Lines Matching refs:vp

27   struct v39 *vp = p;  in init_viterbi39_port()  local
33 vp->metrics1.w[i] = 63; in init_viterbi39_port()
35 vp->old_metrics = &vp->metrics1; in init_viterbi39_port()
36 vp->new_metrics = &vp->metrics2; in init_viterbi39_port()
37 vp->dp = vp->decisions; in init_viterbi39_port()
38 vp->old_metrics->w[starting_state & 255] = 0; /* Bias known start state */ in init_viterbi39_port()
55 struct v39 *vp; in create_viterbi39_port() local
61 if((vp = (struct v39 *)malloc(sizeof(struct v39))) == NULL) in create_viterbi39_port()
64 if((vp->decisions = (decision_t *)malloc((len+8)*sizeof(decision_t))) == NULL){ in create_viterbi39_port()
65 free(vp); in create_viterbi39_port()
68 init_viterbi39_port(vp,0); in create_viterbi39_port()
70 return vp; in create_viterbi39_port()
80 struct v39 *vp = p; in chainback_viterbi39_port() local
86 d = vp->decisions; in chainback_viterbi39_port()
109 struct v39 *vp = p; in delete_viterbi39_port() local
111 if(vp != NULL){ in delete_viterbi39_port()
112 free(vp->decisions); in delete_viterbi39_port()
113 free(vp); in delete_viterbi39_port()
122 m0 = vp->old_metrics->w[i] + metric;\
123 m1 = vp->old_metrics->w[i+128] + (765 - metric);\
125 vp->new_metrics->w[2*i] = decision ? m1 : m0;\
130 vp->new_metrics->w[2*i+1] = decision ? m1 : m0;\
140 struct v39 *vp = p; in update_viterbi39_blk_port() local
146 d = (decision_t *)vp->dp; in update_viterbi39_blk_port()
162 tmp = vp->old_metrics; in update_viterbi39_blk_port()
163 vp->old_metrics = vp->new_metrics; in update_viterbi39_blk_port()
164 vp->new_metrics = tmp; in update_viterbi39_blk_port()
166 vp->dp = d; in update_viterbi39_blk_port()