Searched refs:w_nr (Results 1 – 7 of 7) sorted by relevance
/titanic_44/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_ring.c | 77 ring->w_nr = nr; in rdsv3_ib_ring_init() 78 RDSV3_DPRINTF5("rdsv3_ib_ring_init", "ring %p nr %u", ring, ring->w_nr); in rdsv3_ib_ring_init() 88 ASSERT(diff <= ring->w_nr); in __rdsv3_ib_ring_used() 101 ring->w_nr = nr; in rdsv3_ib_ring_resize() 116 avail = ring->w_nr - __rdsv3_ib_ring_used(ring); in rdsv3_ib_ring_alloc() 126 ring->w_alloc_ptr = (ring->w_alloc_ptr + ret) % ring->w_nr; in rdsv3_ib_ring_alloc() 136 ring->w_free_ptr = (ring->w_free_ptr + val) % ring->w_nr; in rdsv3_ib_ring_free() 146 ring->w_alloc_ptr = (ring->w_alloc_ptr - val) % ring->w_nr; in rdsv3_ib_ring_unalloc() 159 return (__rdsv3_ib_ring_used(ring) <= (ring->w_nr >> 2)); in rdsv3_ib_ring_low() 185 ret = ring->w_nr - oldest + (unsigned long long)wr_id + 1; in rdsv3_ib_ring_completed()
|
H A D | ib_cm.c | 510 if (rds_ibdev->max_wrs < ic->i_send_ring.w_nr + 1) in rdsv3_ib_setup_qp() 512 if (rds_ibdev->max_wrs < ic->i_recv_ring.w_nr + 1) in rdsv3_ib_setup_qp() 525 ic->i_recv_ring.w_nr + ic->i_send_ring.w_nr + 1, in rdsv3_ib_setup_qp() 536 rdsv3_ib_cq_event_handler, conn, ic->i_send_ring.w_nr + 1, in rdsv3_ib_setup_qp() 554 attr.cap.max_send_wr = ic->i_send_ring.w_nr + 1; in rdsv3_ib_setup_qp() 555 attr.cap.max_recv_wr = ic->i_recv_ring.w_nr + 1; in rdsv3_ib_setup_qp() 586 ic->i_sends = kmem_alloc(ic->i_send_ring.w_nr * in rdsv3_ib_setup_qp() 594 (void) memset(ic->i_sends, 0, ic->i_send_ring.w_nr * in rdsv3_ib_setup_qp() 598 kmem_alloc(ic->i_send_ring.w_nr * (sizeof (ibt_send_wr_t) + in rdsv3_ib_setup_qp() 607 (ic->i_send_ring.w_nr * sizeof (ibt_send_wr_t))); in rdsv3_ib_setup_qp() [all …]
|
H A D | ib_recv.c | 66 for (i = 0, recv = ic->i_recvs; i < ic->i_recv_ring.w_nr; i++, recv++) { in rdsv3_ib_recv_init_ring() 105 for (i = 0; i < ic->i_recv_ring.w_nr; i++) in rdsv3_ib_recv_clear_ring() 184 uint_t w_nr = ic->i_recv_ring.w_nr; in rdsv3_ib_recv_refill() local 186 avail = rdsv3_ib_ring_alloc(&ic->i_recv_ring, w_nr, &pos); in rdsv3_ib_recv_refill() 187 if ((avail <= 0) || (pos >= w_nr)) { in rdsv3_ib_recv_refill() 207 pos = (pos + 1) % w_nr; in rdsv3_ib_recv_refill()
|
H A D | rdsv3_impl.c | 1249 size = (ic->i_send_ring.w_nr + ic->i_recv_ring.w_nr + 1) * in rdsv3_ib_alloc_hdrs() 1280 (ic->i_send_ring.w_nr * sizeof (struct rdsv3_header))); in rdsv3_ib_alloc_hdrs() 1282 (ic->i_send_ring.w_nr * sizeof (struct rdsv3_header))); in rdsv3_ib_alloc_hdrs() 1285 ((ic->i_send_ring.w_nr + ic->i_recv_ring.w_nr) * in rdsv3_ib_alloc_hdrs() 1288 ((ic->i_send_ring.w_nr + ic->i_recv_ring.w_nr) * in rdsv3_ib_alloc_hdrs()
|
H A D | ib_send.c | 175 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rdsv3_ib_send_init_ring() 189 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rdsv3_ib_send_clear_ring() 295 oldest = (oldest + 1) % ic->i_send_ring.w_nr; in rdsv3_ib_send_cqe_handler() 821 pos = (pos + 1) % ic->i_send_ring.w_nr; in rdsv3_ib_xmit() 1093 pos = (pos + 1) % ic->i_send_ring.w_nr; in rdsv3_ib_xmit_rdma()
|
H A D | ib.c | 304 iinfo->max_send_wr = ic->i_send_ring.w_nr; in rds_ib_conn_info_visitor() 305 iinfo->max_recv_wr = ic->i_recv_ring.w_nr; in rds_ib_conn_info_visitor()
|
/titanic_44/usr/src/uts/common/sys/ib/clients/rdsv3/ |
H A D | ib.h | 87 uint32_t w_nr; member
|