Home
last modified time | relevance | path

Searched refs:pbc (Results 1 - 25 of 54) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
H A Dverbs.c328 static u64 hfi1_fault_tx(struct rvt_qp *qp, u8 opcode, u64 pbc) in hfi1_fault_tx() argument
342 pbc &= ~PBC_INSERT_HCRC_SMASK; in hfi1_fault_tx()
343 pbc |= (u64)PBC_IHCRC_NONE << PBC_INSERT_HCRC_SHIFT; in hfi1_fault_tx()
353 pbc |= PBC_TEST_EBP; in hfi1_fault_tx()
356 return pbc; in hfi1_fault_tx()
765 u64 pbc) in build_verbs_tx_desc()
769 u16 hdrbytes = (tx->hdr_dwords + sizeof(pbc) / 4) << 2; in build_verbs_tx_desc()
793 phdr->pbc = cpu_to_le64(pbc); in build_verbs_tx_desc()
830 static u64 update_hcrc(u8 opcode, u64 pbc) in update_hcrc() argument
760 build_verbs_tx_desc( struct sdma_engine *sde, u32 length, struct verbs_txreq *tx, struct hfi1_ahg_info *ahg_info, u64 pbc) build_verbs_tx_desc() argument
839 hfi1_verbs_send_dma(struct rvt_qp *qp, struct hfi1_pkt_state *ps, u64 pbc) hfi1_verbs_send_dma() argument
979 hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps, u64 pbc) hfi1_verbs_send_pio() argument
[all...]
H A Dvnic_main.c234 u64 pbc; in create_bypass_pbc() local
236 pbc = ((u64)PBC_IHCRC_NONE << PBC_INSERT_HCRC_SHIFT) in create_bypass_pbc()
242 return pbc; in create_bypass_pbc()
265 u64 pbc; in hfi1_netdev_start_xmit() local
293 pbc = create_bypass_pbc(mdata->vl, total_len); in hfi1_netdev_start_xmit()
296 v_dbg("pbc 0x%016llX len %d pad_len %d\n", pbc, skb->len, pad_len); in hfi1_netdev_start_xmit()
297 err = dd->process_vnic_dma_send(dd, q_idx, vinfo, skb, pbc, pad_len); in hfi1_netdev_start_xmit()
H A Dvnic_sdma.c68 * @pbc_val: pbc value
129 u64 pbc) in build_vnic_tx_desc()
146 /* add pbc */ in build_vnic_tx_desc()
147 tx->pbc_val = cpu_to_le64(pbc); in build_vnic_tx_desc()
170 struct sk_buff *skb, u64 pbc, u8 plen) in hfi1_vnic_send_dma()
193 ret = build_vnic_tx_desc(sde, tx, pbc); in hfi1_vnic_send_dma()
127 build_vnic_tx_desc(struct sdma_engine *sde, struct vnic_txreq *tx, u64 pbc) build_vnic_tx_desc() argument
168 hfi1_vnic_send_dma(struct hfi1_devdata *dd, u8 q_idx, struct hfi1_vnic_vport_info *vinfo, struct sk_buff *skb, u64 pbc, u8 plen) hfi1_vnic_send_dma() argument
H A Dpio_copy.c59 * @pbc: PBC to send
71 void pio_copy(struct hfi1_devdata *dd, struct pio_buf *pbuf, u64 pbc, in pio_copy() argument
79 writeq(pbc, dest); in pio_copy()
299 * @pbc: the PBC for the PIO buffer
303 void seg_pio_copy_start(struct pio_buf *pbuf, u64 pbc, in seg_pio_copy_start() argument
310 writeq(pbc, dest); in seg_pio_copy_start()
H A Dpio.h327 void pio_copy(struct hfi1_devdata *dd, struct pio_buf *pbuf, u64 pbc,
329 void seg_pio_copy_start(struct pio_buf *pbuf, u64 pbc,
H A Duser_sdma.c462 req->hdr.pbc[2] = 0; in hfi1_user_sdma_process_request()
477 vl = (le16_to_cpu(req->hdr.pbc[0]) >> 12) & 0xF; in hfi1_user_sdma_process_request()
479 (((le16_to_cpu(req->hdr.pbc[1]) >> 14) & 0x1) << 4)); in hfi1_user_sdma_process_request()
697 return ((sizeof(hdr) - sizeof(hdr.pbc)) + 4 + len); in get_lrh_len()
705 u16 pbclen = le16_to_cpu(req->hdr.pbc[0]); in user_sdma_txadd_ahg()
720 tx->hdr.pbc[0] = cpu_to_le16(pbclen); in user_sdma_txadd_ahg()
1002 pbclen = le16_to_cpu(hdr->pbc[0]); in set_txreq_header()
1005 hdr->pbc[0] = cpu_to_le16(pbclen); in set_txreq_header()
1021 req->hdr.pbc[0] = hdr->pbc[ in set_txreq_header()
[all...]
H A Dipoib_tx.c135 "%s: Status = 0x%x pbc 0x%llx txq = %d sde = %d\n", in hfi1_ipoib_free_tx()
137 le64_to_cpu(tx->sdma_hdr.pbc), tx->txq->q_idx, in hfi1_ipoib_free_tx()
273 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2) + tx->skb->len; in hfi1_ipoib_build_tx_desc()
280 /* add pbc + headers */ in hfi1_ipoib_build_tx_desc()
284 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2)); in hfi1_ipoib_build_tx_desc()
373 /* Construct the pbc. */ in hfi1_ipoib_build_ib_tx_headers()
374 sdma_hdr->pbc = in hfi1_ipoib_build_ib_tx_headers()
381 (sizeof(sdma_hdr->pbc) >> 2))); in hfi1_ipoib_build_ib_tx_headers()
H A Dvnic.h166 struct sk_buff *skb, u64 pbc, u8 plen);
H A Dverbs.h149 __le64 pbc; member
480 u64 pbc);
483 u64 pbc);
H A Dud.c636 u64 pbc, pbc_flags = 0; in return_cnp_16B() local
683 pbc = create_pbc(ppd, pbc_flags, qp->srate_mbps, vl, plen); in return_cnp_16B()
688 ppd->dd->pio_inline_send(ppd->dd, pbuf, pbc, in return_cnp_16B()
698 u64 pbc, pbc_flags = 0; in return_cnp() local
738 pbc = create_pbc(ppd, pbc_flags, qp->srate_mbps, vl, plen); in return_cnp()
743 ppd->dd->pio_inline_send(ppd->dd, pbuf, pbc, in return_cnp()
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/
H A Dverbs.c286 static u64 hfi1_fault_tx(struct rvt_qp *qp, u8 opcode, u64 pbc) in hfi1_fault_tx() argument
300 pbc &= ~PBC_INSERT_HCRC_SMASK; in hfi1_fault_tx()
301 pbc |= (u64)PBC_IHCRC_NONE << PBC_INSERT_HCRC_SHIFT; in hfi1_fault_tx()
311 pbc |= PBC_TEST_EBP; in hfi1_fault_tx()
314 return pbc; in hfi1_fault_tx()
723 u64 pbc) in build_verbs_tx_desc()
727 u16 hdrbytes = (tx->hdr_dwords + sizeof(pbc) / 4) << 2; in build_verbs_tx_desc()
751 phdr->pbc = cpu_to_le64(pbc); in build_verbs_tx_desc()
788 static u64 update_hcrc(u8 opcode, u64 pbc) in update_hcrc() argument
718 build_verbs_tx_desc( struct sdma_engine *sde, u32 length, struct verbs_txreq *tx, struct hfi1_ahg_info *ahg_info, u64 pbc) build_verbs_tx_desc() argument
797 hfi1_verbs_send_dma(struct rvt_qp *qp, struct hfi1_pkt_state *ps, u64 pbc) hfi1_verbs_send_dma() argument
937 hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps, u64 pbc) hfi1_verbs_send_pio() argument
[all...]
H A Dvnic_main.c192 u64 pbc; in create_bypass_pbc() local
194 pbc = ((u64)PBC_IHCRC_NONE << PBC_INSERT_HCRC_SHIFT) in create_bypass_pbc()
200 return pbc; in create_bypass_pbc()
223 u64 pbc; in hfi1_netdev_start_xmit() local
251 pbc = create_bypass_pbc(mdata->vl, total_len); in hfi1_netdev_start_xmit()
254 v_dbg("pbc 0x%016llX len %d pad_len %d\n", pbc, skb->len, pad_len); in hfi1_netdev_start_xmit()
255 err = dd->process_vnic_dma_send(dd, q_idx, vinfo, skb, pbc, pad_len); in hfi1_netdev_start_xmit()
H A Dvnic_sdma.c26 * @pbc_val: pbc value
87 u64 pbc) in build_vnic_tx_desc()
104 /* add pbc */ in build_vnic_tx_desc()
105 tx->pbc_val = cpu_to_le64(pbc); in build_vnic_tx_desc()
128 struct sk_buff *skb, u64 pbc, u8 plen) in hfi1_vnic_send_dma()
151 ret = build_vnic_tx_desc(sde, tx, pbc); in hfi1_vnic_send_dma()
85 build_vnic_tx_desc(struct sdma_engine *sde, struct vnic_txreq *tx, u64 pbc) build_vnic_tx_desc() argument
126 hfi1_vnic_send_dma(struct hfi1_devdata *dd, u8 q_idx, struct hfi1_vnic_vport_info *vinfo, struct sk_buff *skb, u64 pbc, u8 plen) hfi1_vnic_send_dma() argument
H A Duser_sdma.c401 req->hdr.pbc[2] = 0; in hfi1_user_sdma_process_request()
416 vl = (le16_to_cpu(req->hdr.pbc[0]) >> 12) & 0xF; in hfi1_user_sdma_process_request()
418 (((le16_to_cpu(req->hdr.pbc[1]) >> 14) & 0x1) << 4)); in hfi1_user_sdma_process_request()
636 return ((sizeof(hdr) - sizeof(hdr.pbc)) + 4 + len); in get_lrh_len()
644 u16 pbclen = le16_to_cpu(req->hdr.pbc[0]); in user_sdma_txadd_ahg()
659 tx->hdr.pbc[0] = cpu_to_le16(pbclen); in user_sdma_txadd_ahg()
930 pbclen = le16_to_cpu(hdr->pbc[0]); in set_txreq_header()
933 hdr->pbc[0] = cpu_to_le16(pbclen); in set_txreq_header()
949 req->hdr.pbc[0] = hdr->pbc[ in set_txreq_header()
[all...]
H A Dpio_copy.c18 * @pbc: PBC to send
30 void pio_copy(struct hfi1_devdata *dd, struct pio_buf *pbuf, u64 pbc, in pio_copy() argument
38 writeq(pbc, dest); in pio_copy()
258 * @pbc: the PBC for the PIO buffer
262 void seg_pio_copy_start(struct pio_buf *pbuf, u64 pbc, in seg_pio_copy_start() argument
269 writeq(pbc, dest); in seg_pio_copy_start()
H A Dpio.h283 void pio_copy(struct hfi1_devdata *dd, struct pio_buf *pbuf, u64 pbc,
285 void seg_pio_copy_start(struct pio_buf *pbuf, u64 pbc,
H A Dipoib_tx.c123 "%s: Status = 0x%x pbc 0x%llx txq = %d sde = %d\n", in hfi1_ipoib_free_tx()
125 le64_to_cpu(tx->sdma_hdr->pbc), tx->txq->q_idx, in hfi1_ipoib_free_tx()
237 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2) + tx->skb->len; in hfi1_ipoib_build_tx_desc()
244 /* add pbc + headers */ in hfi1_ipoib_build_tx_desc()
248 sizeof(sdma_hdr->pbc) + (txp->hdr_dwords << 2)); in hfi1_ipoib_build_tx_desc()
337 /* Construct the pbc. */ in hfi1_ipoib_build_ib_tx_headers()
338 sdma_hdr->pbc = in hfi1_ipoib_build_ib_tx_headers()
345 (sizeof(sdma_hdr->pbc) >> 2))); in hfi1_ipoib_build_ib_tx_headers()
H A Dvnic.h124 struct sk_buff *skb, u64 pbc, u8 plen);
H A Dverbs.h107 __le64 pbc; member
435 u64 pbc);
438 u64 pbc);
H A Dud.c595 u64 pbc, pbc_flags = 0; in return_cnp_16B() local
642 pbc = create_pbc(ppd, pbc_flags, qp->srate_mbps, vl, plen); in return_cnp_16B()
647 ppd->dd->pio_inline_send(ppd->dd, pbuf, pbc, in return_cnp_16B()
657 u64 pbc, pbc_flags = 0; in return_cnp() local
697 pbc = create_pbc(ppd, pbc_flags, qp->srate_mbps, vl, plen); in return_cnp()
702 ppd->dd->pio_inline_send(ppd->dd, pbuf, pbc, in return_cnp()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
H A Dqib_user_sdma.c445 /* New pbc length */ in qib_user_sdma_page_to_frags()
491 /* New pbc length */ in qib_user_sdma_page_to_frags()
813 __le32 *pbc; in qib_user_sdma_queue_pkts() local
841 pbc = qib_user_sdma_alloc_header(pq, len, &dma_addr); in qib_user_sdma_queue_pkts()
842 if (!pbc) { in qib_user_sdma_queue_pkts()
847 cfur = copy_from_user(pbc, iov[idx].iov_base, len); in qib_user_sdma_queue_pkts()
855 * the pbc counts the number of 32 bit words in the full in qib_user_sdma_queue_pkts()
856 * packet _except_ the first word of the pbc itself... in qib_user_sdma_queue_pkts()
869 pktnw = le32_to_cpu(*pbc) & 0xFFFF; in qib_user_sdma_queue_pkts()
903 frag_size = ((le32_to_cpu(*pbc))>>1 in qib_user_sdma_queue_pkts()
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/
H A Dqib_user_sdma.c444 /* New pbc length */ in qib_user_sdma_page_to_frags()
490 /* New pbc length */ in qib_user_sdma_page_to_frags()
808 __le32 *pbc; in qib_user_sdma_queue_pkts() local
836 pbc = qib_user_sdma_alloc_header(pq, len, &dma_addr); in qib_user_sdma_queue_pkts()
837 if (!pbc) { in qib_user_sdma_queue_pkts()
842 cfur = copy_from_user(pbc, iov[idx].iov_base, len); in qib_user_sdma_queue_pkts()
850 * the pbc counts the number of 32 bit words in the full in qib_user_sdma_queue_pkts()
851 * packet _except_ the first word of the pbc itself... in qib_user_sdma_queue_pkts()
864 pktnw = le32_to_cpu(*pbc) & 0xFFFF; in qib_user_sdma_queue_pkts()
898 frag_size = ((le32_to_cpu(*pbc))>>1 in qib_user_sdma_queue_pkts()
[all...]
/kernel/linux/linux-5.10/include/uapi/rdma/hfi/
H A Dhfi1_user.h241 __le16 pbc[4]; member
/kernel/linux/linux-6.6/include/uapi/rdma/hfi/
H A Dhfi1_user.h241 __le16 pbc[4]; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/hfi/
H A Dhfi1_user.h108 __le16 pbc[4]; member

Completed in 24 milliseconds

123