Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/scsi/lpfc/
Dlpfc_vport.c90 unsigned long vpi; in lpfc_alloc_vpi() local
94 vpi = find_next_zero_bit(phba->vpi_bmask, (phba->max_vpi + 1), 1); in lpfc_alloc_vpi()
95 if (vpi > phba->max_vpi) in lpfc_alloc_vpi()
96 vpi = 0; in lpfc_alloc_vpi()
98 set_bit(vpi, phba->vpi_bmask); in lpfc_alloc_vpi()
102 return vpi; in lpfc_alloc_vpi()
106 lpfc_free_vpi(struct lpfc_hba *phba, int vpi) in lpfc_free_vpi() argument
108 if (vpi == 0) in lpfc_free_vpi()
111 clear_bit(vpi, phba->vpi_bmask); in lpfc_free_vpi()
131 rc = lpfc_read_sparam(phba, pmb, vport->vpi); in lpfc_vport_sparm()
[all …]
Dlpfc_logmsg.h60 fmt, (vport)->phba->brd_no, vport->vpi, ##arg); }
79 fmt, (vport)->phba->brd_no, vport->vpi, ##arg); \
82 (vport)->phba->brd_no, (vport)->vpi, ##arg); \
Dlpfc_mbox.c673 lpfc_read_sparam(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb, int vpi) in lpfc_read_sparam() argument
697 mb->un.varRdSparm.vpi = phba->vpi_ids[vpi]; in lpfc_read_sparam()
718 lpfc_unreg_did(struct lpfc_hba * phba, uint16_t vpi, uint32_t did, in lpfc_unreg_did() argument
727 mb->un.varUnregDID.vpi = vpi; in lpfc_unreg_did()
728 if ((vpi != 0xffff) && in lpfc_unreg_did()
730 mb->un.varUnregDID.vpi = phba->vpi_ids[vpi]; in lpfc_unreg_did()
813 lpfc_reg_rpi(struct lpfc_hba *phba, uint16_t vpi, uint32_t did, in lpfc_reg_rpi() argument
827 mb->un.varRegLogin.vpi = phba->vpi_ids[vpi]; in lpfc_reg_rpi()
838 "rpi x%x\n", vpi, did, rpi); in lpfc_reg_rpi()
874 lpfc_unreg_login(struct lpfc_hba *phba, uint16_t vpi, uint32_t rpi, in lpfc_unreg_login() argument
[all …]
Dlpfc_hw.h2692 uint16_t vpi; member
2694 uint16_t vpi; member
2956 uint16_t vpi; member
2958 uint16_t vpi; member
2991 uint16_t vpi; member
2999 uint16_t vpi;
3014 uint16_t vpi; member
3022 uint16_t vpi;
3042 uint16_t vpi; member
3044 uint16_t vpi; member
[all …]
/linux-6.6.21/drivers/atm/
Datmtcp.c93 vcc->vpi = msg->addr.sap_addr.vpi; in atmtcp_recv_control()
124 short vpi = vcc->vpi; in atmtcp_v_open() local
129 msg.hdr.vpi = htons(vpi); in atmtcp_v_open()
130 msg.addr.sap_addr.vpi = vpi; in atmtcp_v_open()
133 if (vpi == ATM_VPI_UNSPEC || vci == ATM_VCI_UNSPEC) return 0; in atmtcp_v_open()
150 msg.addr.sap_addr.vpi = vcc->vpi; in atmtcp_v_close()
178 if ((vcc->vpi >> ci.vpi_bits) || in atmtcp_v_ioctl()
222 hdr->vpi = htons(vcc->vpi); in atmtcp_v_send()
263 static struct atm_vcc *find_vcc(struct atm_dev *dev, short vpi, int vci) in find_vcc() argument
274 vcc->vci == vci && vcc->vpi == vpi && in find_vcc()
[all …]
Dsolos-pci.c86 __le16 vpi; member
166 static struct atm_vcc* find_vcc(struct atm_dev *dev, short vpi, int vci);
206 header->vpi = cpu_to_le16(0); in solos_param_show()
262 header->vpi = cpu_to_le16(0); in solos_param_store()
483 header->vpi = cpu_to_le16(0); in send_command()
821 size, le16_to_cpu(header->vpi), in solos_bh()
828 vcc = find_vcc(card->atmdev[port], le16_to_cpu(header->vpi), in solos_bh()
833 le16_to_cpu(header->vpi), le16_to_cpu(header->vci), in solos_bh()
897 static struct atm_vcc *find_vcc(struct atm_dev *dev, short vpi, int vci) in find_vcc() argument
908 vcc->vpi == vpi && vcc->qos.rxtp.traffic_class != ATM_NONE && in find_vcc()
[all …]
Didt77252.c779 card->name, vc->tx_vcc->vpi, vc->tx_vcc->vci); in push_on_scq()
902 tbd->word_4 = (vcc->vpi << SAR_TBD_VPI_SHIFT) | in queue_skb()
1017 u32 header, vpi, vci; in dequeue_rx() local
1039 vpi = (header >> 16) & 0x00ff; in dequeue_rx()
1043 card->name, vpi, vci, skb, skb->data); in dequeue_rx()
1045 if ((vpi >= (1 << card->vpibits)) || (vci != (vci & card->vcimask))) { in dequeue_rx()
1047 card->name, vpi, vci); in dequeue_rx()
1052 vc = card->vcs[VPCI2VC(card, vpi, vci)]; in dequeue_rx()
1055 card->name, vpi, vci); in dequeue_rx()
1087 aal0 = (vpi << ATM_HDR_VPI_SHIFT) | in dequeue_rx()
[all …]
Dadummy.c92 short vpi = vcc->vpi; in adummy_open() local
95 if (vci == ATM_VCI_UNSPEC || vpi == ATM_VPI_UNSPEC) in adummy_open()
Dfore200e.c979 (rpd->atm_header.vpi << ATM_HDR_VPI_SHIFT) | in fore200e_push_rpd()
1036 vcc->itf, vcc->vpi, vcc->vci); in fore200e_push_rpd()
1100 vc_map = FORE200E_VC_MAP(fore200e, entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci); in fore200e_rx_irq()
1107 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci); in fore200e_rx_irq()
1120 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci); in fore200e_rx_irq()
1216 vcc->itf, vcc->vpi, vcc->vci, scheme); in fore200e_select_scheme()
1249 vpvc.vpi = vcc->vpi; in fore200e_activate_vcin()
1274 activate ? "open" : "close", vcc->itf, vcc->vpi, vcc->vci); in fore200e_activate_vcin()
1278 DPRINTK(1, "VC %d.%d.%d %sed\n", vcc->itf, vcc->vpi, vcc->vci, in fore200e_activate_vcin()
1311 short vpi = vcc->vpi; in fore200e_open() local
[all …]
Dhe.c220 #define he_mkcid(dev, vpi, vci) (((vpi << (dev)->vcibits) | vci) & 0x1fff) argument
333 short vpi; in __find_vcc() local
336 vpi = cid >> he_dev->vcibits; in __find_vcc()
343 vcc->vci == vci && vcc->vpi == vpi && in __find_vcc()
1716 vcc->vpi, vcc->vci); in he_service_rbrq()
1724 HPRINTK("charge failed (%d.%d)\n", vcc->vpi, vcc->vci); in he_service_rbrq()
1748 if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { in he_service_rbrq()
1835 he_mkcid(he_dev, tpd->vcc->vpi, tpd->vcc->vci)); in he_service_tbrq()
2122 short vpi = vcc->vpi; in he_open() local
2125 if (vci == ATM_VCI_UNSPEC || vpi == ATM_VPI_UNSPEC) in he_open()
[all …]
Dfore200e.h94 u32 vpi : 8, /* virtual path identifier */
272 u32 vpi : 8, /* virtual path identifier */
826 #define FORE200E_VC_MAP(fore200e, vpi, vci) \ argument
827 (& (fore200e)->vc_map[ ((vpi) << FORE200E_VCI_BITS) | (vci) ])
/linux-6.6.21/net/atm/
Dcommon.c167 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()
[all …]
Dpvc.c47 if (vcc->vpi != ATM_VPI_UNSPEC) in pvc_bind()
48 addr->sap_addr.vpi = vcc->vpi; in pvc_bind()
52 error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi, in pvc_bind()
101 addr->sap_addr.vpi = vcc->vpi; in pvc_getname()
Dsignaling.c88 if (session_vcc->vpi || session_vcc->vci) in sigd_send()
91 session_vcc->vpi = msg->pvc.sap_addr.vpi; in sigd_send()
93 if (session_vcc->vpi || session_vcc->vci) in sigd_send()
Dlec.c301 dev->name, vcc->vpi, vcc->vci); in lec_start_xmit()
588 dev->name, vcc->vpi, vcc->vci); in lec_push()
805 seq_printf(seq, "%3d %3d ", entry->vcc->vpi, entry->vcc->vci); in lec_info()
809 seq_printf(seq, " %3d %3d", entry->recv_vcc->vpi, in lec_info()
1369 rulla->vcc ? rulla->vcc->vpi : 0, in dump_arp_table()
1372 vpi : 0, in dump_arp_table()
1394 rulla->vcc ? rulla->vcc->vpi : 0, in dump_arp_table()
1396 rulla->recv_vcc ? rulla->recv_vcc->vpi : 0, in dump_arp_table()
1416 rulla->vcc ? rulla->vcc->vpi : 0, in dump_arp_table()
1418 rulla->recv_vcc ? rulla->recv_vcc->vpi : 0, in dump_arp_table()
[all …]
Dproc.c152 vcc->dev->number, vcc->vpi, vcc->vci, in pvc_info()
185 seq_printf(seq, "%3d %3d %5d ", vcc->dev->number, vcc->vpi, in vcc_info()
211 vcc->dev->number, vcc->vpi, vcc->vci); in svc_info()
Dcommon.h16 int vcc_connect(struct socket *sock, int itf, short vpi, int vci);
Dmpoa_proc.c161 in_entry->shortcut->vpi, in mpc_show()
186 eg_entry->shortcut->vpi, in mpc_show()
/linux-6.6.21/drivers/usb/atm/
Dusbatm.c133 short vpi; member
281 short vpi, int vci) in usbatm_find_vcc() argument
286 if ((vcc_data->vci == vci) && (vcc_data->vpi == vpi)) in usbatm_find_vcc()
295 short vpi = ((source[0] & 0x0f) << 4) | (source[1] >> 4); in usbatm_extract_one_cell() local
299 if ((vci != instance->cached_vci) || (vpi != instance->cached_vpi)) { in usbatm_extract_one_cell()
300 instance->cached_vpi = vpi; in usbatm_extract_one_cell()
303 instance->cached_vcc = usbatm_find_vcc(instance, vpi, vci); in usbatm_extract_one_cell()
306 atm_rldbg(instance, "%s: unknown vpi/vci (%hd/%d)!\n", __func__, vpi, vci); in usbatm_extract_one_cell()
318 __func__, vpi, vci); in usbatm_extract_one_cell()
469 ptr[0] = vcc->vpi >> 4; in usbatm_write_cells()
[all …]
/linux-6.6.21/include/uapi/linux/
Datm.h180 short vpi; /* VPI (only 8 bits at UNI) */ member
226 return addr.sap_addr.itf || addr.sap_addr.vpi || addr.sap_addr.vci; in atmpvc_addr_in_use()
Datm_tcp.h22 __u16 vpi; member
/linux-6.6.21/arch/powerpc/mm/book3s64/
Dhash_native.c667 unsigned long avpn, pteg, vpi; in hpte_decode() local
702 vpi = (vsid ^ pteg) & htab_hash_mask; in hpte_decode()
703 seg_off |= vpi << shift; in hpte_decode()
712 vpi = (vsid ^ (vsid << 25) ^ pteg) & htab_hash_mask; in hpte_decode()
713 seg_off |= vpi << shift; in hpte_decode()
/linux-6.6.21/drivers/scsi/elx/libefc_sli/
Dsli4.c1478 els->context_tag = cpu_to_le16(params->vpi); in sli_els_request64_wqe()
1496 els->context_tag = cpu_to_le16(params->vpi); in sli_els_request64_wqe()
1502 els->context_tag = cpu_to_le16(params->vpi); in sli_els_request64_wqe()
1520 els->context_tag = cpu_to_le16(params->vpi); in sli_els_request64_wqe()
1527 els->context_tag = cpu_to_le16(params->vpi); in sli_els_request64_wqe()
1535 els->context_tag = cpu_to_le16(params->vpi); in sli_els_request64_wqe()
1539 els->context_tag = cpu_to_le16(params->vpi); in sli_els_request64_wqe()
2318 bls->context_tag = cpu_to_le16(params->vpi); in sli_xmit_bls_rsp64_wqe()
2394 els->context_tag = cpu_to_le16(params->vpi); in sli_xmit_els_rsp64_wqe()
3111 sli_cmd_init_vfi(struct sli4 *sli4, void *buf, u16 vfi, u16 fcfi, u16 vpi) in sli_cmd_init_vfi() argument
[all …]
Dsli4.h2173 __le16 vpi; member
2181 __le16 vpi; member
2350 __le16 vpi; member
2511 __le16 vpi; member
2530 __le16 vpi; member
2550 __le16 vpi; member
3555 u32 vpi; member
3567 u32 vpi; member
3585 u32 vpi; member
3597 u32 vpi; member
[all …]
/linux-6.6.21/drivers/scsi/elx/efct/
Defct_scsi.c313 io->iparam.fcp_tgt.vpi = io->node->vpi; in efct_scsi_io_dispatch_hw_io()
883 bls->vpi = io->node->vpi; in efct_target_send_bls_resp()
937 bls->vpi = io->node->vpi; in efct_bls_send_rjt()

123