Lines Matching refs:rcd
20 * hfi1_exp_tid_group_init - initialize rcd expected receive
21 * @rcd: the rcd
23 void hfi1_exp_tid_group_init(struct hfi1_ctxtdata *rcd)
25 hfi1_exp_tid_set_init(&rcd->tid_group_list);
26 hfi1_exp_tid_set_init(&rcd->tid_used_list);
27 hfi1_exp_tid_set_init(&rcd->tid_full_list);
32 * @rcd: the context to add the groupings to
34 int hfi1_alloc_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd)
36 struct hfi1_devdata *dd = rcd->dd;
42 ngroups = rcd->expected_count / dd->rcv_entries.group_size;
43 rcd->groups =
44 kcalloc_node(ngroups, sizeof(*rcd->groups),
45 GFP_KERNEL, rcd->numa_id);
46 if (!rcd->groups)
48 tidbase = rcd->expected_base;
50 grp = &rcd->groups[i];
53 tid_group_add_tail(grp, &rcd->tid_group_list);
62 * @rcd: the context to free
71 void hfi1_free_ctxt_rcv_groups(struct hfi1_ctxtdata *rcd)
73 kfree(rcd->groups);
74 rcd->groups = NULL;
75 hfi1_exp_tid_group_init(rcd);
77 hfi1_clear_tids(rcd);