• Home
  • Raw
  • Download

Lines Matching refs:vci

46 	struct hlist_head *head = &vcc_hash[vcc->vci & (VCC_HTABLE_SIZE - 1)];  in __vcc_insert_socket()
47 sk->sk_hash = vcc->vci & (VCC_HTABLE_SIZE - 1); in __vcc_insert_socket()
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
315 struct hlist_head *head = &vcc_hash[vci & (VCC_HTABLE_SIZE - 1)]; in check_ci()
324 walk->vci == vci && ((walk->qos.txtp.traffic_class != 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()
355 if (*vci != ATM_VCI_ANY) in find_ci()
356 c = *vci; in find_ci()
364 *vci = c; in find_ci()
367 if (*vci == ATM_VCI_ANY) { in find_ci()
372 if ((c == ATM_NOT_RSV_VCI || *vci != ATM_VCI_ANY) && in find_ci()
383 int vci) in __vcc_connect() argument
389 vpi >> dev->ci_range.vpi_bits) || (vci != ATM_VCI_UNSPEC && in __vcc_connect()
390 vci != ATM_VCI_ANY && vci >> dev->ci_range.vci_bits)) in __vcc_connect()
392 if (vci > 0 && vci < ATM_NOT_RSV_VCI && !capable(CAP_NET_BIND_SERVICE)) in __vcc_connect()
400 (error = find_ci(vcc, &vpi, &vci))) { in __vcc_connect()
405 vcc->vci = vci; 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()
820 pvc.sap_addr.vci = vcc->vci; in vcc_getsockopt()