Lines Matching refs:vpi
167 vcc->vpi = vcc->vci = 0; /* no VCI/VPI yet */ in vcc_create()
313 static int check_ci(const struct atm_vcc *vcc, short vpi, int vci) in check_ci() argument
323 if (test_bit(ATM_VF_ADDR, &walk->flags) && walk->vpi == vpi && in check_ci()
338 static int find_ci(const struct atm_vcc *vcc, short *vpi, int *vci) in find_ci() argument
346 if (*vpi != ATM_VPI_ANY && *vci != ATM_VCI_ANY) { in find_ci()
347 err = check_ci(vcc, *vpi, *vci); in find_ci()
351 if (*vpi != ATM_VPI_ANY) in find_ci()
352 p = *vpi; in find_ci()
363 *vpi = p; in find_ci()
373 *vpi == ATM_VPI_ANY) { in find_ci()
382 static int __vcc_connect(struct atm_vcc *vcc, struct atm_dev *dev, short vpi, in __vcc_connect() argument
388 if ((vpi != ATM_VPI_UNSPEC && vpi != ATM_VPI_ANY && in __vcc_connect()
389 vpi >> dev->ci_range.vpi_bits) || (vci != ATM_VCI_UNSPEC && in __vcc_connect()
400 (error = find_ci(vcc, &vpi, &vci))) { in __vcc_connect()
404 vcc->vpi = vpi; in __vcc_connect()
434 pr_debug("VCC %d.%d, AAL %d\n", vpi, vci, vcc->qos.aal); in __vcc_connect()
462 int vcc_connect(struct socket *sock, int itf, short vpi, int vci) in vcc_connect() argument
468 pr_debug("(vpi %d, vci %d)\n", vpi, vci); in vcc_connect()
473 if (!(vpi || vci)) in vcc_connect()
476 if (vpi != ATM_VPI_UNSPEC && vci != ATM_VCI_UNSPEC) in vcc_connect()
510 error = __vcc_connect(vcc, dev, vpi, vci); in vcc_connect()
515 if (vpi == ATM_VPI_UNSPEC || vci == ATM_VCI_UNSPEC) in vcc_connect()
819 pvc.sap_addr.vpi = vcc->vpi; in vcc_getsockopt()