Home
last modified time | relevance | path

Searched refs:size_log2 (Results 1 – 5 of 5) sorted by relevance

/trueos/sys/dev/cxgb/ulp/iw_cxgb/
HDiw_cxgb_wr.h40 #define Q_FULL(rptr,wptr,size_log2) ( (((wptr)-(rptr))>>(size_log2)) && \ argument
42 #define Q_GENBIT(ptr,size_log2) (!(((ptr)>>size_log2)&0x1)) argument
43 #define Q_FREECNT(rptr,wptr,size_log2) ((1UL<<size_log2)-((wptr)-(rptr))) argument
45 #define Q_PTR2IDX(ptr,size_log2) (ptr & ((1UL<<size_log2)-1)) argument
641 u32 size_log2; /* total wq size */ member
662 u32 size_log2; member
670 #define CQ_VLD_ENTRY(ptr,size_log2,cqe) (Q_GENBIT(ptr,size_log2) == \ argument
680 &cq->queue[1 << cq->size_log2])->cq_err; in cxio_cq_in_error()
686 &cq->queue[1 << cq->size_log2])->cq_err = 1; in cxio_set_cq_in_error()
698 cqe = cq->queue + (Q_PTR2IDX(cq->rptr, cq->size_log2)); in cxio_next_hw_cqe()
[all …]
HDiw_cxgb_user.h53 __u32 size_log2; member
59 uint32_t size_log2; member
68 uint32_t size_log2; member
HDiw_cxgb_hal.c132 if (Q_PTR2IDX((cq->rptr), cq->size_log2) != ret) { in cxio_hal_cq_op()
141 while (Q_PTR2IDX((rptr+1), cq->size_log2) != ret) in cxio_hal_cq_op()
149 cqe = cq->queue + Q_PTR2IDX(rptr, cq->size_log2); in cxio_hal_cq_op()
150 while (!CQ_VLD_ENTRY(rptr, cq->size_log2, cqe)) { in cxio_hal_cq_op()
199 int size = (1UL << (cq->size_log2)) * sizeof(struct t3_cqe); in cxio_create_cq()
222 1UL << cq->size_log2, 0, 65535, 1)); in cxio_create_cq()
297 int depth = 1UL << wq->size_log2; in cxio_create_qp()
350 (1UL << (cq->size_log2)) in cxio_destroy_cq()
354 contigfree(cq->queue,(1UL << (cq->size_log2)) in cxio_destroy_cq()
368 (1UL << (wq->size_log2)) in cxio_destroy_qp()
[all …]
HDiw_cxgb_provider.c222 chp->cq.size_log2 = ilog2(entries); in iwch_create_cq()
229 chp->ibcq.cqe = 1 << chp->cq.size_log2; in iwch_create_cq()
247 uresp.size_log2 = chp->cq.size_log2; in iwch_create_cq()
259 mm->len = PAGE_ALIGN((1UL << uresp.size_log2) * in iwch_create_cq()
263 mm->len = PAGE_ALIGN(((1UL << uresp.size_log2) + 1) * in iwch_create_cq()
276 chp->cq.cqid, chp, (1 << chp->cq.size_log2), in iwch_create_cq()
810 qhp->wq.size_log2 = ilog2(wqsize); in iwch_create_qp()
875 uresp.size_log2 = qhp->wq.size_log2; in iwch_create_qp()
905 1 << qhp->wq.size_log2); in iwch_create_qp()
HDiw_cxgb_qp.c385 idx = Q_PTR2IDX(qhp->wq.wptr, qhp->wq.size_log2); in iwch_post_send()
433 Q_GENBIT(qhp->wq.wptr, qhp->wq.size_log2), in iwch_post_send()
482 idx = Q_PTR2IDX(qhp->wq.wptr, qhp->wq.size_log2); in iwch_post_receive()
495 Q_GENBIT(qhp->wq.wptr, qhp->wq.size_log2), in iwch_post_receive()
545 idx = Q_PTR2IDX(qhp->wq.wptr, qhp->wq.size_log2); in iwch_bind_mw()
582 Q_GENBIT(qhp->wq.wptr, qhp->wq.size_log2), 0, in iwch_bind_mw()
871 init_attr.qp_dma_size = (1UL << qhp->wq.size_log2); in rdma_init()