Lines Matching refs:pvc_p
196 struct pvc_device *pvc, **pvc_p = &state(hdlc)->first_pvc; in add_pvc() local
198 while (*pvc_p) { in add_pvc()
199 if ((*pvc_p)->dlci == dlci) in add_pvc()
200 return *pvc_p; in add_pvc()
201 if ((*pvc_p)->dlci > dlci) in add_pvc()
203 pvc_p = &(*pvc_p)->next; in add_pvc()
215 pvc->next = *pvc_p; /* Put it in the chain */ in add_pvc()
216 *pvc_p = pvc; in add_pvc()
249 struct pvc_device **pvc_p = &state(hdlc)->first_pvc; in delete_unused_pvcs() local
251 while (*pvc_p) { in delete_unused_pvcs()
252 if (!pvc_is_used(*pvc_p)) { in delete_unused_pvcs()
253 struct pvc_device *pvc = *pvc_p; in delete_unused_pvcs()
257 *pvc_p = pvc->next; in delete_unused_pvcs()
261 pvc_p = &(*pvc_p)->next; in delete_unused_pvcs()