Lines Matching refs:pvc_p
185 struct pvc_device *pvc, **pvc_p = &state(hdlc)->first_pvc; in add_pvc() local
187 while (*pvc_p) { in add_pvc()
188 if ((*pvc_p)->dlci == dlci) in add_pvc()
189 return *pvc_p; in add_pvc()
190 if ((*pvc_p)->dlci > dlci) in add_pvc()
192 pvc_p = &(*pvc_p)->next; in add_pvc()
204 pvc->next = *pvc_p; /* Put it in the chain */ in add_pvc()
205 *pvc_p = pvc; in add_pvc()
235 struct pvc_device **pvc_p = &state(hdlc)->first_pvc; in delete_unused_pvcs() local
237 while (*pvc_p) { in delete_unused_pvcs()
238 if (!pvc_is_used(*pvc_p)) { in delete_unused_pvcs()
239 struct pvc_device *pvc = *pvc_p; in delete_unused_pvcs()
243 *pvc_p = pvc->next; in delete_unused_pvcs()
247 pvc_p = &(*pvc_p)->next; in delete_unused_pvcs()