Lines Matching refs:vp

27   struct v29 *vp = p;  in init_viterbi29_port()  local
33 vp->metrics1.w[i] = 63; in init_viterbi29_port()
35 vp->old_metrics = &vp->metrics1; in init_viterbi29_port()
36 vp->new_metrics = &vp->metrics2; in init_viterbi29_port()
37 vp->dp = vp->decisions; in init_viterbi29_port()
38 vp->old_metrics->w[starting_state & 255] = 0; /* Bias known start state */ in init_viterbi29_port()
55 struct v29 *vp; in create_viterbi29_port() local
61 if((vp = (struct v29 *)malloc(sizeof(struct v29))) == NULL) in create_viterbi29_port()
64 if((vp->decisions = (decision_t *)malloc((len+8)*sizeof(decision_t))) == NULL){ in create_viterbi29_port()
65 free(vp); in create_viterbi29_port()
68 init_viterbi29_port(vp,0); in create_viterbi29_port()
70 return vp; in create_viterbi29_port()
80 struct v29 *vp = p; in chainback_viterbi29_port() local
86 d = vp->decisions; in chainback_viterbi29_port()
109 struct v29 *vp = p; in delete_viterbi29_port() local
111 if(vp != NULL){ in delete_viterbi29_port()
112 free(vp->decisions); in delete_viterbi29_port()
113 free(vp); in delete_viterbi29_port()
121 m0 = vp->old_metrics->w[i] + metric;\
122 m1 = vp->old_metrics->w[i+128] + (510 - metric);\
124 vp->new_metrics->w[2*i] = decision ? m1 : m0;\
129 vp->new_metrics->w[2*i+1] = decision ? m1 : m0;\
139 struct v29 *vp = p; in update_viterbi29_blk_port() local
145 d = (decision_t *)vp->dp; in update_viterbi29_blk_port()
160 tmp = vp->old_metrics; in update_viterbi29_blk_port()
161 vp->old_metrics = vp->new_metrics; in update_viterbi29_blk_port()
162 vp->new_metrics = tmp; in update_viterbi29_blk_port()
164 vp->dp = d; in update_viterbi29_blk_port()