Home
last modified time | relevance | path

Searched refs:qpt (Results 1 – 11 of 11) sorted by relevance

/drivers/infiniband/hw/ipath/
Dipath_qp.c44 #define mk_qpn(qpt, map, off) (((map) - (qpt)->map) * BITS_PER_PAGE + \ argument
87 static void get_map_page(struct ipath_qp_table *qpt, struct qpn_map *map) in get_map_page() argument
96 spin_lock_irqsave(&qpt->lock, flags); in get_map_page()
101 spin_unlock_irqrestore(&qpt->lock, flags); in get_map_page()
105 static int alloc_qpn(struct ipath_qp_table *qpt, enum ib_qp_type type) in alloc_qpn() argument
117 map = &qpt->map[0]; in alloc_qpn()
119 get_map_page(qpt, map); in alloc_qpn()
132 qpn = qpt->last + 1; in alloc_qpn()
136 map = &qpt->map[qpn / BITS_PER_PAGE]; in alloc_qpn()
137 max_scan = qpt->nmaps - !offset; in alloc_qpn()
[all …]
Dipath_verbs.h734 struct ipath_qp *ipath_lookup_qpn(struct ipath_qp_table *qpt, u32 qpn);
750 unsigned ipath_free_all_qps(struct ipath_qp_table *qpt);
/drivers/infiniband/hw/qib/
Dqib_qp.c47 static inline unsigned mk_qpn(struct qib_qpn_table *qpt, in mk_qpn() argument
50 return (map - qpt->map) * RVT_BITS_PER_PAGE + off; in mk_qpn()
53 static inline unsigned find_next_offset(struct qib_qpn_table *qpt, in find_next_offset() argument
57 if (qpt->mask) { in find_next_offset()
59 if (((off & qpt->mask) >> 1) >= n) in find_next_offset()
60 off = (off | qpt->mask) + 2; in find_next_offset()
103 static void get_map_page(struct qib_qpn_table *qpt, struct qpn_map *map, in get_map_page() argument
112 spin_lock(&qpt->lock); in get_map_page()
117 spin_unlock(&qpt->lock); in get_map_page()
124 static int alloc_qpn(struct qib_devdata *dd, struct qib_qpn_table *qpt, in alloc_qpn() argument
[all …]
Dqib_verbs.h926 void qib_init_qpn_table(struct qib_devdata *dd, struct qib_qpn_table *qpt);
928 void qib_free_qpn_table(struct qib_qpn_table *qpt);
/drivers/infiniband/hw/ehca/
Dipz_pt_fn.h233 void ipz_qpt_ctor(struct ipz_qpt *qpt,
278 static inline u64 ipz_qpt_get_firstpage(struct ipz_qpt *qpt) in ipz_qpt_get_firstpage() argument
280 return be64_to_cpu(qpt->qpts[0]); in ipz_qpt_get_firstpage()
284 static inline void *ipz_qpt_get_qpt(struct ipz_qpt *qpt) in ipz_qpt_get_qpt() argument
286 return qpt->qpts; in ipz_qpt_get_qpt()
Dehca_classes_pSeries.h55 struct ipz_qpt qpt; member
60 struct ipz_qpt qpt; member
/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c1827 &q1->qpt); in bna_bfi_rx_enet_start()
1835 &q0->qpt); in bna_bfi_rx_enet_start()
1856 &rxp->cq.qpt); in bna_bfi_rx_enet_start()
2087 rxq->qpt.hw_qpt_ptr.lsb = qpt_mem->dma.lsb; in bna_rxq_qpt_setup()
2088 rxq->qpt.hw_qpt_ptr.msb = qpt_mem->dma.msb; in bna_rxq_qpt_setup()
2089 rxq->qpt.kv_qpt_ptr = qpt_mem->kva; in bna_rxq_qpt_setup()
2090 rxq->qpt.page_count = page_count; in bna_rxq_qpt_setup()
2091 rxq->qpt.page_size = page_size; in bna_rxq_qpt_setup()
2099 for (i = 0; i < rxq->qpt.page_count; i++) { in bna_rxq_qpt_setup()
2104 ((struct bna_dma_addr *)rxq->qpt.kv_qpt_ptr)[i].lsb = in bna_rxq_qpt_setup()
[all …]
Dbna_types.h461 struct bna_qpt qpt; member
590 struct bna_qpt qpt; member
654 struct bna_qpt qpt; member
/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.h128 #define kiblnd_rdma_create_id(cb, dev, ps, qpt) rdma_create_id(cb, dev, ps, qpt) argument
/drivers/infiniband/hw/mlx4/
Dmlx4_ib.h743 enum ib_qp_type qpt, struct ib_wc *wc,
Dqp.c2443 enum mlx4_ib_qp_type qpt) in set_tunnel_datagram_seg() argument
2456 if (qpt == MLX4_IB_QPT_PROXY_GSI) in set_tunnel_datagram_seg()