Lines Matching refs:vp

30   struct v27 *vp = p;  in init_viterbi27_port()  local
36 vp->metrics1.w[i] = 63; in init_viterbi27_port()
38 vp->old_metrics = &vp->metrics1; in init_viterbi27_port()
39 vp->new_metrics = &vp->metrics2; in init_viterbi27_port()
40 vp->dp = vp->decisions; in init_viterbi27_port()
41 vp->old_metrics->w[starting_state & 63] = 0; /* Bias known start state */ in init_viterbi27_port()
57 struct v27 *vp; in create_viterbi27_port() local
63 if((vp = malloc(sizeof(struct v27))) == NULL) in create_viterbi27_port()
65 if((vp->decisions = malloc((len+6)*sizeof(decision_t))) == NULL){ in create_viterbi27_port()
66 free(vp); in create_viterbi27_port()
69 init_viterbi27_port(vp,0); in create_viterbi27_port()
71 return vp; in create_viterbi27_port()
80 struct v27 *vp = p; in chainback_viterbi27_port() local
85 d = vp->decisions; in chainback_viterbi27_port()
108 struct v27 *vp = p; in delete_viterbi27_port() local
110 if(vp != NULL){ in delete_viterbi27_port()
111 free(vp->decisions); in delete_viterbi27_port()
112 free(vp); in delete_viterbi27_port()
120 m0 = vp->old_metrics->w[i] + metric;\
121 m1 = vp->old_metrics->w[i+32] + (510 - metric);\
123 vp->new_metrics->w[2*i] = decision ? m1 : m0;\
128 vp->new_metrics->w[2*i+1] = decision ? m1 : m0;\
137 struct v27 *vp = p; in update_viterbi27_blk_port() local
143 d = (decision_t *)vp->dp; in update_viterbi27_blk_port()
185 tmp = vp->old_metrics; in update_viterbi27_blk_port()
186 vp->old_metrics = vp->new_metrics; in update_viterbi27_blk_port()
187 vp->new_metrics = tmp; in update_viterbi27_blk_port()
189 vp->dp = d; in update_viterbi27_blk_port()