Lines Matching refs:vp

28   struct v615 *vp;  in create_viterbi615_port()  local
34 if((vp = (struct v615 *)malloc(sizeof(struct v615))) == NULL) in create_viterbi615_port()
36 if((vp->decisions = malloc((len+14)*sizeof(decision_t))) == NULL){ in create_viterbi615_port()
37 free(vp); in create_viterbi615_port()
40 init_viterbi615(vp,0); in create_viterbi615_port()
41 return vp; in create_viterbi615_port()
57 struct v615 *vp = p; in init_viterbi615_port() local
63 vp->metrics1.w[i] = 1000; in init_viterbi615_port()
65 vp->old_metrics = &vp->metrics1; in init_viterbi615_port()
66 vp->new_metrics = &vp->metrics2; in init_viterbi615_port()
67 vp->dp = vp->decisions; in init_viterbi615_port()
68 vp->old_metrics->w[starting_state & 16383] = 0; /* Bias known start state */ in init_viterbi615_port()
78 struct v615 *vp = p; in chainback_viterbi615_port() local
83 d = (decision_t *)vp->decisions; in chainback_viterbi615_port()
103 struct v615 *vp = p; in delete_viterbi615_port() local
105 if(vp != NULL){ in delete_viterbi615_port()
106 free(vp->decisions); in delete_viterbi615_port()
107 free(vp); in delete_viterbi615_port()
117 m0 = vp->old_metrics->w[i] + metric;\
118 m1 = vp->old_metrics->w[i+8192] + (1530 - metric);\
119 m2 = vp->old_metrics->w[i] + (1530-metric);\
120 m3 = vp->old_metrics->w[i+8192] + metric;\
123 vp->new_metrics->w[2*i] = decision0 ? m1 : m0;\
124 vp->new_metrics->w[2*i+1] = decision1 ? m3 : m2;\
133 struct v615 *vp = p; in update_viterbi615_blk_port() local
140 d = (decision_t *)vp->dp; in update_viterbi615_blk_port()
149 tmp = vp->old_metrics; in update_viterbi615_blk_port()
150 vp->old_metrics = vp->new_metrics; in update_viterbi615_blk_port()
151 vp->new_metrics = tmp; in update_viterbi615_blk_port()
153 vp->dp = d; in update_viterbi615_blk_port()