/drivers/atm/ |
H A D | atmtcp.c | 92 vcc->vpi = msg->addr.sap_addr.vpi; 123 short vpi = vcc->vpi; local 128 msg.hdr.vpi = htons(vpi); 129 msg.addr.sap_addr.vpi = vpi; 132 if (vpi == ATM_VPI_UNSPEC || vci == ATM_VCI_UNSPEC) return 0; 149 msg.addr.sap_addr.vpi 263 find_vcc(struct atm_dev *dev, short vpi, int vci) argument [all...] |
H A D | adummy.c | 91 short vpi = vcc->vpi; local 94 if (vci == ATM_VCI_UNSPEC || vpi == ATM_VPI_UNSPEC)
|
H A D | solos-pci.c | 89 __le16 vpi; member in struct:pkt_hdr 166 static struct atm_vcc* find_vcc(struct atm_dev *dev, short vpi, int vci); 207 header->vpi = cpu_to_le16(0); 263 header->vpi = cpu_to_le16(0); 479 header->vpi = cpu_to_le16(0); 699 size, le16_to_cpu(header->vpi), 706 vcc = find_vcc(card->atmdev[port], le16_to_cpu(header->vpi), 711 le16_to_cpu(header->vpi), le16_to_cpu(header->vci), 771 static struct atm_vcc *find_vcc(struct atm_dev *dev, short vpi, int vci) argument 783 vcc->vpi [all...] |
H A D | idt77252.c | 780 card->name, vc->tx_vcc->vpi, vc->tx_vcc->vci); 902 tbd->word_4 = (vcc->vpi << SAR_TBD_VPI_SHIFT) | 1018 u32 header, vpi, vci; local 1040 vpi = (header >> 16) & 0x00ff; 1044 card->name, vpi, vci, skb, skb->data); 1046 if ((vpi >= (1 << card->vpibits)) || (vci != (vci & card->vcimask))) { 1048 card->name, vpi, vci); 1053 vc = card->vcs[VPCI2VC(card, vpi, vci)]; 1056 card->name, vpi, vci); 1088 aal0 = (vpi << ATM_HDR_VPI_SHIF 1265 unsigned int vpi, vci; local 1412 unsigned int vpi, vci; local 2401 short vpi = vcc->vpi; local 2858 int vpi, vci; local 2901 int vpi, vci; local [all...] |
H A D | fore200e.c | 1071 (rpd->atm_header.vpi << ATM_HDR_VPI_SHIFT) | 1126 vcc->itf, vcc->vpi, vcc->vci); 1194 vc_map = FORE200E_VC_MAP(fore200e, entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci); 1201 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci); 1214 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci); 1310 vcc->itf, vcc->vpi, vcc->vci, scheme); 1343 vpvc.vpi = vcc->vpi; 1368 activate ? "open" : "close", vcc->itf, vcc->vpi, vcc->vci); 1372 DPRINTK(1, "VC %d.%d.%d %sed\n", vcc->itf, vcc->vpi, vc 1405 short vpi = vcc->vpi; local [all...] |
H A D | horizon.c | 141 only the vpi vs vci bit allocation can be specified at insmod. 516 static inline int channel_to_vpivci (const u16 channel, short * vpi, int * vci) { argument 520 *vpi = channel >> vci_bits; 526 static inline int vpivci_to_channel (u16 * channel, const short vpi, const int vci) { argument 528 if (0 <= vpi && vpi < 1<<vpi_bits && 0 <= vci && vci < 1<<vci_bits) { 529 *channel = vpi<<vci_bits | vci; 2142 short vpi = atm_vcc->vpi; local 2144 PRINTD (DBG_FLOW|DBG_VCC, "hrz_open %x %x", vpi, vc [all...] |
H A D | fore200e.h | 93 u32 vpi : 8, /* virtual path identifier */ 271 u32 vpi : 8, /* virtual path identifier */ 831 #define FORE200E_VC_MAP(fore200e, vpi, vci) \ 832 (& (fore200e)->vc_map[ ((vpi) << FORE200E_VCI_BITS) | (vci) ])
|
H A D | he.c | 220 #define he_mkcid(dev, vpi, vci) (((vpi << (dev)->vcibits) | vci) & 0x1fff) 334 short vpi; local 337 vpi = cid >> he_dev->vcibits; 344 vcc->vci == vci && vcc->vpi == vpi && 1738 vcc->vpi, vcc->vci); 1746 HPRINTK("charge failed (%d.%d)\n", vcc->vpi, vcc->vci); 1770 if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { 1857 he_mkcid(he_dev, tpd->vcc->vpi, tp 2144 short vpi = vcc->vpi; local [all...] |
H A D | nicstar.c | 1262 short vpi = vcc->vpi; local 1266 PRINTK("nicstar%d: opening vpi.vci %d.%d \n", card->index, (int)vpi, 1273 vc = &(card->vcmap[vpi << card->vcibits | vci]); 1420 (vpi << card->vcibits | vci) * 1439 PRINTK("nicstar%d: closing vpi.vci %d.%d \n", card->index, 1440 (int)vcc->vpi, vcc->vci); 1450 (vcc->vpi << card->vcibits | vcc->vci) * NS_RCT_ENTRY_SIZE; 1696 ns_tbd_mkword_4(0, (u32) vcc->vpi, (u3 1986 u32 vpi, vci; local [all...] |
H A D | ambassador.c | 71 Only AAL5 is supported with vpi = 0 and vci in the range 0 to 1023. 1027 short vpi = atm_vcc->vpi; local 1030 PRINTD (DBG_FLOW|DBG_VCC, "amb_open %x %x", vpi, vci); 1034 if (vpi == ATM_VPI_UNSPEC || vci == ATM_VCI_UNSPEC) { 1040 if (!(0 <= vpi && vpi < (1<<NUM_VPI_BITS) && 1042 PRINTD (DBG_WARN|DBG_VCC, "VPI/VCI out of range: %hd/%d", vpi, vci); 1161 cmd.args.modify_rate.vc = cpu_to_be32 (vci); // vpi 0 1167 cmd.args.modify_flags.vc = cpu_to_be32 (vci); // vpi [all...] |
H A D | firestream.c | 872 short vpi = atm_vcc->vpi; local 881 if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) 889 atm_vcc->dev->number, atm_vcc->vpi, atm_vcc->vci); 932 vcc->channo = (vpi << FS155_VCI_BITS) | (vci); 981 tc->atm_hdr = (vpi << 20) | (vci << 4); 1089 (vpi << 16) | vci, 0 ); /* XXX -- Use defines. */
|
H A D | zatm.c | 568 if (vcc->vpi != ATM_VPI_UNSPEC && vcc->vci != ATM_VCI_UNSPEC) { 985 uPD98401_TXVC_SHP_SHIFT) | (vcc->vpi << uPD98401_TXVC_VPI_SHIFT) | 1387 short vpi = vcc->vpi; local 1395 if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) 1398 DPRINTK(DEV_LABEL "(itf %d): open %d.%d\n",vcc->dev->number,vcc->vpi, 1417 if (vci == ATM_VPI_UNSPEC || vpi == ATM_VCI_UNSPEC) return 0;
|
H A D | idt77252.h | 43 #define VPCI2VC(card, vpi, vci) \ 44 (((vpi) << card->vcibits) | ((vci) & card->vcimask))
|
H A D | nicstar.h | 236 #define ns_tbd_mkword_4(gfc, vpi, vci, pt, clp) \ 237 (cpu_to_le32((gfc) << 28 | (vpi) << 20 | (vci) << 4 | (pt) << 1 | (clp)))
|
H A D | eni.c | 846 if (vcc->vpi != ATM_VPI_UNSPEC && vcc->vci != ATM_VCI_UNSPEC) { 1910 short vpi = vcc->vpi; local 1917 if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) 1921 DPRINTK(DEV_LABEL "(itf %d): open %d.%d\n",vcc->dev->number,vcc->vpi, 1937 if (vci == ATM_VPI_UNSPEC || vpi == ATM_VCI_UNSPEC) return 0;
|
H A D | lanai.c | 2324 /* open a vcc on the card to vpi/vci */ 2331 short vpi = atmvcc->vpi; local 2334 (vpi == ATM_VPI_UNSPEC) || (vci == ATM_VCI_UNSPEC)) 2337 result = lanai_normalize_ci(lanai, atmvcc, &vpi, &vci); 2344 (int) vpi, vci);
|
/drivers/scsi/lpfc/ |
H A D | lpfc_vport.c | 86 unsigned long vpi; local 89 /* Start at bit 1 because vpi zero is reserved for the physical port */ 90 vpi = find_next_zero_bit(phba->vpi_bmask, (phba->max_vpi + 1), 1); 91 if (vpi > phba->max_vpi) 92 vpi = 0; 94 set_bit(vpi, phba->vpi_bmask); 98 return vpi; 102 lpfc_free_vpi(struct lpfc_hba *phba, int vpi) argument 104 if (vpi == 0) 107 clear_bit(vpi, phb 299 int vpi; local [all...] |
H A D | lpfc_mbox.c | 565 * @vpi: virtual N_Port identifier. 583 lpfc_read_sparam(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb, int vpi) argument 614 mb->un.varRdSparm.vpi = phba->vpi_ids[vpi]; 625 * @vpi: virtual N_Port identifier. 638 lpfc_unreg_did(struct lpfc_hba * phba, uint16_t vpi, uint32_t did, argument 647 mb->un.varUnregDID.vpi = vpi; 648 if ((vpi != 0xffff) && 650 mb->un.varUnregDID.vpi 733 lpfc_reg_rpi(struct lpfc_hba *phba, uint16_t vpi, uint32_t did, uint8_t *param, LPFC_MBOXQ_t *pmb, uint16_t rpi) argument 797 lpfc_unreg_login(struct lpfc_hba *phba, uint16_t vpi, uint32_t rpi, LPFC_MBOXQ_t * pmb) argument 914 lpfc_unreg_vpi(struct lpfc_hba *phba, uint16_t vpi, LPFC_MBOXQ_t *pmb) argument 2159 lpfc_init_vpi(struct lpfc_hba *phba, struct lpfcMboxq *mbox, uint16_t vpi) argument [all...] |
H A D | lpfc_logmsg.h | 46 fmt, (vport)->phba->brd_no, vport->vpi, ##arg); } \
|
H A D | lpfc_hw.h | 2130 uint16_t vpi; member in struct:__anon4550 2132 uint16_t vpi; member in struct:__anon4550 2338 uint16_t vpi; member in struct:__anon4560 2340 uint16_t vpi; member in struct:__anon4560 2373 uint16_t vpi; member in struct:__anon4564 2381 uint16_t vpi; 2396 uint16_t vpi; member in struct:__anon4565 2404 uint16_t vpi; 2424 uint16_t vpi; member in struct:__anon4566 2426 uint16_t vpi; member in struct:__anon4566 2441 uint16_t vpi; member in struct:__anon4567 2443 uint16_t vpi; member in struct:__anon4567 3491 uint16_t vpi; member in struct:rcv_sli3 [all...] |
H A D | lpfc_sli.c | 2111 uint16_t rpi, vpi; local 2129 vpi = pmb->u.mb.un.varRegLogin.vpi; 2130 lpfc_unreg_login(phba, vpi, rpi, pmb); 2230 pmb->vport ? pmb->vport->vpi : 0, 2251 pmb->vport ? pmb->vport->vpi : 0, 2272 pmb->vport ? pmb->vport->vpi : 0, 4604 mboxq->vport ? mboxq->vport->vpi : 0, 5040 * @type - the extent type (rpi, xri, vfi, vpi). 5991 mboxq->vport ? mboxq->vport->vpi 8345 uint16_t rpi = 0, vpi = 0; local [all...] |
H A D | lpfc_hbadisc.c | 2713 * This function handles completion of init vpi mailbox command. 2780 lpfc_init_vpi(vport->phba, mboxq, vport->vpi); 2809 /* There are no vpi for this vport */ 2810 if (vports[i]->vpi > phba->max_vpi) { 3385 "2798 Unreg_vpi failed vpi 0x%x, mb status = 0x%x\n", 3386 vport->vpi, mb->mbxStatus); 3417 lpfc_unreg_vpi(phba, vport->vpi, mbox); 4351 lpfc_unreg_login(phba, vport->vpi, rpi, mbox); 4420 lpfc_unreg_login(phba, vport->vpi, LPFC_UNREG_ALL_RPIS_VPORT, 4445 lpfc_unreg_did(phba, vport->vpi, LPFC_UNREG_ALL_DFLT_RPI 5425 lpfc_find_vport_by_vpid(struct lpfc_hba *phba, uint16_t vpi) argument [all...] |
H A D | lpfc_nportdisc.c | 396 rc = lpfc_reg_rpi(phba, vport->vpi, icmd->un.rcvels.remoteID, 754 lpfc_unreg_login(phba, vport->vpi, rpi, pmb); 1054 if (lpfc_reg_rpi(phba, vport->vpi, irsp->un.elsreq64.remoteID, 1484 mb->un.varRegLogin.vpi,
|
H A D | lpfc.h | 291 uint16_t vpi; member in struct:lpfc_vport 316 #define FC_VPORT_NEEDS_REG_VPI 0x80000 /* Needs to have its vpi registered */ 818 unsigned long *vpi_bmask; /* vpi allocation table */
|
/drivers/usb/atm/ |
H A D | usbatm.c | 146 /* vpi/vci lookup */ 148 short vpi; member in struct:usbatm_vcc_data 296 short vpi, int vci) 301 if ((vcc_data->vci == vci) && (vcc_data->vpi == vpi)) 310 short vpi = ((source[0] & 0x0f) << 4) | (source[1] >> 4); local 314 vdbg("%s: vpi %hd, vci %d, pti %d", __func__, vpi, vci, pti); 316 if ((vci != instance->cached_vci) || (vpi != instance->cached_vpi)) { 317 instance->cached_vpi = vpi; 295 usbatm_find_vcc(struct usbatm_data *instance, short vpi, int vci) argument 805 short vpi = vcc->vpi; local [all...] |