Home
last modified time | relevance | path

Searched refs:vpi (Results 1 – 25 of 32) sorted by relevance

12

/linux-2.4.37.9/net/atm/
Datm_misc.c46 static int check_ci(struct atm_vcc *vcc,short vpi,int vci) in check_ci() argument
55 if (test_bit(ATM_VF_ADDR,&walk->flags) && walk->vpi == vpi && in check_ci()
69 int atm_find_ci(struct atm_vcc *vcc,short *vpi,int *vci) in atm_find_ci() argument
78 if (*vpi != ATM_VPI_ANY && *vci != ATM_VCI_ANY) { in atm_find_ci()
79 err = check_ci(vcc,*vpi,*vci); in atm_find_ci()
84 if (*vpi != ATM_VPI_ANY) p = *vpi; in atm_find_ci()
93 *vpi = p; in atm_find_ci()
104 *vpi == ATM_VPI_ANY) { in atm_find_ci()
Dpvc.c46 if (vcc->vpi != ATM_VPI_UNSPEC) addr->sap_addr.vpi = vcc->vpi; in pvc_bind()
49 error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi, in pvc_bind()
100 addr->sap_addr.vpi = vcc->vpi; in pvc_getname()
Dcommon.c281 vcc->vpi = vcc->vci = 0; /* no VCI/VPI yet */ in vcc_create()
374 static int __vcc_connect(struct atm_vcc *vcc, struct atm_dev *dev, int vpi, in __vcc_connect() argument
379 if ((vpi != ATM_VPI_UNSPEC && vpi != ATM_VPI_ANY && in __vcc_connect()
380 vpi >> dev->ci_range.vpi_bits) || (vci != ATM_VCI_UNSPEC && in __vcc_connect()
414 DPRINTK("VCC %d.%d, AAL %d\n",vpi,vci,vcc->qos.aal); in __vcc_connect()
420 if ((error = dev->ops->open(vcc,vpi,vci))) in __vcc_connect()
436 int vcc_connect(struct socket *sock, int itf, short vpi, int vci) in vcc_connect() argument
442 DPRINTK("vcc_connect (vpi %d, vci %d)\n",vpi,vci); in vcc_connect()
447 if (!(vpi || vci)) in vcc_connect()
450 if (vpi != ATM_VPI_UNSPEC && vci != ATM_VCI_UNSPEC) in vcc_connect()
[all …]
Dsignaling.c116 if (session_vcc->vpi || session_vcc->vci) break; in sigd_send()
118 session_vcc->vpi = msg->pvc.sap_addr.vpi; in sigd_send()
120 if (session_vcc->vpi || session_vcc->vci) in sigd_send()
Dproc.c164 clip_vcc->vcc->vpi, in atmarp_info()
306 vcc->dev->number,vcc->vpi,vcc->vci, in pvc_info()
343 else here += sprintf(here,"%3d %3d %5d ",vcc->dev->number,vcc->vpi, in vc_info()
370 else sprintf(buf,"%3d %3d %5d ",vcc->dev->number,vcc->vpi, in svc_info()
421 offset+=sprintf(buf+offset, "%3d %3d ", entry->vcc->vpi, in lec_info()
427 entry->recv_vcc->vpi, entry->recv_vcc->vci); in lec_info()
Dcommon.h15 int vcc_connect(struct socket *sock, int itf, short vpi, int vci);
Dlec.c363 send_vcc->vpi, send_vcc->vci); in lec_send_packet()
663 vcc->vpi, vcc->vci); in lec_push()
1257 rulla->vcc?rulla->vcc->vpi:0, in dump_arp_table()
1259 rulla->recv_vcc?rulla->recv_vcc->vpi:0, in dump_arp_table()
1289 rulla->vcc?rulla->vcc->vpi:0, in dump_arp_table()
1291 rulla->recv_vcc?rulla->recv_vcc->vpi:0, in dump_arp_table()
1320 rulla->vcc?rulla->vcc->vpi:0, in dump_arp_table()
1322 rulla->recv_vcc?rulla->recv_vcc->vpi:0, in dump_arp_table()
1352 rulla->vcc?rulla->vcc->vpi:0, in dump_arp_table()
1354 rulla->recv_vcc?rulla->recv_vcc->vpi:0, in dump_arp_table()
[all …]
Draw.c54 ((vcc->vpi << ATM_HDR_VPI_SHIFT) | (vcc->vci << ATM_HDR_VCI_SHIFT))) in atm_send_aal0()
Dmpoa_proc.c128 …length += sprintf((char *)page + length," %-3d %-3d",in_entry->shortcut->vpi,in_entry->shortcut… in proc_mpc_read()
146 …length += sprintf((char *)page + length," %-3d %-3d",eg_entry->shortcut->vpi,eg_entry->shortcut->v… in proc_mpc_read()
/linux-2.4.37.9/drivers/atm/
Datmtcp.c90 vcc->vpi = msg->addr.sap_addr.vpi; in atmtcp_recv_control()
117 static int atmtcp_v_open(struct atm_vcc *vcc,short vpi,int vci) in atmtcp_v_open() argument
124 msg.hdr.vpi = htons(vpi); in atmtcp_v_open()
125 msg.addr.sap_addr.vpi = vpi; in atmtcp_v_open()
128 error = atm_find_ci(vcc,&msg.addr.sap_addr.vpi,&msg.addr.sap_addr.vci); in atmtcp_v_open()
130 if (vpi == ATM_VPI_UNSPEC || vci == ATM_VCI_UNSPEC) return 0; in atmtcp_v_open()
147 msg.addr.sap_addr.vpi = vcc->vpi; in atmtcp_v_close()
171 if ((vcc->vpi >> ci.vpi_bits) || in atmtcp_v_ioctl()
214 hdr->vpi = htons(vcc->vpi); in atmtcp_v_send()
286 if (out_vcc->vpi == ntohs(hdr->vpi) && in atmtcp_c_send()
Dfore200e.c1189 (rpd->atm_header.vpi << ATM_HDR_VPI_SHIFT) | in fore200e_push_rpd()
1241 vcc->itf, vcc->vpi, vcc->vci); in fore200e_push_rpd()
1309 vc_map = FORE200E_VC_MAP(fore200e, entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci); in fore200e_rx_irq()
1316 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci); in fore200e_rx_irq()
1329 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci); in fore200e_rx_irq()
1424 vcc->itf, vcc->vpi, vcc->vci, scheme); in fore200e_select_scheme()
1457 vpvc.vpi = vcc->vpi; in fore200e_activate_vcin()
1482 activate ? "open" : "close", vcc->itf, vcc->vpi, vcc->vci); in fore200e_activate_vcin()
1486 DPRINTK(1, "VC %d.%d.%d %sed\n", vcc->itf, vcc->vpi, vcc->vci, in fore200e_activate_vcin()
1494 fore200e_walk_vccs(struct atm_vcc *vcc, short *vpi, int *vci) in fore200e_walk_vccs() argument
[all …]
Didt77252.c125 static int idt77252_open(struct atm_vcc *vcc, short vpi, int vci);
784 card->name, vc->tx_vcc->vpi, vc->tx_vcc->vci); in push_on_scq()
906 tbd->word_4 = (vcc->vpi << SAR_TBD_VPI_SHIFT) | in queue_skb()
1022 u32 header, vpi, vci; in dequeue_rx() local
1044 vpi = (header >> 16) & 0x00ff; in dequeue_rx()
1048 card->name, vpi, vci, skb, skb->data); in dequeue_rx()
1050 if ((vpi >= (1 << card->vpibits)) || (vci != (vci & card->vcimask))) { in dequeue_rx()
1052 card->name, vpi, vci); in dequeue_rx()
1057 vc = card->vcs[VPCI2VC(card, vpi, vci)]; in dequeue_rx()
1060 card->name, vpi, vci); in dequeue_rx()
[all …]
Dhe.c134 static int he_open(struct atm_vcc *vcc, short vpi, int vci);
216 #define he_mkcid(dev, vpi, vci) (((vpi << (dev)->vcibits) | vci) & 0x1fff) argument
328 short vpi; in __find_vcc() local
331 vpi = cid >> he_dev->vcibits; in __find_vcc()
336 if (vcc->vci == vci && vcc->vpi == vpi && in __find_vcc()
1858 vcc->vpi, vcc->vci); in he_service_rbrq()
1866 HPRINTK("charge failed (%d.%d)\n", vcc->vpi, vcc->vci); in he_service_rbrq()
1899 if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { in he_service_rbrq()
2002 he_mkcid(he_dev, tpd->vcc->vpi, tpd->vcc->vci)); in he_service_tbrq()
2313 he_open(struct atm_vcc *vcc, short vpi, int vci) in he_open() argument
[all …]
Dhorizon.c517 static inline int channel_to_vpivci (const u16 channel, short * vpi, int * vci) { in channel_to_vpivci() argument
521 *vpi = channel >> vci_bits; in channel_to_vpivci()
527 static inline int vpivci_to_channel (u16 * channel, const short vpi, const int vci) { in vpivci_to_channel() argument
529 if (0 <= vpi && vpi < 1<<vpi_bits && 0 <= vci && vci < 1<<vci_bits) { in vpivci_to_channel()
530 *channel = vpi<<vci_bits | vci; in vpivci_to_channel()
2176 static int hrz_open (struct atm_vcc * atm_vcc, short vpi, int vci) { in hrz_open() argument
2187 PRINTD (DBG_FLOW|DBG_VCC, "hrz_open %x %x", vpi, vci); in hrz_open()
2191 if (vpi == ATM_VPI_UNSPEC || vci == ATM_VCI_UNSPEC) { in hrz_open()
2198 error = atm_find_ci (atm_vcc, &vpi, &vci); in hrz_open()
2203 PRINTD (DBG_VCC, "atm_find_ci gives %x %x", vpi, vci); in hrz_open()
[all …]
Dnicstar.c221 static int ns_open(struct atm_vcc *vcc, short vpi, int vci);
1376 static int ns_open(struct atm_vcc *vcc, short vpi, int vci) in ns_open() argument
1393 PRINTK("nicstar%d: opening vpi.vci %d.%d \n", card->index, (int) vpi, vci); in ns_open()
1400 if ((error = atm_find_ci(vcc, &vpi, &vci))) in ns_open()
1405 vc = &(card->vcmap[vpi << card->vcibits | vci]); in ns_open()
1406 vcc->vpi = vpi; in ns_open()
1555 ns_write_sram(card, NS_RCT + (vpi << card->vcibits | vci) * in ns_open()
1577 (int) vcc->vpi, vcc->vci); in ns_close()
1586 addr = NS_RCT + (vcc->vpi << card->vcibits | vcc->vci) * NS_RCT_ENTRY_SIZE; in ns_close()
1822 scqe.word_4 = ns_tbd_mkword_4(0, (u32) vcc->vpi, (u32) vcc->vci, 0, in ns_send()
[all …]
Dfirestream.c857 static int fs_open(struct atm_vcc *atm_vcc, short vpi, int vci) in fs_open() argument
877 error = atm_find_ci(atm_vcc, &vpi, &vci); in fs_open()
883 atm_vcc->vpi = vpi; in fs_open()
885 if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) in fs_open()
893 atm_vcc->dev->number, atm_vcc->vpi, atm_vcc->vci); in fs_open()
936 vcc->channo = (vpi << FS155_VCI_BITS) | (vci); in fs_open()
985 tc->atm_hdr = (vpi << 20) | (vci << 4); in fs_open()
1088 (vpi << 16) | vci, 0 ); /* XXX -- Use defines. */ in fs_open()
Dfore200e.h95 u32 vpi : 8, /* virtual path identifier */
273 u32 vpi : 8, /* virtual path identifier */
866 #define FORE200E_VC_MAP(fore200e, vpi, vci) \ argument
867 (& (fore200e)->vc_map[ ((vpi) << FORE200E_VCI_BITS) | (vci) ])
Deni.c851 if (vcc->vpi != ATM_VPI_UNSPEC && vcc->vci != ATM_VCI_UNSPEC) { in close_rx()
1888 static int get_ci(struct atm_vcc *vcc,short *vpi,int *vci) in get_ci() argument
1894 if (*vpi == ATM_VPI_ANY) *vpi = 0; in get_ci()
1946 static int eni_open(struct atm_vcc *vcc,short vpi,int vci) in eni_open() argument
1956 error = get_ci(vcc,&vpi,&vci); in eni_open()
1958 vcc->vpi = vpi; in eni_open()
1960 if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) in eni_open()
1964 DPRINTK(DEV_LABEL "(itf %d): open %d.%d\n",vcc->dev->number,vcc->vpi, in eni_open()
1980 if (vci == ATM_VPI_UNSPEC || vpi == ATM_VCI_UNSPEC) return 0; in eni_open()
Dzatm.c755 if (vcc->vpi != ATM_VPI_UNSPEC && vcc->vci != ATM_VCI_UNSPEC) { in close_rx()
1185 uPD98401_TXVC_SHP_SHIFT) | (vcc->vpi << uPD98401_TXVC_VPI_SHIFT) | in open_tx_second()
1573 static int zatm_open(struct atm_vcc *vcc,short vpi,int vci) in zatm_open() argument
1582 error = atm_find_ci(vcc,&vpi,&vci); in zatm_open()
1584 vcc->vpi = vpi; in zatm_open()
1586 if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) in zatm_open()
1589 DPRINTK(DEV_LABEL "(itf %d): open %d.%d\n",vcc->dev->number,vcc->vpi, in zatm_open()
1608 if (vci == ATM_VPI_UNSPEC || vpi == ATM_VCI_UNSPEC) return 0; in zatm_open()
Dambassador.c1127 static int amb_open (struct atm_vcc * atm_vcc, short vpi, int vci) { in amb_open() argument
1141 PRINTD (DBG_FLOW|DBG_VCC, "amb_open %x %x", vpi, vci); in amb_open()
1145 if (vpi == ATM_VPI_UNSPEC || vci == ATM_VCI_UNSPEC) { in amb_open()
1152 error = atm_find_ci (atm_vcc, &vpi, &vci); in amb_open()
1157 PRINTD (DBG_VCC, "atm_find_ci gives %x %x", vpi, vci); in amb_open()
1159 if (!(0 <= vpi && vpi < (1<<NUM_VPI_BITS) && in amb_open()
1161 PRINTD (DBG_WARN|DBG_VCC, "VPI/VCI out of range: %hd/%d", vpi, vci); in amb_open()
1338 atm_vcc->vpi = vpi; // 0 in amb_open()
Dnicstar.h249 #define ns_tbd_mkword_4(gfc, vpi, vci, pt, clp) \ argument
250 (cpu_to_le32((gfc) << 28 | (vpi) << 20 | (vci) << 4 | (pt) << 1 | (clp)))
/linux-2.4.37.9/drivers/usb/
Dspeedtch.c190 short vpi; member
269 static int udsl_atm_open (struct atm_vcc *vcc, short vpi, int vci);
318 static inline struct udsl_vcc_data *udsl_find_vcc (struct udsl_instance_data *instance, short vpi, … in udsl_find_vcc() argument
323 if ((vcc->vci == vci) && (vcc->vpi == vpi)) in udsl_find_vcc()
339 short vpi; in udsl_extract_cells() local
342 vpi = ((source [0] & 0x0f) << 4) | (source [1] >> 4); in udsl_extract_cells()
346 vdbg ("udsl_extract_cells: vpi %hd, vci %d, pti %d", vpi, vci, pti); in udsl_extract_cells()
348 if (cached_vcc && (vci == cached_vci) && (vpi == cached_vpi)) in udsl_extract_cells()
350 else if ((vcc_data = udsl_find_vcc (instance, vpi, vci))) { in udsl_extract_cells()
352 cached_vpi = vpi; in udsl_extract_cells()
[all …]
/linux-2.4.37.9/include/linux/
Datm.h178 short vpi; /* VPI (only 8 bits at UNI) */ member
224 return addr.sap_addr.itf || addr.sap_addr.vpi || addr.sap_addr.vci; in atmpvc_addr_in_use()
Datmdev.h280 short vpi; /* VPI and VCI (types must be equal */ member
357 int (*open)(struct atm_vcc *vcc,short vpi,int vci);
457 int atm_find_ci(struct atm_vcc *vcc,short *vpi,int *vci);
Datm_tcp.h23 uint16_t vpi; member

12