Home
last modified time | relevance | path

Searched refs:w_nr (Results 1 – 12 of 12) sorted by relevance

/linux-4.1.27/net/rds/
Dib_ring.c69 ring->w_nr = nr; in rds_ib_ring_init()
70 rdsdebug("ring %p nr %u\n", ring, ring->w_nr); in rds_ib_ring_init()
79 BUG_ON(diff > ring->w_nr); in __rds_ib_ring_used()
89 ring->w_nr = nr; in rds_ib_ring_resize()
101 avail = ring->w_nr - __rds_ib_ring_used(ring); in rds_ib_ring_alloc()
110 ring->w_alloc_ptr = (ring->w_alloc_ptr + ret) % ring->w_nr; in rds_ib_ring_alloc()
119 ring->w_free_ptr = (ring->w_free_ptr + val) % ring->w_nr; in rds_ib_ring_free()
129 ring->w_alloc_ptr = (ring->w_alloc_ptr - val) % ring->w_nr; in rds_ib_ring_unalloc()
140 return __rds_ib_ring_used(ring) <= (ring->w_nr >> 1); in rds_ib_ring_low()
163 ret = ring->w_nr - oldest + (unsigned long long)wr_id + 1; in rds_ib_ring_completed()
Diw_ring.c69 ring->w_nr = nr; in rds_iw_ring_init()
70 rdsdebug("ring %p nr %u\n", ring, ring->w_nr); in rds_iw_ring_init()
79 BUG_ON(diff > ring->w_nr); in __rds_iw_ring_used()
89 ring->w_nr = nr; in rds_iw_ring_resize()
101 avail = ring->w_nr - __rds_iw_ring_used(ring); in rds_iw_ring_alloc()
110 ring->w_alloc_ptr = (ring->w_alloc_ptr + ret) % ring->w_nr; in rds_iw_ring_alloc()
119 ring->w_free_ptr = (ring->w_free_ptr + val) % ring->w_nr; in rds_iw_ring_free()
129 ring->w_alloc_ptr = (ring->w_alloc_ptr - val) % ring->w_nr; in rds_iw_ring_unalloc()
140 return __rds_iw_ring_used(ring) <= (ring->w_nr >> 1); in rds_iw_ring_low()
164 ret = ring->w_nr - oldest + (unsigned long long)wr_id + 1; in rds_iw_ring_completed()
Dib_cm.c294 if (rds_ibdev->max_wrs < ic->i_send_ring.w_nr + 1) in rds_ib_setup_qp()
296 if (rds_ibdev->max_wrs < ic->i_recv_ring.w_nr + 1) in rds_ib_setup_qp()
305 ic->i_send_ring.w_nr + 1, 0); in rds_ib_setup_qp()
315 ic->i_recv_ring.w_nr, 0); in rds_ib_setup_qp()
340 attr.cap.max_send_wr = ic->i_send_ring.w_nr + 1; in rds_ib_setup_qp()
341 attr.cap.max_recv_wr = ic->i_recv_ring.w_nr + 1; in rds_ib_setup_qp()
360 ic->i_send_ring.w_nr * in rds_ib_setup_qp()
370 ic->i_recv_ring.w_nr * in rds_ib_setup_qp()
387 ic->i_sends = vzalloc_node(ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work), in rds_ib_setup_qp()
395 ic->i_recvs = vzalloc_node(ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work), in rds_ib_setup_qp()
[all …]
Diw_cm.c292 ic->i_send_ring.w_nr * in rds_iw_setup_qp()
302 ic->i_recv_ring.w_nr * in rds_iw_setup_qp()
319 ic->i_sends = vmalloc(ic->i_send_ring.w_nr * sizeof(struct rds_iw_send_work)); in rds_iw_setup_qp()
327 ic->i_recvs = vmalloc(ic->i_recv_ring.w_nr * sizeof(struct rds_iw_recv_work)); in rds_iw_setup_qp()
608 ic->i_send_ring.w_nr * in rds_iw_conn_shutdown()
615 ic->i_recv_ring.w_nr * in rds_iw_conn_shutdown()
Diw.c193 iinfo->max_send_wr = ic->i_send_ring.w_nr; in rds_iw_conn_info_visitor()
194 iinfo->max_recv_wr = ic->i_recv_ring.w_nr; in rds_iw_conn_info_visitor()
Diw_send.c133 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rds_iw_send_init_ring()
176 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rds_iw_send_clear_ring()
285 oldest = (oldest + 1) % ic->i_send_ring.w_nr; in rds_iw_send_cq_comp_handler()
723 pos = (pos + 1) % ic->i_send_ring.w_nr; in rds_iw_xmit()
926 if (++send == &ic->i_sends[ic->i_send_ring.w_nr]) in rds_iw_xmit_rdma()
Dib.c292 iinfo->max_send_wr = ic->i_send_ring.w_nr; in rds_ib_conn_info_visitor()
293 iinfo->max_recv_wr = ic->i_recv_ring.w_nr; in rds_ib_conn_info_visitor()
Dib_send.c227 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rds_ib_send_init_ring()
250 for (i = 0, send = ic->i_sends; i < ic->i_send_ring.w_nr; i++, send++) { in rds_ib_send_clear_ring()
331 oldest = (oldest + 1) % ic->i_send_ring.w_nr; in rds_ib_send_cq_comp_handler()
725 pos = (pos + 1) % ic->i_send_ring.w_nr; in rds_ib_xmit()
972 if (++send == &ic->i_sends[ic->i_send_ring.w_nr]) in rds_ib_xmit_rdma()
Diw_recv.c87 for (i = 0, recv = ic->i_recvs; i < ic->i_recv_ring.w_nr; i++, recv++) { in rds_iw_recv_init_ring()
130 for (i = 0; i < ic->i_recv_ring.w_nr; i++) in rds_iw_recv_clear_ring()
236 if (pos >= ic->i_recv_ring.w_nr) { in rds_iw_recv_refill()
Dib_recv.c51 for (i = 0, recv = ic->i_recvs; i < ic->i_recv_ring.w_nr; i++, recv++) { in rds_ib_recv_init_ring()
237 for (i = 0; i < ic->i_recv_ring.w_nr; i++) in rds_ib_recv_clear_ring()
368 if (pos >= ic->i_recv_ring.w_nr) { in rds_ib_recv_refill()
Dib.h85 u32 w_nr; member
Diw.h93 u32 w_nr; member