Lines Matching refs:ibinc

206 	struct rds_ib_incoming *ibinc;  in rds_ib_inc_free()  local
211 ibinc = container_of(inc, struct rds_ib_incoming, ii_inc); in rds_ib_inc_free()
214 list_for_each_entry_safe(frag, pos, &ibinc->ii_frags, f_item) { in rds_ib_inc_free()
218 BUG_ON(!list_empty(&ibinc->ii_frags)); in rds_ib_inc_free()
220 rdsdebug("freeing ibinc %p inc %p\n", ibinc, inc); in rds_ib_inc_free()
221 rds_ib_recv_cache_put(&ibinc->ii_cache_entry, &ic->i_cache_incs); in rds_ib_inc_free()
249 struct rds_ib_incoming *ibinc; in rds_ib_refill_one_inc() local
255 ibinc = container_of(cache_item, struct rds_ib_incoming, ii_cache_entry); in rds_ib_refill_one_inc()
263 ibinc = kmem_cache_alloc(rds_ib_incoming_slab, slab_mask); in rds_ib_refill_one_inc()
264 if (!ibinc) { in rds_ib_refill_one_inc()
270 INIT_LIST_HEAD(&ibinc->ii_frags); in rds_ib_refill_one_inc()
271 rds_inc_init(&ibinc->ii_inc, ic->conn, &ic->conn->c_faddr); in rds_ib_refill_one_inc()
273 return ibinc; in rds_ib_refill_one_inc()
536 struct rds_ib_incoming *ibinc; in rds_ib_inc_copy_to_user() local
544 ibinc = container_of(inc, struct rds_ib_incoming, ii_inc); in rds_ib_inc_copy_to_user()
545 frag = list_entry(ibinc->ii_frags.next, struct rds_page_frag, f_item); in rds_ib_inc_copy_to_user()
785 struct rds_ib_incoming *ibinc) in rds_ib_cong_recv() argument
798 if (be32_to_cpu(ibinc->ii_inc.i_hdr.h_len) != RDS_CONG_MAP_BYTES) in rds_ib_cong_recv()
805 frag = list_entry(ibinc->ii_frags.next, struct rds_page_frag, f_item); in rds_ib_cong_recv()
854 struct rds_ib_incoming *ibinc = ic->i_ibinc; in rds_ib_process_recv() local
860 rdsdebug("ic %p ibinc %p recv %p byte len %u\n", ic, ibinc, recv, in rds_ib_process_recv()
922 if (!ibinc) { in rds_ib_process_recv()
923 ibinc = recv->r_ibinc; in rds_ib_process_recv()
925 ic->i_ibinc = ibinc; in rds_ib_process_recv()
927 hdr = &ibinc->ii_inc.i_hdr; in rds_ib_process_recv()
928 ibinc->ii_inc.i_rx_lat_trace[RDS_MSG_RX_HDR] = in rds_ib_process_recv()
932 ibinc->ii_inc.i_rx_lat_trace[RDS_MSG_RX_START] = in rds_ib_process_recv()
935 rdsdebug("ic %p ibinc %p rem %u flag 0x%x\n", ic, ibinc, in rds_ib_process_recv()
938 hdr = &ibinc->ii_inc.i_hdr; in rds_ib_process_recv()
951 list_add_tail(&recv->r_frag->f_item, &ibinc->ii_frags); in rds_ib_process_recv()
960 if (ibinc->ii_inc.i_hdr.h_flags == RDS_FLAG_CONG_BITMAP) { in rds_ib_process_recv()
961 rds_ib_cong_recv(conn, ibinc); in rds_ib_process_recv()
964 &ibinc->ii_inc, GFP_ATOMIC); in rds_ib_process_recv()
977 rds_inc_put(&ibinc->ii_inc); in rds_ib_process_recv()